:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#1c293c;background:#f5f7fb;font-synthesis:none;font-size:14px;--ink:#18263a;--muted:#7c8ba0;--border:#e7edf3;--accent:#2863f5;--teal:#16a7a2;--sidebar:#121e30;--shadow:0 4px 20px rgba(33,55,89,.035)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.91em}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.055em}h2{letter-spacing:-.028em}.brand{display:inline-flex;align-items:center;gap:9px;font-size:19px;letter-spacing:-.045em;font-weight:550;white-space:nowrap}.brand-strong{font-weight:800}.brand-mark{background:var(--accent);color:white;width:30px;height:30px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:22px;letter-spacing:0}.eyebrow{font-size:10px;letter-spacing:.18em;color:var(--accent);font-weight:850}.muted{color:var(--muted);line-height:1.65}.button{min-height:43px;border-radius:9px;border:1px solid transparent;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700;font-size:12px;transition:.15s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--accent);color:white;box-shadow:0 5px 14px #2863f525}.button.primary:hover{background:#1c55dc}.button.secondary{background:#fff;border-color:#d7e0eb;color:#3f5270}.button:disabled{opacity:.5;cursor:not-allowed;transform:none}.form-stack{display:grid;gap:15px}.form-stack label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#415168;font-weight:700}input,select{height:43px;border:1px solid #dce4ee;border-radius:8px;padding:0 12px;background:#fff;outline:none;color:var(--ink);min-width:0}input:focus,select:focus{border-color:#6192ff;box-shadow:0 0 0 3px #356ff21a}input::placeholder{color:#9aa9b9}.alert{padding:14px 16px;border-radius:9px;margin:0 0 20px;font-size:12px;line-height:1.5}.alert.error{background:#fff0f0;color:#a02d35;border:1px solid #f8d9dc}.alert.success{background:#e9f8f1;color:#166c4c;border:1px solid #c5ebdc}.alert.warning{background:#fff8e6;color:#876000;border:1px solid #f6e3ad}.auth-page{min-height:100vh;background:radial-gradient(circle at 20% 10%,#edf2ff,transparent 35%),linear-gradient(135deg,#f9fbff,#edf2fb);display:grid;place-items:center;padding:30px}.auth-card{width:min(100%,460px);padding:42px;background:white;border-radius:20px;box-shadow:0 20px 75px #1d35591b;border:1px solid #e9eff7}.auth-card .brand{margin-bottom:48px}.auth-card h1{font-size:40px;line-height:1.1;margin:12px 0}.auth-card .muted{margin-bottom:28px}.auth-card .form-stack button{margin-top:7px;justify-content:space-between}.auth-foot{font-size:11px;line-height:1.6;margin-top:28px;padding-top:18px;border-top:1px solid var(--border);color:#8795a6}.app-layout{min-height:100vh;display:flex}.sidebar{background:var(--sidebar);color:#e6edf9;width:240px;flex-shrink:0;padding:28px 19px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar .brand{margin:2px 9px 57px}.sidebar .brand-mark{box-shadow:0 5px 16px #0a55ff45}.side-heading{font-size:10px;letter-spacing:.15em;font-weight:750;color:#677b99;margin:0 0 13px 12px}.side-nav{display:grid;gap:6px}.nav-link{display:flex;align-items:center;gap:13px;padding:13px 12px;border-radius:8px;color:#91a2bd;font-weight:630;font-size:12px;transition:.15s}.nav-link>span{display:inline-flex;width:21px;font-size:19px;justify-content:center;font-weight:400}.nav-link:hover{background:#20324b;color:white}.nav-link.selected{background:#254a9b55;color:#fff}.nav-link.selected>span{color:#79a4ff}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff13;padding:20px 8px 4px;display:flex;align-items:center;gap:8px;font-size:10px;color:#8192a9}.side-small-dot{width:7px;height:7px;background:#42caa8;border-radius:50%}.page-area{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:72px;background:white;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 39px}.topbar-title{font-size:12px;font-weight:700;color:#63728a}.topbar-right{display:flex;align-items:center;gap:23px}.secure-note{color:#229779;font-weight:650;font-size:11px}.logout{background:none;border:0;color:#73839a;font-size:11px;font-weight:700;padding:8px}.logout:hover{color:#2762f4}.content{width:100%;max-width:1500px;padding:38px 42px 50px;margin:0 auto;flex:1}.page-intro{margin-bottom:29px}.page-intro h1{font-size:33px;margin:7px 0 9px;font-weight:830;color:#1b2a40}.page-intro p{font-size:12px;color:#8996a7;margin:0}.page-intro-flex{display:flex;justify-content:space-between;gap:24px;align-items:flex-end}.dot-separator{padding:0 5px;color:#9aa7b8}.status-dot{display:inline-block;width:7px;height:7px;background:#bdc8d3;border-radius:50%;margin-right:2px}.status-dot.active{background:#24b98a}.filter-controls{display:flex;align-items:center;gap:8px}.filter-controls select{font-size:11px;height:37px;max-width:200px;font-weight:600;min-width:135px}.inline-label{font-size:11px;color:#8999a8;font-weight:650;margin-left:8px}.realtime-strip{min-height:61px;background:#fff;border:1px solid var(--border);border-radius:11px;display:flex;align-items:center;gap:12px;padding:10px 19px;margin-bottom:18px;font-size:11px;color:#8996a6;flex-wrap:wrap}.realtime-strip strong{font-size:21px;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.05em}.pulse-indicator{color:#169f7c;font-size:10px;font-weight:850;letter-spacing:.09em;display:flex;align-items:center;gap:7px;margin-right:12px}.pulse-indicator>span{width:7px;height:7px;background:#20bf93;border-radius:50%;box-shadow:0 0 0 4px #20bf9318}.strip-spacer{flex:1}.last-updated{font-size:10px;color:#a0aaba;border-left:1px solid #e8edf5;padding-left:14px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.metric-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:21px 21px 19px;min-height:156px;box-shadow:var(--shadow)}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#6c7d96;font-size:12px;font-weight:670}.metric-symbol{display:grid;place-items:center;width:31px;height:31px;background:#f0f4ff;color:#4982f9;border-radius:9px;font-size:16px}.metric-card strong{display:block;font-size:31px;font-weight:800;letter-spacing:-.055em;margin:15px 0 4px;line-height:1}.metric-card small{font-size:10px;color:#a0afbf}.panel{background:white;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;padding:22px 23px;margin-bottom:17px;min-width:0}.panel h2{font-size:15px;font-weight:780;margin:0 0 5px}.panel h3{font-size:13px;letter-spacing:-.01em;margin:0 0 8px}.panel p{color:#8a99a9;font-size:11px;line-height:1.75}.panel-heading{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;min-height:36px;margin-bottom:10px}.panel-heading p{margin:0}.legend{font-size:10px;color:#8495a9;display:flex;align-items:center;gap:8px;white-space:nowrap}.key-line{display:inline-block;width:17px;height:3px;border-radius:3px}.key-line.blue{background:#3978f5}.key-line.teal{background:#16a7a2}.chart-panel{margin-bottom:18px;padding-bottom:18px}.chart{height:275px;width:100%;position:relative}.chart svg{height:100%;width:100%;overflow:visible}.chart-grid{stroke:#edf1f6;stroke-width:1}.chart-line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart-line.views{stroke:#3978f5}.chart-line.visitors{stroke:#16a7a2}.chart-area{fill:#3978f511}.chart-text{fill:#a1aebe;font-size:10px;font-family:inherit}.two-panels,.three-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.three-panels{grid-template-columns:repeat(3,minmax(0,1fr))}.two-panels .panel,.three-panels .panel{min-height:230px}.table-caption{font-size:10px;color:#9cacbd}.data-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf1f6;font-size:11px}.data-row:last-child{border-bottom:0}.data-row .label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:80%;color:#415369}.data-row .count{font-weight:800;font-variant-numeric:tabular-nums}.mini-bar{display:inline-block;height:5px;border-radius:5px;background:#c8d9fa;margin-right:7px;vertical-align:middle}.no-data{padding:34px 8px;text-align:center;color:#a1afbe;font-size:11px;line-height:1.5}.footnote{color:#95a4b6;font-size:10px;line-height:1.6;margin:3px 0 0}.app-footer{display:flex;justify-content:space-between;gap:15px;padding:19px 42px;border-top:1px solid var(--border);color:#9ba8ba;font-size:10px}.empty-welcome{background:white;border:1px solid var(--border);padding:55px;max-width:650px;border-radius:14px}.empty-icon{display:grid;place-items:center;width:55px;height:55px;background:#eaf0ff;color:#2b65f5;font-size:26px;border-radius:14px;margin-bottom:20px}.empty-welcome h2{font-size:24px}.empty-welcome p{color:#8995a5;line-height:1.7;max-width:470px}.settings-panels{margin-bottom:3px}.settings-panels .panel{min-height:275px}.website-list{display:grid;gap:8px;margin-top:15px}.website-item{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid transparent;border-radius:9px}.website-item:hover{background:#f8faff}.website-item.current{border-color:#dce7ff;background:#f6f9ff}.website-icon{height:35px;width:35px;display:grid;place-items:center;color:#416de6;background:#e9f0ff;border-radius:8px;font-size:21px}.website-item>span:nth-child(2){min-width:0;flex:1}.website-item strong,.website-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.website-item strong{font-size:12px}.website-item small{color:#8b9bad;font-size:10px;margin-top:5px}.website-badge{font-size:10px;padding:5px 8px;background:#f0f2f5;color:#8b99a8;border-radius:6px;white-space:nowrap}.website-badge.on{background:#e7f9ef;color:#1b996c}.integration-panel{margin-top:0}.snippet{background:#162339;border:1px solid #243750;color:#d6e2f7;border-radius:9px;padding:15px 16px;display:flex;justify-content:space-between;gap:15px;align-items:center;overflow:hidden;margin:18px 0 12px}.snippet code{display:block;overflow-x:auto;white-space:nowrap;scrollbar-width:thin;line-height:1.6;font-size:11px}.copy-btn{flex-shrink:0;border:1px solid #405572;background:#253651;color:#d9e6f8;border-radius:7px;padding:8px 11px;font-size:10px;font-weight:750}.copy-btn:hover{background:#395174}.hint{font-size:11px;color:#8997a9;line-height:1.8}.hint code{color:#4d6190;background:#f3f6fb;padding:2px 4px;border-radius:3px}.subsection{border-top:1px solid var(--border);padding-top:22px;margin-top:20px}.inline-form{padding-top:10px}.goal-list{margin-bottom:19px}.goal-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px;font-weight:650}.text-btn{border:0;background:transparent;color:#9b5262;font-size:11px}.text-btn:hover{text-decoration:underline}.add-goal-form{display:flex;gap:9px}.add-goal-form input{flex:1}.empty-inline{color:#a2afbd;font-size:11px;padding:14px 0}.panel.narrow{max-width:670px}.panel.narrow .form-stack{max-width:420px;margin-top:17px}.panel.narrow .muted{font-size:12px}.loading-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#9ca9b9;font-size:12px}@media(max-width:1150px){.sidebar{width:210px}.content{padding:30px 25px}.topbar{padding:0 25px}.metric-grid{gap:10px}.metric-card{padding:19px 15px}.metric-card strong{font-size:27px}.three-panels{grid-template-columns:1fr 1fr}}@media(max-width:800px){.app-layout{display:block}.sidebar{height:auto;width:100%;position:relative;padding:14px 16px;display:block}.sidebar .brand{margin:0 0 12px}.side-heading,.sidebar-bottom{display:none}.side-nav{display:flex;gap:4px;overflow-x:auto}.nav-link{flex-shrink:0;padding:9px 11px;font-size:11px}.topbar{height:55px;padding:0 20px}.content{padding:27px 19px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-intro-flex{display:block}.filter-controls{margin-top:19px;flex-wrap:wrap}.two-panels,.three-panels{grid-template-columns:1fr}.app-footer{padding:17px 20px}.chart{height:225px}.secure-note span{display:none}.auth-card{padding:30px}.auth-card h1{font-size:33px}}@media(max-width:490px){.page-intro h1{font-size:28px}.filter-controls{gap:6px}.filter-controls select{min-width:0;flex:1}.filter-controls label{display:none}.metric-card{min-height:135px;padding:15px}.metric-card strong{font-size:26px}.metric-top{font-size:11px}.realtime-strip{gap:9px}.last-updated{border:0;padding:0}.chart{height:190px}.panel{padding:18px 16px}.legend{font-size:9px;gap:4px}.add-goal-form{display:grid}.app-footer{display:block}.app-footer span{display:block;margin:5px 0}}

/* v0.1.0.2: irreversible deletion uses a dedicated confirmation step */
.danger-zone{border-color:#f2d7d8;background:#fffdfd}.danger-zone h2{color:#a63240}.danger-zone p{margin:12px 0 16px}.button.danger{background:#be3343;color:white;border-color:#be3343}.button.danger:hover{background:#a92737}.button.danger-outline{background:#fff;border-color:#e5a8af;color:#b23344}.button.danger-outline:hover{background:#fff2f3}.delete-panel{max-width:690px}.delete-panel h2{font-size:21px;margin:15px 0}.delete-panel>p{font-size:12px;line-height:1.75;color:#617189}.warning-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff0f1;color:#b02e42;font-size:24px;font-weight:800}.delete-form{margin-top:18px}.delete-form label strong{color:#1b2a40}.delete-form .check-confirm{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5;font-weight:500;color:#52657e}.delete-form .check-confirm input{width:17px;height:17px;min-width:17px;flex:0 0 17px;margin:1px 0 0;accent-color:#be3343}.delete-actions{display:flex;flex-wrap:wrap;gap:10px}
