*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --green:      #388C59;
      --green-dark: #2d7249;
      --green-pale: #D9EBD9;
      --green-soft: #EDF6EE;
      --orange:     #FB8C00;
      --red:        #E53935;
      --text:       #1A1A1A;
      --text-muted: #777;
      --border:     #EBEBEB;
      --bg:         #F5F5F5;
      --white:      #FFFFFF;
      --nav-h:      62px;
      --header-h:   54px;
      --filter-h:   48px;
    }
    html, body { height:100%; font-family:'Inter',system-ui,sans-serif; background:#ddd; color:var(--text); overflow:hidden; -webkit-tap-highlight-color:transparent; }

    /* ── App shell ── */
    #app { display:flex; flex-direction:column; height:100dvh; max-width:480px; margin:0 auto; background:var(--white); box-shadow:0 0 40px rgba(0,0,0,.15); overflow:hidden; position:relative; }

    /* ── Onboarding ── */
    #screen-splash { position:absolute; inset:0; z-index:999; background:linear-gradient(170deg,#2d7249 0%,#388C59 60%,#4aa86e 100%); display:flex; flex-direction:column; overflow:hidden; transition:opacity .35s ease, transform .35s ease; }
    #screen-splash.splash-out { opacity:0; transform:scale(1.03); pointer-events:none; }

    #ob-skip { position:absolute; top:16px; right:16px; background:rgba(255,255,255,.18); border:none; color:#fff; font-size:13px; font-weight:600; padding:6px 14px; border-radius:20px; cursor:pointer; z-index:10; }

    /* Sliding track */
    #ob-track { display:flex; flex:1; transition:transform .38s cubic-bezier(.4,0,.2,1); min-height:0; }
    .ob-step { min-width:100%; display:flex; flex-direction:column; align-items:center; padding:48px 28px 0; }

    /* Lottie area */
    .ob-lottie-wrap { width:220px; height:220px; position:relative; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .ob-lottie { width:220px; height:220px; }
    .ob-lottie-fallback { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:96px; line-height:1; }
    /* Hide fallback once lottie loads */
    .ob-lottie:not([error]) + .ob-lottie-fallback { animation: hideFallback 0s 1.2s forwards; }
    @keyframes hideFallback { to { opacity:0; pointer-events:none; } }

    /* Text */
    .ob-text { text-align:center; margin-top:20px; }
    .ob-step-label { font-size:11px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:rgba(255,255,255,.55); margin-bottom:10px; }
    .ob-text h2 { font-size:22px; font-weight:800; color:#fff; line-height:1.25; letter-spacing:-.3px; margin-bottom:12px; }
    .ob-text p { font-size:14px; color:rgba(255,255,255,.82); line-height:1.6; }

    /* Dots */
    #ob-dots { display:flex; justify-content:center; gap:8px; padding:20px 0 12px; flex-shrink:0; }
    .ob-dot { width:8px; height:8px; border-radius:4px; background:rgba(255,255,255,.3); transition:width .25s, background .25s; }
    .ob-dot.active { width:24px; background:#fff; }

    /* Actions */
    #ob-actions { padding:0 24px 32px; flex-shrink:0; }
    #ob-next { width:100%; padding:16px; background:#fff; color:var(--green-dark); border:none; border-radius:14px; font-size:16px; font-weight:700; cursor:pointer; letter-spacing:-.2px; transition:transform .1s, box-shadow .1s; box-shadow:0 4px 20px rgba(0,0,0,.2); }
    #ob-next:active { transform:scale(.98); }

    /* ── Header ── */
    #header { height:var(--header-h); background:var(--green); color:#fff; display:flex; align-items:center; justify-content:space-between; padding:0 16px; flex-shrink:0; z-index:200; }
    .hidden { display:none !important; }
    #header.hidden { display:none; }
    #header .logo { font-size:17px; font-weight:700; letter-spacing:-.3px; }
    .icon-btn { background:transparent; border:none; color:#fff; cursor:pointer; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; transition:background .15s; }
    .icon-btn:hover { background:rgba(255,255,255,.15); }
    .icon-btn svg { width:20px; height:20px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

    /* ── Filter chips ── */
    #filter-row { height:var(--filter-h); display:flex; align-items:center; gap:6px; padding:0 14px; overflow-x:auto; scrollbar-width:none; background:var(--white); border-bottom:1px solid var(--border); flex-shrink:0; }
    #filter-row::-webkit-scrollbar { display:none; }
    .chip { border-radius:20px; border:1.5px solid var(--border); background:var(--white); color:var(--text-muted); font-size:13px; font-weight:500; padding:5px 14px; white-space:nowrap; cursor:pointer; font-family:inherit; transition:all .15s; flex-shrink:0; }
    .chip:hover { border-color:var(--green); color:var(--green); }
    .chip.active { background:var(--green); border-color:var(--green); color:#fff; font-weight:600; }

    /* ── Screen system ── */
    .screen { display:none; flex:1; flex-direction:column; overflow:hidden; position:relative; }
    .screen.active { display:flex; }

    /* ── Bottom nav ── */
    #bottom-nav { height:var(--nav-h); background:var(--white); border-top:1px solid var(--border); display:flex; align-items:stretch; flex-shrink:0; z-index:500; }
    #bottom-nav.hidden { display:none; }
    .nav-btn { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; background:transparent; border:none; border-top:2.5px solid transparent; color:var(--text-muted); font-size:11px; font-weight:500; cursor:pointer; font-family:inherit; transition:all .15s; padding-bottom:4px; }
    .nav-btn.active { color:var(--green); border-top-color:var(--green); font-weight:700; }
    .nav-icon { font-size:20px; line-height:1; }

    /* ════ MAP ════ */
    #map { flex:1; width:100%; z-index:1; }
    .leaflet-control-zoom { border:none !important; box-shadow:0 2px 12px rgba(0,0,0,.15) !important; }
    .leaflet-control-zoom a { border-radius:8px !important; border:none !important; font-weight:600 !important; color:var(--text) !important; }
    #sighting-card { position:absolute; bottom:14px; left:14px; right:14px; background:var(--white); border-radius:16px; padding:14px 16px; box-shadow:0 4px 24px rgba(0,0,0,.14); z-index:400; display:flex; align-items:center; gap:12px; transition:opacity .2s,transform .2s; }
    #sighting-card.hidden { opacity:0; pointer-events:none; transform:translateY(8px); }
    #sighting-card .card-photo { width:52px; height:52px; border-radius:50%; flex-shrink:0; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:24px; overflow:hidden; }
    #sighting-card .card-photo img { width:100%; height:100%; object-fit:cover; }
    #sighting-card .card-info { flex:1; min-width:0; }
    #sighting-card .card-top { display:flex; align-items:center; gap:6px; margin-bottom:3px; }
    .badge { background:var(--green-pale); color:var(--green); border-radius:20px; padding:2px 10px; font-size:11px; font-weight:700; }
    .badge.urgent { background:#ffebee; color:var(--red); }
    .badge.orange { background:#fff3e0; color:var(--orange); }
    #sighting-card .card-time { font-size:11px; color:var(--text-muted); }
    #sighting-card .card-location { font-weight:600; font-size:13px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    #sighting-card .card-sub { font-size:12px; color:var(--text-muted); margin-top:1px; }
    .btn-ficha { background:var(--green); color:#fff; border:none; border-radius:10px; padding:8px 14px; font-size:12px; font-weight:600; white-space:nowrap; cursor:pointer; font-family:inherit; flex-shrink:0; transition:background .15s; }
    .btn-ficha:hover { background:var(--green-dark); }
    #map-empty { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:var(--white); border-radius:12px; padding:14px 20px; font-size:13px; color:var(--text-muted); box-shadow:0 2px 12px rgba(0,0,0,.1); z-index:500; display:none; pointer-events:none; }

    /* ════ REGISTER ════ */
    #screen-register { background:#111; }
    #viewfinder { flex:1; position:relative; background:#111; overflow:hidden; display:flex; align-items:center; justify-content:center; min-height:0; }
    #photo-preview { width:100%; height:100%; object-fit:cover; display:none; }
    #camera-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:rgba(255,255,255,.35); }
    #camera-placeholder svg { width:56px; height:56px; stroke:rgba(255,255,255,.3); fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
    #camera-placeholder p { font-size:14px; }
    #gps-pill { position:absolute; top:14px; left:16px; right:16px; background:rgba(255,255,255,.92); backdrop-filter:blur(8px); border-radius:12px; padding:10px 14px; display:flex; align-items:center; gap:10px; font-size:13px; font-weight:500; color:var(--text); box-shadow:0 2px 12px rgba(0,0,0,.15); cursor:pointer; }
    #gps-pill svg { width:16px; height:16px; flex-shrink:0; stroke:var(--green); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    #gps-text { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text-muted); }
    #gps-text.located { color:var(--text); font-weight:600; }
    #shutter-btn { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); width:72px; height:72px; border-radius:50%; background:var(--green); border:4px solid rgba(255,255,255,.9); box-shadow:0 4px 20px rgba(0,0,0,.4); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .1s; }
    #shutter-btn:active { transform:translateX(-50%) scale(.93); }
    #shutter-btn svg { width:28px; height:28px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    #photo-input { display:none; }
    #reg-sheet { background:var(--white); border-radius:20px 20px 0 0; padding:10px 16px 16px; flex-shrink:0; box-shadow:0 -4px 20px rgba(0,0,0,.12); }
    .drag-handle { width:40px; height:5px; border-radius:3px; background:#DDD; margin:0 auto 14px; }
    #notes-row { display:flex; align-items:center; gap:10px; background:var(--bg); border-radius:10px; padding:10px 14px; margin-bottom:12px; }
    #notes-row svg { width:16px; height:16px; flex-shrink:0; stroke:var(--text-muted); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    #notes-input { flex:1; border:none; background:transparent; font-family:inherit; font-size:13px; color:var(--text); resize:none; outline:none; line-height:1.4; max-height:60px; overflow-y:auto; }
    #notes-input::placeholder { color:var(--text-muted); }
    .btn-secondary { width:100%; padding:14px; border-radius:12px; font-size:15px; font-weight:600; font-family:inherit; cursor:pointer; transition:all .15s; margin-bottom:10px; display:flex; align-items:center; justify-content:center; gap:8px; background:var(--green-pale); color:var(--green); border:1.5px solid var(--green-pale); }
    .btn-secondary:hover { background:var(--green-soft); border-color:var(--green); }
    .btn-secondary svg { width:18px; height:18px; fill:none; stroke:var(--green); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    .btn-secondary.located { background:var(--green); color:#fff; border-color:var(--green); }
    .btn-secondary.located svg { stroke:#fff; }
    .btn-primary { width:100%; padding:15px; border-radius:12px; font-size:15px; font-weight:700; font-family:inherit; cursor:pointer; transition:all .15s; display:flex; align-items:center; justify-content:center; gap:8px; background:var(--green); color:#fff; border:none; }
    .btn-primary:hover { background:var(--green-dark); }
    .btn-primary:disabled { background:#ccc; cursor:not-allowed; }
    .btn-primary svg { width:18px; height:18px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

    /* ════ ANALYSIS ════ */
    #screen-analysis { background:var(--bg); overflow-y:auto; }
    .flow-header { position:sticky; top:0; z-index:100; background:var(--white); border-bottom:1px solid var(--border); display:flex; align-items:center; gap:12px; padding:0 16px; height:var(--header-h); flex-shrink:0; }
    .flow-header .back-btn { background:transparent; border:none; cursor:pointer; padding:8px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-left:-8px; }
    .flow-header .back-btn svg { width:20px; height:20px; fill:none; stroke:var(--text); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    .flow-header h2 { font-size:16px; font-weight:700; color:var(--text); }
    #analysis-photo-wrap { position:relative; background:#111; flex-shrink:0; }
    #analysis-photo { width:100%; max-height:300px; object-fit:cover; display:block; }
    #ai-badge { position:absolute; top:12px; right:12px; background:rgba(0,0,0,.6); backdrop-filter:blur(4px); color:#fff; border-radius:20px; padding:5px 12px; font-size:12px; font-weight:600; display:flex; align-items:center; gap:6px; }
    #ai-badge .dot { width:8px; height:8px; border-radius:50%; background:var(--green); animation:pulse-dot 1.2s ease-in-out infinite; }
    @keyframes pulse-dot { 0%,100%{opacity:.4;transform:scale(.8)} 50%{opacity:1;transform:scale(1)} }
    #ai-badge.done { background:rgba(56,140,89,.9); }
    #ai-badge.done .dot { animation:none; background:#fff; }
    #animal-result-badge { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); background:rgba(56,140,89,.92); backdrop-filter:blur(4px); color:#fff; border-radius:20px; padding:7px 18px; font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; white-space:nowrap; opacity:0; transition:opacity .3s; }
    #animal-result-badge.visible { opacity:1; }
    #animal-result-badge svg { width:16px; height:16px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    .analysis-card { background:var(--white); border-radius:16px; margin:12px 16px; padding:16px; box-shadow:0 1px 6px rgba(0,0,0,.06); }
    .analysis-card h3 { font-size:16px; font-weight:700; color:var(--text); margin-bottom:4px; display:flex; align-items:center; justify-content:space-between; }
    .analysis-card h3 button { background:transparent; border:none; cursor:pointer; padding:4px; color:var(--text-muted); font-size:16px; }
    .analysis-card .subtitle { font-size:13px; color:var(--text-muted); margin-bottom:14px; line-height:1.4; }
    .dropdowns-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
    .dropdown-field label { display:block; font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.4px; margin-bottom:5px; }
    .dropdown-field select { width:100%; padding:10px 12px; border:1.5px solid var(--border); border-radius:10px; font-family:inherit; font-size:13px; font-weight:500; color:var(--text); background:var(--bg); cursor:pointer; outline:none; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:32px; }
    .dropdown-field select:focus { border-color:var(--green); background-color:var(--white); }
    .condition-label { font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.4px; margin-bottom:8px; }
    .condition-chips { display:flex; flex-wrap:wrap; gap:8px; }
    .cond-chip { border-radius:20px; border:1.5px solid var(--border); background:var(--white); color:var(--text); padding:6px 14px; font-size:13px; font-weight:500; cursor:pointer; font-family:inherit; transition:all .15s; display:flex; align-items:center; gap:5px; }
    .cond-chip.active { background:var(--green); border-color:var(--green); color:#fff; }
    .cond-chip .check { display:none; font-size:12px; }
    .cond-chip.active .check { display:inline; }
    .similar-scroll { display:flex; gap:12px; overflow-x:auto; padding:4px 0 8px; scrollbar-width:none; }
    .similar-scroll::-webkit-scrollbar { display:none; }
    .similar-card { flex-shrink:0; width:148px; border-radius:12px; overflow:hidden; border:1.5px solid var(--border); background:var(--white); }
    .match-pct { position:absolute; bottom:6px; left:6px; background:rgba(0,0,0,.65); color:#fff; border-radius:6px; padding:2px 7px; font-size:11px; font-weight:700; }
    .similar-card-info { padding:8px 10px; }
    .similar-card-info .days { font-size:12px; font-weight:600; color:var(--text); }
    .similar-card-info .dist { font-size:11px; color:var(--text-muted); }
    #analysis-actions { padding:12px 16px 20px; background:var(--white); border-top:1px solid var(--border); display:flex; flex-direction:column; gap:10px; flex-shrink:0; position:sticky; bottom:0; z-index:50; }
    .btn-outline { width:100%; padding:14px; border-radius:12px; font-size:15px; font-weight:600; font-family:inherit; cursor:pointer; background:transparent; color:var(--text-muted); border:1.5px solid var(--border); transition:all .15s; }
    .btn-outline:hover { border-color:var(--text-muted); color:var(--text); }

    /* ════ CONFIRM ════ */
    #screen-confirm { background:var(--bg); align-items:center; justify-content:center; overflow-y:auto; }
    #confirm-inner { width:100%; max-width:360px; padding:40px 24px 32px; display:flex; flex-direction:column; align-items:center; }
    #confirm-photo-wrap { position:relative; margin-bottom:20px; }
    #confirm-photo { width:160px; height:160px; border-radius:50%; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:64px; border:4px solid var(--white); box-shadow:0 4px 20px rgba(0,0,0,.15); overflow:hidden; }
    #confirm-photo img { width:100%; height:100%; object-fit:cover; }
    #confirm-check { position:absolute; bottom:4px; right:4px; width:44px; height:44px; border-radius:50%; background:var(--green); border:3px solid var(--white); display:flex; align-items:center; justify-content:center; }
    #confirm-check svg { width:20px; height:20px; fill:none; stroke:#fff; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
    #confirm-title { font-size:26px; font-weight:800; color:var(--text); text-align:center; line-height:1.2; margin-bottom:24px; }
    #confirm-card { width:100%; background:var(--white); border-radius:16px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,.07); margin-bottom:24px; }
    .confirm-row { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; gap:12px; }
    .confirm-row + .confirm-row { border-top:1px solid var(--border); }
    .confirm-row-label { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--text-muted); font-weight:500; }
    .confirm-row-label svg { width:16px; height:16px; fill:none; stroke:var(--text-muted); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    .confirm-row-value { font-size:14px; font-weight:700; color:var(--text); text-align:right; }
    .confirm-btns { width:100%; display:flex; flex-direction:column; gap:10px; }

    /* ════ SIGHTINGS LIST ════ */
    #screen-sightings { background:var(--bg); }
    #sightings-header { background:var(--white); border-bottom:1px solid var(--border); padding:12px 16px; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
    #sightings-header span { font-size:13px; font-weight:600; color:var(--text-muted); }
    #refresh-btn { background:transparent; border:none; cursor:pointer; font-size:18px; color:var(--green); padding:4px 8px; border-radius:8px; }
    #animals-list { flex:1; overflow-y:auto; padding:10px 0 8px; }
    .animal-item { display:flex; align-items:center; gap:12px; background:var(--white); margin:6px 14px; border-radius:14px; padding:12px 14px; box-shadow:0 1px 6px rgba(0,0,0,.06); cursor:pointer; transition:box-shadow .15s; border:1.5px solid transparent; }
    .animal-item:hover { box-shadow:0 3px 14px rgba(0,0,0,.1); border-color:var(--green-pale); }
    .animal-item-photo { width:58px; height:58px; border-radius:12px; flex-shrink:0; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:28px; overflow:hidden; }
    .animal-item-photo img { width:100%; height:100%; object-fit:cover; }
    .animal-item-info { flex:1; min-width:0; }
    .animal-item-name { font-weight:700; font-size:14px; color:var(--text); margin-bottom:2px; }
    .animal-item-breed { font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:4px; }
    .animal-item-meta { font-size:11px; color:var(--text-muted); }
    .animal-item-meta.urgent { color:var(--red); }
    .animal-item-badge { flex-shrink:0; background:var(--green-pale); color:var(--green); border-radius:20px; padding:4px 10px; font-size:12px; font-weight:700; }
    .animal-item-badge.urgent { background:#ffebee; color:var(--red); }
    .animals-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:40px 24px; text-align:center; color:var(--text-muted); }
    .animals-empty .ph-icon { font-size:52px; opacity:.3; }
    .animals-empty p { font-size:14px; }

    /* ════ PROFILE / FICHA ════ */
    #screen-profile { background:var(--white); }
    .profile-scroll { flex:1; overflow-y:auto; min-height:0; }

    /* Hero */
    .profile-hero { position:relative; height:280px; background:#111; flex-shrink:0; }
    .profile-hero-img { width:100%; height:100%; object-fit:cover; display:block; }
    .hero-gradient { position:absolute; bottom:0; left:0; right:0; height:140px; background:linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%); }
    .hero-top-btns { position:absolute; top:16px; left:0; right:0; display:flex; justify-content:space-between; padding:0 16px; }
    .hero-btn { width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.92); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); transition:background .15s; }
    .hero-btn:hover { background:#fff; }
    .hero-btn svg { width:18px; height:18px; fill:none; stroke:var(--text); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    #profile-sightings-badge { position:absolute; bottom:14px; left:16px; background:rgba(56,140,89,.88); backdrop-filter:blur(4px); color:#fff; border-radius:20px; padding:6px 14px; font-size:12px; font-weight:700; display:flex; align-items:center; gap:6px; }
    #profile-sightings-badge svg { width:14px; height:14px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

    /* Profile content */
    .profile-content { padding:20px 16px 0; background:var(--white); }
    #profile-title { font-size:24px; font-weight:800; color:var(--text); margin-bottom:6px; }
    #profile-status { display:flex; align-items:center; gap:7px; font-size:13px; color:var(--text-muted); margin-bottom:24px; }
    #profile-status .status-dot { width:8px; height:8px; border-radius:50%; background:var(--green); flex-shrink:0; }

    /* Identification grid */
    .section-title { font-size:16px; font-weight:700; color:var(--text); margin-bottom:12px; }
    .id-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:24px; }
    .id-cell { background:var(--bg); border-radius:12px; padding:12px 14px; }
    .id-cell-label { font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.4px; margin-bottom:6px; }
    .id-cell-value { font-size:14px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:6px; }
    .id-cell-value .color-dot { width:14px; height:14px; border-radius:50%; flex-shrink:0; }

    /* Gallery */
    .gallery-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
    .gallery-see-all { font-size:13px; font-weight:600; color:var(--green); background:transparent; border:none; cursor:pointer; font-family:inherit; }
    .gallery-scroll { display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; margin:0 -16px; padding:0 16px 4px; margin-bottom:24px; }
    .gallery-scroll::-webkit-scrollbar { display:none; }
    .gallery-card { flex-shrink:0; width:150px; border-radius:12px; overflow:hidden; border:1px solid var(--border); background:var(--bg); }
    .gallery-card-img { width:150px; height:110px; object-fit:cover; display:block; background:var(--bg); }
    .gallery-card-info { padding:8px 10px; }
    .gallery-card-date { font-size:11px; color:var(--text-muted); margin-bottom:2px; display:flex; align-items:center; gap:4px; }
    .gallery-card-date svg { width:10px; height:10px; fill:none; stroke:var(--text-muted); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
    .gallery-card-loc { font-size:12px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

    /* Trajectory */
    #trajectory-map { width:100%; height:180px; border-radius:12px; overflow:hidden; background:var(--bg); margin-bottom:8px; border:1px solid var(--border); }
    .profile-section { margin-bottom:24px; }

    /* Profile footer */
    .profile-footer { padding:12px 16px 20px; background:var(--white); border-top:1px solid var(--border); flex-shrink:0; }
    .btn-adopt { width:100%; padding:16px; border-radius:14px; font-size:16px; font-weight:700; font-family:inherit; cursor:pointer; background:var(--green); color:#fff; border:none; display:flex; align-items:center; justify-content:center; gap:8px; transition:background .15s; }
    .btn-adopt:hover { background:var(--green-dark); }

    /* ── Spinners & animations ── */
    @keyframes spin { to { transform:rotate(360deg); } }
    .spinner { width:16px; height:16px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
    .skeleton { background:linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; border-radius:8px; }
    @keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Lucide icon sizing ─────────────────────────────────────────────────── */
/* Nav icons */
.nav-icon svg { width: 22px; height: 22px; display: block; }
.nav-btn.active .nav-icon svg { stroke: var(--green); }
.nav-btn .nav-icon svg { stroke: var(--text-muted); }

/* Filter chip icons */
.chip svg { width: 15px; height: 15px; vertical-align: middle; margin-right: 2px; }

/* Condition chip check icon */
.check svg { width: 12px; height: 12px; }

/* Card photo placeholder */
.card-photo svg { width: 28px; height: 28px; stroke: var(--text-muted); }

/* Map empty */
#map-empty svg { display: none; }

/* Edit button */
#edit-btn svg { width: 14px; height: 14px; stroke: var(--text-muted); }

/* Confirm photo placeholder */
#confirm-photo svg { width: 72px; height: 72px; }

/* Similar card placeholder */
.similar-card svg { opacity: .4; }

/* Animals empty / ph-icon */
.ph-icon svg { width: 52px; height: 52px; stroke: var(--text-muted); opacity: .3; }
.ph-icon { display: flex; align-items: center; justify-content: center; }

/* Refresh button */
#refresh-btn svg { width: 18px; height: 18px; stroke: var(--green); display: block; }

/* Adopt button */
.btn-adopt svg { width: 18px; height: 18px; stroke: #fff; fill: #fff; }

    /* ── Gallery card menu ── */
    .gallery-card-img-wrap { position:relative; }
    .gallery-card-menu-btn { position:absolute; top:6px; right:6px; width:28px; height:28px; background:rgba(0,0,0,.45); border:none; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#fff; padding:0; }
    .gallery-card-menu-btn svg { width:14px; height:14px; }
    .photo-menu { position:absolute; z-index:800; background:#fff; border-radius:10px; box-shadow:0 4px 20px rgba(0,0,0,.15); overflow:hidden; min-width:160px; }
    #photo-menu-download { display:flex; align-items:center; gap:10px; padding:13px 16px; font-size:14px; font-weight:500; color:var(--text); background:none; border:none; cursor:pointer; width:100%; }
    #photo-menu-download:active { background:var(--bg); }
    #photo-menu-download svg { width:16px; height:16px; flex-shrink:0; color:var(--text-muted); }

    /* ── Helped banner & events ── */
    #profile-helped-banner { display:flex; align-items:center; gap:8px; background:var(--green-soft); border:1px solid var(--green-pale); border-radius:10px; padding:10px 14px; margin:10px 0 4px; font-size:13px; color:var(--green-dark); font-weight:500; }
    #profile-helped-banner i { flex-shrink:0; }
    .helped-events { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
    .helped-event { display:flex; align-items:center; gap:10px; padding:10px 12px; background:var(--green-soft); border-radius:10px; }
    .helped-event-icon { flex-shrink:0; display:flex; }
    .helped-event-text { display:flex; flex-direction:column; gap:1px; }
    .helped-event-text span { font-size:13px; font-weight:500; color:var(--green-dark); }
    .helped-event-text small { font-size:11px; color:var(--text-muted); }

    /* ── Help bottom sheet ── */
    #help-overlay { position:absolute; inset:0; background:rgba(0,0,0,.45); z-index:500; }
    .help-sheet { position:absolute; bottom:0; left:0; right:0; background:#fff; border-radius:20px 20px 0 0; z-index:501; padding:12px 0 32px; transform:translateY(100%); transition:transform .3s cubic-bezier(.4,0,.2,1); }
    .help-sheet.open { transform:translateY(0); }
    #help-animal-row { display:flex; align-items:center; gap:12px; padding:12px 20px 16px; border-bottom:1px solid var(--border); }
    #help-animal-photo { width:48px; height:48px; border-radius:12px; overflow:hidden; background:var(--bg); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:26px; }
    #help-animal-photo img { width:100%; height:100%; object-fit:cover; }
    #help-animal-name { font-size:15px; font-weight:700; color:var(--text); }
    #help-animal-sub { font-size:12px; color:var(--text-muted); margin-top:2px; }
    .help-actions { display:flex; flex-direction:column; padding:8px 0; }
    .help-action-btn { display:flex; align-items:center; gap:14px; padding:14px 20px; background:none; border:none; cursor:pointer; text-align:left; transition:background .12s; width:100%; }
    .help-action-btn:active { background:var(--bg); }
    .help-action-icon { font-size:24px; width:32px; text-align:center; flex-shrink:0; }
    .help-action-text { flex:1; }
    .help-action-text strong { display:block; font-size:15px; font-weight:600; color:var(--text); }
    .help-action-text small { display:block; font-size:12px; color:var(--text-muted); margin-top:1px; }
    .help-chevron { width:18px; height:18px; fill:none; stroke:#ccc; stroke-width:2; stroke-linecap:round; flex-shrink:0; }
    .help-cancel { display:block; width:calc(100% - 40px); margin:8px 20px 0; padding:14px; background:var(--bg); border:none; border-radius:12px; font-size:15px; font-weight:600; color:var(--text-muted); cursor:pointer; }

    /* ── Helped confirmation ── */
    .helped-confirm { position:absolute; inset:0; background:rgba(0,0,0,.5); z-index:600; display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; transition:opacity .25s; }
    .helped-confirm.open { opacity:1; }
    .helped-inner { background:#fff; border-radius:20px; padding:32px 24px; text-align:center; width:100%; max-width:320px; }
    .helped-icon-wrap { width:56px; height:56px; background:var(--green-soft); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
    .helped-icon-wrap i { color:var(--green); }
    .helped-inner h3 { font-size:20px; font-weight:800; margin-bottom:8px; color:var(--text); }
    .helped-inner p { font-size:14px; color:var(--text-muted); line-height:1.5; margin-bottom:24px; }
    #helped-ok { width:100%; padding:14px; background:var(--green); color:#fff; border:none; border-radius:12px; font-size:15px; font-weight:700; cursor:pointer; }

/* Profile sightings badge */
#profile-sightings-badge svg { width: 14px; height: 14px; stroke: #fff; }

/* Urgent triangle icon inline */
.animal-item-meta svg { vertical-align: middle; display: inline; }

/* ── AI description callout (profile) ──────────────────────────────────── */
.ai-desc-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--green-soft);
  border: 1px solid var(--green-pale);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 24px;
}
.ai-label {
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  border-radius: 6px;
  padding: 2px 7px;
  flex-shrink: 0;
  margin-top: 1px;
}
.ai-desc-callout p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* ── Confirm identification grid ─────────────────────────────────────────── */
.confirm-id-grid {
  width: 100%;
  margin-bottom: 20px;
}
.cig-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
  text-align: center;
}
.cig-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cig-cell {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
}
.cig-cell.cig-full {
  grid-column: 1 / -1;
}
.cig-key {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.cig-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cig-val svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── AI badge error state ────────────────────────────────────────────────── */
#ai-badge.error { background: rgba(229,57,53,.88); }
#animal-result-badge.error {
  background: rgba(229,57,53,.92);
  font-size: 12px;
  max-width: calc(100% - 24px);
  text-align: center;
  white-space: normal;
  line-height: 1.4;
  padding: 10px 16px;
}

/* ── Help Proof Screen ────────────────────────────────────────────────────── */
#screen-help-proof { flex-direction:column; padding:0 0 100px; overflow-y:auto; background:var(--white); }
#screen-help-proof .flow-header { padding:12px 16px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--border); }
#screen-help-proof .flow-header h2 { font-size:17px; font-weight:700; }

#help-proof-animal-row { display:flex; align-items:center; gap:12px; padding:14px 16px; background:var(--green-soft); border-bottom:1px solid var(--border); }
.help-proof-thumb { width:48px; height:48px; border-radius:12px; background:var(--green-pale) center/cover no-repeat; flex-shrink:0; }
.help-proof-animal-name { font-size:15px; font-weight:700; color:var(--text); }
.help-proof-animal-sub  { font-size:12px; color:var(--text-muted); margin-top:2px; }

.help-proof-section { padding:16px 16px 0; }
.help-proof-label { font-size:12px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.optional-tag { font-size:10px; font-weight:500; color:var(--green); background:var(--green-pale); padding:2px 7px; border-radius:20px; text-transform:none; letter-spacing:0; }

/* Help type chips */
.help-type-chips { display:flex; flex-wrap:wrap; gap:8px; }
.help-type-chip { border:1.5px solid var(--border); background:var(--white); border-radius:20px; padding:7px 14px; font-size:13px; font-weight:500; cursor:pointer; transition:all .18s; color:var(--text); }
.help-type-chip.active { border-color:var(--green); background:var(--green-pale); color:var(--green-dark); font-weight:700; }

/* Viewfinder */
.help-proof-viewfinder { position:relative; width:100%; height:200px; border-radius:14px; overflow:hidden; background:#f0f0f0; cursor:pointer; border:2px dashed var(--border); margin-top:0; }
.help-proof-viewfinder:active { opacity:.85; }
#help-proof-input { display:none; }
#help-proof-preview { width:100%; height:100%; object-fit:cover; display:block; }
#help-proof-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--text-muted); }
#help-proof-placeholder svg { width:32px; height:32px; stroke:var(--text-muted); fill:none; stroke-width:1.5; }
#help-proof-placeholder span { font-size:13px; font-weight:500; }
.help-proof-ai-badge { position:absolute; bottom:10px; left:10px; background:rgba(33,33,33,.82); color:#fff; border-radius:20px; padding:5px 12px; font-size:12px; font-weight:600; display:flex; align-items:center; gap:6px; }
.help-proof-ai-badge .dot { width:7px; height:7px; border-radius:50%; background:#4caf50; animation:pulse 1.2s infinite; }
.help-proof-verified-badge { position:absolute; bottom:10px; left:10px; color:#fff; border-radius:20px; padding:6px 12px; font-size:12px; font-weight:700; display:flex; align-items:center; gap:6px; }
.help-proof-verified-badge svg { width:14px; height:14px; stroke:#fff; fill:none; stroke-width:3; }

#help-proof-notes { width:100%; border:1.5px solid var(--border); border-radius:12px; padding:12px; font-size:14px; font-family:inherit; resize:none; outline:none; color:var(--text); }
#help-proof-notes:focus { border-color:var(--green); }

.help-proof-submit { margin:20px 16px 0; width:calc(100% - 32px); background:var(--green); color:#fff; border:none; border-radius:14px; padding:15px; font-size:15px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; }
.help-proof-submit svg { width:18px; height:18px; stroke:#fff; fill:none; stroke-width:2; }
.help-proof-submit:active { background:var(--green-dark); }
.help-proof-submit:disabled { opacity:.6; cursor:not-allowed; }

/* ── Community Help section (ficha do animal) ──────────────────────────── */
.help-section-title { display:flex; align-items:center; gap:6px; }
#profile-help-list { display:flex; flex-direction:column; gap:12px; margin-top:4px; }
.help-event-card { border:1.5px solid var(--green-pale); border-radius:14px; overflow:hidden; background:var(--white); }
.help-event-photo { width:100%; height:160px; object-fit:cover; display:block; }
.help-event-body { padding:10px 14px 12px; }
.help-event-label { font-size:14px; font-weight:700; color:var(--green-dark); margin-bottom:4px; }
.help-event-notes { font-size:13px; color:var(--text); line-height:1.5; margin-bottom:4px; }
.help-event-date  { font-size:11px; color:var(--text-muted); }

/* ── Help Proof Screen ───────────────────────────────────────────────────── */
#screen-help-proof { flex-direction:column; padding:0 0 100px; overflow-y:auto; background:var(--white); }
#screen-help-proof .flow-header { padding:12px 16px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--border); }
#screen-help-proof .flow-header h2 { font-size:17px; font-weight:700; }

#help-proof-animal-row { display:flex; align-items:center; gap:12px; padding:14px 16px; background:var(--green-soft); border-bottom:1px solid var(--border); }
.help-proof-thumb { width:48px; height:48px; border-radius:12px; background:var(--green-pale) center/cover no-repeat; flex-shrink:0; }
.help-proof-animal-name { font-size:15px; font-weight:700; }
.help-proof-animal-sub  { font-size:12px; color:var(--text-muted); margin-top:2px; }

.help-proof-section { padding:16px 16px 0; }
.help-proof-label { font-size:12px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.optional-tag { font-size:10px; font-weight:500; color:var(--green); background:var(--green-pale); padding:2px 7px; border-radius:20px; text-transform:none; letter-spacing:0; }

.help-type-chips { display:flex; flex-wrap:wrap; gap:8px; }
.help-type-chip { border:1.5px solid var(--border); background:var(--white); border-radius:20px; padding:7px 14px; font-size:13px; font-weight:500; cursor:pointer; color:var(--text); transition:all .15s; }
.help-type-chip.active { border-color:var(--green); background:var(--green-pale); color:var(--green-dark); font-weight:700; }

.help-proof-viewfinder { position:relative; width:100%; height:200px; border-radius:14px; overflow:hidden; background:#f0f0f0; cursor:pointer; border:2px dashed var(--border); }
#help-proof-input { display:none; }
#help-proof-preview { width:100%; height:100%; object-fit:cover; display:block; }
#help-proof-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--text-muted); pointer-events:none; }
#help-proof-placeholder svg { width:32px; height:32px; stroke:var(--text-muted); fill:none; stroke-width:1.5; }
#help-proof-placeholder span { font-size:13px; font-weight:500; }
.help-proof-ai-badge { position:absolute; bottom:10px; left:10px; background:rgba(33,33,33,.82); color:#fff; border-radius:20px; padding:5px 12px; font-size:12px; font-weight:600; display:flex; align-items:center; gap:6px; }
.help-proof-ai-badge .dot { width:7px; height:7px; border-radius:50%; background:#4caf50; animation:pulse 1.2s infinite; }
.help-proof-verified-badge { position:absolute; bottom:10px; left:10px; color:#fff; border-radius:20px; padding:6px 12px; font-size:12px; font-weight:700; display:flex; align-items:center; gap:6px; }
.help-proof-verified-badge svg { width:14px; height:14px; stroke:#fff; fill:none; stroke-width:3; }

#help-proof-notes { width:100%; border:1.5px solid var(--border); border-radius:12px; padding:12px; font-size:14px; font-family:inherit; resize:none; outline:none; color:var(--text); }
#help-proof-notes:focus { border-color:var(--green); }

.help-proof-submit { margin:20px 16px 0; width:calc(100% - 32px); background:var(--green); color:#fff; border:none; border-radius:14px; padding:15px; font-size:15px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; }
.help-proof-submit svg { width:18px; height:18px; stroke:#fff; fill:none; stroke-width:2; }
.help-proof-submit:active { background:var(--green-dark); }
.help-proof-submit:disabled { opacity:.6; cursor:not-allowed; }

/* ── Community Help (ficha do animal) ────────────────────────────────────── */
.help-section-title { display:flex; align-items:center; gap:6px; }
#profile-help-list { display:flex; flex-direction:column; gap:12px; margin-top:4px; }
.help-event-card { border:1.5px solid var(--green-pale); border-radius:14px; overflow:hidden; background:var(--white); }
.help-event-photo { width:100%; height:160px; object-fit:cover; display:block; }
.help-event-body { padding:10px 14px 12px; }
.help-event-label { font-size:14px; font-weight:700; color:var(--green-dark); margin-bottom:4px; }
.help-event-notes { font-size:13px; color:var(--text); line-height:1.5; margin-bottom:4px; }
.help-event-date  { font-size:11px; color:var(--text-muted); }

/* ── Lucide icons em chips e help labels ──────────────────────────────────── */
.help-type-chip i, .help-type-chip svg { width:14px; height:14px; vertical-align:-2px; }
.help-event-label i, .help-event-label svg { width:15px; height:15px; vertical-align:-3px; stroke:var(--green-dark); }

/* ── Photo Lightbox ─────────────────────────────────────────────────────── */
.photo-lightbox { position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center; }
.photo-lightbox.hidden { display:none; }
.lightbox-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.88); }
.lightbox-inner { position:relative; max-width:92vw; max-height:88vh; display:flex; align-items:center; justify-content:center; }
.lightbox-inner img { max-width:92vw; max-height:88vh; object-fit:contain; border-radius:10px; display:block; }
#lightbox-close { position:absolute; top:-14px; right:-14px; width:34px; height:34px; border-radius:50%; background:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.3); padding:0; }
#lightbox-close svg { width:16px; height:16px; }
.help-event-photo { cursor:pointer; }

/* ── Animal name input ──────────────────────────────────────────────────── */
#animal-name-input { width:100%; padding:10px 12px; border:1.5px solid var(--border); border-radius:10px; font-family:inherit; font-size:13px; font-weight:500; color:var(--text); background:var(--bg); outline:none; box-sizing:border-box; }
#animal-name-input:focus { border-color:var(--green); background:var(--white); }

/* ══════════════════════════════════════════════════════════
   DESKTOP LAYOUT — sidebars appear at ≥ 960px
   Mobile: display:contents = invisible pass-through
   ══════════════════════════════════════════════════════════ */

#desktop-layout { display:contents; }
#sidebar-left, #sidebar-right { display:none; }
/* Phone frame — invisible pass-through on mobile */
.phone-wrap, .phone-frame { display:contents; }
.phone-btn, .better-on-mobile { display:none; }

@media (min-width: 960px) {
  /* ── Page shell ── */
  html, body {
    overflow: auto !important;
    height: auto !important;
    background: #f0f7f2 !important;
  }

  #desktop-layout {
    display: grid;
    grid-template-columns: 1fr 390px 1fr;
    min-height: 100dvh;
    background: #f0f7f2;
  }

  /* ── Better on mobile badge ── */
  .better-on-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--green);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .2px;
    box-shadow: 0 2px 10px rgba(56,140,89,.35);
    margin-bottom: 14px;
  }
  .better-on-mobile svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2; fill: none; }

  /* ── Phone wrap — grid column + centering ── */
  .phone-wrap {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100dvh;
    background: #f0f7f2;
  }

  /* ── Phone frame shell ── */
  .phone-frame {
    display: block;
    position: relative;
    background: #1c1c1e;
    border-radius: 54px;
    padding: 14px 12px;
    width: 414px;
    height: min(858px, calc(100dvh - 32px));
    box-shadow:
      0 0 0 1.5px #3a3a3c,
      0 0 0 3px #1c1c1e,
      0 0 0 5px #48484a,
      0 40px 100px rgba(0,0,0,.35),
      inset 0 0 0 1px rgba(255,255,255,.04);
  }

  /* Dynamic island */
  .phone-frame::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    width: 94px;
    height: 30px;
    background: #0a0a0a;
    border-radius: 20px;
    z-index: 10000;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  }

  /* Home indicator */
  .phone-frame::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 132px;
    height: 5px;
    background: rgba(255,255,255,.22);
    border-radius: 3px;
    z-index: 10000;
  }

  /* Side buttons */
  .phone-btn { display: block; position: absolute; background: #3a3a3c; border-radius: 2px; }
  .phone-btn-vol-up   { left: -4px; top: 118px; width: 4px; height: 34px; border-radius: 2px 0 0 2px; }
  .phone-btn-vol-down { left: -4px; top: 164px; width: 4px; height: 34px; border-radius: 2px 0 0 2px; }
  .phone-btn-power    { right: -4px; top: 138px; width: 4px; height: 58px; border-radius: 0 2px 2px 0; }

  /* ── App screen inside frame ── */
  #app {
    display: flex;
    flex-direction: column;
    width: 390px;
    height: 100%;
    max-width: 390px;
    margin: 0 auto;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    box-shadow: none;
  }

  /* ── Shared sidebar ── */
  #sidebar-left, #sidebar-right {
    display: flex;
    flex-direction: column;
    background: #f0f7f2;
    color: #3a5c44;
    font-size: 13px;
    line-height: 1.7;
    padding: 40px 28px;
    gap: 0;
    max-width: 320px;
  }
  #sidebar-left  { grid-column: 1; justify-self: end;   border-right: 1px solid #cce5d4; width: 100%; }
  #sidebar-right { grid-column: 3; justify-self: start; border-left:  1px solid #cce5d4; width: 100%; }

  /* ── Logo ── */
  .sidebar-logo { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
  .sidebar-paw  { font-size:28px; }
  .sidebar-brand { font-size:20px; font-weight:800; color:#1e3d28; letter-spacing:-.4px; }
  .sidebar-tagline { font-size:12.5px; color:#7aaa8a; margin-bottom:0; }

  /* ── Divider ── */
  .sidebar-divider { height:1px; background:#cce5d4; margin:22px 0; }

  /* ── Section ── */
  .sidebar-section { display:flex; flex-direction:column; gap:10px; }
  .sidebar-section h3 {
    font-size:10px; font-weight:700; letter-spacing:1.2px;
    text-transform:uppercase; color:var(--green); margin-bottom:4px;
  }
  .sidebar-section p { color:#5c7d65; font-size:13px; }

  /* ── How it works — visual steps ── */
  .how-steps { display:flex; flex-direction:column; gap:0; }
  .how-step {
    display:flex; align-items:flex-start; gap:12px;
    background:#fff; border:1px solid #ddf0e4;
    border-radius:12px; padding:11px 13px;
    position:relative; z-index:1;
  }
  .how-num {
    flex-shrink:0;
    width:34px; height:34px;
    background:#e8f5ee; border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    color: var(--green);
  }
  .how-num svg { width:16px; height:16px; stroke:var(--green); stroke-width:2; fill:none; }
  .how-content { display:flex; flex-direction:column; gap:1px; padding-top:2px; }
  .how-content strong { font-size:13px; font-weight:700; color:#1e3d28; }
  .how-content span   { font-size:11.5px; color:#7aaa8a; line-height:1.4; }
  .how-connector {
    width:2px; height:10px; background:#cce5d4;
    margin-left:28px; flex-shrink:0;
  }

  /* ── Map legend ── */
  .sidebar-map-legend { gap:8px; }
  .legend-row { display:flex; align-items:center; gap:9px; font-size:13px; color:#5c7d65; }
  .legend-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
  .legend-dot.green  { background:var(--green); }
  .legend-dot.orange { background:var(--orange); }
  .legend-dot.red    { background:var(--red); }

  /* ── Hackathon badge ── */
  .sidebar-badge-title { font-size:10px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--green); margin-bottom:8px; }
  .hackathon-badge {
    display:flex; align-items:center; gap:12px;
    background:#fff; border:1px solid #cce5d4; border-radius:12px;
    padding:12px 14px; text-decoration:none;
    transition:border-color .2s, box-shadow .2s;
  }
  .hackathon-badge:hover { border-color:var(--green); box-shadow:0 2px 12px rgba(56,140,89,.12); }
  .hb-icon { font-size:22px; flex-shrink:0; }
  .hb-text { display:flex; flex-direction:column; gap:2px; }
  .hb-text strong { font-size:13px; color:#1e3d28; }
  .hb-text small   { font-size:11.5px; color:#7aaa8a; }

  /* ── Tech stack ── */
  .stack-list { display:flex; flex-direction:column; gap:0; background:#fff; border:1px solid #ddf0e4; border-radius:12px; overflow:hidden; }
  .stack-row  {
    display:flex; justify-content:space-between; align-items:center;
    font-size:12.5px; padding:9px 13px;
    border-bottom:1px solid #f0f7f2;
  }
  .stack-row:last-child { border-bottom:none; }
  .stack-label { color:#7aaa8a; }
  .stack-value { color:#1e3d28; font-weight:600; font-size:12px; }

  /* ── Links ── */
  .sidebar-links { gap:4px; }
  .sidebar-links a {
    display:flex; align-items:center; gap:9px;
    color:#5c7d65; text-decoration:none; font-size:13px;
    padding:9px 13px; border-radius:9px;
    background:#fff; border:1px solid #ddf0e4;
    transition:border-color .2s, color .2s;
  }
  .sidebar-links a:hover { border-color:var(--green); color:var(--green); }
  .sidebar-links a svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; flex-shrink:0; }

  /* ── Help section ── */
  .sidebar-section p strong { color:#1e3d28; }

  /* ── Footer ── */
  .sidebar-footer {
    margin-top:auto; padding-top:28px;
    font-size:12px; color:#9abda6; line-height:1.6;
  }
}
