/* Andrés Passage — professional auth, roles and real light/dark system */
:root{--surface:#fff;--surface-2:#fbfcfb;--surface-3:#f3f6f4;--field:#fff;--field-hover:#f6f8f6;--text:#17201d;--text-soft:#46514c;--accent:#0d4a38;--accent-2:#0a3d2f;--danger:#c94b4b;--auth-glow:rgba(13,74,56,.13);color-scheme:light}
:root[data-theme="dark"]{--green:#3f9a77;--green2:#58ad8a;--ink:#f2f6f4;--muted:#9caaa3;--line:#263831;--bg:#0a1210;--card:#111b17;--cream:#16231e;--shadow:0 12px 34px rgba(0,0,0,.25);--surface:#111b17;--surface-2:#0f1915;--surface-3:#16231e;--field:#111d18;--field-hover:#182720;--text:#f2f6f4;--text-soft:#bdc8c2;--accent:#57ad89;--accent-2:#6ab997;--danger:#ef7777;--auth-glow:rgba(76,166,130,.15);color-scheme:dark}
html,body{background:var(--bg);color:var(--ink)}
.theme-toggle{width:38px;height:38px;border:0;background:transparent;padding:0;display:grid;place-items:center;color:var(--ink);cursor:pointer;border-radius:50%;transition:background .18s ease,color .18s ease,transform .18s ease;-webkit-tap-highlight-color:transparent}.theme-toggle:hover{background:color-mix(in srgb,var(--green) 8%,transparent)}.theme-toggle:active{transform:scale(.94)}.theme-icon{grid-area:1/1;width:19px;height:19px;transition:opacity .16s ease,transform .22s ease}.theme-icon-sun{opacity:0;transform:rotate(-30deg) scale(.75)}:root[data-theme="dark"] .theme-icon-moon{opacity:0;transform:rotate(30deg) scale(.75)}:root[data-theme="dark"] .theme-icon-sun{opacity:1;transform:none}
/* Core admin surfaces */
:root[data-theme="dark"] .sidebar,:root[data-theme="dark"] .metric-card,:root[data-theme="dark"] .panel,:root[data-theme="dark"] .input-icon,:root[data-theme="dark"] .custom-select-button,:root[data-theme="dark"] .custom-select-menu,:root[data-theme="dark"] .back-button,:root[data-theme="dark"] .form-panel input,:root[data-theme="dark"] .form-stack input,:root[data-theme="dark"] .form-panel textarea,:root[data-theme="dark"] .tabs a,:root[data-theme="dark"] .toast,:root[data-theme="dark"] .more-sheet,:root[data-theme="dark"] .quiet-menu-pop,:root[data-theme="dark"] .image-admin-card,:root[data-theme="dark"] .color-pick-control,:root[data-theme="dark"] .color-sampler-panel,:root[data-theme="dark"] .products-mobile-list,:root[data-theme="dark"] .mobile-product-row,:root[data-theme="dark"] .offer-color-trigger,:root[data-theme="dark"] .offer-color-popover{background:var(--card);border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .topbar{background:rgba(13,22,18,.94);border-color:var(--line)}
:root[data-theme="dark"] .search-wrap,:root[data-theme="dark"] .offer-live-preview{background:var(--surface-2);border-color:var(--line)}
:root[data-theme="dark"] .search-wrap input,:root[data-theme="dark"] .input-icon input,:root[data-theme="dark"] input,:root[data-theme="dark"] textarea{color:var(--ink);caret-color:var(--green)}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#73827b}
:root[data-theme="dark"] .nav-link{color:#aebbb5}:root[data-theme="dark"] .nav-link:hover{background:#16241e;color:#fff}:root[data-theme="dark"] .nav-link.active{background:#1d654e;color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.24)}
:root[data-theme="dark"] .pwa-mini,:root[data-theme="dark"] .chip,:root[data-theme="dark"] .status.success,:root[data-theme="dark"] .empty-icon{background:#16241e;border-color:#24372f}
:root[data-theme="dark"] .soft-button{background:var(--surface);border-color:var(--line);color:var(--text-soft)}:root[data-theme="dark"] .soft-button:hover{background:var(--field-hover);border-color:#3b5148}
:root[data-theme="dark"] .table-wrap th{background:#0e1814;color:#86958e;border-color:var(--line)}:root[data-theme="dark"] .table-wrap td{border-color:#21332b}:root[data-theme="dark"] .table-wrap tbody tr:hover{background:#132019}
:root[data-theme="dark"] .custom-select-menu button{color:var(--ink)}:root[data-theme="dark"] .custom-select-menu button:hover,:root[data-theme="dark"] .custom-select-menu button.selected{background:#193026;color:#72c39f}
:root[data-theme="dark"] .form-panel label,:root[data-theme="dark"] .form-stack label,:root[data-theme="dark"] .offer-color-field>span{color:#c9d3ce}
:root[data-theme="dark"] .form-panel input:focus,:root[data-theme="dark"] .form-stack input:focus,:root[data-theme="dark"] .form-panel textarea:focus{border-color:#4c8e72;box-shadow:0 0 0 3px rgba(70,154,122,.12)}
:root[data-theme="dark"] .separator span,:root[data-theme="dark"] .color-sampler-panel>footer{background:var(--card)}
:root[data-theme="dark"] .sheet-link,:root[data-theme="dark"] .mobile-product-row{border-color:#22332c}:root[data-theme="dark"] .sheet-handle{background:#415149}:root[data-theme="dark"] .sheet-backdrop{background:rgba(0,0,0,.48)}
:root[data-theme="dark"] .notify-dot{border-color:#101a16}
:root[data-theme="dark"] .offer-color-presets button{box-shadow:0 0 0 1px rgba(255,255,255,.12),0 0 0 4px var(--card)}
:root[data-theme="dark"] .offer-preview-image{background:color-mix(in srgb,var(--offer-color) 10%,#111b17)}
:root[data-theme="dark"] .offer-row .offer-icon{background:color-mix(in srgb,var(--offer-color) 13%,#111b17)}
:root[data-theme="dark"] .form-error{background:#321b1b;color:#ffabab;border-color:#593030}:root[data-theme="dark"] .form-success{background:#153226;color:#8ce0b8;border-color:#28513f}
/* Professional authentication screen */
.auth-body{min-height:100svh;background:linear-gradient(135deg,#eef3ef 0%,#f7f8f6 45%,#edf2ee 100%);overflow-x:hidden}.auth-layout{min-height:100svh;display:grid;grid-template-columns:minmax(340px,.82fr) minmax(460px,1.18fr);position:relative}.auth-brand{position:relative;padding:clamp(44px,6vw,86px);background:linear-gradient(145deg,#0b3e2f 0%,#0d4a38 55%,#123f34 100%);color:#fff;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.auth-brand:before,.auth-brand:after{content:"";position:absolute;border-radius:50%;pointer-events:none}.auth-brand:before{width:440px;height:440px;right:-240px;top:-160px;background:radial-gradient(circle,rgba(255,255,255,.09),transparent 66%)}.auth-brand:after{width:360px;height:360px;left:-170px;bottom:-160px;border:1px solid rgba(255,255,255,.09)}.auth-brand-logo,.auth-brand-copy,.auth-brand-meta{position:relative;z-index:1}.auth-brand-logo img{width:150px;max-height:110px;object-fit:contain;filter:brightness(0) invert(1);opacity:.96}.auth-brand-copy{max-width:500px}.auth-brand .eyebrow{color:#cce2d8}.auth-brand h1{font-size:clamp(42px,5.2vw,76px);line-height:.98;letter-spacing:-.045em;margin:14px 0 22px;font-weight:650}.auth-brand p{max-width:490px;font-size:14px;line-height:1.7;color:rgba(255,255,255,.72);margin:0}.auth-brand-meta{display:flex;flex-wrap:wrap;gap:18px 26px;font-size:10px;letter-spacing:.03em;color:rgba(255,255,255,.68)}.auth-brand-meta span{display:flex;align-items:center;gap:8px}.auth-brand-meta i{width:6px;height:6px;border-radius:50%;background:#9cd7bc;box-shadow:0 0 0 4px rgba(156,215,188,.09)}
.auth-stage{display:grid;place-items:center;padding:48px;background:linear-gradient(180deg,rgba(255,255,255,.68),rgba(250,251,249,.88))}.auth-card{width:min(460px,100%);margin:0;background:rgba(255,255,255,.9);border:1px solid rgba(13,74,56,.09);border-radius:28px;padding:42px;box-shadow:0 28px 75px rgba(26,51,41,.11);backdrop-filter:blur(18px);position:relative}.auth-card-brand{display:grid;gap:18px;margin-bottom:7px}.auth-mobile-logo{display:none;width:132px;height:92px;object-fit:contain}.auth-card h2{font-size:34px;letter-spacing:-.04em;line-height:1.05;margin:8px 0 9px}.auth-intro{margin:0!important;font-size:12px!important}.auth-form{margin-top:28px}.auth-form label{font-size:10px!important;letter-spacing:.01em}.auth-field{height:52px;border:1px solid var(--line);border-radius:14px;background:var(--field);display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:9px;padding:0 14px;transition:border .18s ease,box-shadow .18s ease,background .18s ease}.auth-field:focus-within{border-color:color-mix(in srgb,var(--green) 68%,#bcc7c1);box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 8%,transparent);background:var(--surface)}.auth-field>svg{width:17px;color:#87938d}.auth-field input{height:50px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:13px!important;color:var(--ink)}.auth-password{grid-template-columns:22px minmax(0,1fr) 36px}.password-toggle{width:36px;height:36px;border:0;background:transparent;color:#69756f;padding:0;display:grid;place-items:center;cursor:pointer;border-radius:50%;-webkit-tap-highlight-color:transparent}.password-toggle:hover{background:color-mix(in srgb,var(--green) 7%,transparent);color:var(--green)}.password-toggle svg{grid-area:1/1;width:18px;height:18px}.password-eye-off{display:none}.password-toggle[aria-pressed="true"] .password-eye-open{display:none}.password-toggle[aria-pressed="true"] .password-eye-off{display:block}.auth-submit{height:54px!important;margin-top:6px;border-radius:14px!important;font-size:12px!important;justify-content:space-between!important;padding:0 19px!important}.auth-submit svg{width:18px}.auth-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:22px;margin-top:22px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}.auth-footer>a{font-weight:700;color:var(--ink)}.auth-footer>span{display:flex;align-items:center;gap:8px}.auth-footer .pulse-dot{width:7px;height:7px}.auth-theme-toggle{position:fixed;right:max(18px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));z-index:20;color:#44514b;background:rgba(255,255,255,.55);backdrop-filter:blur(10px)}
:root[data-theme="dark"] .auth-body{background:linear-gradient(145deg,#07100d 0%,#0a1511 55%,#0d1814 100%)}:root[data-theme="dark"] .auth-stage{background:radial-gradient(circle at 70% 25%,rgba(59,137,105,.08),transparent 38%),#0a1210}:root[data-theme="dark"] .auth-card{background:rgba(17,27,23,.92);border-color:#263831;box-shadow:0 30px 90px rgba(0,0,0,.36)}:root[data-theme="dark"] .auth-mobile-logo{filter:brightness(0) invert(1)}:root[data-theme="dark"] .auth-theme-toggle{background:rgba(17,27,23,.72);color:#f2f6f4}:root[data-theme="dark"] .auth-footer>a{color:#eaf1ed}
@media(max-width:900px){.auth-layout{grid-template-columns:1fr}.auth-brand{display:none}.auth-stage{min-height:100svh;padding:clamp(18px,5vw,34px) 16px}.auth-card{width:min(460px,100%);padding:34px 28px 28px;border-radius:26px}.auth-card-brand{justify-items:start;gap:14px}.auth-mobile-logo{display:block;width:124px;height:88px;margin:-2px 0 4px}.auth-card h2{font-size:31px}.auth-form{margin-top:24px}}
@media(max-width:520px){.auth-stage{align-items:center;padding:calc(20px + env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom))}.auth-card{padding:29px 22px 23px;border-radius:24px;box-shadow:0 18px 55px rgba(26,51,41,.1)}.auth-mobile-logo{width:118px;height:82px}.auth-card h2{font-size:29px}.auth-field{height:50px}.auth-field input{height:48px!important}.auth-submit{height:52px!important}.auth-footer{font-size:8px}.auth-theme-toggle{right:15px;top:calc(15px + env(safe-area-inset-top))}}
/* Admin top bar in dark mode */
@media(max-width:760px){.top-actions{gap:5px}.theme-toggle{width:34px;height:34px}.theme-icon{width:18px;height:18px}}

/* V0.3.7 dark surfaces for marketing scope + global destructive UI */
:root[data-theme="dark"] .offer-scope-choice,:root[data-theme="dark"] .offer-product-picker,:root[data-theme="dark"] .offer-product-option,:root[data-theme="dark"] .passage-confirm-dialog{background:var(--card);border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .offer-scope-choice.active,:root[data-theme="dark"] .offer-product-option.selected{background:#16271f;border-color:#4b896f;box-shadow:none}
:root[data-theme="dark"] .offer-scope-choice>i,:root[data-theme="dark"] .offer-product-option>i{border-color:#3a4d45}
:root[data-theme="dark"] .passage-confirm-backdrop{background:rgba(0,0,0,.58)}
:root[data-theme="dark"] .ui-trash-button{color:#ef7777!important}:root[data-theme="dark"] .ui-trash-button:hover{color:#ff9292!important}


/* V0.3.8 — premium access without theme controls on login */
.auth-v2{--auth-radius:32px}.auth-v2-layout{grid-template-columns:minmax(360px,.78fr) minmax(500px,1.22fr)}.auth-v2-brand{background:linear-gradient(155deg,#082f25 0%,#0d4a38 58%,#123d33 100%)}.auth-v2-stage{position:relative;overflow:hidden}.auth-v2-stage:before,.auth-v2-stage:after{content:"";position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}.auth-v2-stage:before{width:440px;height:440px;right:-210px;top:-180px;background:radial-gradient(circle,rgba(13,74,56,.11),transparent 68%)}.auth-v2-stage:after{width:360px;height:360px;left:-170px;bottom:-170px;background:radial-gradient(circle,rgba(13,74,56,.07),transparent 68%)}.auth-v2-card{z-index:1;width:min(500px,100%);padding:44px 46px 34px;border-radius:var(--auth-radius);box-shadow:0 32px 85px rgba(24,53,42,.12)}.auth-v2-logo-wrap{display:flex;justify-content:center;margin:-8px 0 20px}.auth-v2-logo{width:166px;height:116px;object-fit:contain}.auth-v2-copy{text-align:center}.auth-v2-copy .eyebrow{display:block;margin-bottom:12px}.auth-v2-card h2{text-align:center;font-size:37px;margin:0 0 10px}.auth-v2-card .auth-intro{text-align:center;font-size:13px!important}.auth-v2-card .auth-form{margin-top:32px}.auth-v2-card .auth-form>label{display:block;margin-bottom:16px}.auth-v2-card .auth-field{height:58px;border-radius:18px;padding:0 17px;grid-template-columns:24px minmax(0,1fr);gap:12px}.auth-v2-card .auth-field input{height:56px!important;font-size:14px!important;font-weight:600}.auth-v2-card .auth-password{grid-template-columns:24px minmax(0,1fr) 38px}.auth-form-help{display:flex;justify-content:flex-end;margin:-5px 2px 18px}.auth-form-help a{font-size:11px;font-weight:750;color:var(--green);text-decoration:none}.auth-form-help a:hover{text-decoration:underline}.auth-v2-submit{height:59px!important;border-radius:18px!important;font-size:13px!important;box-shadow:0 13px 28px color-mix(in srgb,var(--green) 19%,transparent)}.auth-security-note{text-align:center;color:var(--muted);font-size:10px;line-height:1.55;max-width:360px;margin:22px auto 0}.auth-v2-footer{font-size:9px;margin-top:18px;padding-top:18px}.auth-v2-footer span{color:var(--muted)}.recovery-stage{min-height:100svh;padding:24px}.recovery-card{margin:auto}.recovery-success-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--green) 10%,transparent);color:var(--green);margin:0 auto 18px}.recovery-success-icon svg{width:24px;fill:none;stroke:currentColor;stroke-width:2}.recovery-note{font-size:11px;line-height:1.6;color:var(--muted);padding:14px 16px;background:var(--surface-3);border-radius:14px;margin:22px 0}.auth-theme-toggle{display:none!important}
:root[data-theme="dark"] .auth-v2-logo{filter:brightness(0) invert(1)}:root[data-theme="dark"] .auth-v2-stage:before{background:radial-gradient(circle,rgba(76,166,130,.12),transparent 68%)}:root[data-theme="dark"] .recovery-note{background:#15231d}
@media(max-width:900px){.auth-v2-layout{display:block}.auth-v2-brand{display:none}.auth-v2-stage{min-height:100svh;padding:30px 18px}.auth-v2-card{padding:34px 30px 28px;border-radius:30px}.auth-v2-logo{width:154px;height:108px}.auth-v2-card h2{font-size:35px}.auth-v2-card .auth-form{margin-top:29px}}
@media(max-width:520px){body.auth-body.auth-v2{height:100dvh;min-height:100dvh;overflow:hidden!important}.auth-v2-layout{height:100dvh;min-height:100dvh;overflow:hidden!important}.auth-v2-stage{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:calc(16px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom))!important;overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}.auth-v2-card{width:min(500px,100%);margin:auto!important;padding:29px 23px 24px;border-radius:28px;will-change:transform;transition:transform .18s ease}.auth-v2-stage.is-pulling .auth-v2-card{transition:none}.auth-v2-logo-wrap{margin:-6px 0 14px}.auth-v2-logo{width:142px;height:100px}.auth-v2-copy .eyebrow{margin-bottom:12px}.auth-v2-card h2{font-size:31px;line-height:1.05;margin:0 0 10px}.auth-v2-card .auth-intro{font-size:13px!important}.auth-v2-card .auth-form{margin-top:29px}.auth-v2-card .auth-form>label{margin-bottom:16px}.auth-v2-card .auth-field{height:56px;border-radius:17px;padding:0 17px;gap:12px}.auth-v2-card .auth-field input{height:54px!important;font-size:14px!important}.auth-v2-card .auth-password{grid-template-columns:24px minmax(0,1fr) 38px}.auth-form-help{margin:-5px 2px 18px}.auth-form-help a{font-size:11px}.auth-v2-submit{height:56px!important;border-radius:18px!important;font-size:13px!important;margin-top:0;padding:0 19px!important}.auth-security-note{font-size:9px;line-height:1.55;max-width:360px;margin:22px auto 0}.auth-v2-footer{font-size:8px;margin-top:18px;padding-top:18px;gap:18px}.auth-v2-stage:after{content:"↻";position:absolute;left:50%;top:calc(8px + env(safe-area-inset-top));width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--green);font-size:18px;font-weight:700;opacity:0;transform:translate(-50%,-12px) scale(.9);transition:opacity .14s ease,transform .14s ease;box-shadow:0 7px 18px rgba(13,74,56,.08);pointer-events:none}.auth-v2-stage.is-pulling:after{opacity:.72;transform:translate(-50%,0) scale(1)}.auth-v2-stage.pull-ready:after{opacity:1;transform:translate(-50%,2px) rotate(90deg) scale(1.04)}}@media(max-width:380px){.auth-v2-stage{padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))!important}.auth-v2-card{padding:24px 20px 20px}.auth-v2-logo{width:128px;height:90px}.auth-v2-card h2{font-size:28px}.auth-v2-card .auth-form{margin-top:22px}.auth-v2-card .auth-form>label{margin-bottom:13px}.auth-v2-card .auth-field{height:53px}.auth-v2-card .auth-field input{height:51px!important}.auth-v2-submit{height:53px!important}.auth-security-note{font-size:8px;margin-top:16px}.auth-v2-footer{margin-top:15px;padding-top:15px}}
/* Users & roles */
.users-panel{padding:0;overflow:hidden}.users-head{padding:22px 24px;border-bottom:1px solid var(--line)}.users-head h2{margin:0 0 3px}.users-list{display:grid}.user-row{display:grid;grid-template-columns:42px minmax(170px,1.4fr) minmax(150px,.8fr) minmax(160px,.9fr) auto;gap:14px;align-items:center;padding:16px 22px;border-bottom:1px solid var(--line);transition:background .16s ease}.user-row:last-child{border-bottom:0}.user-row:hover{background:var(--surface-2)}.user-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--green) 10%,var(--surface));color:var(--green);font-weight:800}.user-main,.user-role,.user-last{display:grid;gap:3px}.user-main strong{font-size:12px}.user-main span,.user-last span{font-size:10px;color:var(--muted)}.user-role{justify-items:start}.user-role b{font-size:10px}.user-role .status{font-size:8px}.user-last small{font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.user-actions{display:flex;align-items:center;gap:8px}.ui-edit-button{width:34px;height:34px;display:grid;place-items:center;color:var(--text-soft);border-radius:50%;transition:.15s ease}.ui-edit-button:hover{background:var(--surface-3);color:var(--green)}.ui-edit-button svg{width:16px;fill:none;stroke:currentColor;stroke-width:1.7}.user-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.8fr);gap:18px}.user-form-panel,.role-panel{padding:24px}.user-form-panel h2,.role-panel h2{margin:0 0 18px}.user-form-panel .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.user-form-panel label{font-size:9px;font-weight:750;color:var(--text-soft)}.user-form-panel input:not([type=checkbox]):not([type=radio]){width:100%;margin-top:7px}.span-2{grid-column:1/-1}.user-password-field{margin-top:7px;height:50px}.user-password-field input{height:48px!important}.user-active-toggle{margin-top:22px;display:flex;align-items:center;gap:12px;cursor:pointer}.user-active-toggle>input{position:absolute;opacity:0;pointer-events:none}.switch-ui{width:42px;height:24px;border-radius:999px;background:#cbd3cf;padding:3px;transition:.18s ease;flex:none}.switch-ui i{display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15);transition:.18s ease}.user-active-toggle input:checked+.switch-ui{background:var(--green)}.user-active-toggle input:checked+.switch-ui i{transform:translateX(18px)}.user-active-toggle>span:last-child{display:grid;gap:2px}.user-active-toggle b{font-size:10px}.user-active-toggle small{font-size:9px;color:var(--muted)}.owner-lock{display:grid;gap:3px;padding:14px 16px;border-radius:14px;background:color-mix(in srgb,var(--green) 7%,var(--surface));margin-top:20px}.owner-lock b{font-size:10px;color:var(--green)}.owner-lock span{font-size:9px;color:var(--muted)}.role-panel-head{margin-bottom:16px}.role-panel-head p{font-size:10px;line-height:1.5}.role-grid{display:grid;gap:9px}.role-choice{display:block;cursor:pointer}.role-radio{position:absolute;opacity:0;pointer-events:none}.role-card{position:relative;display:grid;grid-template-columns:18px 1fr;column-gap:10px;row-gap:3px;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--surface);transition:.16s ease}.role-card>i{grid-row:1/3;width:16px;height:16px;border:1.5px solid #a6b1ac;border-radius:50%;margin-top:1px;position:relative}.role-card strong{font-size:10px}.role-card small{font-size:9px;line-height:1.45;color:var(--muted)}.role-radio:checked+.role-card{border-color:color-mix(in srgb,var(--green) 62%,var(--line));background:color-mix(in srgb,var(--green) 5%,var(--surface));box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 6%,transparent)}.role-radio:checked+.role-card>i{border-color:var(--green)}.role-radio:checked+.role-card>i:after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--green)}.role-card.static{grid-template-columns:1fr;background:color-mix(in srgb,var(--green) 6%,var(--surface))}.user-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;padding-top:2px}
:root[data-theme="dark"] .user-row:hover{background:#132019}:root[data-theme="dark"] .role-card,:root[data-theme="dark"] .user-form-panel,:root[data-theme="dark"] .role-panel{background:var(--card);border-color:var(--line)}:root[data-theme="dark"] .switch-ui{background:#34463e}
@media(max-width:980px){.user-row{grid-template-columns:42px minmax(150px,1fr) minmax(130px,.7fr) auto}.user-last{display:none}.user-editor-grid{grid-template-columns:1fr}}
@media(max-width:680px){.page-heading{align-items:flex-start}.page-heading>.primary-button{min-width:auto}.user-row{grid-template-columns:38px minmax(0,1fr) auto;padding:14px 15px;gap:10px}.user-avatar{width:36px;height:36px}.user-role{grid-column:2;display:flex;align-items:center;gap:7px}.user-actions{grid-column:3;grid-row:1/3}.users-head{padding:18px}.user-form-panel,.role-panel{padding:18px}.user-form-panel .form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.user-form-actions{position:sticky;bottom:calc(74px + env(safe-area-inset-bottom));z-index:6;background:color-mix(in srgb,var(--bg) 94%,transparent);backdrop-filter:blur(12px);padding:10px 0}.user-form-actions>*{flex:1}.role-card{padding:13px}}

/* =========================================================
   Passage Admin — Premium Design System + Mobile Shell 0.3.9
   ========================================================= */
:root{
  --ap-green:#0d4a38;--ap-green-strong:#083b2d;--ap-green-soft:#e9f2ee;
  --ap-bg:#f6f8f6;--ap-surface:#ffffff;--ap-surface-soft:#f1f5f2;--ap-line:#e2e8e4;
  --ap-text:#132019;--ap-muted:#6e7a74;--ap-danger:#c94242;
  --ap-radius-sm:10px;--ap-radius:14px;--ap-radius-lg:20px;--ap-radius-xl:26px;
  --ap-shadow:0 10px 32px rgba(11,44,32,.07);--ap-shadow-soft:0 5px 18px rgba(11,44,32,.05);
  --ap-font:"Inter","SF Pro Text","SF Pro Display","Segoe UI Variable","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
:root[data-theme="dark"]{
  --ap-green:#55aa86;--ap-green-strong:#66b693;--ap-green-soft:#14261f;
  --ap-bg:#07100d;--ap-surface:#0d1814;--ap-surface-soft:#111f19;--ap-line:#20332a;
  --ap-text:#f2f7f4;--ap-muted:#94a69d;--ap-danger:#ef6b6b;
  --ap-shadow:0 14px 34px rgba(0,0,0,.24);--ap-shadow-soft:0 6px 18px rgba(0,0,0,.18);
}
html,body,.app-body,.app-shell{font-family:var(--ap-font);background:var(--ap-bg);color:var(--ap-text);font-feature-settings:"cv02","cv03","cv04","cv11";text-rendering:optimizeLegibility}
button,input,textarea,select{font-family:inherit}
.main{background:var(--ap-bg)}
.page-wrap{max-width:1460px}
.page-head h1,.page-heading h1{font-weight:760;letter-spacing:-.035em;color:var(--ap-text)}
.page-head p,.page-heading p,.muted{color:var(--ap-muted)}
.eyebrow{color:var(--ap-green);font-weight:800;letter-spacing:.16em}

/* Premium desktop shell */
.sidebar{width:224px;background:var(--ap-surface);border-color:var(--ap-line);padding:22px 14px 16px;box-shadow:none}
.main{margin-left:224px}
.brand{height:66px;padding:0 10px 14px;gap:11px}.brand img{width:44px;height:44px}.brand span{font-size:9px;letter-spacing:.22em;color:var(--ap-muted);font-weight:700}
:root[data-theme="dark"] .brand img{filter:invert(1) brightness(1.35)}
.side-nav{gap:3px;margin-top:4px}.nav-link{height:44px;border-radius:11px;padding:0 12px;gap:12px;color:var(--ap-muted);font-size:12px;font-weight:560}.nav-link svg{width:18px;height:18px;stroke-width:1.8}.nav-link:hover{background:var(--ap-surface-soft);color:var(--ap-text)}.nav-link.active{background:var(--ap-green);color:#fff;box-shadow:0 8px 20px color-mix(in srgb,var(--ap-green) 18%,transparent)}
.sidebar-foot{gap:10px}.pwa-mini{background:var(--ap-surface-soft);border-color:var(--ap-line);border-radius:12px;padding:11px 12px}.pwa-mini b{color:var(--ap-text)}.pwa-mini small{color:var(--ap-muted)}
.sidebar-logout{width:100%;display:flex;align-items:center;gap:10px;color:var(--ap-muted);padding:9px 10px;border-radius:10px}.sidebar-logout:hover{background:var(--ap-surface-soft);color:var(--ap-text)}.sidebar-logout svg{width:17px;height:17px}
.topbar{height:68px;background:color-mix(in srgb,var(--ap-surface) 94%,transparent);border-color:var(--ap-line);padding:0 26px;backdrop-filter:blur(18px)}
.search-wrap{height:40px;background:var(--ap-surface-soft);border-color:transparent;border-radius:12px}.search-wrap:focus-within{background:var(--ap-surface);border-color:color-mix(in srgb,var(--ap-green) 30%,var(--ap-line));box-shadow:0 0 0 3px color-mix(in srgb,var(--ap-green) 7%,transparent)}.search-wrap input{color:var(--ap-text);font-size:12px}.search-wrap input::placeholder{color:var(--ap-muted)}
.icon-button,.theme-toggle{color:var(--ap-muted)}.icon-button:hover,.theme-toggle:hover{background:var(--ap-surface-soft);color:var(--ap-text)}.profile b{color:var(--ap-text)}.profile small{color:var(--ap-muted)}.avatar{background:var(--ap-green);font-weight:750}

/* Core components share one visual language */
.panel,.metric-card,.form-panel,.users-panel,.user-form-panel,.role-panel{background:var(--ap-surface);border:1px solid var(--ap-line);border-radius:var(--ap-radius-lg);box-shadow:var(--ap-shadow-soft)}
.metric-card{padding:17px 18px}.metric-card span,.metric-card small{color:var(--ap-muted)}.metric-card strong{font-weight:760;color:var(--ap-text)}
.primary-button{min-height:40px;border-radius:12px;background:var(--ap-green);box-shadow:0 7px 18px color-mix(in srgb,var(--ap-green) 16%,transparent);font-weight:720}.primary-button:hover{background:var(--ap-green-strong)}
.soft-button{min-height:40px;border-radius:12px;background:var(--ap-surface);border-color:var(--ap-line);color:var(--ap-text);box-shadow:none}.soft-button:hover{background:var(--ap-surface-soft);border-color:var(--ap-line)}
.input-icon,.custom-select-button,.form-panel input,.form-stack input,.form-panel textarea,.user-form-panel input:not([type=checkbox]):not([type=radio]){background:var(--ap-surface);border-color:var(--ap-line);border-radius:12px;color:var(--ap-text)}
.input-icon:focus-within,.custom-select.open .custom-select-button,.form-panel input:focus,.form-stack input:focus,.form-panel textarea:focus,.user-form-panel input:focus{border-color:color-mix(in srgb,var(--ap-green) 50%,var(--ap-line));box-shadow:0 0 0 3px color-mix(in srgb,var(--ap-green) 8%,transparent);outline:0}
.custom-select-menu{background:var(--ap-surface);border-color:var(--ap-line);border-radius:14px;box-shadow:var(--ap-shadow)}.custom-select-menu button{color:var(--ap-text);border-radius:10px}.custom-select-menu button:hover,.custom-select-menu button.selected{background:var(--ap-green-soft);color:var(--ap-green)}
.table-wrap th,.variant-head{background:var(--ap-surface-soft)!important;color:var(--ap-muted)!important;border-color:var(--ap-line)!important}.table-wrap td,.variant-row{border-color:var(--ap-line)!important}.table-wrap tbody tr:hover{background:var(--ap-surface-soft)!important}
.status{font-weight:720}.status.success{background:color-mix(in srgb,var(--ap-green) 12%,var(--ap-surface));color:var(--ap-green)}

/* Dark mode: remove every light leak inside the admin */
:root[data-theme="dark"] .upload-card,
:root[data-theme="dark"] .empty-inline,
:root[data-theme="dark"] .variant-head,
:root[data-theme="dark"] .preview-image,
:root[data-theme="dark"] .product-mini img,
:root[data-theme="dark"] .product-cell img,
:root[data-theme="dark"] .mobile-product-image,
:root[data-theme="dark"] .image-admin-card>img,
:root[data-theme="dark"] .color-sampler-stage,
:root[data-theme="dark"] .catalog-order-note,
:root[data-theme="dark"] .note-item,
:root[data-theme="dark"] .offer-icon,
:root[data-theme="dark"] .integration-logo,
:root[data-theme="dark"] .empty-mini,
:root[data-theme="dark"] .chart-empty,
:root[data-theme="dark"] .empty-chart,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .roadmap{background:var(--ap-surface-soft)!important;color:var(--ap-text)!important;border-color:var(--ap-line)!important}
:root[data-theme="dark"] .upload-card{border-style:dashed!important}
:root[data-theme="dark"] .upload-card small,:root[data-theme="dark"] .empty-mini span,:root[data-theme="dark"] .feature-card p{color:var(--ap-muted)!important}
:root[data-theme="dark"] .table-wrap th{background:#0a1511!important}
:root[data-theme="dark"] .form-error{background:#291717!important;border-color:#50302f!important;color:#ff9c98!important}
:root[data-theme="dark"] .status.warning{background:#2b2516!important;color:#e6b75f!important}
:root[data-theme="dark"] .status.danger{background:#2b1718!important;color:#ef7777!important}
:root[data-theme="dark"] .status.info{background:#14232a!important;color:#7fb6d2!important}
:root[data-theme="dark"] .separator span{background:var(--ap-surface)!important}

/* Users — integrated right drawer */
.users-panel{overflow:hidden}.users-head{background:var(--ap-surface);border-color:var(--ap-line)}.user-row{border-color:var(--ap-line);padding:15px 20px}.user-row:hover{background:var(--ap-surface-soft)}.user-avatar{background:var(--ap-green-soft);color:var(--ap-green)}.user-main strong,.user-role b{color:var(--ap-text)}.user-main span,.user-last span,.user-last small{color:var(--ap-muted)}
.user-panel-backdrop{position:fixed;inset:0;background:rgba(4,12,9,.32);backdrop-filter:blur(3px);z-index:89;opacity:0;pointer-events:none;transition:opacity .2s ease}.user-panel-backdrop.open{opacity:1;pointer-events:auto}
.user-create-panel{position:fixed;z-index:90;top:0;right:0;bottom:0;width:min(510px,94vw);background:var(--ap-surface);border-left:1px solid var(--ap-line);box-shadow:-22px 0 50px rgba(4,20,13,.14);transform:translateX(104%);transition:transform .26s cubic-bezier(.22,.8,.25,1);display:flex;flex-direction:column;color:var(--ap-text)}.user-create-panel.open{transform:none}
.user-create-head{padding:28px 28px 20px;border-bottom:1px solid var(--ap-line);display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.user-create-head h2{font-size:24px;letter-spacing:-.035em;margin:5px 0 5px}.user-create-head p{margin:0;color:var(--ap-muted);font-size:11px;line-height:1.5}.panel-close-icon,.sheet-icon-close{width:38px;height:38px;border:0;background:transparent;color:var(--ap-muted);display:grid;place-items:center;border-radius:50%;cursor:pointer}.panel-close-icon:hover,.sheet-icon-close:hover{background:var(--ap-surface-soft);color:var(--ap-text)}.panel-close-icon svg,.sheet-icon-close svg{width:19px;height:19px}
.user-create-form{overflow:auto;display:flex;flex-direction:column;min-height:0;flex:1}.user-create-section{padding:22px 28px;border-bottom:1px solid var(--ap-line)}.user-create-section h3{font-size:13px;margin:0 0 16px}.user-create-section>label:not(.user-active-toggle){display:grid;gap:7px;font-size:10px;font-weight:700;color:var(--ap-text);margin-bottom:15px}.user-create-section input:not([type=checkbox]):not([type=radio]){height:48px;width:100%;padding:0 13px;border:1px solid var(--ap-line);border-radius:12px;background:var(--ap-surface);color:var(--ap-text);outline:0}.user-create-section input:focus{border-color:color-mix(in srgb,var(--ap-green) 48%,var(--ap-line));box-shadow:0 0 0 3px color-mix(in srgb,var(--ap-green) 8%,transparent)}
.user-create-section .user-password-field{margin:0;background:var(--ap-surface);border-color:var(--ap-line)}.user-create-section .user-password-field input{border:0!important;box-shadow:none!important;height:46px!important}.user-create-section .role-panel-head{margin-bottom:13px}.user-create-section .role-panel-head h3{margin-bottom:5px}.user-create-section .role-panel-head p{margin:0;color:var(--ap-muted);font-size:10px;line-height:1.5}
.role-card{background:var(--ap-surface);border-color:var(--ap-line);border-radius:13px}.role-card strong{color:var(--ap-text)}.role-card small{color:var(--ap-muted)}.role-radio:checked+.role-card{background:var(--ap-green-soft);border-color:color-mix(in srgb,var(--ap-green) 45%,var(--ap-line));box-shadow:none}
.user-create-actions{margin-top:auto;position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1.3fr;gap:10px;padding:16px 28px calc(16px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--ap-surface) 94%,transparent);border-top:1px solid var(--ap-line);backdrop-filter:blur(16px)}
body.user-panel-open{overflow:hidden}

/* Store admin: remove internal version language */
.roadmap{border-radius:var(--ap-radius-lg)}

/* Mobile app shell — one navigation only, fixed to the device edge */
@media(max-width:760px){
  :root{--sidebar:0}
  .sidebar{display:none!important}
  .main{margin-left:0!important;padding-bottom:0}
  .topbar{height:64px;padding:calc(env(safe-area-inset-top) * .15) 16px 0;gap:10px;background:color-mix(in srgb,var(--ap-surface) 96%,transparent);border-color:var(--ap-line)}
  .search-wrap{height:42px;flex:1;max-width:none;background:var(--ap-surface-soft);border:1px solid transparent;border-radius:14px;padding:0 13px}.search-wrap svg{width:18px}.search-wrap input{font-size:14px}
  .top-actions{gap:3px}.top-actions .theme-toggle{width:40px;height:40px}.profile .avatar{width:36px;height:36px;font-size:12px}.profile>div,.desktop-notification{display:none!important}
  .page-wrap{padding:22px 18px calc(82px + env(safe-area-inset-bottom));max-width:none}
  .page-head,.page-heading{margin-bottom:20px}.page-head h1,.page-heading h1{font-size:27px;line-height:1.08}.page-head p,.page-heading p{font-size:12px;line-height:1.5}.eyebrow{font-size:10px}
  .page-head>.primary-button,.page-heading>.primary-button{width:auto;height:42px;min-height:42px;padding:0 14px;font-size:11px;border-radius:12px}.page-heading>.primary-button .ui-icon{width:17px;height:17px}
  .panel,.metric-card{border-radius:17px;box-shadow:none}.panel{padding:17px}.metric-card{padding:15px}
  .metric-grid,.metric-grid.four{gap:9px}.metric-card strong{font-size:20px}
  .bottom-nav{display:grid!important;position:fixed;left:0!important;right:0!important;bottom:0!important;height:calc(66px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);grid-template-columns:repeat(var(--nav-count),minmax(0,1fr));background:color-mix(in srgb,var(--ap-surface) 97%,transparent);border:0;border-top:1px solid var(--ap-line);border-radius:0!important;box-shadow:0 -8px 28px rgba(10,30,22,.06);z-index:70;backdrop-filter:blur(20px);overflow:visible}
  .bottom-nav a,.bottom-nav button{position:relative;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9px;font-weight:560;color:var(--ap-muted);padding:4px 2px 2px;-webkit-tap-highlight-color:transparent}
  .bottom-nav a:before,.bottom-nav button:before{content:"";position:absolute;top:0;left:50%;width:24px;height:2px;border-radius:0 0 4px 4px;background:transparent;transform:translateX(-50%)}
  .bottom-nav svg{width:22px;height:22px;stroke-width:1.75}.bottom-nav .active{color:var(--ap-green);font-weight:720}.bottom-nav .active:before{background:var(--ap-green)}
  .sheet-backdrop{display:block;position:fixed;inset:0;background:rgba(4,12,9,.32);backdrop-filter:blur(2px);z-index:79;opacity:0;pointer-events:none;transition:opacity .22s ease}.sheet-backdrop.open{opacity:1;pointer-events:auto}
  .more-sheet{display:flex!important;flex-direction:column;position:fixed;left:0;right:0;bottom:0;z-index:80;max-height:min(76svh,650px);padding:8px 18px calc(20px + env(safe-area-inset-bottom));background:var(--ap-surface);border:0;border-radius:24px 24px 0 0;box-shadow:0 -18px 55px rgba(4,18,12,.16);transform:translateY(105%);transition:transform .25s cubic-bezier(.22,.8,.25,1);overflow:auto}.more-sheet.open{transform:none}
  .sheet-handle{width:36px;height:4px;margin:2px auto 14px;background:color-mix(in srgb,var(--ap-muted) 35%,transparent);border-radius:999px}
  .mobile-account{display:grid;grid-template-columns:42px 1fr 38px;gap:11px;align-items:center;padding:4px 2px 16px;border-bottom:1px solid var(--ap-line)}.mobile-account .avatar{width:42px;height:42px}.mobile-account b,.mobile-account small{display:block}.mobile-account b{font-size:13px;color:var(--ap-text)}.mobile-account small{font-size:10px;color:var(--ap-muted);margin-top:2px}
  .sheet-nav{display:grid}.sheet-link{min-height:56px;display:grid;grid-template-columns:31px 1fr 20px;align-items:center;gap:10px;padding:0 4px;border-top:0;border-bottom:1px solid var(--ap-line);font-size:14px;font-weight:620;color:var(--ap-text)}.sheet-link svg{width:21px;height:21px;color:var(--ap-muted);stroke-width:1.75}.sheet-link.active{color:var(--ap-green)}.sheet-link.active>svg:first-child{color:var(--ap-green)}.sheet-chevron{width:16px!important;height:16px!important;color:var(--ap-muted)!important}.sheet-logout{padding-top:9px}.sheet-logout button{min-height:54px;width:100%;border:0;background:transparent;color:var(--ap-danger);display:grid;grid-template-columns:31px 1fr;align-items:center;gap:10px;text-align:left;font-size:14px;font-weight:650;padding:0 4px}.sheet-logout svg{width:21px;height:21px}
  body.mobile-sheet-open{overflow:hidden}

  /* Mobile content becomes app-native, not desktop cards squeezed down */
  .settings-grid{display:grid!important;gap:10px}.settings-grid>.panel{margin:0!important}
  .feature-grid{display:grid!important;grid-template-columns:1fr!important;gap:0;border:1px solid var(--ap-line);border-radius:18px;overflow:hidden;background:var(--ap-surface)}.feature-grid .feature-card{border:0!important;border-bottom:1px solid var(--ap-line)!important;border-radius:0!important;background:var(--ap-surface)!important;display:grid;grid-template-columns:36px 1fr;column-gap:10px;padding:18px!important}.feature-grid .feature-card:last-child{border-bottom:0!important}.feature-card span{grid-row:1/3;align-self:start;font-size:11px}.feature-card h3{margin:0 0 5px!important;font-size:16px}.feature-card p{font-size:11px!important;line-height:1.5}.roadmap{margin-top:10px!important}
  .users-panel{border-radius:18px}.users-head{padding:17px 16px}.user-row{padding:14px 15px}.user-main strong{font-size:12px}.user-main span{font-size:10px}.user-role b{font-size:10px}
  .user-create-panel{top:0;width:100%;max-width:none;border-left:0;box-shadow:none;transform:translateY(104%);border-radius:24px 24px 0 0}.user-create-panel.open{transform:none}.user-create-head{padding:20px 20px 16px}.user-create-head h2{font-size:25px}.user-create-section{padding:20px}.user-create-actions{padding:13px 20px calc(14px + env(safe-area-inset-bottom));grid-template-columns:1fr 1.35fr}
  .user-editor-grid{gap:10px}.user-form-panel,.role-panel{padding:18px;border-radius:17px}.user-form-actions{bottom:calc(66px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--ap-bg) 94%,transparent)}
  .toast{left:14px;right:14px;top:76px;border-radius:13px}
  .custom-select-menu{position:fixed;left:14px!important;right:14px!important;top:auto!important;bottom:calc(76px + env(safe-area-inset-bottom));max-height:48svh;overflow:auto;border-radius:18px;box-shadow:0 18px 60px rgba(0,0,0,.18)}
}

@media(max-width:520px){
  .page-wrap{padding-left:16px;padding-right:16px}.page-head h1,.page-heading h1{font-size:25px}.topbar{padding-left:14px;padding-right:14px}.search-wrap input{font-size:13px}
}

/* V0.3.10 — definitive mobile shell. Must remain last in this file. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:760px){
  .main{margin-left:0!important;padding-bottom:0!important}
  .sidebar{display:none!important}
  .page-wrap{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}
  .bottom-nav{
    display:grid!important;
    grid-template-columns:repeat(var(--nav-count),minmax(0,1fr))!important;
    position:fixed!important;
    left:0!important;right:0!important;bottom:0!important;
    width:100%!important;
    height:calc(58px + env(safe-area-inset-bottom))!important;
    padding:0 10px env(safe-area-inset-bottom)!important;
    margin:0!important;
    border:0!important;
    border-top:1px solid var(--ap-line)!important;
    border-radius:0!important;
    background:color-mix(in srgb,var(--ap-surface) 98%,transparent)!important;
    box-shadow:none!important;
    backdrop-filter:blur(20px)!important;
    overflow:hidden!important;
    z-index:70!important;
  }
  .bottom-nav>a,.bottom-nav>button{
    position:relative!important;
    min-width:0!important;width:auto!important;height:auto!important;
    margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;
    display:grid!important;place-items:center!important;
    color:var(--ap-muted)!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  .bottom-nav>a svg,.bottom-nav>button svg{
    width:24px!important;height:24px!important;stroke-width:1.75!important;
  }
  .bottom-nav>a:before,.bottom-nav>button:before{
    content:""!important;position:absolute!important;
    left:50%!important;top:5px!important;
    width:4px!important;height:4px!important;border-radius:50%!important;
    transform:translateX(-50%)!important;background:transparent!important;
  }
  .bottom-nav>a.active,.bottom-nav>button.active{color:var(--ap-green)!important}
  .bottom-nav>a.active:before,.bottom-nav>button.active:before{background:var(--ap-green)!important}
  .more-sheet{bottom:0!important;border-radius:24px 24px 0 0!important}
  .sheet-backdrop{bottom:0!important}
}


/* V0.3.11 — Passage navigation identity: custom symbols + bottom active marker. */
.nav-symbol{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.nav-link .nav-symbol{stroke-width:1.72}
.sheet-link .nav-symbol,.sheet-logout .nav-symbol{stroke-width:1.68}
@media(max-width:760px){
  .bottom-nav>a,.bottom-nav>button{
    isolation:isolate!important;
    overflow:visible!important;
    transition:color .16s ease,transform .16s ease!important;
  }
  .bottom-nav>a:before,.bottom-nav>button:before{display:none!important}
  .bottom-nav>a:after,.bottom-nav>button:after{
    content:""!important;
    position:absolute!important;
    left:50%!important;
    bottom:4px!important;
    width:4px!important;
    height:4px!important;
    border-radius:999px!important;
    transform:translateX(-50%) scale(.4)!important;
    background:transparent!important;
    opacity:0!important;
    transition:opacity .16s ease,transform .18s cubic-bezier(.2,.8,.2,1),background .16s ease!important;
  }
  .bottom-nav>a .nav-symbol,.bottom-nav>button .nav-symbol{
    width:24px!important;
    height:24px!important;
    stroke-width:1.62!important;
    transform:translateY(-2px)!important;
    transition:transform .18s cubic-bezier(.2,.8,.2,1),stroke-width .16s ease!important;
  }
  .bottom-nav>a.active,.bottom-nav>button.active{color:var(--ap-green)!important}
  .bottom-nav>a.active .nav-symbol,.bottom-nav>button.active .nav-symbol{
    stroke-width:1.9!important;
    transform:translateY(-3px) scale(1.035)!important;
  }
  .bottom-nav>a.active:after,.bottom-nav>button.active:after{
    background:var(--ap-green)!important;
    opacity:1!important;
    transform:translateX(-50%) scale(1)!important;
  }
  .bottom-nav>button .nav-symbol-more{transform:translateY(-2px) scale(.92)!important}
  .bottom-nav>button.active .nav-symbol-more{transform:translateY(-3px) scale(.96)!important}
}

/* =========================================================
   Passage 0.4.0 — Modular Settings + MONEI connection
   ========================================================= */
.settings-hub{padding:6px 0 36px}.settings-hub-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:26px}.settings-hub-head h1{font-size:34px;line-height:1.05;letter-spacing:-.04em;margin:8px 0 8px;font-weight:780}.settings-hub-head p{margin:0;color:var(--ap-muted);font-size:13px}.config-module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.config-module-card{appearance:none;border:1px solid var(--ap-line);background:var(--ap-surface);border-radius:20px;padding:18px;text-align:left;color:var(--ap-text);min-height:220px;display:flex;flex-direction:column;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;box-shadow:var(--ap-shadow-soft)}.config-module-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--ap-green) 25%,var(--ap-line));box-shadow:var(--ap-shadow)}.config-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.config-card-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;flex:none;font-weight:800;font-size:18px;border:1px solid color-mix(in srgb,var(--ap-green) 18%,transparent)}.config-card-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.config-card-icon.general{background:color-mix(in srgb,#4977ff 11%,var(--ap-surface));color:#4d70d9}.config-card-icon.monei{background:color-mix(in srgb,#6f3aa9 16%,var(--ap-surface));color:#8f5bc9}.config-card-icon.shipping{background:color-mix(in srgb,var(--ap-green) 12%,var(--ap-surface));color:var(--ap-green)}.config-card-icon.brand{background:color-mix(in srgb,#7c56d8 13%,var(--ap-surface));color:#7c56d8}.config-kicker{font-size:9px;font-weight:820;letter-spacing:.14em;color:var(--ap-muted)}.config-module-card>strong{font-size:18px;margin:8px 0 6px;letter-spacing:-.025em}.config-module-card>p{font-size:11px;line-height:1.55;color:var(--ap-muted);margin:0 0 18px}.config-card-foot{margin-top:auto;border-top:1px solid var(--ap-line);padding-top:14px;font-size:10px;font-weight:700;color:var(--ap-muted);display:flex;align-items:center;justify-content:space-between}.config-card-foot svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.config-status{font-size:9px;font-weight:800;border-radius:999px;padding:6px 9px;display:inline-flex;align-items:center;gap:5px}.config-status.active,.config-status.connected{background:color-mix(in srgb,var(--ap-green) 12%,var(--ap-surface));color:var(--ap-green)}.config-status.pending{background:color-mix(in srgb,#b77f22 12%,var(--ap-surface));color:#9d6816}.config-status.error{background:color-mix(in srgb,var(--ap-danger) 12%,var(--ap-surface));color:var(--ap-danger)}
.config-modal-backdrop{position:fixed;inset:0;z-index:310;background:rgba(4,13,10,.56);backdrop-filter:blur(7px);opacity:0;transition:opacity .2s ease}.config-modal-backdrop.open{opacity:1}.config-modal{position:fixed;inset:0;z-index:320;display:grid;place-items:center;padding:28px;pointer-events:none;visibility:hidden}.config-modal.open{pointer-events:auto;visibility:visible}.config-modal-shell{width:min(1040px,96vw);max-height:min(820px,90vh);overflow:auto;background:var(--ap-surface);border:1px solid var(--ap-line);border-radius:24px;box-shadow:0 28px 90px rgba(0,0,0,.28);opacity:0;transform:translateY(12px) scale(.985);transition:opacity .2s ease,transform .22s ease}.config-modal.open .config-modal-shell{opacity:1;transform:none}.config-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid var(--ap-line);position:sticky;top:0;background:color-mix(in srgb,var(--ap-surface) 96%,transparent);backdrop-filter:blur(16px);z-index:3}.config-modal-title{display:flex;align-items:flex-start;gap:14px}.config-modal-title h2{margin:4px 0 4px;font-size:23px;letter-spacing:-.035em}.config-modal-title p{margin:0;color:var(--ap-muted);font-size:11px}.config-close{width:38px;height:38px;border:0;background:transparent;color:var(--ap-muted);display:grid;place-items:center;border-radius:50%;cursor:pointer}.config-close:hover{background:var(--ap-surface-soft);color:var(--ap-text)}.config-close svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.monei-shell{padding-bottom:24px}.monei-active-row{margin:22px 24px 0;border:1px solid var(--ap-line);border-radius:17px;background:var(--ap-surface-soft);padding:16px;display:flex;align-items:center;justify-content:space-between;gap:18px}.monei-active-row strong{font-size:12px}.monei-active-row p{font-size:10px;color:var(--ap-muted);margin:4px 0 0;line-height:1.45}.monei-segmented{display:flex;align-items:center;background:color-mix(in srgb,var(--ap-line) 65%,var(--ap-surface));border-radius:13px;padding:4px;gap:4px;flex:none}.monei-segmented form{margin:0}.monei-segmented button{height:36px;border:0;border-radius:10px;background:transparent;color:var(--ap-muted);font-weight:760;font-size:10px;padding:0 18px;cursor:pointer;transition:.18s ease}.monei-segmented button.active{background:var(--ap-green);color:white;box-shadow:0 5px 14px color-mix(in srgb,var(--ap-green) 20%,transparent)}.monei-segmented button.active.danger{background:#d94b66}.monei-live-warning{margin:10px 24px 0;color:#d54f63;font-size:9px;font-weight:700}.monei-config-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.8fr);gap:14px;padding:18px 24px 0}.monei-credentials-column{display:grid;grid-template-columns:1fr 1fr;gap:12px}.monei-credential-card,.monei-webhook-card{border:1px solid var(--ap-line);border-radius:18px;background:var(--ap-surface-soft);padding:16px}.credential-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.credential-head>div{display:flex;align-items:center;gap:9px}.credential-head strong{font-size:13px}.credential-state{font-size:8px;border-radius:999px;padding:5px 7px;font-weight:780;text-transform:none;display:inline-flex;align-items:center;gap:5px}.credential-state i{width:6px;height:6px;border-radius:50%;background:currentColor}.credential-state.connected{background:color-mix(in srgb,#23b48a 12%,var(--ap-surface));color:#15936f}.credential-state.pending{background:color-mix(in srgb,#a67c2d 11%,var(--ap-surface));color:#9e741e}.credential-state.error{background:color-mix(in srgb,var(--ap-danger) 12%,var(--ap-surface));color:var(--ap-danger)}.monei-lock{width:38px;height:38px;border:1px solid var(--ap-line);background:var(--ap-surface);border-radius:12px;color:var(--ap-muted);display:grid;place-items:center;cursor:pointer;transition:transform .18s ease,color .18s ease,border-color .18s ease,background .18s ease}.monei-lock svg{grid-area:1/1;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:opacity .18s ease,transform .28s cubic-bezier(.2,.8,.2,1)}.monei-lock .lock-open{opacity:0;transform:rotate(-15deg) scale(.7)}.monei-lock.unlocked{color:var(--ap-green);border-color:color-mix(in srgb,var(--ap-green) 35%,var(--ap-line));background:color-mix(in srgb,var(--ap-green) 6%,var(--ap-surface))}.monei-lock.unlocked .lock-closed{opacity:0;transform:rotate(12deg) scale(.72)}.monei-lock.unlocked .lock-open{opacity:1;transform:none}.monei-credential-card label,.general-config-form label{display:grid;gap:6px;font-size:9px;font-weight:720;color:var(--ap-text);margin-bottom:12px}.monei-credential-card input,.general-config-form input,.passage-static-select{width:100%;height:44px;border:1px solid var(--ap-line);border-radius:12px;background:var(--ap-surface);padding:0 12px;color:var(--ap-text);font-size:10px;outline:0;transition:.16s ease}.monei-credential-card input:focus,.general-config-form input:focus{border-color:color-mix(in srgb,var(--ap-green) 48%,var(--ap-line));box-shadow:0 0 0 3px color-mix(in srgb,var(--ap-green) 8%,transparent)}.monei-credential-card input[readonly]{color:var(--ap-muted);background:color-mix(in srgb,var(--ap-surface) 70%,var(--ap-surface-soft));cursor:default}.secret-field{position:relative}.secret-field input{padding-right:46px}.secret-eye{position:absolute;right:5px;top:3px;width:38px;height:38px;border:0;background:transparent;color:var(--ap-muted);display:grid;place-items:center;cursor:pointer;border-radius:9px}.secret-eye:hover{background:var(--ap-surface-soft);color:var(--ap-text)}.secret-eye svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}.credential-actions{display:flex;justify-content:flex-end}.btn-secondary,.btn-test,.copy-url-btn,.btn-primary{border:0;border-radius:11px;height:40px;padding:0 14px;font-size:10px;font-weight:760;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn-secondary{background:var(--ap-green);color:#fff}.btn-secondary:disabled{background:var(--ap-line);color:var(--ap-muted);cursor:not-allowed}.monei-test-form{margin-top:9px}.btn-test{width:100%;border:1px solid var(--ap-line);background:var(--ap-surface);color:var(--ap-text)}.btn-test:hover{border-color:color-mix(in srgb,var(--ap-green) 30%,var(--ap-line));color:var(--ap-green)}.btn-test svg,.copy-url-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.credential-meta{margin-top:10px;font-size:8px;color:var(--ap-muted)}.webhook-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.webhook-head strong{font-size:14px;display:block;margin-top:6px}.webhook-lock{width:34px;height:34px;display:grid;place-items:center;color:var(--ap-muted)}.webhook-lock svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.monei-webhook-card>p{font-size:10px;line-height:1.5;color:var(--ap-muted);margin:14px 0}.webhook-url{border:1px solid var(--ap-line);background:var(--ap-surface);border-radius:12px;padding:12px;font-size:9px;line-height:1.5;color:var(--ap-green);word-break:break-all;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.copy-url-btn{width:100%;margin-top:9px;background:var(--ap-text);color:var(--ap-surface)}.credential-security-note{margin-top:14px;border-radius:12px;padding:12px;background:color-mix(in srgb,#d69222 10%,var(--ap-surface));color:#a66f15;font-size:9px;line-height:1.45}.compact-shell{width:min(620px,94vw)}.general-config-form{padding:22px 24px}.passage-static-select{display:flex;align-items:center;justify-content:space-between}.passage-static-select svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.modal-actions{display:flex;justify-content:flex-end;margin-top:8px}.btn-primary{background:var(--ap-green);color:#fff}.module-placeholder{margin:22px 24px 26px;padding:22px;border:1px dashed var(--ap-line);border-radius:16px;background:var(--ap-surface-soft)}.module-placeholder strong{font-size:13px}.module-placeholder p{font-size:10px;line-height:1.5;color:var(--ap-muted);margin:6px 0 0}body.config-modal-open{overflow:hidden}
:root[data-theme="dark"] .config-module-card,:root[data-theme="dark"] .config-modal-shell,:root[data-theme="dark"] .monei-credential-card,:root[data-theme="dark"] .monei-webhook-card,:root[data-theme="dark"] .monei-active-row,:root[data-theme="dark"] .module-placeholder{background:var(--ap-surface);border-color:var(--ap-line)}:root[data-theme="dark"] .monei-credential-card input,:root[data-theme="dark"] .general-config-form input,:root[data-theme="dark"] .passage-static-select,:root[data-theme="dark"] .webhook-url,:root[data-theme="dark"] .btn-test{background:var(--ap-surface-soft);border-color:var(--ap-line);color:var(--ap-text)}:root[data-theme="dark"] .copy-url-btn{background:#eaf2ee;color:#0b1712}
@media(max-width:1100px){.config-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.monei-config-layout{grid-template-columns:1fr}.monei-credentials-column{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.settings-hub{padding:2px 2px 96px}.settings-hub-head{margin-bottom:18px}.settings-hub-head h1{font-size:29px}.settings-hub-head p{font-size:12px;line-height:1.5}.config-module-grid{grid-template-columns:1fr;gap:10px}.config-module-card{min-height:0;padding:16px;border-radius:17px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:13px}.config-card-top{display:contents}.config-card-icon{grid-column:1;grid-row:1/4}.config-status{grid-column:3;grid-row:1;align-self:start}.config-module-card>.config-kicker{grid-column:2;grid-row:1}.config-module-card>strong{grid-column:2;grid-row:2;margin:4px 0 3px;font-size:16px}.config-module-card>p{grid-column:2/4;grid-row:3;margin:0;font-size:10px}.config-card-foot{display:none}.config-modal{place-items:end stretch;padding:0}.config-modal-shell,.compact-shell{width:100%;max-height:92svh;border-radius:24px 24px 0 0;border-bottom:0;transform:translateY(100%);box-shadow:0 -18px 48px rgba(0,0,0,.18)}.config-modal.open .config-modal-shell{transform:none}.config-modal-head{padding:18px 18px 14px}.config-modal-title{gap:11px}.config-modal-title .config-card-icon{width:39px;height:39px}.config-modal-title h2{font-size:19px}.config-modal-title p{font-size:10px}.monei-active-row{margin:16px 16px 0;padding:14px;display:grid;gap:12px}.monei-segmented{width:100%;display:grid;grid-template-columns:1fr 1fr}.monei-segmented form,.monei-segmented button{width:100%}.monei-live-warning{margin:9px 16px 0}.monei-config-layout{padding:14px 16px 18px;gap:10px}.monei-credentials-column{grid-template-columns:1fr;gap:10px}.monei-credential-card,.monei-webhook-card{border-radius:16px;padding:14px}.general-config-form{padding:18px 16px 24px}.module-placeholder{margin:18px 16px 24px}.config-modal-backdrop{bottom:0}}
