:root{--green:#0d6e63;--green-d:#0a554c;--green-l:#13988b;--gold:#c79a3a;--gold-s:#e7d3a1;
--cream:#f3f8f6;--ink:#15302b;--mut:#5f7670;--line:#d9e6e1;--bg:#eef4f2;--white:#fff;--danger:#c0392b;}
*{box-sizing:border-box}
body{margin:0;font-family:Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.5}
a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:Georgia,'Times New Roman',serif;color:var(--green-d);margin:.2em 0 .5em}
.serif{font-family:Georgia,serif}
.muted{color:var(--mut)}.small{font-size:.85rem}
/* layout */
.shell{display:flex;min-height:100vh}
.sidebar{width:248px;background:linear-gradient(180deg,var(--green-d),var(--green));color:#fff;flex:0 0 248px;position:sticky;top:0;height:100vh;overflow:auto}
.brand{display:flex;align-items:center;gap:12px;padding:18px 18px 14px;border-bottom:1px solid rgba(255,255,255,.12)}
.brand img{width:42px;height:42px;border-radius:10px;background:#fff;object-fit:contain}
.brand .logo-fallback{width:42px;height:42px;border-radius:10px;background:var(--gold);display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-weight:bold;color:var(--green-d);font-size:20px}
.brand b{font-family:Georgia,serif;font-size:1.02rem;line-height:1.15}.brand span{font-size:.72rem;opacity:.8}
.nav{padding:10px 10px 30px}.nav .grp{font-size:.7rem;text-transform:uppercase;letter-spacing:1px;opacity:.6;margin:16px 12px 6px}
.nav a{display:flex;align-items:center;gap:10px;color:#eaf5f1;padding:10px 12px;border-radius:9px;font-size:.92rem}
.nav a:hover{background:rgba(255,255,255,.10);text-decoration:none}
.nav a.active{background:#fff;color:var(--green-d);font-weight:600}
.nav a .ic{width:18px;text-align:center}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{background:#fff;border-bottom:1px solid var(--line);padding:12px 24px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:5}
.topbar .who{display:flex;align-items:center;gap:12px}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:bold}
.content{padding:24px;max-width:1180px;width:100%;margin:0 auto}
.pagehead{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:18px}
/* cards */
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 6px 18px rgba(13,110,99,.05);margin-bottom:18px}
.grid{display:grid;gap:16px}.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.g2,.g3,.g4{grid-template-columns:1fr}.sidebar{position:fixed;left:-260px;z-index:50;transition:.2s}.sidebar.open{left:0}}
.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;text-align:center}
.stat .v{font-size:2rem;font-weight:bold;font-family:Georgia,serif}.stat .l{color:var(--mut);font-size:.85rem}
.kpi{display:flex;flex-direction:column;gap:4px}
.ring{--p:0;width:130px;height:130px;border-radius:50%;background:conic-gradient(var(--green) calc(var(--p)*1%),#e9efed 0);display:flex;align-items:center;justify-content:center;margin:0 auto}
.ring .in{width:100px;height:100px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring .in b{font-size:1.7rem;font-family:Georgia,serif}
.badge{display:inline-block;padding:4px 12px;border-radius:999px;font-size:.78rem;font-weight:700;color:#fff}
.bar{height:10px;border-radius:6px;background:#e9efed;overflow:hidden}.bar>i{display:block;height:100%;background:linear-gradient(90deg,var(--green-l),var(--green))}
/* table */
table.data{width:100%;border-collapse:collapse;font-size:.9rem}
table.data th,table.data td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
table.data th{background:#f3f8f6;color:var(--green-d);font-size:.78rem;text-transform:uppercase;letter-spacing:.5px}
table.data tr:hover td{background:#fafdfc}
/* forms */
label{display:block;font-size:.82rem;color:var(--mut);margin:.5rem 0 .25rem;font-weight:600}
input,select,textarea{width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:9px;font:inherit;background:#fff}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(13,110,99,.12)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
@media(max-width:700px){.row2,.row3{grid-template-columns:1fr}}
.btn{display:inline-flex;align-items:center;gap:7px;padding:10px 16px;border:none;border-radius:9px;font:inherit;font-weight:600;cursor:pointer;background:#e8f0ee;color:var(--green-d)}
.btn:hover{text-decoration:none;filter:brightness(.98)}
.btn-primary{background:linear-gradient(135deg,var(--green),var(--green-d));color:#fff}
.btn-gold{background:linear-gradient(135deg,var(--gold),#a9802b);color:#fff}
.btn-ghost{background:#fff;border:1.5px solid var(--line);color:var(--green-d)}
.btn-danger{background:#fdecea;color:var(--danger)}.btn-sm{padding:6px 11px;font-size:.82rem}
.alert{padding:12px 16px;border-radius:10px;margin-bottom:16px;font-size:.92rem}
.alert-success{background:#e7f4ef;color:#0a554c;border:1px solid #b8e0d3}
.alert-error{background:#fdecea;color:#a5281b;border:1px solid #f3c4bd}
.tag{font-size:.72rem;padding:2px 9px;border-radius:6px;background:#eef4f2;color:var(--mut)}
.score-input{max-width:90px;text-align:center}
.aspect-head{display:flex;justify-content:space-between;align-items:center;border-left:5px solid var(--gold);padding:8px 14px;background:#f7faf9;border-radius:8px;margin:14px 0 8px}
hr{border:none;border-top:1px solid var(--line);margin:16px 0}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--green-d),var(--green));padding:20px}
.login-card{background:#fff;border-radius:18px;max-width:410px;width:100%;padding:36px;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.login-card .logo{width:64px;height:64px;border-radius:16px;background:var(--gold);display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-size:30px;color:var(--green-d);margin:0 auto 14px}
.divider{display:flex;align-items:center;gap:12px;color:var(--mut);font-size:.8rem;margin:16px 0}.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.menu-toggle{display:none;background:none;border:none;font-size:1.4rem;cursor:pointer;color:var(--green-d)}
@media(max-width:900px){.menu-toggle{display:block}}
