:root{--brand:#8dff00;--brand-hover:#7be600;--brand-pressed:#69c900;--brand-soft:#f1ffdf;--bg:#f6f7f9;--surface:#fff;--surface2:#f8fafb;--text:#202124;--muted:#6b7280;--border:#e3e7eb;--danger:#d14343;--warning:#b7791f;--success:#16865c;--sidebar:252px;--radius:12px}*{box-sizing:border-box;font-family:'DM Sans','Roboto',sans-serif!important}html[data-theme=dark]{--bg:#111617;--surface:#182022;--surface2:#202a2c;--text:#f3f7f7;--muted:#9aa7a8;--border:#2c393b;--brand-soft:#263b10}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--surface);border-right:1px solid var(--border);z-index:30;display:flex;flex-direction:column}.brand{height:72px;padding:0 20px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--border)}.brand>span{width:34px;height:34px;border-radius:9px;background:var(--brand);color:#111;display:grid;place-items:center;font-weight:800}.brand strong{font-size:17px}.brand button{margin-left:auto}.sidebar nav{padding:14px 12px;display:grid;gap:4px;overflow:auto}.sidebar nav a{height:42px;padding:0 12px;border-radius:8px;display:flex;align-items:center;gap:12px;color:var(--muted);font-weight:unset}.sidebar nav a i{font-size:19px}.sidebar nav a:hover{background:var(--surface2);color:var(--text)}.sidebar nav a.active{background:var(--brand-soft);color:var(--brand)}.sidebar-foot{margin-top:auto;padding:14px;border-top:1px solid var(--border)}.user-mini{display:flex;align-items:center;gap:10px}.user-mini>span,.avatar{width:36px;height:36px;border-radius:9px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:700}.user-mini div{display:grid}.user-mini small{font-size:11px;color:var(--muted)}.shell{margin-left:var(--sidebar);min-height:100vh}.topbar{height:72px;padding:0 28px;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between}.global-search{width:min(450px,45vw);height:40px;padding:0 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface2);display:flex;align-items:center;gap:9px;color:var(--muted)}.global-search input{border:0;outline:0;background:transparent;color:var(--text);flex:1}.global-search kbd{font-size:11px;border:1px solid var(--border);border-radius:5px;padding:3px 6px}.top-actions{display:flex;align-items:center;gap:9px}.icon-btn{width:38px;height:38px;border:1px solid var(--border);background:var(--surface);border-radius:8px;color:var(--text);display:inline-grid;place-items:center;cursor:pointer;position:relative}.icon-btn i{font-size:19px}.icon-btn .dot{position:absolute;right:8px;top:7px;width:7px;height:7px;background:#e15353;border:2px solid var(--surface);border-radius:50%}.theme-toggle{height:38px;padding:0 8px;border:1px solid var(--border);background:var(--surface);border-radius:9px;display:flex;align-items:center;gap:6px;color:var(--muted)}.theme-toggle span{width:28px;height:16px;border-radius:999px;background:var(--border);position:relative}.theme-toggle span:after{content:'';width:12px;height:12px;border-radius:50%;background:var(--surface);position:absolute;top:2px;left:2px;transition:.2s}.theme-toggle i{font-size:15px}.theme-toggle html[data-theme=dark] span:after{transform:translateX(12px)}html[data-theme=dark] .theme-toggle span:after{transform:translateX(12px)}.profile-btn{height:42px;padding:0 8px;border:0;background:transparent;display:flex;align-items:center;gap:9px;color:var(--text)}.profile-btn>span{width:32px;height:32px;border-radius:50%;background:var(--brand);color:#111;display:grid;place-items:center;font-size:11px;font-weight:700}.profile-btn div{display:grid;text-align:left}.profile-btn small{font-size:11px;color:var(--muted)}.content{max-width:1440px;margin:auto;padding:30px 32px 60px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.crumb{color:var(--muted);font-size:12px;display:flex;align-items:center;gap:3px}.page-head h1{font-size:28px;line-height:1.2;margin:7px 0 4px}.page-head p{margin:0;color:var(--muted)}.btn{height:40px;padding:0 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.btn:hover{background:var(--surface2)}.btn.primary{background:var(--brand);border-color:var(--brand);color:#111}.btn.primary:hover{background:var(--brand-hover)}.btn.small{height:32px;padding:0 10px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.stat-card,.card,.project-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.stat-card{padding:20px;display:flex;align-items:flex-start;gap:14px}.stat-card>span,.type-icon,.project-icon{width:42px;height:42px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}.stat-card>span i{font-size:21px}.stat-card div{display:grid}.stat-card small{color:var(--muted)}.stat-card strong{font-size:24px;margin:4px 0}.stat-card em{font-style:normal;font-size:11px;color:var(--muted)}.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.card{overflow:hidden}.card-head{padding:18px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.card-head h2{font-size:16px;margin:0}.card-head p{font-size:12px;color:var(--muted);margin:4px 0 0}.card-head a{color:var(--brand);font-weight:650;font-size:12px}.list>div{min-height:68px;padding:12px 20px;border-top:1px solid var(--border);display:flex;align-items:center;gap:12px}.list>div:first-child{border-top:0}.list>div>div{display:grid;flex:1}.list small,.entity small,td small{color:var(--muted);font-size:11px}.date-pill{padding:5px 8px;border-radius:7px;background:var(--surface2);font-size:11px}.danger-text{color:var(--danger)!important}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:800px}th,td{padding:14px 18px;border-bottom:1px solid var(--border);text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:var(--surface2)}tbody tr:last-child td{border-bottom:0}.badge{display:inline-flex;height:24px;padding:0 9px;border-radius:999px;align-items:center;background:var(--surface2);font-size:11px;font-weight:700}.badge.active,.badge.paid,.badge.completed{background:#e7f7ef;color:var(--success)}.badge.in_progress,.badge.partial{background:#e9f2ff;color:#356cb6}.badge.warning,.badge.planned{background:#fff5db;color:var(--warning)}.badge.urgent,.badge.overdue{background:#fdeaea;color:var(--danger)}.toolbar{display:flex;justify-content:flex-end;gap:8px;margin-bottom:14px}.search{width:260px;height:40px;padding:0 11px;border:1px solid var(--border);border-radius:8px;background:var(--surface);display:flex;align-items:center;gap:8px}.search input{border:0;outline:0;background:transparent;color:var(--text);width:100%}.entity{display:flex;align-items:center;gap:10px}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.project-card{padding:20px}.project-top{display:flex;justify-content:space-between}.project-card h3{margin:16px 0 4px}.project-card p{margin:0 0 18px;color:var(--muted)}.progress{height:7px;background:var(--surface2);border-radius:99px;overflow:hidden;margin-bottom:15px}.progress span{display:block;height:100%;background:var(--brand)}.project-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:16px}.renewal-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.renewal-summary>div{padding:18px;border:1px solid var(--border);border-radius:10px;background:var(--surface);display:grid}.renewal-summary strong{font-size:22px}.renewal-summary span{color:var(--muted);font-size:12px}.switch input{display:none}.switch span{display:block;width:38px;height:22px;padding:2px;border-radius:99px;background:var(--border)}.switch span:after{content:'';display:block;width:18px;height:18px;border-radius:50%;background:#fff;transition:.2s}.switch input:checked+span{background:var(--brand)}.switch input:checked+span:after{transform:translateX(16px)}.notification-list>div,.settings>div{padding:16px 20px;border-top:1px solid var(--border);display:flex;align-items:center;gap:13px}.notification-list>div:first-child,.settings>div:first-child{border-top:0}.notification-list>div>div,.settings>div>div{flex:1}.notification-list p,.settings p{margin:3px 0 0;color:var(--muted);font-size:12px}.notice-icon{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--surface2)}.notice-icon.warning{color:var(--warning)}.notice-icon.danger{color:var(--danger)}.notice-icon.success{color:var(--success)}.empty{min-height:380px;padding:40px;display:grid;place-items:center;align-content:center;text-align:center}.empty>i{font-size:48px;color:var(--brand)}.empty h2{margin:15px 0 5px}.empty p{max-width:550px;color:var(--muted)}.db-warning{padding:14px 16px;margin-bottom:18px;border:1px solid #f0c36a;background:#fff8e3;color:#795b15;border-radius:9px;display:flex;gap:12px}.db-warning i{font-size:24px}.db-warning p{margin:4px 0 0}.toast{position:fixed;right:24px;top:86px;z-index:100;padding:12px 16px;border-radius:9px;background:#17210d;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.2)}.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:100;background:rgba(9,15,16,.58);display:grid;place-items:center;padding:20px}.modal-card{width:min(720px,100%);max-height:88vh;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px;position:relative}.modal-close{position:absolute;right:16px;top:16px}.modal-card h2{margin-top:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{display:grid;gap:6px;font-size:12px;font-weight:650}.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-height:42px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);padding:9px 11px;outline:none}.form-grid textarea{min-height:84px;resize:vertical}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.form-grid .full{grid-column:1/-1}.form-grid .checkbox{display:flex;align-items:center}.form-grid .checkbox input{width:auto;min-height:0}.form-actions{display:flex;justify-content:flex-end;gap:8px}.secret-box{display:grid;gap:8px}.secret-box code{padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface2);word-break:break-all}.mobile-only{display:none}.backdrop{display:none}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.project-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.sidebar{transform:translateX(-105%);transition:.2s}.sidebar-open .sidebar{transform:none}.sidebar-open .backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:25}.shell{margin-left:0}.mobile-only{display:grid}.topbar{padding:0 14px}.global-search{width:auto;flex:1;margin:0 10px}.global-search kbd,.profile-btn div,.profile-btn>i{display:none}.content{padding:22px 15px 45px}.grid.two,.project-grid{grid-template-columns:1fr}.page-head{align-items:flex-start}.toolbar{justify-content:stretch}.search{width:100%}.renewal-summary{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}@media(max-width:520px){.stats,.renewal-summary{grid-template-columns:1fr}.page-head{flex-direction:column}.page-head>.btn{width:100%}.theme-toggle{display:none}.global-search{max-width:calc(100vw - 120px)}}

.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--bg)}.login-card{width:min(430px,100%);padding:30px;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.08)}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}.login-brand span{width:42px;height:42px;border-radius:11px;background:var(--brand);color:#111;display:grid;place-items:center;font-weight:800}.login-card h1{margin:0 0 6px}.login-card>p{margin:0 0 22px;color:var(--muted)}.login-card form{display:grid;gap:15px}.login-card label{display:grid;gap:7px;font-size:12px;font-weight:650}.login-card input{height:44px;padding:0 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text)}.login-card .btn{width:100%}.access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.access-option{min-height:46px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;display:flex!important;grid-template-columns:none!important;align-items:center;gap:10px;font-weight:500!important}.access-option input{width:auto!important;min-height:0!important}.team-user{display:flex;align-items:center;gap:11px}.team-user .avatar{flex:0 0 36px}.profile-menu{position:relative}.profile-dropdown{position:absolute;right:0;top:48px;width:210px;padding:7px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 15px 40px rgba(0,0,0,.14);display:none}.profile-menu.open .profile-dropdown{display:grid}.profile-dropdown a{padding:10px;border-radius:7px}.profile-dropdown a:hover{background:var(--surface2)}@media(max-width:700px){.access-grid{grid-template-columns:1fr}}

::selection{background:var(--brand);color:#111}.btn.primary:active{background:var(--brand-pressed)}.brand>span,.profile-btn>span,.login-brand span{color:#111}.sidebar nav a.active{font-weight:unset}
