:root{
  --bg:#F0F2F5; --card:#FFFFFF; --text:#1C2B33; --text2:#5F6B73; --text3:#8A9499;
  --line:#DDE3E8; --line2:#E8ECEF; --hover:#F5F6F7; --field:#F0F2F5;
  --brand:#225B5B; --brand-dark:#17403F; --brand-soft:#E6F0ED; --mint:#B9DED7;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --shadow:0 2px 10px rgba(16,24,40,.10),0 12px 32px rgba(16,24,40,.12);
  --shadow-lg:0 16px 44px rgba(16,24,40,.22);
  --grad:linear-gradient(135deg,#17403F 0%,#225B5B 45%,#2FA39A 100%);
  color-scheme:light;
  --body-grad:linear-gradient(180deg,#E7EFFA 0%,#F2F7F4 340px,#F0F2F5 100%);
  --topbar-bg:rgba(255,255,255,.97);
  --icon-hover:#E4E6EB;
  --card-line:#D8E0E6;
}
body.dark{
  color-scheme:dark;
  --bg:#101619;
  --body-grad:linear-gradient(180deg,#0C1316 0%,#121A1D 340px,#101619 100%);
  --card:#1A2427; --text:#EAEFF0; --text2:#A7B3B8; --text3:#7C8A90;
  --line:#2A3538; --line2:#242E32; --hover:#222C30; --field:#232E31;
  --brand:#3BA79C; --brand-dark:#7ED0B2; --brand-soft:#1E3230; --mint:#7ED0B2;
  --shadow:0 2px 8px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:0 12px 34px rgba(0,0,0,.55);
  --grad:linear-gradient(135deg,#17403F 0%,#2A7A72 45%,#3BA79C 100%);
  --topbar-bg:rgba(20,28,31,.97);
  --icon-hover:#2C383C;
  --card-line:#2A3538;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{overflow-x:hidden}
body{margin:0;background:var(--body-grad);background-attachment:fixed;color:var(--text);font:15px/1.5 var(--font);-webkit-font-smoothing:antialiased;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
img,svg{max-width:100%}
button{font:inherit;color:inherit}
a{color:var(--brand)}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:4px}
.ic{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.topbar{position:sticky;top:0;z-index:50;background:var(--topbar-bg);backdrop-filter:blur(8px);border-bottom:1px solid var(--line2);padding-top:env(safe-area-inset-top)}
.topbar-in{margin:0 auto;padding:0 20px;padding-left:calc(20px + env(safe-area-inset-left));padding-right:calc(20px + env(safe-area-inset-right));height:56px;display:flex;align-items:center;justify-content:space-between}
.back{display:inline-flex;align-items:center;gap:8px;color:var(--text);text-decoration:none;font-weight:600;font-size:14.5px;min-height:44px}
.back:hover{color:var(--brand)}
.back .ic{width:18px;height:18px}
.icon-btn{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;border:0;background:var(--field);display:grid;place-items:center;cursor:pointer;color:var(--text)}
.icon-btn:hover{background:var(--icon-hover)}
.toast{position:fixed;left:50%;bottom:28px;bottom:calc(28px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(20px);background:#1B302D;color:#fff;padding:12px 20px;border-radius:10px;font-size:14px;box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;z-index:100;display:flex;align-items:center;gap:10px;max-width:min(520px,calc(100vw - 32px));text-align:left}
body.dark .toast{border:1px solid var(--line)}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast .ic{width:18px;height:18px;color:#7ED0B2}
@media (max-width:360px){
  body{font-size:14px}
  .topbar-in{padding:0 12px;padding-left:calc(12px + env(safe-area-inset-left));padding-right:calc(12px + env(safe-area-inset-right))}
  .back{font-size:13.5px}
  .toast{font-size:13px;padding:10px 14px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
