/* App-faithful layout overrides. Dimensions, typography, labels, and hierarchy
   follow lib/pages/* and lib/theme/app_theme.dart rather than a desktop site. */
:root{--accent:#c9947e;--accent-soft:#c9947e18;--rose:#c9947e;--border:#00000022;--surface-soft:#ffffffcc;--surface-alt:#f3ece8;--muted:#8a6e6a;--nav-bg:#ffffffd9}
:root[data-theme=dark]{--accent:#c9947e;--accent-soft:#c9947e20;--rose:#c9947e;--border:#ffffff28;--surface-soft:#ffffff12;--surface-alt:#1a1a1e;--muted:#8c8a8e;--nav-bg:#1a1a1ee8}
:root[data-accent=gold]{--accent:#d4af37;--accent-soft:#d4af3718;--rose:#d4af37}
:root[data-accent=silver]{--accent:#6e6b73;--accent-soft:#6e6b7318;--rose:#6e6b73}
:root[data-accent=silver][data-theme=dark]{--accent:#b0b3ba;--accent-soft:#b0b3ba20;--rose:#b0b3ba}
body{background:#efeae6}
[data-theme=dark] body{background:#171719}
.native-shell{display:block;max-width:480px;min-height:100dvh;background:var(--bg);margin:0 auto;box-shadow:0 0 70px #30201412}
.native-shell .sidebar{display:none}
.native-shell .workspace{margin:0;width:100%;min-height:100dvh}
.native-shell .topbar{height:34px;padding:0 24px;border-bottom:0;background:var(--bg)}
.native-shell .topbar .demo-badge{font-size:7px;letter-spacing:1.3px;margin:0;color:var(--muted)}
.native-shell .demo-badge>span{width:4px;height:4px;box-shadow:none}
.native-shell .demo-badge>small{font-size:7px;letter-spacing:0;text-transform:none;font-weight:400;border-left:1px solid var(--border);padding-left:8px}
.native-shell .topbar-actions{gap:8px}
.native-shell .topbar-actions .icon-button{width:26px;height:28px;padding:4px;background:transparent;border:0}
.native-shell .topbar-actions .icon{width:15px;height:15px;color:var(--muted)}
.native-shell main{padding:24px 24px calc(112px + env(safe-area-inset-bottom));width:100%;max-width:480px}
.native-shell .app-footer{display:none}
.native-shell .bottom-nav{position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);display:flex;justify-content:space-around;width:100%;max-width:480px;height:calc(72px + env(safe-area-inset-bottom));padding:8px 12px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--nav-bg);backdrop-filter:blur(20px);z-index:5}
.native-shell .bottom-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:5px;color:var(--muted);font-size:9px;letter-spacing:.65px;padding:3px 0;min-width:0}
.native-shell .bottom-nav>button>.icon{width:24px;height:24px}
.native-shell .bottom-nav>.active{color:var(--accent);font-weight:600}
.native-shell .bottom-nav>.add-nav>.icon{border:1.6px solid currentColor;border-radius:50%;padding:2px;background:transparent;margin:0;width:24px;height:24px}
.native-shell .bottom-nav>.add-nav.active>.icon{background:var(--accent);color:var(--bg)}
.native-shell .button.primary,.button.primary{color:#171417;background:var(--accent)}
.native-shell .button{font-size:13px;min-height:50px;border-radius:14px;letter-spacing:.2px}
.native-shell .text-button{font-size:11px;min-height:44px}
.native-shell .muted{font-size:13px;line-height:1.6}
.native-shell .small{font-size:11px}
.native-shell .fine-print{font-size:10px;line-height:1.7}
.native-shell .card{padding:24px;border-radius:24px;box-shadow:none}
.native-shell .page-heading{gap:12px;margin:0 0 24px;align-items:center}
.native-shell .page-heading>div:first-of-type{min-width:0;flex:1}
.native-shell .page-heading h1{font-size:30px;letter-spacing:-.5px;font-weight:700;line-height:1.2;margin:0}
.native-shell .page-heading .muted{font-size:13px;letter-spacing:.2px;margin:6px 0 0}
.native-shell .page-heading>.icon-button,.native-shell .header-actions>.icon-button{width:40px;height:40px;border-radius:12px;padding:9px;color:var(--accent);border:1px solid var(--border);background:var(--surface-soft);font-size:0;min-height:40px}
.native-shell .header-actions{display:flex;gap:12px;flex-shrink:0}
.native-shell .page-heading .icon-button>.icon{width:21px;height:21px}
.native-shell .secondary-heading{position:relative;min-height:46px;margin:-9px -6px 24px;padding:0 42px;justify-content:center}
.native-shell .secondary-heading h1{font-size:21px;font-weight:600;letter-spacing:0;text-align:center}
.native-shell .secondary-heading .page-back{position:absolute;left:0;top:0;width:44px;height:44px;border:0;background:transparent;border-radius:50%;padding:11px}
.native-shell .home-greeting{margin:-8px 0 20px}
.native-shell .home-greeting .eyebrow{font-size:10px;letter-spacing:1.6px;margin:0 0 3px;line-height:1.1}
.native-shell .home-greeting h1{font-size:30px;font-weight:600;letter-spacing:0;line-height:1.1;margin:0}
.native-shell .value-card{padding:22px 0 0;min-height:222px;border-radius:24px;border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);background:linear-gradient(135deg,var(--surface),var(--surface-alt))}
.native-shell .value-top{padding:0 22px;position:relative;z-index:2;gap:10px}
.native-shell .value-top .eyebrow{font-size:10px;letter-spacing:1.5px;margin:0;font-weight:600}
.native-shell .value-top .icon-button{width:38px;height:38px;color:var(--accent);border-color:color-mix(in srgb,var(--accent) 40%,transparent);background:var(--accent-soft)}
.native-shell .value-top .icon-button>.icon{width:20px;height:20px}
.native-shell .value-open{display:block;text-align:left;padding:0 22px 67px;width:100%;position:relative;z-index:1}
.native-shell .big-value{font-family:Playfair,serif;font-weight:700;font-size:38px;line-height:1.25;letter-spacing:-.5px;margin:7px 0 10px;white-space:nowrap}
.native-shell .big-value>small{font-size:15px;font-family:Montserrat,sans-serif;color:var(--accent);font-weight:400;letter-spacing:0}
.native-shell .hidden-value{letter-spacing:4px;font-weight:400;font-size:39px}
.native-shell .gain{font-size:12px;gap:6px;border:1px solid #34725b30;border-radius:8px;padding:4px 8px}
.native-shell .gain>span{font-size:9px}
.native-shell .value-hint{display:none}
.native-shell .hero-chart{position:absolute;height:65px;left:0;right:0;bottom:-1px;margin:0;z-index:0;pointer-events:none}
.native-shell .hero-chart>svg{width:100%;height:100%}
.native-shell .market-heading{margin:10px 0 5px;min-height:42px;gap:10px}
.native-shell .market-heading .eyebrow{font-size:10px;letter-spacing:1.5px;margin:0}
.market-updated{font-size:9px;display:block;color:var(--muted);margin-top:2px}
.native-shell .market-heading .icon-button{border:0;background:transparent;width:32px;height:32px;padding:7px;color:var(--accent)}
.native-shell .market-heading .icon-button>.icon{width:18px;height:18px}
.native-shell .market-rates{display:flex;gap:12px;margin:0 -24px;padding:0 24px;overflow-x:auto;scrollbar-width:none}
.native-shell .market-rates::-webkit-scrollbar{display:none}
.native-shell .market-rates>div{flex:0 0 auto;min-width:0;gap:8px;padding:10px 14px;border-radius:14px;min-height:44px;background:var(--surface-soft);border:1px solid var(--border)}
.native-shell .market-rates>div>span:not(.rate-change){font-size:10px;letter-spacing:.4px;white-space:nowrap;font-weight:600}
.native-shell .market-rates strong{font-size:11px;display:inline-block;font-family:Montserrat,sans-serif;letter-spacing:0;white-space:nowrap}
.native-shell .market-rates strong small{font-size:9px}
.native-shell .rate-change{font-size:9px;margin-left:0}
.native-shell .stats-row{margin:16px 0 17px;padding:12px 0;border-radius:18px;background:var(--surface-soft)}
.native-shell .stats-row strong{font-size:20px;font-weight:700;line-height:1.3}
.native-shell .stats-row strong>small{font-size:17px}
.native-shell .stats-row span{font-size:9px;letter-spacing:1.5px}
.native-shell .section-heading{margin-bottom:12px}
.native-shell .section-heading h2{font-size:20px;font-weight:600;letter-spacing:0}
.native-shell .section-heading>.text-button{font-size:10px;letter-spacing:1.5px}
.native-shell[data-screen=home] .section-heading>.text-button>.icon{display:none}
.native-shell .recent-grid{display:flex;gap:16px;overflow-x:auto;padding:2px 24px 12px;margin:0 -24px;scrollbar-width:none}
.native-shell .recent-grid .piece-card{flex:0 0 142px;width:142px;min-height:210px;padding:12px;border-radius:24px;aspect-ratio:auto;display:flex;flex-direction:column;background:var(--surface-soft)}
.native-shell .recent-grid .piece-art{height:116px;width:116px;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--border) 40%,transparent);border-radius:12px;background:var(--surface)}
.native-shell .recent-grid .piece-info{padding:10px 0 0;min-width:0;display:block}
.native-shell .recent-grid .piece-info h3{font-size:12px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0 0 7px}
.native-shell .recent-grid .piece-info strong{font-size:12px;font-weight:500;font-family:Montserrat,sans-serif;white-space:nowrap}
.native-shell .jewelry{object-fit:contain}
.native-shell .vault-toolbar{display:block;margin:0 0 16px}
.native-shell .search-box{background:var(--surface-soft);border-radius:16px;padding:0 14px;gap:12px;min-height:52px}
.native-shell .search-box>input{font-size:15px;padding:14px 0}
.native-shell .search-box>input::placeholder{font-size:13px;color:var(--muted)}
.native-shell .search-box>.icon{width:20px;height:20px}
.native-shell .filter-chips{gap:10px;margin:0 -24px 12px;padding:1px 24px 8px;overflow-x:auto}
.native-shell .chip{border-radius:25px;font-size:12px;padding:8px 18px;min-height:39px;background:var(--surface-soft)}
.native-shell .chip.selected{border:1px solid var(--accent);background:var(--accent-soft);color:var(--accent)}
.native-shell .vault-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.native-shell .vault-grid .piece-card{padding:12px;border-radius:24px;aspect-ratio:.60;min-width:0;background:linear-gradient(135deg,var(--surface),var(--surface-alt));box-shadow:none}
.native-shell .vault-grid .piece-art{aspect-ratio:1;width:100%;height:auto;border:1px solid color-mix(in srgb,var(--border) 35%,transparent);border-radius:15px;background:var(--surface)}
.native-shell .vault-grid .piece-info{padding:13px 0 3px;display:flex;flex-direction:column;flex:1;min-width:0}
.native-shell .vault-grid .piece-info h3{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5;margin:0 0 5px}
.native-shell .vault-grid .piece-info p{font-size:11px;color:var(--muted);margin:0 0 10px;line-height:1.5}
.native-shell .vault-grid .piece-info strong{font-family:Playfair,serif;font-size:20px;font-weight:600;color:var(--accent);margin-top:auto;line-height:1.4;overflow-wrap:anywhere}
.native-shell .add-layout{display:block}
.native-shell .art-picker{position:static;display:block;background:transparent;padding:0;margin:0;border:0;border-radius:0}
.native-shell #chosen-art.native-photo-picker{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:1;width:100%;height:auto;max-height:none;margin:3px 0 0;background:var(--surface-soft);border:1.2px solid color-mix(in srgb,var(--accent) 50%,transparent);border-radius:24px;overflow:hidden}
.native-photo-picker>.icon{width:40px;height:40px;color:var(--accent);margin-bottom:12px}
.native-photo-picker>strong{font-size:13px;font-weight:400}
.native-photo-picker>small{font-size:11px;color:var(--muted);margin-top:4px}
.native-shell #chosen-art .jewelry{width:92%;height:92%;padding:5%}
.photo-change{position:absolute;right:10px;bottom:10px;background:#0009;color:#fff;padding:5px 10px;border-radius:12px;font-size:10px}
.native-shell .sample-fill{min-height:44px;font-size:11px;margin-top:14px;background:var(--surface-soft);color:var(--accent);border-color:var(--border)}
.native-shell .form-card{padding:0;border:0;background:transparent;box-shadow:none;border-radius:0}
.native-shell .form-section{font:600 10px/1.5 Montserrat,sans-serif;letter-spacing:1.8px;color:var(--muted);margin:28px 0 16px;text-transform:uppercase}
.native-shell .field{margin-bottom:16px;gap:8px}
.native-shell .field>span{font-size:12px;font-weight:400;color:var(--muted)}
.native-shell .field input,.native-shell .field select,.native-shell .field textarea{font-size:16px;padding:14px 16px;border-radius:16px;min-height:51px;background:var(--surface-soft);border:1px solid var(--border)}
.native-shell .field input::placeholder,.native-shell .field textarea::placeholder{font-size:12px;color:var(--muted)}
.native-shell .field select{font-size:13px;padding-left:13px;padding-right:12px}
.native-shell select{color-scheme:light;color:var(--text)}
.native-shell .field select{background-color:#fff}
.native-shell select option,.native-shell select optgroup{background-color:#fff;color:#1a1520}
[data-theme=dark] .native-shell select{color-scheme:dark;color:#f0eeec}
[data-theme=dark] .native-shell .field select{background-color:#252529}
[data-theme=dark] .native-shell select option,[data-theme=dark] .native-shell select optgroup{background-color:#252529;color:#f0eeec}
.native-shell .form-grid{gap:0 14px}
.native-document{width:100%;display:flex;align-items:center;gap:14px;padding:18px 16px;border:1px dashed var(--border);border-radius:16px;min-height:72px;text-align:left;background:var(--surface-soft)}
.native-document>.icon{color:var(--accent);width:22px;height:22px}
.native-document>span{font-size:12px;min-width:0;overflow-wrap:anywhere}
.native-document strong{font-size:11px;font-weight:500}
.native-document small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.native-document>.icon:last-child{margin-left:auto;width:17px}
.native-shell .native-profile-card{display:flex;align-items:center;gap:20px;padding:24px;border-radius:28px;border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);background:linear-gradient(135deg,var(--surface),var(--surface-alt))}
.native-profile-card .profile-avatar{position:relative;display:flex;align-items:center;justify-content:center;width:72px;height:72px;flex-shrink:0;font-size:32px;font-weight:700;color:var(--accent);background:var(--surface-soft);border:1.5px solid var(--accent);border-radius:50%;margin:0}
.native-profile-card .profile-avatar>span{position:absolute;bottom:0;right:0;width:22px;height:22px;border:2px solid var(--bg);border-radius:50%;padding:4px;background:var(--accent);color:var(--bg)}
.native-profile-card .profile-avatar>span>.icon{width:11px;height:11px}
.native-profile-card>div{min-width:0}
.native-profile-card h2{font-size:20px;font-weight:700;margin:0 0 4px;overflow-wrap:anywhere;letter-spacing:0}
.native-profile-card p{font-size:11px;color:var(--muted);margin:0 0 8px;overflow-wrap:anywhere}
.native-tier{border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);background:var(--accent-soft);color:var(--accent);border-radius:10px;font-size:9px;padding:4px 10px;font-weight:600;display:inline-block}
.native-shell .profile-tools{padding:0 20px;border-radius:20px;background:var(--surface-soft);border:1px solid var(--border)}
.native-shell .profile-tools .tool-card{display:flex;gap:16px;align-items:center;padding:18px 0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;min-height:76px}
.native-shell .profile-tools .tool-card:last-child{border:0;padding-bottom:18px}
.native-shell .profile-tools .tool-icon{background:transparent;width:24px;height:24px;color:var(--accent);border-radius:0;flex-shrink:0}
.native-shell .profile-tools .tool-icon>.icon{width:22px;height:22px}
.native-shell .profile-tools .tool-card strong{font-size:13px;font-weight:600;line-height:1.5;margin:0 0 3px}
.native-shell .profile-tools .tool-card small{font-size:11px;font-weight:400;line-height:1.5}
.native-shell .profile-tools .tool-card>.icon{width:16px;height:16px;color:var(--muted)}
.native-shell .stylist-options{margin-top:44px;display:flex;flex-direction:column;gap:16px}
.native-option{display:flex;align-items:center;gap:16px;padding:20px;width:100%;background:var(--surface-alt);border:1px solid var(--border);border-radius:16px;text-align:left}
.native-option .option-icon{width:56px;height:56px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;background:var(--bg);border:1px solid var(--border);color:var(--accent)}
.option-icon>.icon{width:28px;height:28px}
.native-option>span:nth-child(2){min-width:0}
.native-option strong{font-family:Playfair,serif;font-size:18px;line-height:1.3;font-weight:600;display:block;margin-bottom:4px}
.native-option small{font-size:12px;line-height:1.4;color:var(--muted);display:block}
.native-option>.icon{width:15px;height:15px;margin-left:auto;color:var(--muted)}
.native-shell .looks-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.native-shell .look-card{padding:10px;border-radius:22px;background:var(--surface-soft)}
.native-shell .look-card>.look-stage{max-height:none;aspect-ratio:.8;border-radius:12px}
.native-shell .look-card-info{padding:14px 2px 7px;display:block}
.native-shell .look-card-info h2{font-size:16px;font-weight:600;margin:0 0 6px;overflow-wrap:anywhere}
.native-shell .look-card-info p{font-size:10px;margin:0;color:var(--muted)}
.native-shell .new-look-card{min-height:250px;padding:18px 10px;border-radius:22px;background:var(--surface-soft)}
.native-shell .new-look-card>.icon{width:28px;height:28px;margin-bottom:15px}
.native-shell .new-look-card h2{font-size:18px;line-height:1.5}
.mannequin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mannequin-choice{background:var(--surface-soft);border:1px solid var(--border);border-radius:16px;padding:14px;text-align:center}
.mannequin-choice>img{aspect-ratio:.7;width:100%;object-fit:contain}
.mannequin-choice>strong{font-size:12px;font-weight:600;display:block;margin-top:12px}
.native-shell .look-layout{display:block}
.native-shell .stage-card{padding:0;border:0;max-width:none;background:transparent;box-shadow:none}
.native-shell .editable-stage{aspect-ratio:auto;height:calc(100svh - 300px);min-height:310px;max-height:480px;border:1px solid var(--border);border-radius:20px}
/* One proportional canvas in cards, saved previews and the editor. Otherwise
   object-fit letterboxing moves jewellery when the surrounding aspect changes. */
.look-stage,.native-shell .look-card>.look-stage,.native-shell .editable-stage,.look-dialog .look-stage{aspect-ratio:10/9;height:auto;min-height:0;max-height:none}
.look-stage>.mannequin{inset:0;width:100%;height:100%;object-fit:contain}
.native-shell .mannequin{object-fit:contain}
.mannequin-full-body{width:86%;left:7%}
.native-shell .stage-card .fine-print{font-size:10px;margin:12px 0}
.native-shell .resize-label{padding:8px 2px;font-size:11px;margin:0 0 14px}
.native-look-actions{display:flex;gap:12px;align-items:center}
.look-dialog .look-export-button{margin:16px 0 4px}
.look-export-preview{display:block;width:auto;max-width:100%;height:48svh;object-fit:contain;margin:0 auto;border-radius:12px}
.look-export-dialog .button.full{margin-top:10px}
.look-export-back{margin:16px auto 0;display:flex}
.native-shell .native-look-actions .button{padding:12px 14px;min-height:50px;font-size:12px}
.native-shell .calculator-layout,.native-shell .feedback-layout,.native-shell .insights-layout{display:block}
.native-shell .calculator-layout>.card,.native-shell .feedback-layout>.card{margin-bottom:22px;padding:22px}
.native-shell .calculator-layout .form-card,.native-shell .feedback-layout .form-card{padding:22px;border:1px solid var(--border);background:var(--surface-soft);border-radius:24px}
.native-shell .calculator-result h2{font-size:36px;font-weight:700}
.native-shell .calculator-result>.muted{font-size:11px}
.native-shell .calculator-result .eyebrow{font-size:10px}
.native-shell .segmented>button{font-size:12px}
.native-shell .segmented>button.selected{background:var(--accent);color:var(--bg)}
.native-shell .result-breakdown>div,.native-shell .result-breakdown>div>strong{font-size:12px}
.native-shell .estimate-verdict{font-size:12px}
.native-shell .gold-calculator-results[hidden]{display:none}
.native-shell .gold-calculator-results{text-align:left;scroll-margin-top:20px;outline:none}
.native-shell .gold-calculator-results .calculator-results-heading{font-size:22px;font-weight:700;color:var(--text);letter-spacing:0;margin:0 0 18px}
.native-shell .gold-calculator-results .result-breakdown{margin:0 0 24px}
.native-shell .gold-calculator-results .result-breakdown>div{align-items:baseline;border:0;padding:8px 0;gap:14px}
.native-shell .gold-calculator-results .result-breakdown>div>span{font-size:13px}
.native-shell .gold-calculator-results .result-breakdown>div>strong{font-size:14px;font-weight:600;white-space:nowrap}
.native-shell .gold-calculator-results .estimate-verdict{display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:12px;font-size:13px;font-weight:600;line-height:1.7;text-align:left;color:var(--verdict-color);background:color-mix(in srgb,var(--verdict-color) 15%,transparent);border:1px solid color-mix(in srgb,var(--verdict-color) 50%,transparent)}
.gold-calculator-results .estimate-verdict>.icon{width:23px;height:23px;margin-top:1px;flex-shrink:0}
.gold-calculator-results [data-tone=success]{--verdict-color:#2e7d32}
.gold-calculator-results [data-tone=warning]{--verdict-color:#9a6200}
.gold-calculator-results [data-tone=danger]{--verdict-color:#c62828}
.gold-calculator-results [data-tone=severe]{--verdict-color:#8e1515}
[data-theme=dark] .gold-calculator-results [data-tone=success]{--verdict-color:#81c784}
[data-theme=dark] .gold-calculator-results [data-tone=warning]{--verdict-color:#ffc857}
[data-theme=dark] .gold-calculator-results [data-tone=danger]{--verdict-color:#ef9a9a}
[data-theme=dark] .gold-calculator-results [data-tone=severe]{--verdict-color:#ff8a80}
.native-shell .calculator-field-hint{font-size:10px;margin:-5px 0 20px}
.native-shell #calculate-button{margin-top:8px;font-size:15px;font-weight:600;border-radius:12px}
.native-shell .sample-rate>span{font-size:11px}
.native-shell .info-note{padding:18px}
.native-shell .info-note>p{font-size:11px}
.native-shell .native-analytics-value{background:linear-gradient(135deg,var(--surface),var(--surface-alt));border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:28px;padding:24px;margin:0 0 34px}
.native-analytics-value>p{font-size:14px;color:var(--muted);margin:0 0 18px}
.native-analytics-value>strong{font-size:34px;font-family:Playfair,serif;font-weight:700;color:var(--accent);line-height:1.3;display:block;margin-bottom:16px;overflow-wrap:anywhere}
.native-shell .native-analytics-value>.muted{font-size:12px;line-height:1.7;margin:0 0 12px}
.native-shell .native-analytics-value>.muted:last-child{margin-bottom:0}
.native-shell .performance-periods{display:flex;justify-content:space-between;gap:10px;margin:18px 0 22px}
.native-shell .performance-periods>.chip{border-radius:16px;padding:10px 0;flex:1;font-size:12px;min-height:46px}
.native-shell .performance-periods>.selected{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.native-shell .performance-chart{padding:24px 20px 18px}
.performance-plot{position:relative}
.performance-plot>svg{display:block;width:100%;height:190px;overflow:visible}
.performance-point{cursor:pointer;outline:none}
.performance-dot{pointer-events:none;vector-effect:non-scaling-stroke}
.performance-point.is-selected .performance-dot,.performance-point:focus-visible .performance-dot{r:5;stroke-width:2}
.performance-tooltip{position:absolute;z-index:2;display:flex;flex-direction:column;gap:3px;max-width:calc(100% - 12px);padding:9px 12px;border-radius:10px;background:var(--accent);color:#171318;box-shadow:0 3px 10px #0002;font-size:10px;line-height:1.5;text-align:center;pointer-events:none}
.performance-tooltip[hidden]{display:none}
.performance-tooltip strong{font-size:12px;font-weight:700;overflow-wrap:anywhere}
.export-field-options{display:flex;flex-wrap:wrap;gap:8px}
.export-field-options>.chip{border-radius:12px;padding:9px 12px;font-size:12px;white-space:normal;text-align:left}
.export-field-options>.chip[data-field=name]{opacity:1}
.export-options-dialog .button.full{margin-top:20px}
.chart-grid path{stroke:var(--border);stroke-width:1}
.performance-chart>.chart-value-labels,.performance-chart>.chart-range-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:14px}
.performance-chart>.fine-print{font-size:9px;text-align:center;margin-top:16px}
.native-section-title{font-size:22px;font-weight:600;margin:30px 0 18px}
.native-shell .native-settings{padding:0 20px;border-radius:20px;background:var(--surface-soft)}
.native-shell .native-settings .preference-row{font-size:13px;padding:16px 0;margin:0;min-height:62px;border-bottom:1px solid var(--border)}
.native-shell .native-settings .preference-row:last-child{border:0}
.native-shell .preference-row>select{font-size:12px;border:0;background:transparent;padding:8px;color:var(--accent)}
.native-switch{width:42px;height:25px;border-radius:20px;background:var(--border);padding:3px}
.native-switch>span{display:block;width:19px;height:19px;border-radius:50%;background:var(--surface);box-shadow:0 1px 4px #0002;transition:transform .15s}
.native-switch.on{background:var(--accent)}
.native-switch.on>span{transform:translateX(17px)}
dialog{width:min(480px,calc(100% - 24px));border-radius:24px}
.modal-header h2{font-size:21px;font-weight:600}
.modal-body>.muted{font-size:13px}
.modal-body .field>span{font-size:12px}
.modal-body .field input{font-size:16px;border-radius:16px;min-height:50px}
.sample-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sample-photo-grid>.art-option{padding:8px;aspect-ratio:auto;display:flex;flex-direction:column;align-items:center;gap:8px}
.sample-photo-grid .jewelry{aspect-ratio:1;height:auto;width:100%}
.sample-photo-grid span{font-size:10px}
.sort-options>button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;text-align:left;padding:14px 4px;font-size:13px;border-bottom:1px solid var(--border)}
.sort-options>button.selected{color:var(--accent)}
.sort-options>button:last-child{border:0}
.piece-picker-sheet .look-piece-list{max-height:48dvh}
.piece-picker-sheet .look-choice strong{font-size:12px}
.piece-picker-sheet .look-choice small{font-size:11px}
.piece-picker-sheet .look-choice>.jewelry{width:60px;height:60px}
.piece-picker-sheet .button{margin-top:15px}
.passport-dialog{inset:0;margin:auto;width:100%;max-width:480px;height:100dvh;max-height:100dvh;border:0;border-radius:0}
.passport-dialog .modal-header{display:grid;grid-template-columns:38px 1fr 38px;padding:14px 16px;min-height:64px;border:0}
.passport-dialog .modal-header h2{grid-column:2;grid-row:1;text-align:center;font-size:20px}
.passport-dialog .modal-header .icon-button{grid-column:1;grid-row:1;color:var(--accent);background:transparent;width:38px;height:38px}
.passport-dialog .modal-header .icon-button>.icon{width:20px;height:20px}
.passport-dialog .modal-body{padding:10px 24px 40px}
.passport-dialog .passport-art{height:255px;width:100%;background:var(--surface-soft);border:1px solid var(--border);border-radius:24px;margin:0 0 18px}
.passport-dialog .passport-art>.jewelry{width:90%;height:90%}
.passport-identity .passport-name{font-size:28px;font-weight:700;margin:0 0 4px}
.passport-identity .muted{font-size:12px;color:var(--muted);margin:0 0 24px}
.native-value-analysis{background:linear-gradient(135deg,var(--surface),var(--surface-alt));border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:24px;padding:20px;margin:20px 0 24px}
.native-value-analysis>.eyebrow{display:flex;gap:10px;align-items:center;font-size:10px;letter-spacing:1.5px;margin-bottom:18px}
.native-value-analysis>.eyebrow>.icon{color:var(--accent);width:15px;height:15px}
.native-value-analysis>div{display:grid;grid-template-columns:1fr 1fr}
.native-value-analysis>div>span{color:var(--muted);font-size:12px;padding-right:10px}
.native-value-analysis>div>span+span{border-left:1px solid var(--border);padding:0 0 0 15px;color:var(--accent)}
.native-value-analysis strong{font-family:Playfair,serif;font-size:21px;font-weight:700;line-height:1.4;display:block;margin-top:7px;color:var(--text);overflow-wrap:anywhere}
.native-value-analysis>div>span+span strong{color:var(--accent)}
.passport-dialog .details-grid{gap:14px;margin:0 0 24px}
.passport-dialog .details-grid>div{border:1px solid var(--border);border-radius:20px;background:var(--surface-soft);padding:17px 15px;min-height:92px}
.passport-dialog .details-grid dt{font-size:9px;letter-spacing:1px;line-height:1.7;margin-bottom:7px}
.passport-dialog .details-grid dd{font-size:13px;font-weight:600;line-height:1.6}
.passport-dialog .notes-card{padding:20px;border:1px solid var(--border);border-radius:20px;background:var(--surface-soft)}
.passport-dialog .notes-card>p{font-size:12px}
.passport-dialog .receipt-button>span{font-size:12px}
.passport-dialog .button-row>.button{font-size:12px}
/* The app-wide message overlay: same position, colors, timing and typography
   as lib/utils/error_helpers.dart. Popover keeps it above modal sheets. */
#toast{inset:auto;position:fixed;top:max(12px,env(safe-area-inset-top));left:50%;bottom:auto;margin:0;display:flex;align-items:center;gap:10px;width:max-content;max-width:min(600px,calc(100vw - 32px));box-sizing:border-box;padding:13px 16px;border:0;border-radius:12px;background:#2a8b5d;color:#fff;box-shadow:0 8px 20px #0006;font:500 13px/1.5 Montserrat,system-ui,sans-serif;text-align:left;overflow-wrap:anywhere;transform:translate(-50%,-12px);transition:opacity .22s,transform .22s;pointer-events:none}
#toast.visible{transform:translate(-50%,0);opacity:1;visibility:visible}
#toast[data-tone=error]{background:#c62828}
#toast[data-tone=info]{background:#484249}
#toast>.icon{width:20px;height:20px;flex:0 0 20px;color:#fff}
#toast::backdrop{background:transparent;pointer-events:none}
.field-error{display:block;color:#b3261e;font-size:12px;line-height:1.5;padding:0 12px;overflow-wrap:anywhere}
.field-error:empty{display:none}
[data-theme=dark] .field-error{color:#f2b8b5}
.field [aria-invalid=true]{border-color:#b3261e!important}
[data-theme=dark] .field [aria-invalid=true]{border-color:#f2b8b5!important}
.piece-saved-dialog{max-width:340px;border-radius:24px}
.piece-saved-dialog .modal-header{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;border:0}
.piece-saved-dialog .modal-body{padding:32px 24px 24px}
.piece-saved-content{text-align:center}
.piece-saved-content>.icon{width:52px;height:52px;color:var(--accent);margin:0 auto 16px}
.piece-saved-content h2{font-size:22px;font-weight:700;margin:0 0 8px}
.piece-saved-content>p{font-size:13px;color:var(--muted);margin:0 0 12px}
.piece-saved-content>.fine-print{font-size:10px;line-height:1.7}
.piece-saved-content>.text-button{margin:8px auto 0;font-size:13px;min-height:44px}
.native-shell .home-greeting{margin-top:-10px}
.native-shell .value-card{border-radius:32px}
.native-shell .value-top .eyebrow{font-size:11px;color:var(--muted)}
.native-shell .page-heading h1{font-weight:600}
.native-shell[data-screen=profile] .page-heading h1{font-weight:700}
.native-shell .native-profile-card h2{font-family:Montserrat,sans-serif}
.native-shell[data-screen=calculator] main,.native-shell[data-screen=zakat] main,.native-shell[data-screen=alerts] main{padding-top:12px;padding-bottom:calc(40px + env(safe-area-inset-bottom))}
.tool-heading{margin-bottom:24px}
.sheet-handle{display:block;margin:0 auto 24px;background:var(--border);width:40px;height:4px;border-radius:2px}
.tool-heading>div{display:flex;align-items:center;gap:12px}
.tool-heading>div>.icon{width:28px;height:28px;flex:0 0 28px;color:var(--accent)}
.tool-heading h1{font-size:24px;font-weight:700;line-height:1.3;margin:0;flex:1}
.tool-heading .page-back{width:32px;height:32px;min-height:32px;flex:0 0 32px;color:var(--muted);padding:6px}
.native-shell .native-segmented{display:flex;padding:4px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft);gap:4px;margin-bottom:24px}
.native-shell .native-segmented>button{flex:1;border-radius:12px;padding:12px 6px;font-size:13px;font-weight:600;line-height:1.4;color:var(--muted);min-height:44px}
.native-shell .native-segmented>button.selected{background:color-mix(in srgb,var(--accent) 15%,transparent);color:var(--accent)}
.native-shell .gold-calculator .field{position:relative;gap:0;margin-bottom:20px}
.native-shell .gold-calculator .field>span{position:absolute;top:-9px;left:12px;padding:0 4px;font-size:11px;line-height:18px;background:var(--bg);z-index:1}
.native-shell .gold-calculator .field input{width:100%;border-radius:12px;padding:16px 12px;min-height:54px}
.native-shell .gold-calculator .field-error{margin-top:5px}
.calculator-price-row{display:grid;grid-template-columns:7fr 3fr;gap:12px}
.calculator-price-row>.field{min-width:0}
.native-shell #calculate-button{margin-top:4px;border-radius:12px;font-weight:700;font-size:15px;color:var(--bg)}
.gold-calculator-results{margin-top:32px;outline:none}
.gold-calculator-results .calculator-results-heading{font-size:20px!important;margin:0 0 16px;font-weight:700}
.gold-calculator-results .result-breakdown{margin:0 0 20px}
.gold-calculator-results .result-breakdown>div{padding:8px 0;border:0;font-size:13px;align-items:center;gap:14px}
.gold-calculator-results .result-breakdown>div>strong{font-size:13px}
.zakat-amount{font-size:38px;line-height:1.2;color:var(--accent);margin:8px 0 16px;overflow-wrap:anywhere}
.metal-estimate-card{padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft);margin:0 0 10px}
.metal-estimate-card>div{display:flex;gap:10px;align-items:center;justify-content:space-between}
.metal-estimate-card h2{font-size:17px;font-weight:700;margin:0}
.metal-estimate-card strong{font-size:15px;font-weight:700;text-align:right}
.metal-estimate-card p{font-size:11px;font-weight:500;color:var(--muted);margin:7px 0 0}
.metal-estimate-card small{font-size:10px;font-style:italic;color:var(--muted)}
.native-shell[data-screen=zakat] #zakat-result{margin-bottom:16px}
.native-shell[data-screen=zakat] .button.secondary{font-size:12px;min-height:46px;border-radius:14px}
.reminders-card{margin:16px 0 24px;padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft)}
.reminders-card>.section-heading{margin:0 0 8px;gap:8px}
.reminders-card .eyebrow{display:flex;gap:9px;align-items:center;margin:0;font-size:10px;letter-spacing:1px;color:var(--muted)}
.reminders-card .eyebrow>.icon{width:18px;color:var(--accent)}
.reminder-row{display:flex;align-items:center;gap:10px;padding:4px 0}
.reminder-row>.icon{width:20px;flex:0 0 20px;color:var(--accent)}
.reminder-row>span{flex:1;min-width:0}
.reminder-row strong,.reminder-row small{display:block;overflow-wrap:anywhere}
.reminder-row strong{font-size:11.5px;font-weight:600}
.reminder-row small{font-size:10px;color:var(--muted);margin-top:2px}
.reminder-row .icon-button{width:32px;height:32px;min-height:32px;padding:7px}
.alerts-intro{font-size:12px!important;margin:0 0 24px}
.native-shell .native-alert-editor{padding:16px;border-radius:20px;background:var(--surface-soft)}
.alert-metals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.alert-metals>button,.alert-directions>button{border:1px solid var(--border);border-radius:12px;min-height:44px;font-size:13px;font-weight:600;color:var(--muted);padding:9px}
.alert-metals>button.selected,.alert-directions>button.selected{background:color-mix(in srgb,var(--accent) 20%,transparent);border-color:var(--accent);color:var(--accent)}
.alert-current-price{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:18px 0 16px}
.alert-current-price .eyebrow,.native-alert-editor>.eyebrow{font-size:10px;margin:0;color:var(--muted)}
.alert-current-price strong{font-size:12px;color:var(--accent);text-align:right}
.alert-directions{display:flex;gap:12px;margin:8px 0 24px}
.alert-directions>button{flex:1;display:flex;gap:6px;align-items:center;justify-content:center;font-size:12px}
.alert-directions .icon{width:17px;height:17px}
.alert-target-row{display:flex;gap:12px;align-items:flex-start}
.alert-target-row>.field{flex:1;min-width:0;margin:0}
.alert-target-row>.field>span{font-size:10px!important}
.alert-target-row input{width:100%}
.alert-target-row>.button{width:50px;height:54px;margin-top:24px;flex:0 0 50px;border:1px solid var(--border);border-radius:14px;padding:12px}
.native-saved-alerts .alert-row{padding:14px;border:1px solid var(--border);border-radius:16px;margin-bottom:10px;gap:10px;background:var(--surface-soft)}
.native-saved-alerts .alert-row>span{flex:1;min-width:0}
.native-saved-alerts .alert-row strong{font-size:12px}
.native-saved-alerts .alert-row b{font-family:Playfair,serif;color:var(--accent);font-size:17px;max-width:34%;overflow-wrap:anywhere;text-align:right}
.native-saved-alerts .alert-row .icon-button{color:var(--danger);width:30px;height:36px;padding:6px}
.native-shell .purchase-heading{margin-top:40px}
.purchase-year{margin-bottom:16px}
.purchase-year>select{width:100%;min-height:48px}
.native-shell .purchase-chart{padding:24px 12px 14px}
.purchase-bars{display:flex;gap:4px;align-items:flex-end;min-height:200px}
.purchase-bar-column{flex:1;min-width:0;text-align:center}
.purchase-bar-track{height:180px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--border)}
.purchase-bar{width:65%;max-width:22px;min-height:2px;background:var(--accent);border-radius:5px 5px 0 0}
.purchase-bar-column small{font-size:9px;color:var(--muted)}
.chart-value-labels{font-size:9px;color:var(--muted);display:flex;justify-content:space-between}
.native-settings .preference-row>span>strong{font-size:13px;font-weight:500}
.native-settings .preference-row>span>small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px}
.accent-preference{padding:18px 0 8px;border-top:1px solid var(--border)}
.accent-preference>p{font-size:13px;margin:0 0 16px}
.accent-options{display:flex;gap:14px}
.accent-options>button{display:flex;align-items:center;flex-direction:column;gap:8px;flex:1;min-width:0;font-size:10px;color:var(--muted)}
.accent-swatch{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--bg);border:3px solid transparent}
.accent-swatch.gold{background:#d4af37}.accent-swatch.silver{background:#b0b3ba}.accent-swatch.roseGold{background:#c9947e}
.accent-options>.selected .accent-swatch{outline:2px solid var(--accent);outline-offset:3px}
.native-shell .native-settings select{font-size:11px;max-width:65%}
@media(max-width:360px){.tool-heading h1{font-size:22px}.tool-heading>div{gap:8px}.native-shell .native-alert-editor{padding:12px}.alert-current-price{gap:6px}.alert-current-price strong{font-size:11px}.alert-current-price .eyebrow{font-size:9px}.native-shell .gold-calculator .field>span{font-size:10px;left:8px}.native-shell .purchase-chart{padding-left:10px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){#toast{transition:none}}
@media(max-width:480px){body,[data-theme=dark] body{background:var(--bg)}.native-shell{box-shadow:none}.photo-sheet,.sort-sheet,.piece-picker-sheet{top:auto;bottom:0;margin:0 auto;width:100%;max-height:90dvh;border-radius:24px 24px 0 0}.native-shell .page-heading{margin-top:0}.native-shell .secondary-heading{margin-top:-9px}}
@media(max-width:360px){.native-shell main{padding-left:20px;padding-right:20px}.native-shell .topbar{padding:0 20px}.native-shell .page-heading h1{font-size:28px}.native-shell .header-actions{gap:8px}.native-shell .header-actions>.icon-button{width:36px;height:36px;padding:8px}.native-shell .value-card{min-height:210px}.native-shell .value-top{padding:0 18px}.native-shell .value-top .eyebrow{font-size:9px;letter-spacing:1.1px}.native-shell .value-open{padding-left:18px;padding-right:18px}.native-shell .big-value{font-size:34px}.native-shell .big-value>small{font-size:13px}.native-shell .vault-grid{gap:12px}.native-shell .vault-grid .piece-card{padding:10px}.native-shell .vault-grid .piece-info h3{font-size:12px}.native-shell .vault-grid .piece-info p{font-size:10px}.native-shell .vault-grid .piece-info strong{font-size:18px}.native-shell .native-profile-card{padding:20px 18px;gap:16px}.native-profile-card .profile-avatar{width:62px;height:62px;font-size:28px}.native-profile-card h2{font-size:19px}.native-profile-card p{font-size:10px}.native-option{padding:16px;gap:12px}.native-option .option-icon{width:48px;height:48px}.native-option strong{font-size:17px}.native-option small{font-size:11px}.native-shell .profile-tools{padding:0 17px}.native-shell .profile-tools .tool-card{gap:12px}.native-shell .profile-tools .tool-card strong{font-size:12px}.native-shell .profile-tools .tool-card small{font-size:10px}.native-value-analysis{padding:18px 16px}.native-value-analysis strong{font-size:19px}.native-shell .performance-periods{gap:7px}.native-shell .native-look-actions .button{font-size:11px;padding:10px}.native-shell .native-analytics-value>strong{font-size:29px}}
@media print{body{background:#fff}.native-shell{max-width:none;box-shadow:none}.native-shell .topbar,.native-shell .bottom-nav,.native-shell .app-footer,.native-shell .header-actions{display:none}.native-shell main{max-width:none;padding:0}.native-shell .vault-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.native-shell .piece-card{break-inside:avoid}.passport-dialog{position:static;height:auto;max-height:none;max-width:none}}
