* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f5f5; color: #1a1a1a; line-height: 1.6;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 500px; margin: 0 auto; min-height: 100vh; background: #fff; }
.page { padding: 16px; padding-bottom: 150px; }
.page-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 32px 16px; text-align: center; }

/* Typography */
.logo { font-size: 2rem; font-weight: 800; color: #111; letter-spacing: -0.5px; }
.tagline { color: #666; margin-top: 8px; font-size: 1.05rem; line-height: 1.6; }
.shop-name { font-size: 1.25rem; font-weight: 700; }
.shop-sub { color: #888; font-size: 0.9rem; }
.section-title { font-size: 1.05rem; font-weight: 700; margin: 20px 0 12px; }
.empty { color: #999; text-align: center; padding: 40px 0; font-size: 0.95rem; }
.hint { color: #888; font-size: 0.85rem; margin: 4px 0 12px; }
.count-hint { text-align: center; color: #bbb; font-size: 0.8rem; margin-top: 16px; }

/* Header */
.header { display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.header .shop-name { flex: 1; }
.header-share { text-align: center; padding: 24px 0 16px; }
.header-share h1 { font-size: 1.3rem; font-weight: 700; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; border: 1px solid #ddd; background: #fff; cursor: pointer; text-align: center; transition: all 0.15s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: #111; color: #fff; border-color: #111; }
.btn-primary:active { background: #333; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 14px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-done { background: #10b981; color: #fff; border-color: #10b981; font-size: 0.8rem; padding: 6px 12px; white-space: nowrap; }
.btn-done:active { background: #059669; }

/* Forms */
.form-card { padding: 16px 0; }
.input { width: 100%; padding: 12px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-size: 1rem; margin-bottom: 12px; background: #fafafa; transition: border 0.2s; }
.input:focus { outline: none; border-color: #111; background: #fff; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\"%3E%3Cpath d=\"M6 8L1 3h10z\" fill=\"%23999\"/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; margin-top: 8px; }
label input[type="checkbox"] { margin-right: 6px; }

/* Alert */
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* Cards */
.card-list { display: flex; flex-direction: column; gap: 10px; }
.card { background: #fafafa; border-radius: 12px; padding: 14px; border: 1px solid #eee; display: block; }
.card:active { background: #f0f0f0; }
.card-row { display: flex; align-items: center; gap: 12px; }
.card-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.card-thumb-empty { background: #e8e8e8; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card-info strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 0.8rem; color: #888; }

/* Reminder card */
.reminder-card { border-left: 3px solid #f59e0b; }

/* Stats */
.stats-row { display: flex; gap: 12px; margin: 16px 0; }
.stats-row[hidden] { display: none !important; }
.stat { flex: 1; text-align: center; background: #fafafa; border-radius: 12px; padding: 12px 8px; border: 1px solid #eee; }
.stat-num { display: block; font-size: 1.3rem; font-weight: 700; color: #111; }
.stat-label { display: block; font-size: 0.75rem; color: #888; margin-top: 2px; }

/* App-style home */
.home-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 12px;
    border-bottom: 1px solid #eef1ee;
    margin-bottom: 12px;
}
.home-title-block { flex: 1; min-width: 0; }
.home-title-block .shop-name {
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.today-state {
    display: block;
    margin-top: 4px;
    color: #6d756f;
    font-size: 0.78rem;
    line-height: 1.3;
}
.home-profile-link {
    flex-shrink: 0;
    min-width: 46px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe5df;
    border-radius: 999px;
    background: #fff;
    color: #283028;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(17, 24, 17, 0.06);
}
.home-profile-link:active { transform: translateY(1px); background: #f4f7f4; }
.home-menu { flex-shrink: 0; }
.home-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.home-actions a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe5df;
    border-radius: 11px;
    background: #fff;
    color: #283028;
    font-size: 0.98rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(17, 24, 17, 0.06);
}
.home-actions a:active { transform: translateY(1px); background: #f4f7f4; }

.workbench-card {
    margin: 10px 0 14px;
    padding: 14px;
    border: 1px solid #dde6df;
    border-radius: 20px;
    background: #f8faf8;
    box-shadow: 0 18px 42px rgba(16, 22, 17, 0.1);
    overflow: hidden;
}
.workbench-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: -14px -14px 12px;
    padding: 15px 14px 16px;
    background: linear-gradient(135deg, #101510 0%, #253227 100%);
    color: #fff;
}
.eyebrow {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 4px;
}
.workbench-head h2 {
    color: #fff;
    font-size: 1.24rem;
    line-height: 1.25;
    font-weight: 800;
}
.status-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}
.status-pill.is-warm { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.status-pill.is-calm { background: #ecfdf5; color: #047857; border: 1px solid #bbf7d0; }
.workbench-main {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 10px;
}
.focus-metric {
    border: 0;
    border-radius: 16px;
    background: linear-gradient(160deg, #111811 0%, #1c2a1f 100%);
    color: #fff;
    min-height: 98px;
    padding: 10px 8px;
    cursor: pointer;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 22px rgba(16,22,17,0.18);
}
.focus-value {
    display: block;
    font-size: 2.42rem;
    line-height: 1;
    font-weight: 850;
}
.focus-label {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
    font-weight: 700;
}
.focus-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e3e9e4;
}
.focus-copy strong {
    color: #182018;
    font-size: 0.96rem;
    line-height: 1.35;
}
.focus-copy span {
    color: #667166;
    font-size: 0.8rem;
    line-height: 1.55;
    margin-top: 4px;
}
.workbench-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.workbench-grid-primary { gap: 8px; }
.workbench-stat {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 7px 5px;
    border: 1px solid #e0e7e2;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}
.workbench-note {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e3e9e4;
}
.workbench-note strong {
    display: block;
    color: #182018;
    font-size: 0.95rem;
    line-height: 1.35;
}
.workbench-note span {
    display: block;
    margin-top: 3px;
    color: #687268;
    font-size: 0.8rem;
    line-height: 1.5;
}
.task-panel {
    position: relative;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #e3e8e3;
    border-radius: 18px;
    background: #fbfcfb;
}
.anchor-mark {
    position: absolute;
    top: -84px;
}
.task-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.eyebrow-dark {
    color: #738073;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.2;
}
.task-panel-head h2 {
    color: #182018;
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 850;
}
.task-panel-head > span {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef4ee;
    color: #354035;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}
.task-group {
    padding: 10px 0;
    border-top: 1px solid #edf1ed;
}
.task-group:first-of-type { border-top: 0; padding-top: 0; }
.task-group:last-child { padding-bottom: 0; }
.task-group-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.task-group-title strong {
    color: #202820;
    font-size: 0.96rem;
    line-height: 1.25;
}
.task-group-title em {
    color: #8a928a;
    font-size: 0.72rem;
    font-style: normal;
    white-space: nowrap;
}
.task-panel .card {
    background: #fff;
    border-color: #e8ece8;
}
.appt-empty-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #f4d6b4;
    border-radius: 12px;
    background: #fffaf3;
    color: #8a4b14;
}
.appt-empty-card strong {
    display: block;
    color: #9a4b11;
    font-size: 0.88rem;
    line-height: 1.3;
}
.appt-empty-card span,
.appt-empty-card em {
    display: block;
    color: #9a6a3a;
    font-size: 0.74rem;
    line-height: 1.45;
    font-style: normal;
    margin-top: 2px;
}
.appt-empty-actions {
    display: flex;
    gap: 8px;
}
.appt-empty-actions .btn {
    flex: 1;
    min-height: 34px;
    border-color: #f0c391;
    color: #9a4b11;
    background: #fff;
}
.appt-empty-actions .btn:first-child {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}
.workbench-stat span {
    color: #141714;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.workbench-stat em {
    color: #8a928a;
    font-size: 0.68rem;
    line-height: 1.2;
    font-style: normal;
    white-space: nowrap;
}

@media (max-width: 360px) {
    .workbench-card { padding: 14px; }
    .workbench-main { grid-template-columns: 82px 1fr; }
    .focus-value { font-size: 1.9rem; }
    .workbench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-actions { gap: 5px; }
    .home-actions a { width: 32px; height: 32px; border-radius: 10px; font-size: 0.9rem; }
}

/* Tags */
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { display: inline-block; padding: 8px 14px; border-radius: 20px; background: #f0f0f0; font-size: 0.85rem; cursor: pointer; user-select: none; border: 1.5px solid transparent; transition: all 0.15s; }
.tag:active { transform: scale(0.96); }
.tag-active { background: #111; color: #fff; border-color: #111; }
.tag-radio { cursor: pointer; }

/* Photo area */
.photo-area { background: #fafafa; border: 2px dashed #ddd; border-radius: 12px; min-height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; cursor: pointer; overflow: hidden; }
.photo-area:active { background: #f0f0f0; }
.photo-placeholder { color: #bbb; font-size: 1rem; text-align: center; line-height: 1.8; }
.photo-preview-img { width: 100%; max-height: 300px; object-fit: cover; }

/* Search */
.search-bar { margin-bottom: 16px; }
.search-results { margin-top: -8px; margin-bottom: 12px; }
.search-item { padding: 10px 12px; background: #fafafa; border: 1px solid #eee; border-radius: 8px; cursor: pointer; font-size: 0.9rem; margin-bottom: 4px; }
.search-item:active { background: #f0f0f0; }
.search-item span { color: #888; font-size: 0.8rem; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline-item { display: flex; gap: 12px; align-items: flex-start; }
.timeline-photo { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; flex-shrink: 0; cursor: pointer; transition: transform 0.2s; }
.timeline-photo.zoomed { transform: scale(2.5); z-index: 100; position: relative; border-radius: 4px; }
.timeline-info { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.timeline-date { font-weight: 600; color: #111; }

/* My page */
.me-page { background: #f7f8f7; }
.me-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #101510 0%, #253227 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(16,22,17,0.14);
}
.me-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.12);
}
.me-hero h1 { font-size: 1.2rem; line-height: 1.25; }
.me-hero p { color: rgba(255,255,255,0.68); font-size: 0.82rem; margin-top: 3px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.me-stat-card {
    min-height: 70px;
    padding: 10px 6px;
    border: 1px solid #e0e7e2;
    border-radius: 15px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}
.me-stat-card strong { font-size: 1.35rem; line-height: 1; color: #111811; }
.me-stat-card span { font-size: 0.72rem; color: #687268; font-weight: 700; }
.me-section {
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid #e6ebe6;
    border-radius: 18px;
    background: #fff;
}
.me-section h2 {
    padding: 9px 2px 6px;
    color: #748074;
    font-size: 0.74rem;
    font-weight: 850;
}
.me-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 2px;
    border-top: 1px solid #eef1ee;
}
.me-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #f3f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
}
.me-row span:nth-child(2) { color: #1f281f; font-size: 0.94rem; font-weight: 800; }
.me-row em { color: #9aa39a; font-size: 0.72rem; font-style: normal; text-align: right; }
.me-row-danger span:nth-child(2) { color: #dc2626; }

/* App tabbar */
.app-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    width: 100%;
    max-width: 500px;
    min-height: 64px;
    padding: 6px 6px max(8px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid #ececec;
    display: flex;
    align-items: stretch;
    box-shadow: 0 -8px 28px rgba(15,20,16,0.08);
}
.app-tab {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #9aa39a;
    font-size: 0.66rem;
    line-height: 1.1;
    font-weight: 700;
    border-radius: 14px;
    position: relative;
    transition: color 0.15s, background 0.15s, transform 0.15s;
}
.app-tab:active { transform: scale(0.96); }
.app-tab.active { color: #0f1410; }
.app-tab.active::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    margin-left: -2px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #10b981;
}
.app-tab-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.app-tab-capture {
    flex: 0 0 70px;
    justify-content: flex-start;
    padding-top: 4px;
    color: #059669;
}
.app-tab-fab {
    width: 50px;
    height: 50px;
    margin-top: -20px;
    margin-bottom: 2px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg,#10b981,#059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(16,185,129,0.38);
}
.app-tab-capture.active::after { display: none; }
.app-tab-capture.active .app-tab-fab { box-shadow: 0 10px 24px rgba(16,185,129,0.5); }

/* Bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 500px; padding: 12px 16px 20px; background: #fff; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 8px; }

/* Recommend */
.result-card { padding: 8px 0; }
.rec-num { width: 32px; height: 32px; border-radius: 50%; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.cta-hint { text-align: center; padding: 20px 0; color: #666; font-size: 0.9rem; }
.next-remind { text-align: center; padding: 16px; background: #fffbeb; border-radius: 12px; margin: 16px 0; font-size: 0.9rem; color: #92400e; }

/* Actions on landing */
.actions { margin-top: 32px; width: 100%; max-width: 320px; }
.actions .sub { margin-top: 16px; font-size: 0.85rem; color: #aaa; }
.hero { margin-bottom: 16px; }

/* Desktop tweaks */
@media (min-width: 501px) {
    .container { border-left: 1px solid #eee; border-right: 1px solid #eee; }
}


/* ===== Overlay ===== */
.overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.92);z-index:9999;align-items:center;justify-content:center}
.overlay.active{display:flex}
.overlay img{max-width:95%;max-height:90vh;border-radius:8px}
.overlay-close{position:absolute;top:16px;right:16px;color:#fff;font-size:2rem;cursor:pointer;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.15);border-radius:50%;border:none}
.share-box{background:#f9fafb;border-radius:14px;padding:16px;margin:16px 0;text-align:center;border:1px solid #e5e7eb}
.share-url{font-size:0.78rem;color:#6b7280;word-break:break-all;background:#fff;padding:10px;border-radius:8px;margin:8px 0;border:1px solid #e5e7eb;max-height:80px;overflow-y:auto;text-align:left}
.profile-header{text-align:center;padding:20px 0;border-bottom:1px solid #f0f0f0;margin-bottom:16px}
.profile-avatar{width:72px;height:72px;border-radius:50%;background:#1a1a2e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;margin:0 auto 12px;overflow:hidden}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-name{font-size:1.3rem;font-weight:700}
.profile-meta{color:#999;font-size:0.9rem;margin-top:2px}
.cust-hero{background:linear-gradient(135deg,#1a1a2e,#16213e);color:#fff;text-align:center;padding:32px 16px 24px;border-radius:0 0 20px 20px;margin:-16px -16px 16px}
.cust-hero h1{font-size:1.5rem;font-weight:700;margin-bottom:4px}
.cust-hero p{opacity:0.7;font-size:0.9rem}
.cust-stats{display:flex;gap:16px;justify-content:center;margin-top:16px}
.cust-stat{text-align:center}
.cust-stat-num{font-size:1.4rem;font-weight:700}
.cust-stat-label{font-size:0.75rem;opacity:0.7}
.hero-icon{font-size:4rem;display:block;margin-bottom:16px}
.hero-title{font-size:1.5rem;font-weight:800;color:#1a1a2e;margin-bottom:4px}
.card-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:0.72rem;font-weight:600}
.badge-red{background:#fef2f2;color:#dc2626}
.badge-yellow{background:#fffbeb;color:#d97706}
.badge-green{background:#f0fdf4;color:#16a34a}
.tag-sm{padding:4px 10px;font-size:0.78rem;border-radius:12px}
.timeline-actions{display:flex;gap:6px;margin-top:6px}
.timeline-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.nav-row{display:flex;gap:8px}
.nav-row .btn{flex:1}
.btn-xs{padding:4px 10px;font-size:0.78rem;border-radius:6px}
.btn-danger{background:#fef2f2;color:#dc2626;border-color:#fecaca}
.btn-outline{background:transparent;border:1.5px solid #d0d0d0}
.btn-done{background:#10b981;color:#fff;border-color:#10b981;font-size:0.8rem;padding:6px 12px;white-space:nowrap}
.btn-done:active{background:#059669}
.toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:9999;background:#1a1a2e;color:#fff;padding:12px 24px;border-radius:12px;font-weight:600;font-size:0.95rem;box-shadow:0 8px 30px rgba(0,0,0,0.2);animation:toastIn 0.3s;pointer-events:none;max-width:90%}
.pwa-install-tip{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);z-index:9998;width:calc(100% - 24px);max-width:476px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 12px 36px rgba(0,0,0,0.16);padding:12px 12px 12px 14px;display:flex;align-items:center;gap:10px;animation:fadeIn 0.2s}
.pwa-install-tip[hidden]{display:none}
.pwa-install-icon{width:38px;height:38px;border-radius:10px;background:#0f1410;color:#34d399;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.05rem;flex-shrink:0}
.pwa-install-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;padding-right:8px}
.pwa-install-copy strong{font-size:0.9rem;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pwa-install-copy span{font-size:0.76rem;color:#666;line-height:1.45}
.pwa-install-close{position:absolute;top:-10px;right:-8px;width:26px;height:26px;border-radius:50%;border:1px solid #e5e7eb;background:#fff;color:#888;font-size:1rem;line-height:1;box-shadow:0 4px 12px rgba(0,0,0,0.12);cursor:pointer}
.pwa-install-tip .btn{padding:8px 10px;font-size:0.78rem;line-height:1.2;white-space:nowrap;flex-shrink:0}
@media (max-width: 500px) {.pwa-install-tip{bottom:104px}.pwa-install-tip .btn{padding:8px 10px;font-size:0.78rem}}
@keyframes toastIn{from{opacity:0;transform:translateX(-50%) translateY(-20px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.page{animation:fadeIn 0.2s}
@media(min-width:501px){.container{border-left:1px solid #eee;border-right:1px solid #eee;box-shadow:0 0 40px rgba(0,0,0,0.05)}}


/* 鈹€鈹€ Camera capture 鈹€鈹€ */
#camVideo { border-radius: 14px; }
.cam-flash { animation: camFlash 0.15s ease-out; }
@keyframes camFlash { 0% { opacity: 0.3; } 100% { opacity: 1; } }
#capturedGallery img { transition: transform 0.2s; }
#capturedGallery img:hover { transform: scale(1.05); }

/* === Mobile touch optimizations === */
@media (max-width: 500px) {
    .btn, .tag, .search-drop .item { min-height: 44px; min-width: 44px; }
    .input { font-size: 16px; } /* prevent iOS zoom on focus */
    .quick-form .submit-btn { padding: 18px; font-size: 1.15rem; }
}

/* === Capture minimal mode === */
.capture-mini .tag { transition: all 0.1s; }
.capture-mini .tag-active { background: #111; color: #fff; border-color: #111; }
