
:root{
  --bg:#f5f7fa;--panel:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;
  --accent:#111827;--accent-soft:#eef0f3;--good:#13795b;--warn:#a15c00;--danger:#b42318;
  --radius:18px;--shadow:0 12px 32px rgba(15,23,42,.06)
}
*{box-sizing:border-box}
html{font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--text)}
body{margin:0}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;background:#0f172a;color:#fff;padding:24px 18px;display:flex;flex-direction:column}
.brand{display:flex;gap:12px;align-items:center;padding:0 8px 24px}
.brand-mark{width:38px;height:38px;border-radius:12px;background:#fff;color:#0f172a;display:grid;place-items:center;font-weight:800}
.brand strong{display:block}
.brand small,.sidebar-footer small{color:#94a3b8}
.nav{display:flex;flex-direction:column;gap:6px}
.nav a{color:#cbd5e1;text-decoration:none;padding:11px 12px;border-radius:12px;display:flex;align-items:center;gap:10px;font-size:14px}
.nav a span{width:24px;text-align:center}
.nav a:hover,.nav a.active{background:#1e293b;color:#fff}
.sidebar-footer{margin-top:auto;padding:12px 8px}
.sync-state{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.sync-state i{width:8px;height:8px;border-radius:50%;background:#22c55e}
.main{padding:30px 36px 64px;max-width:1500px;width:100%;margin:0 auto}
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
h1{font-size:30px;margin:2px 0 0}
h2{font-size:18px;margin:0}
h3{margin:0}
p{color:var(--muted)}
.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-weight:700;font-size:11px;color:#64748b;margin:0 0 5px}
.view{display:none}
.view.active{display:block}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}
.metric{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.metric span{font-size:12px;color:var(--muted);display:block;margin-bottom:10px}
.metric strong{font-size:28px}
.metric small{display:block;color:var(--muted);margin-top:4px}
.grid{display:grid;gap:16px}
.grid.two{grid-template-columns:1.5fr 1fr}
.grid.compact{gap:12px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);margin-bottom:16px}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}
.card-head p{margin:5px 0 0;font-size:13px}
.text-link{font-size:13px;color:var(--text);text-decoration:none;font-weight:600}
.btn{border:0;border-radius:12px;padding:10px 14px;font-weight:700;font-size:13px}
.btn-primary{background:var(--accent);color:#fff}
.btn-soft{background:var(--accent-soft);color:var(--text)}
.btn-ghost{background:transparent;color:var(--muted)}
.btn-large{padding:13px 16px}
.full{width:100%;display:block;text-align:center;text-decoration:none}
.activity-list{display:flex;flex-direction:column}
.activity{display:grid;grid-template-columns:110px 1fr 72px 90px;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}
.activity:last-child{border-bottom:0}
.activity .site{font-weight:700;font-size:13px}
.activity .desc{font-size:13px}
.activity .mins{font-weight:700;text-align:right}
.status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:700;width:max-content}
.status.open{background:#fff3dd;color:var(--warn)}
.status.invoiced{background:#eaf8f2;color:var(--good)}
.billing-summary{display:flex;align-items:center;gap:24px;margin:18px 0}
.donut{width:120px;height:120px;border-radius:50%;background:conic-gradient(#111827 0 68%,#e5e7eb 68% 100%);display:grid;place-items:center;position:relative}
.donut:before{content:"";position:absolute;width:84px;height:84px;border-radius:50%;background:#fff}
.donut span{position:relative;font-weight:800}
.legend{display:flex;flex-direction:column;gap:12px;font-size:13px}
.dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:8px}.dot.open{background:#111827}.dot.billed{background:#d1d5db}
.website-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.website-tile{border:1px solid var(--line);padding:14px;border-radius:14px;background:#fbfcfd}
.website-tile strong{display:block;font-size:13px;margin-bottom:5px}.website-tile small{color:var(--muted)}
.form-stack{display:flex;flex-direction:column;gap:16px}
label{font-size:12px;font-weight:700;color:#374151}
input,select,textarea{width:100%;border:1px solid #d7dce3;border-radius:12px;background:#fff;padding:11px 12px;margin-top:7px;outline:none;color:var(--text)}
textarea{resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#94a3b8;box-shadow:0 0 0 3px #eef2f7}
.stepper{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin-top:7px}
.stepper input{margin:0;border-radius:0;text-align:center}
.stepper button{height:42px;border:1px solid #d7dce3;background:#f8fafc;font-weight:800}
.stepper button:first-child{border-radius:12px 0 0 12px}.stepper button:last-child{border-radius:0 12px 12px 0}
.switch-row{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:14px;padding:13px 14px}
.switch-row strong{display:block;font-size:13px}.switch-row span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.switch input{display:none}.switch span{width:42px;height:24px;background:#d1d5db;border-radius:20px;position:relative;display:block}
.switch span:after{content:"";width:18px;height:18px;border-radius:50%;background:#fff;position:absolute;top:3px;left:3px;transition:.2s}
.switch input:checked+span{background:#111827}.switch input:checked+span:after{left:21px}
.support-layout{grid-template-columns:1.4fr .7fr;align-items:start}
.accent-card{background:#111827;color:#fff;position:sticky;top:30px}
.accent-card p{color:#94a3b8}.accent-card .eyebrow{color:#94a3b8}
.timer{font-size:44px;font-weight:800;letter-spacing:.03em;margin:18px 0 8px}
.timer-actions{display:flex;gap:8px}.accent-card .btn-primary{background:#fff;color:#111827}.accent-card .btn-soft{background:#334155;color:#fff}
.form-message{margin:0;font-size:12px;font-weight:700}
.toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:14px}
.search{max-width:480px;margin:0}
.pill{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eef2f7;font-size:11px;font-weight:700;color:#475569}
.customer-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.customer-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.customer-main{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:14px}
.customer-sites{display:flex;flex-wrap:wrap;gap:8px}
.site-chip{border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:12px;background:#fbfcfd}
.table-card{padding:0}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{padding:13px 16px;text-align:left;border-bottom:1px solid var(--line);font-size:12px}
th{color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.05em;background:#fafbfc}
.callout{background:#111827;color:#fff;border-radius:var(--radius);padding:22px;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.callout p{color:#94a3b8;margin:5px 0 0}.callout .eyebrow{color:#94a3b8}
.callout .btn-primary{background:#fff;color:#111827}.callout .btn:disabled{opacity:.45;cursor:not-allowed}
.billing-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.billing-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.billing-card .row{display:flex;justify-content:space-between;align-items:center}
.billing-card .amount{font-size:22px;font-weight:800;margin-top:12px}
.billing-card small{color:var(--muted)}
@media(max-width:1000px){
  .app-shell{grid-template-columns:82px 1fr}.sidebar{padding:20px 12px}.brand>div:last-child,.nav a:not(.active){font-size:0}.nav a{justify-content:center}.nav a span{font-size:16px}.sidebar-footer{display:none}
  .metric-grid{grid-template-columns:repeat(2,1fr)}.website-grid{grid-template-columns:repeat(2,1fr)}.customer-list,.billing-list{grid-template-columns:1fr}
}
@media(max-width:720px){
  .app-shell{display:block}.sidebar{position:fixed;bottom:0;top:auto;z-index:10;width:100%;height:66px;flex-direction:row;padding:8px;background:#0f172a}.brand,.sidebar-footer{display:none}.nav{flex-direction:row;width:100%;justify-content:space-around}.nav a{padding:8px}.nav a span{font-size:17px}.nav a{font-size:0}.nav a.active{background:#1e293b}
  .main{padding:20px 16px 86px}.topbar h1{font-size:24px}.topbar .btn{display:none}.metric-grid{grid-template-columns:1fr 1fr}.grid.two,.support-layout{grid-template-columns:1fr}.website-grid{grid-template-columns:1fr 1fr}.activity{grid-template-columns:85px 1fr 55px}.activity .status{display:none}.billing-list{grid-template-columns:1fr}.accent-card{position:static}.callout{align-items:flex-start;gap:16px;flex-direction:column}
}
