:root {
  color-scheme: light;
  --ink:#2b2528; --muted:#71686c; --pink:#ac2d5c; --pink-dark:#8e214b;
  --line:#e5dedb; --paper:#fff; --canvas:#f7f5f2; --pale:#fbeaf0;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); background:var(--canvas); font-size:16px;
}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button{color:inherit;cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
button,a{-webkit-tap-highlight-color:transparent}
a{color:var(--pink-dark)}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #bd3970;outline-offset:3px}
.skip{position:fixed;left:12px;top:-90px;z-index:100;background:white;padding:12px}.skip:focus{top:12px}
.icon{width:20px;height:20px;flex:none;vertical-align:middle}
[data-icon]{font-style:normal;display:inline-flex;align-items:center}
.shell{min-height:100dvh;display:grid;grid-template-columns:224px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100dvh;background:#272225;color:#f8f4f5;display:flex;flex-direction:column;padding:28px 15px 15px;z-index:5}
.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;padding:0 7px 30px;margin-bottom:23px;border-bottom:1px solid #ffffff1c}
.brand-mark{width:43px;height:43px;background:#fcdee8;border:2px solid #e484a8;border-radius:50%;overflow:hidden;flex:none}
.brand-mark img{width:100%;height:100%;object-fit:cover;object-position:50% 28%;transform:scale(1.34)}
.brand strong{display:block;font-size:1.19rem;letter-spacing:-.055em;line-height:1.15}.brand b{color:#f397b6}
.brand small{display:block;color:#d8c5ce;font-size:.64rem;font-weight:600;text-transform:uppercase;letter-spacing:.18em;margin-top:5px}
.navigation,.sidebar-end{display:grid;gap:6px}
.navigation a,.navigation button,.sidebar-end>button{min-height:47px;color:#dfd7dc;background:transparent;border:0;border-radius:9px;text-decoration:none;display:flex;align-items:center;gap:12px;text-align:left;padding:10px 15px;font-size:.94rem;font-weight:550}
.navigation a:hover,.navigation button:hover,.sidebar-end>button:hover{background:#ffffff0f;color:white}
.navigation [aria-current=page]{background:#613344;color:#ffe4ee;box-shadow:inset 3px 0 #e98cad}
.navigation .icon{width:19px;height:19px}
.sidebar-end{margin-top:auto}.sidebar-end>button{font-size:.85rem}
.shop{display:flex;gap:11px;align-items:center;border-top:1px solid #ffffff1c;padding:19px 8px 4px;margin-top:10px}
.shop-mark{width:36px;height:36px;background:#40383c;color:#ebccda;border:1px solid #57474e;border-radius:10px;display:grid;place-items:center}
.shop strong,.shop small{display:block}.shop strong{font-size:.86rem}.shop small{font-size:.77rem;color:#c0b5bb;margin-top:2px}
.stage{min-width:0}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 clamp(22px,3vw,50px);border-bottom:1px solid var(--line);background:#fcfaf8}
.crumb,.desktop-crumb,.mobile-brand,time{display:inline-flex;align-items:center;gap:9px}
.crumb{font-size:.87rem;color:var(--muted)}.crumb strong{color:#4c4248;font-weight:600}.crumb>.desktop-crumb .icon,time .icon{width:16px;height:16px}.crumb>i .icon{width:14px;height:14px;color:#a59b9e}
time{font-size:.83rem;color:var(--muted)}.mobile-brand,.navigation .mobile-only{display:none}
.topbar-tools{display:flex;align-items:center;flex-direction:row-reverse;gap:18px}
main{width:min(100%,1510px);margin:auto;padding:clamp(24px,2.7vw,44px) clamp(22px,3vw,50px) 50px;outline:0}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{letter-spacing:-.04em;line-height:1.17}
h1{font-weight:710;font-size:clamp(2rem,2.65vw,2.85rem);margin-bottom:7px}
h2{font-size:1.33rem;margin-bottom:6px}h3{font-size:1.06rem}
p{line-height:1.55}.muted,.page-heading p,.panel-heading p,.empty-state p{color:var(--muted)}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}
.page-heading p,.panel-heading p{margin:0;font-size:.95rem}
.button,.icon-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border-radius:9px;border:1px solid transparent;text-decoration:none;line-height:1.2;font-weight:640;font-size:.9rem;background:transparent}
.button.primary{background:var(--pink);border-color:var(--pink);color:#fff;box-shadow:0 2px 3px #76254314}
.button.primary:hover{background:var(--pink-dark)}.button.secondary,.icon-button{border-color:#d9d0d2;background:white;color:#463c41}.button.secondary:hover,.icon-button:hover{background:#fcf5f7;border-color:#c6a7b5}
.button.quiet{color:var(--pink-dark);padding-inline:7px}.button.quiet:hover{background:#f8e7ee}.button.danger{color:#9b2938;border-color:#e3bdc3;background:#fff8f9}
.button .icon,.icon-button .icon{width:17px;height:17px}.icon-button{padding:0;width:44px;flex:none}
.hero{position:relative;isolation:isolate;min-height:235px;border-radius:17px;overflow:hidden;background:#f7dbe3;border:1px solid #e7cbd4;display:flex;align-items:center}
.hero-art{position:absolute;z-index:-2;inset:0 0 0 auto;width:58%;height:100%;object-fit:cover;object-position:52% 55%}
.hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fbe7ec 0%,#fae4ea 37%,#f9e0e6ee 45%,#f8dce577 57%,transparent 72%)}
.hero-copy{padding:28px clamp(23px,2.4vw,38px);width:55%}
.hero-label{display:flex;align-items:center;gap:7px;color:#852648;font-size:.74rem;font-weight:720;letter-spacing:.085em;text-transform:uppercase;margin-bottom:10px}
.hero-label .icon{width:16px;height:16px}
.hero h2{font-size:clamp(1.85rem,2.8vw,2.8rem);margin:0 0 9px;letter-spacing:-.055em}
.hero p{font-size:.96rem;line-height:1.5;color:#654d55;max-width:365px;margin-bottom:20px}
.hero-actions,.head-actions,.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hero .button.secondary{background:#fff9fb;border-color:#dabbc7}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0 25px}
.metric{position:relative;min-width:0;border:1px solid var(--line);border-radius:13px;background:var(--paper);padding:20px}
.metric .metric-top{display:flex;align-items:center;gap:8px;font-size:.91rem;color:#655d62;font-weight:570}
.metric-mark{position:absolute;right:17px;top:17px;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#f9e7ee;color:#ae3b6a}
.metric:nth-child(2) .metric-mark{background:#eee9f8;color:#795898}.metric:nth-child(3) .metric-mark{background:#e4f0e9;color:#4a7861}
.metric-value{font-weight:710;font-size:clamp(1.55rem,2.4vw,2.3rem);line-height:1.2;letter-spacing:-.055em;margin:11px 0 4px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.metric small{display:block;font-size:.78rem;color:var(--muted)}
.panel{border:1px solid var(--line);border-radius:14px;background:var(--paper);overflow:hidden}
.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:21px 23px;gap:14px}
.panel-heading h2{margin:0 0 3px}.panel-heading p{font-size:.85rem}.panel-heading .button{white-space:nowrap}
.empty-state{text-align:center;padding:24px 18px 27px}.empty-state h3{margin:10px 0 2px}.empty-state p{margin:4px auto 9px;font-size:.9rem;max-width:44ch}
.empty-mark{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:13px;color:#9a7788;background:#f4edf1}
.empty-recent{border-top:1px solid var(--line);background:linear-gradient(180deg,#fdfbfc,#fff)}
.recent-demo{font-size:.8rem;border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;min-height:38px;color:var(--pink-dark);cursor:pointer}
dialog{border:1px solid var(--line);border-radius:18px;padding:0;width:min(590px,calc(100% - 26px));max-height:calc(100dvh - 40px);background:var(--paper);color:var(--ink);box-shadow:0 20px 90px #27172138}
dialog::backdrop{background:#26191e72;backdrop-filter:blur(3px)}
.modal-inner{padding:23px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.modal-head h2{font-size:1.48rem;margin:0}.modal-head .icon-button{border:0;background:#f7f3f4}
body:has(dialog[open]){overflow:hidden}
.field{min-width:0;display:grid;align-content:start;gap:6px;font-size:.89rem;font-weight:620;color:#4c4248}
.field small, .field .hint{font-size:.78rem;color:var(--muted);font-weight:400}
input,select,textarea{color:var(--ink);background:#fff;border:1px solid #cfc5c9;border-radius:8px;padding:10px 11px;min-width:0;width:100%;min-height:44px;font-size:1rem;font-weight:400}
textarea{min-height:70px;resize:vertical}select{cursor:pointer}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.wide{grid-column:1/-1}
.form-actions{justify-content:flex-end;gap:8px;margin-top:19px}.form-error{color:#962840;background:#feeff2;padding:9px 12px;border-radius:7px;font-size:.9rem}.form-error:empty{display:none}
.notice{background:#f8f2f5;border:1px solid #e9d9e1;padding:12px 14px;border-radius:10px;font-size:.9rem;color:#5d4050}
.camera-frame{position:relative;height:clamp(175px,36vh,320px);background:#2c292d;border-radius:13px;overflow:hidden;margin-bottom:12px}
.camera-frame video{width:100%;height:100%;object-fit:cover}
.camera-frame:after{content:"";position:absolute;inset:25% 11%;border:2px solid #fff9;border-radius:12px;box-shadow:0 0 0 200px #0001;pointer-events:none}
.camera-frame:before{content:"";position:absolute;top:50%;left:14%;right:14%;height:2px;background:#fa96b9;z-index:1;box-shadow:0 0 10px #f877ae}
.scan-status{font-size:.9rem;color:var(--muted)}
.toast{position:fixed;z-index:8;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 26px);padding:12px 20px;background:#30272d;color:#fff;border-radius:10px;box-shadow:0 3px 16px #3a1b302b;line-height:1.4}
.login-panel{max-width:480px;margin:5vh auto;padding:26px}.login-panel h1{font-size:2rem}.login-panel .button{margin-top:16px}
.login-lock{color:var(--pink);background:var(--pale);border-radius:12px;width:45px;height:45px;display:grid;place-items:center;margin-bottom:16px}
.mobile-logout{margin-top:14px;display:none}
@media(min-width:1500px){.hero{min-height:270px}}
@media(max-width:1100px) and (min-width:721px){.shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding-inline:10px}.brand{gap:8px}.hero-copy{width:62%}.metric{padding:16px}.metric-mark{width:29px;height:29px;top:12px;right:12px}.metric-mark .icon{width:16px;height:16px}}
@media(max-width:720px){
  .shell{display:block;padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  .sidebar{position:fixed;top:auto;bottom:0;height:auto;inset-inline:0;border-top:1px solid #494046;padding:4px 6px max(4px,env(safe-area-inset-bottom));z-index:6}
  .brand,.sidebar-end,.desktop-crumb,.crumb>i.desktop-crumb{display:none}
  .navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
  .navigation a,.navigation .mobile-only{min-height:55px;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:5px 1px;font-size:.69rem;border-radius:8px}
  .navigation [aria-current=page]{box-shadow:none}.navigation .icon{width:19px;height:19px}
  .mobile-brand{display:inline-flex;color:var(--ink);font-weight:720;font-size:1rem;letter-spacing:-.03em}
  .mobile-brand img{width:32px;height:32px;border-radius:9px}.crumb>strong{display:none}
  .topbar{height:calc(54px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0}
  time{font-size:.75rem;gap:5px}time .icon{width:14px;height:14px}
  .topbar-tools [data-act=password]:not([hidden]) + time{display:none}
  main{padding:21px 15px 24px}.page-heading{margin-bottom:17px;gap:9px}.page-heading p{font-size:.86rem}
  h1{font-size:1.85rem}.page-heading .button{padding:0 10px;font-size:.78rem;gap:5px}
  .hero{min-height:230px;border-radius:13px;align-items:flex-end}
  .hero-art{width:64%;object-position:52% center}.hero:after{background:linear-gradient(90deg,#fbe7ec 0%,#fbe6ebf8 28%,#fbe6ebde 42%,#fae2e87a 62%,transparent 84%)}
  .hero-copy{width:100%;padding:20px 17px}.hero h2{font-size:1.9rem;max-width:64%}.hero p{max-width:59%;font-size:.855rem;margin-bottom:14px}.hero-label{font-size:.65rem;margin-bottom:9px}
  .hero-actions{gap:6px}.hero-actions .button{font-size:.8rem;padding:0 10px}
  .metrics{gap:7px;margin:12px 0 16px}.metric{padding:12px 9px;border-radius:10px}
  .metric-mark{position:static;width:28px;height:28px;border-radius:8px;margin-bottom:8px}.metric-mark .icon{width:16px;height:16px}
  .metric .metric-top{font-size:.72rem;line-height:1.3}.metric-value{font-size:1.26rem;margin:4px 0 0}.metric small{display:none}
  .panel-heading{padding:15px;gap:8px}.panel-heading h2{font-size:1.13rem}.panel-heading p{font-size:.78rem}.panel-heading .button{font-size:.76rem;padding:0 4px}
  .empty-state{padding:16px 12px}.modal-inner{padding:18px}.toast{bottom:calc(75px + env(safe-area-inset-bottom));width:max-content}
  .mobile-logout{display:inline-flex}
}
@media(max-width:370px){main{padding-inline:10px}.page-heading{align-items:flex-start;flex-wrap:wrap}.hero p{max-width:66%}.form-grid{grid-template-columns:1fr}}
