:root {
  --ink:#182c28; --muted:#526760; --line:#d6dfdb; --page:#f4f7f5;
  --green:#126852; --deep:#104f40; --light:#e4f3eb; --gold:#efd393;
  --radius:12px; font:15px/1.55 "Inter","Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink); background:var(--page); color-scheme:light;
}
* { box-sizing:border-box }
body { margin:0; min-width:300px }
button,input,select { font:inherit }
button { cursor:pointer; touch-action:manipulation }
button:disabled { cursor:not-allowed; opacity:.49 }
button,input,select { -webkit-tap-highlight-color:transparent }
:focus-visible { outline:3px solid #088871; outline-offset:3px }
h1,h2,h3,p { margin:0 }
h1,h2,h3 { line-height:1.3 }
h1 { font-size:clamp(31px,4vw,46px); letter-spacing:-.065em; font-weight:720 }
h2 { font-size:23px; letter-spacing:-.045em }
h3 { font-size:19px; letter-spacing:-.025em }
[hidden] { display:none!important }
.mono { font: .88em/1.5 "Cascadia Mono","Consolas","Microsoft YaHei",monospace; overflow-wrap:anywhere }
.muted,.hint { color:var(--muted) }
.hint,small { font-size:13px }
.spinner { display:inline-block; width:1.05em; height:1.05em; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; vertical-align:-.12em; animation:spin .75s linear infinite }
@keyframes spin { to {transform:rotate(360deg)} }
@media(prefers-reduced-motion:reduce) { .spinner { animation-duration:2s } }
.boot,.loading { display:flex; justify-content:center; align-items:center; gap:10px; padding:56px 18px; color:var(--muted) }
.boot { min-height:65vh }
.brand,.btn,.badge,.account,.action-row,.card-top,.card-actions,.nav-inner,.page-head,.toolbar,.dialog-head,.files-head { display:flex; align-items:center }
.brand { gap:10px; white-space:nowrap; font-weight:750; font-size:19px; letter-spacing:-.045em }
.mark { flex:none; display:inline-grid; place-items:center; position:relative }
.mark { width:33px; height:33px; background:var(--green); color:white; border-radius:9px }
.mark:before { content:""; width:7px; height:7px; border:solid currentColor; border-width:2px 2px 0 0; transform:translate(-4px,-1px) rotate(45deg) }
.mark:after { content:""; position:absolute; width:8px; height:2px; background:currentColor; transform:translate(5px,5px) }
.btn,.icon-btn,.seg button,.link-btn { border:0; background:none; color:inherit }
.btn { display:inline-flex; justify-content:center; gap:8px; font-size:14px; font-weight:620; border-radius:8px; min-height:40px; padding:8px 15px; white-space:nowrap }
.primary { background:var(--green); color:#fff; border:1px solid var(--green) }
.primary:hover:enabled { background:var(--deep) }
.secondary { background:white; border:1px solid var(--line) }
.secondary:hover:enabled,.icon-btn:hover:enabled,.seg button:hover:enabled { background:#eef4f0 }
.danger { background:#9b3732; color:white }
.link-btn { color:var(--green); font-weight:620; font-size:13px; padding:5px; border-radius:4px }
.link-btn:hover:enabled { text-decoration:underline }
.icon-btn { display:grid; place-items:center; border-radius:8px; width:36px; height:36px; font-size:24px; flex:none }
.action-row { justify-content:flex-end; gap:9px; flex-wrap:wrap }
.error { color:#8c2924; padding:10px 13px; background:#fff0eb; border-radius:6px; overflow-wrap:anywhere; font-size:14px }
.field { display:grid; gap:6px; font-size:14px; font-weight:620 }
.field input,.field select,.rename-input { width:100%; color:var(--ink); background:white; border:1px solid #b9c9c1; border-radius:7px; min-height:41px; padding:8px 11px; font-weight:400 }
input::placeholder { color:#72827b; opacity:1 }
.stack { display:grid; gap:17px }
.login-wrap { min-height:100vh; display:grid; place-content:center; justify-items:center; padding:34px 20px; background:radial-gradient(ellipse at 10% 3%,#e4eee7,transparent 55%),var(--page) }
.login-box { width:min(920px,calc(100vw - 40px)); display:grid; grid-template-columns:1fr 1fr; overflow:hidden; border:1px solid #d1dcd5; border-radius:19px; box-shadow:0 20px 60px #193c270d; background:#fff }
.login-art { display:flex; flex-direction:column; justify-content:space-between; gap:24px; min-height:484px; padding:34px; color:#fff; position:relative; overflow:hidden; background-color:#143f35; background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px); background-size:32px 32px }
.login-art .mark { color:#134838; background:#c7ebce }
.rack { align-self:center; margin:auto 0; width:min(100%,224px); display:grid; gap:9px; transform:skewY(-8deg) }
.rack i { display:flex; justify-content:space-between; align-items:center; height:42px; padding:0 18px; border:1px solid #98c7af; border-radius:7px; background:linear-gradient(110deg,#3b6c58,#244c40); box-shadow:5px 6px #0c3028 }
.rack i:before { content:""; width:6px; height:6px; border-radius:50%; background:#b3e3ab; box-shadow:12px 0 #73a389 }
.rack i:after { content:""; width:46px; height:10px; background:repeating-linear-gradient(90deg,#9bc0ad 0 2px,transparent 2px 6px) }
.login-form { display:flex; flex-direction:column; justify-content:center; gap:24px; padding:44px }
.login-form h1 { font-size:32px }
.login-form .btn { width:100%; margin-top:4px }
.topbar { background:white; border-bottom:1px solid var(--line) }
.nav-inner,.workspace { width:min(1232px,100%); margin:auto; padding-inline:clamp(18px,4.3vw,68px) }
.nav-inner { min-height:70px; gap:clamp(18px,5vw,74px) }
.account { margin-left:auto; gap:12px; font-size:13px; color:var(--muted) }
.account .link-btn { font-weight:500; color:var(--muted) }
.workspace { padding-top:clamp(30px,5.5vw,72px); padding-bottom:60px }
.page-head,.toolbar,.dialog-head,.files-head { justify-content:space-between; gap:15px }
dialog { color:var(--ink); border:1px solid var(--line); border-radius:15px; width:min(490px,calc(100% - 28px)); max-height:90vh; max-height:90dvh; padding:0; box-shadow:0 22px 96px #0d2d2540 }
dialog::backdrop { background:#102a2380 }
dialog.wide { width:min(1020px,calc(100% - 28px)) }
.dialog-head { padding:21px 24px 15px; border-bottom:1px solid var(--line); align-items:start }
.dialog-head p { color:var(--green); font-size:12px; font-weight:620; overflow-wrap:anywhere; margin-bottom:5px }
.dialog-head h2 { overflow-wrap:anywhere }
#panel-body { padding:22px 24px }
.dialog-error { margin:0 24px 20px }
#toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); max-width:90vw; overflow-wrap:anywhere; background:#193c32; color:#fff; border-radius:9px; font-size:14px; box-shadow:0 4px 20px #1f392b20; z-index:5 }
#toast:not(:empty) { padding:10px 16px }
.sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.brand-link,.breadcrumb a,.module-card { color:inherit; text-decoration:none }
.brand-link { border-radius:8px }
.workspace h1:focus { outline:none }
.catalog-section { margin-top:28px }
.catalog-section h2 { display:flex; align-items:center; gap:9px; margin-bottom:12px; font-size:15px; letter-spacing:0 }
.catalog-section h2 span { display:inline-grid; place-items:center; min-width:21px; height:21px; border:1px solid var(--line); border-radius:6px; font:12px/1 monospace; color:var(--muted) }
.module-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
.module-card,.planned { display:flex; align-items:center; gap:18px; border:1px solid var(--line); border-radius:var(--radius); padding:22px; background:white }
.module-card { min-width:0 }
.module-card:hover { border-color:#80a995; background:#f8fcf9 }
.module-card h3 { font-size:19px }
.module-card p,.planned .muted { margin-top:5px; font-size:14px; color:var(--muted) }
.module-mark { flex:none; display:grid; place-items:center; width:46px; height:46px; color:var(--green); background:#edf4ef; border:1px solid #d6e3d9; border-radius:9px; font:600 14px/1 "Cascadia Mono",Consolas,monospace }
.module-arrow { margin-left:auto; color:var(--green); font-size:21px }
.module-card.available { grid-column:1/-1; padding-block:28px; color:white; border-color:var(--deep); background:var(--deep) }
.module-card.available:hover { background:#174638 }
.available .module-mark { background:#285e4b; border-color:#5d8d74; color:#d2edbf }
.available p,.available .module-arrow { color:#d3e6d8 }
.breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:var(--muted); margin-bottom:21px; font-size:14px }
.breadcrumb a { color:var(--green); text-decoration:underline; text-underline-offset:3px }
.planned { padding:clamp(22px,4vw,44px); align-items:flex-start }
.planned h1 { font-size:clamp(27px,4vw,35px) }
.planned-status { margin-bottom:5px; font-size:13px; color:var(--muted) }
@media (max-width:730px) {
  .module-grid { grid-template-columns:1fr }
  .login-art { padding:23px; min-height:425px }
  .login-form { padding:28px }
}
@media (max-width:560px) {
  .login-box { grid-template-columns:1fr; max-width:400px }
  .login-art { min-height:105px; flex-direction:row; align-items:center }
  .rack { display:none }
  .login-form { padding:26px 23px 30px }
  .nav-inner { min-height:60px; gap:12px }
  .account { gap:6px }
  .module-card,.planned { gap:12px; padding:16px }
  .module-arrow { font-size:18px }
  #panel-body,.dialog-head { padding:16px }
}
