:root{--brand: #11b886;--brand-dark: #0e9b71;--brand-soft: #e6f7f1;--brand-ink: #0b3b2e;--ink: #0b1f33;--ink-2: #122a42;--ink-line: rgba(255,255,255,.08);--ink-text: #c4d0de;--ink-text-dim: #8295ab;--canvas: #f5f7fa;--surface: #ffffff;--border: #e6ebf1;--border-strong:#d6deea;--text: #1f2d3d;--text-2: #44566c;--muted: #6b7a90;--link: #2f6fed;--green:#0f9d6b;--green-bg:#e7f6ef;--purple:#7c4dff;--purple-bg:#efeaff;--amber:#b7791f;--amber-bg:#fbf2e2;--blue:#2563eb;--blue-bg:#e8f0fe;--slate:#475569;--slate-bg:#eef1f5;--radius: 12px;--radius-sm:8px;--radius-pill:999px;--shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);--shadow-md: 0 4px 12px rgba(16,24,40,.06), 0 2px 4px rgba(16,24,40,.04);--sidebar-w: 248px}*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--canvas);color:var(--text);font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline;background:none;color:var(--link)}h1,h2,h3,h4{color:var(--text);margin:0;font-weight:650;letter-spacing:-0.01em}.app{display:grid;grid-template-columns:var(--sidebar-w) 1fr;min-height:100vh}.sidebar{background:var(--ink);color:var(--ink-text);display:flex;flex-direction:column;padding:22px 16px;position:sticky;top:0;height:100vh}.sidebar__brand{display:flex;align-items:center;gap:10px;padding:4px 8px 22px;font-size:20px;font-weight:700;color:#fff;letter-spacing:-0.02em}.sidebar__brand .dot{width:26px;height:26px;border-radius:8px;background:var(--brand);display:grid;place-items:center;color:#04231a;font-weight:800;font-size:15px}.sidebar__label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-text-dim);padding:14px 10px 6px;font-weight:600}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius-sm);color:var(--ink-text);font-weight:550;margin-bottom:2px}.nav-item:hover{background:var(--ink-2);color:#fff;text-decoration:none}.nav-item.is-active{background:var(--brand);color:#04231a}.nav-item.is-active svg{stroke:#04231a}.nav-item svg{width:18px;height:18px;stroke:currentColor;flex:none}.sidebar__foot{margin-top:auto;padding-top:16px;border-top:1px solid var(--ink-line)}.sidebar__user{display:flex;align-items:center;gap:10px;padding:8px 6px}.sidebar__user .meta{min-width:0}.sidebar__user .name{color:#fff;font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar__user .sub{color:var(--ink-text-dim);font-size:12px}.main{display:flex;flex-direction:column;min-width:0}.topbar{height:64px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:16px;padding:0 28px;position:sticky;top:0;z-index:5}.topbar__title{font-size:16px;font-weight:650}.topbar__spacer{flex:1}.search{display:flex;align-items:center;gap:8px;background:var(--canvas);border:1px solid var(--border);border-radius:var(--radius-pill);padding:8px 14px;width:280px;color:var(--muted)}.search input{border:0;background:rgba(0,0,0,0);outline:none;width:100%;font-size:13px;color:var(--text)}.search svg{width:16px;height:16px;stroke:var(--muted);flex:none}.content{padding:28px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}.page-head h1{font-size:22px}.page-head .sub{color:var(--muted);margin-top:4px}.stats{display:grid;grid-template-columns:repeat(4, 1fr);gap:16px;margin-bottom:24px}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 18px;box-shadow:var(--shadow-sm)}.stat .label{color:var(--muted);font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.stat .value{font-size:26px;font-weight:700;margin-top:6px;letter-spacing:-0.02em}.stat .trend{font-size:12px;color:var(--green);margin-top:4px;font-weight:600}.stat .ico{float:right;width:38px;height:38px;border-radius:10px;background:var(--brand-soft);display:grid;place-items:center}.stat .ico svg{width:18px;height:18px;stroke:var(--brand-dark)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden}.card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}.card__head h3{font-size:15px}.card__body{padding:20px}.table-wrap{width:100%;overflow-x:auto}table.data{width:100%;border-collapse:collapse;font-size:13.5px}table.data thead th{text-align:left;padding:12px 16px;background:#fafbfd;color:var(--muted);font-weight:600;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--border);white-space:nowrap}table.data tbody td{padding:14px 16px;border-bottom:1px solid var(--border);vertical-align:middle}table.data tbody tr:last-child td{border-bottom:0}table.data tbody tr{background:var(--surface);transition:background .12s}table.data tbody tr:hover{background:#f9fbfd}.cell-name{font-weight:600;color:var(--text)}.cell-sub{color:var(--muted);font-size:12.5px}.person{display:flex;align-items:center;gap:12px}.person .who{min-width:0}.person .who .nm{font-weight:600;color:var(--text);white-space:nowrap}.person .who .em{color:var(--muted);font-size:12.5px}.avatar,.avatar-fallback{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;margin:0;border:1px solid var(--border)}.avatar-fallback{display:grid;place-items:center;background:var(--brand-soft);color:var(--brand-ink);font-weight:700;font-size:13px;border:0}.avatar-lg,.avatar-fallback.avatar-lg{width:84px;height:84px;font-size:30px}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:var(--radius-pill);font-size:12px;font-weight:600;line-height:1.6}.badge--green{background:var(--green-bg);color:var(--green)}.badge--purple{background:var(--purple-bg);color:var(--purple)}.badge--amber{background:var(--amber-bg);color:var(--amber)}.badge--blue{background:var(--blue-bg);color:var(--blue)}.badge--slate{background:var(--slate-bg);color:var(--slate)}.badge .dot{width:6px;height:6px;border-radius:50%;background:currentColor}.social{display:inline-flex;gap:8px}.social a{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;background:var(--canvas);border:1px solid var(--border);color:var(--muted)}.social a:hover{color:var(--text);border-color:var(--border-strong);text-decoration:none}.social svg{width:15px;height:15px}.muted{color:var(--muted)}.btn{display:inline-flex;align-items:center;gap:8px;justify-content:center;padding:9px 16px;border-radius:var(--radius-sm);font-size:13.5px;font-weight:600;cursor:pointer;border:1px solid rgba(0,0,0,0);transition:all .12s;line-height:1}.btn svg{width:16px;height:16px}.btn--primary{background:var(--brand);color:#04231a}.btn--primary:hover{background:var(--brand-dark);color:#fff;text-decoration:none}.btn--ghost{background:var(--surface);color:var(--text-2);border-color:var(--border-strong)}.btn--ghost:hover{background:var(--canvas);text-decoration:none;color:var(--text)}.btn--danger{background:var(--surface);color:#c0392b;border-color:#f0c8c2}.btn--danger:hover{background:#fdecea;text-decoration:none}.btn--sm{padding:6px 12px;font-size:12.5px}.btn--link{background:none;border:0;color:var(--link);padding:0}.row-actions{display:inline-flex;gap:6px}.row-actions form{display:inline;margin:0}.form-card{max-width:620px}.form-grid{display:grid;gap:18px}.field{display:flex;flex-direction:column;gap:7px;margin:0}.field label{font-weight:600;font-size:13px;color:var(--text-2);display:block}.field .hint{color:var(--muted);font-size:12px;font-weight:400}.field input[type=text],.field input[type=email],.field input[type=password],.field select,input[type=text],input[type=email],input[type=password],select{width:100%;padding:10px 12px;font-size:14px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);outline:none;transition:border .12s,box-shadow .12s;font-family:inherit}.field input:focus,.field select:focus,input:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}input[type=file]{width:100%;padding:9px 12px;border:1px dashed var(--border-strong);border-radius:var(--radius-sm);background:var(--canvas);font-size:13px;cursor:pointer}.actions{display:flex;gap:10px;margin-top:6px}.field-check{display:flex;align-items:center;gap:8px}.field-check input{width:auto}#error_explanation,.error-box{border:1px solid #f1c9c4;background:#fdeeec;color:#a3372c;border-radius:var(--radius-sm);padding:14px 16px;margin-bottom:18px}#error_explanation h2{font-size:13px;color:#a3372c;margin-bottom:8px;background:none;padding:0}#error_explanation ul{margin:0;padding-left:18px}#error_explanation li{font-size:13px}.field_with_errors{display:inline}.field_with_errors input,.field_with_errors select{border-color:#e08b80}.flash{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:var(--radius-sm);margin:0 0 18px;font-weight:550;font-size:13.5px}.flash svg{width:18px;height:18px;flex:none}.flash--notice{background:var(--brand-soft);color:var(--brand-ink)}.flash--alert{background:#fdeeec;color:#a3372c}.profile-grid{display:grid;grid-template-columns:320px 1fr;gap:24px;align-items:start}.profile-card{text-align:center}.profile-card .name{font-size:19px;font-weight:700;margin-top:14px}.profile-card .role{color:var(--muted);margin-top:2px}.profile-card .pills{display:flex;gap:8px;justify-content:center;margin-top:14px;flex-wrap:wrap}.profile-card .cta{margin-top:18px;display:flex;gap:8px;justify-content:center}.def-list{display:grid;grid-template-columns:150px 1fr;gap:0}.def-list dt{color:var(--muted);font-weight:600;font-size:12.5px;padding:13px 0;border-bottom:1px solid var(--border)}.def-list dd{margin:0;padding:13px 0;border-bottom:1px solid var(--border);color:var(--text)}.def-list>:nth-last-child(1),.def-list>:nth-last-child(2){border-bottom:0}.bio{color:var(--text-2);line-height:1.65}.empty{text-align:center;padding:56px 20px;color:var(--muted)}.empty svg{width:40px;height:40px;stroke:var(--border-strong);margin-bottom:12px}.empty h3{font-size:16px;margin-bottom:6px}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth__aside{background:linear-gradient(160deg, var(--ink) 0%, #103b54 100%);color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between}.auth__brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700}.auth__brand .dot{width:30px;height:30px;border-radius:9px;background:var(--brand);display:grid;place-items:center;color:#04231a;font-weight:800}.auth__pitch h2{color:#fff;font-size:30px;line-height:1.2;letter-spacing:-0.02em;max-width:420px}.auth__pitch p{color:var(--ink-text);margin-top:14px;max-width:400px}.auth__points{list-style:none;padding:0;margin:22px 0 0}.auth__points li{display:flex;align-items:center;gap:10px;color:var(--ink-text);margin-bottom:12px}.auth__points svg{width:18px;height:18px;stroke:var(--brand);flex:none}.auth__foot{color:var(--ink-text-dim);font-size:13px}.auth__main{display:grid;place-items:center;padding:40px;background:var(--surface)}.auth__form{width:100%;max-width:360px}.auth__form h1{font-size:24px;margin-bottom:6px}.auth__form .sub{color:var(--muted);margin-bottom:26px}.auth__form .field{margin-bottom:16px}.auth__form .btn{width:100%}.auth__links{margin-top:20px;font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:8px;text-align:center}.centered-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:48px 20px}.centered-page .brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;margin-bottom:22px}.centered-page .brand .dot{width:28px;height:28px;border-radius:8px;background:var(--brand);display:grid;place-items:center;color:#04231a;font-weight:800}.centered-page .panel{width:100%;max-width:520px}.danger-zone{border:1px solid #f1c9c4;background:#fdf6f5;border-radius:var(--radius);padding:18px 20px;margin-top:24px}.danger-zone h3{font-size:14px;color:#a3372c;margin-bottom:4px}.danger-zone p{color:var(--text-2);font-size:13px;margin:0 0 12px}@media(max-width: 980px){.app{grid-template-columns:1fr}.sidebar{display:none}.auth{grid-template-columns:1fr}.auth__aside{display:none}.stats{grid-template-columns:repeat(2, 1fr)}.profile-grid{grid-template-columns:1fr}}
