:root {
  --ink: #172d26;
  --navy: #113f33;
  --teal: #17694e;
  --accent: #21835f;
  --muted: #5b6b61;
  --line: #dce4da;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  background: #f5f7f2;
}
.shell { grid-template-columns: clamp(192px, 16vw, 242px) minmax(0,1fr); }
.shell-body { min-width: 0; }
aside.side {
  padding: 26px 16px 20px;
  height: 100dvh;
  overflow-y: auto;
  background: #fbfcf8;
  color: #193c2c;
  border-right: 1px solid var(--line);
}
.side .brand { padding: 2px 8px 26px; border-color: var(--line); }
.brand-mark {
  width: 39px; height: 39px; flex: none; border-radius: 12px;
  color: #d8f4bf; background: #164836;
}
.brand strong { font-family: "Segoe UI",sans-serif; font-weight: 800; letter-spacing: .065em; }
.brand small { color: #586b5c; letter-spacing: .08em; }
.nav-label { color: #627567; font-size: 11px; letter-spacing: .11em; margin: 29px 13px 9px; }
.nav-item {
  color: #40594b; gap: 11px; padding: 12px 13px; margin-bottom: 4px;
  font-size: 14px; border-radius: 10px; transition: background .16s,color .16s;
}
.nav-item .icon { font-size: 17px; }
.nav-item:hover { background: #eaf0e6; filter: none; }
.nav-item.active { color: #f3f8e9; background: #1b4e38; box-shadow: none; font-weight: 600; }
.side-footer { border-color: var(--line); }
.identity small { color: #596d5e; }
.account-settings { text-align: left; border-radius: 8px; padding: 5px; }
.account-settings:hover { background: #eaf0e6; }
.avatar { border-radius: 50%; background: #e0ecd2; color: #345b38; }
.side-footer .icon-btn { color: #486451; }
.top { background: #fbfcf8; height: 60px; font-size: 13px; }
.crumb,.top time { color: var(--muted); }
.top time { display: flex; align-items: center; gap: 8px; }
.top .mobile-brand, .top .mobile-logout, .mobile-account, .nav-short { display: none; }
.skip-main { position: fixed; top: -80px; left: 16px; z-index: 20; background: #fff; color: var(--ink); border-radius: 8px; padding: 10px; }
.skip-main:focus { top: 8px; }
.main { padding-top: 25px; }
.main:focus { outline: none; }
.btn.primary { background: #18563d; color: #fff; }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline-color: #298358; }
.login {
  display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100svh;
  padding: clamp(16px, 2.6vw, 44px); background: #f7f8f2;
}
.login-story {
  position: relative; isolation: isolate; justify-content: space-between; gap: 60px;
  min-height: 500px; padding: clamp(28px, 4vw, 72px);
  border-radius: 24px; background: #07332b; color: #f5f8ec;
}
.login-story::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg,#072a21 4%,transparent 33%,transparent 78%,#072a21 97%),url("/workspace-art.webp") 64% 43% / auto 83% no-repeat,#072a21;
}
.login-story .brand-mark { color: #123e2c; background: #d4edb3; }
.login-story .brand small { color: #d6e7d8; }
.login-story > .login-intro:nth-child(2) { margin: 0; }
.login-intro h1 { font-size: clamp(38px,4.6vw,78px); font-weight: 650; line-height: 1.18; letter-spacing: -.045em; margin: 0; }
.login-story p { color: #deeadb; font-size: 16px; margin: 18px 0 0; }
.login-box { background: transparent; padding: 35px clamp(25px,5vw,75px); }
.login-form { width: min(365px,100%); }
.entry-symbol {
  display: grid; width: 47px; height: 47px; place-items: center; margin-bottom: 22px;
  border-radius: 15px; color: #255b3d; background: #e1ecd6; font-size: 22px;
}
.login-form h2 { color: #1c3929; font-size: clamp(29px,3vw,42px); line-height: 1.2; font-weight: 650; letter-spacing: -.045em; }
.login-form .muted { font-size: 15px; color: var(--muted); }
.login-form .fields { display: grid; gap: 0; margin-top: 35px; }
.login-form .fields label { display: block; color: #304b39; font-size: 14px; margin-bottom: 8px; font-weight: 600; }
.login-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cbd7c9; border-radius: 10px; background: #fff; color: var(--ink); }
.login-form input:focus { outline: 2px solid #508362; outline-offset: 1px; }
#login-account { margin-bottom: 20px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.password-toggle { position: absolute; right: 3px; top: 3px; bottom: 3px; padding: 0 13px; font-size: 13px; color: #275f40; border-radius: 7px; }
.login-form .error { margin: 10px 0 0; min-height: 17px; }
.login-form .primary { justify-content: space-between; min-height: 48px; padding: 0 17px; border-radius: 10px; font-size: 16px; }
.login-form .primary span { font-size: 21px; }
@media(max-width:760px) {
  .shell { display: block; }
  aside.side { position: fixed; inset: auto 0 0; z-index: 8; height: auto; display: block; padding: 4px 10px max(4px,env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); }
  .side nav { display: flex; justify-content: space-around; gap: 3px; }
  .side .brand,.side .nav-label,.side-footer,.nav-full,.top .crumb,.top time { display: none; }
  .nav-short { display: inline; }
  .nav-item { flex: 1; max-width: 128px; width: auto; margin: 0; padding: 8px 2px 5px; flex-direction: column; gap: 4px; font-size: 11px; line-height: 1.25; }
  .nav-item.active { color: #245739; background: #e5efde; }
  .top { height: 56px; padding: 0 16px; }
  .top .mobile-brand,.top .mobile-logout { display: flex; }
  .mobile-account { display: block; margin-left: auto; margin-right: 6px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; color: var(--muted); white-space: nowrap; }
  .top .brand { gap: 9px; }
  .top .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .top .brand-mark svg { width: 23px; height: 23px; }
  .top .brand strong { font-size: 15px; }
  .top .brand small { display: block; font-size: 9px; }
  .main { padding: 15px 14px calc(85px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .login { display: flex; flex-direction: column; gap: 0; padding: 14px; }
  .login-story { min-height: 202px; padding: 21px 23px; gap: 26px; border-radius: 18px; }
  .login-story::before { background: linear-gradient(90deg,rgba(5,36,27,.98) 6%,transparent 92%),url("/workspace-art.webp") 73% 56% / cover; }
  .login-story .brand { gap: 9px; }
  .login-story .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .login-story .brand-mark svg { width: 24px; height: 24px; }
  .login-story .brand strong { font-size: 17px; }
  .login-story .brand small { display: block; font-size: 10px; }
  .login-story h1 { font-size: 32px; }
  .login-story h1 br { display: none; }
  .login-story p { margin-top: 9px; font-size: 13px; }
  .login-box { padding: 33px 12px; }
  .entry-symbol { display: none; }
  .login-form .fields { margin-top: 25px; }
}
@media(prefers-reduced-motion: reduce) { .nav-item { transition: none; } }
