*{box-sizing:border-box}
body{margin:0;background:#F6F7F4;color:#0E1116;font-family:Inter,system-ui,sans-serif;line-height:1.5}
a{color:#0E1116}
h1,h2,h3{font-family:'Space Grotesk',sans-serif;letter-spacing:-0.01em;margin:0}
.brand{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.brand .mark{width:32px;height:32px;border-radius:8px;background:#C6F432;display:flex;align-items:center;justify-content:center;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:18px;color:#0E1116}
.brand .name{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:20px}
label{display:block;font-size:14px;font-weight:500;color:#3A414C;margin:0 0 6px}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],input[type=tel],input[type=date],textarea{width:100%;font:inherit;font-size:15px;padding:12px 14px;border:1px solid #D5D9DF;border-radius:10px;background:#fff;color:#0E1116;min-height:44px}
input:focus,textarea:focus{outline:2px solid #0E1116;outline-offset:1px}
textarea{min-height:88px;resize:vertical}
.field{margin:0 0 16px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#3A414C;margin:0 0 20px}
.check input{margin-top:3px;width:18px;height:18px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-weight:600;font-size:15px;border:none;border-radius:12px;padding:12px 20px;min-height:44px;cursor:pointer;text-decoration:none;background:#0E1116;color:#fff}
.btn:hover{background:#262C35;color:#fff}
.btn.lime{background:#C6F432;color:#0E1116}
.btn.lime:hover{background:#B5E21F}
.btn.ghost{background:#fff;color:#0E1116;border:1px solid #D5D9DF}
.btn.ghost:hover{background:#F0F2F4}
.btn.small{font-size:14px;padding:8px 14px;min-height:36px}
.btn[disabled]{opacity:.6;cursor:not-allowed}
.btn.full{width:100%}
.error{background:#FDECEC;color:#8A1C1C;border-radius:10px;padding:10px 14px;font-size:14px;margin:0 0 16px}
.notice{background:#fff;border:1px solid #E4E7EB;border-radius:14px;padding:16px 18px;font-size:15px;color:#3A414C}
.muted{color:#5B616B}
.hidden{display:none!important}

/* Auth */
.auth{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 20px}
.auth .card{width:100%;max-width:440px;background:#fff;border:1px solid #E4E7EB;border-radius:20px;padding:36px}
.auth h1{font-size:30px;margin:24px 0 6px}
.auth .sub{color:#5B616B;margin:0 0 24px}
.auth .alt{margin-top:20px;font-size:14px;color:#5B616B;text-align:center}

/* Dashboard */
.topbar{background:#0E1116;color:#fff}
.topbar .inner{max-width:1200px;margin:0 auto;padding:16px 24px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.topbar .who{display:flex;gap:14px;align-items:center;font-size:14px;color:#C9CFD8}
.layout{max-width:1200px;margin:0 auto;padding:28px 24px 64px;display:flex;flex-wrap:wrap;gap:28px}
.side{flex:1 1 200px;max-width:240px;display:flex;flex-direction:column;gap:4px}
.side button{all:unset;cursor:pointer;padding:12px 14px;border-radius:10px;font-size:15px;font-weight:500;color:#3A414C;min-height:20px}
.side button:hover{background:#ECEEF0}
.side button[aria-current=page]{background:#0E1116;color:#fff}
.side button:focus-visible{outline:2px solid #0E1116}
.main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:20px}
.panel{background:#fff;border:1px solid #E4E7EB;border-radius:18px;padding:28px}
.panel h2{font-size:24px;margin:0 0 6px}
.panel .lead{color:#5B616B;margin:0 0 20px}
.stats{display:flex;flex-wrap:wrap;gap:16px}
.stat{flex:1 1 200px;background:#F6F7F4;border-radius:14px;padding:18px}
.stat .k{font-size:13px;color:#5B616B;text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.stat .v{font-family:'Space Grotesk',sans-serif;font-size:26px;font-weight:700;margin-top:4px}
.badge{display:inline-block;font-size:13px;font-weight:600;padding:4px 10px;border-radius:999px;background:#ECEEF0;color:#3A414C}
.badge.ok{background:#E3F7C2;color:#2E4A00}
.badge.warn{background:#FFF1CC;color:#6B4A00}
.links{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.link{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;border:1px solid #E4E7EB;border-radius:12px;padding:14px 16px}
.link .t{font-weight:600}
.link .u{font-size:13px;color:#5B616B;word-break:break-all}
.row{display:flex;flex-wrap:wrap;gap:16px}
.row>.field{flex:1 1 220px}
.swatch{width:44px;height:44px;border-radius:10px;border:1px solid #D5D9DF;padding:0;cursor:pointer}
input[type=date]{appearance:none;-webkit-appearance:none;line-height:1.2}
input[type=file]{width:100%;font:inherit;font-size:14px;padding:10px;border:1px dashed #D5D9DF;border-radius:10px;background:#FAFAF8}
