:root {
	--bg: #f5f6fb;
	--surface: #ffffff;
	--border: #e4e6ef;
	--border-strong: #d3d6e3;
	--text: #10132a;
	--muted: #5d6380;
	--faint: #8a90ab;
	--brand: #6d5dfc;
	--brand-ink: #4f3fe0;
	--cyan: #0ea5c4;
	--grad: linear-gradient(120deg, #7c6cff 0%, #22c5e6 100%);
	--green: #16a34a; --green-bg: #e9f9ef;
	--amber: #b45309; --amber-bg: #fff6e5;
	--red: #dc2626; --red-bg: #fdeeee;
	--gray-bg: #eef0f5;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(16, 19, 42, .04), 0 6px 20px -8px rgba(16, 19, 42, .08);
	--sidebar: #0c0e1d;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.55; font-size: 15px; }
a { color: var(--brand-ink); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.warn-text { color: var(--amber); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark { width: 28px; height: 28px; }
.logo-word { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(109, 93, 252, .6); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: #b9bdd0; background: #fafbff; }
.btn-ghost { background: transparent; color: #b6bbd8; border-color: rgba(255, 255, 255, .12); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger-outline { background: var(--surface); color: var(--red); border-color: #f1c4c4; }
.btn-danger-outline:hover { background: var(--red-bg); }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; align-items: baseline; }
.field em { font-style: normal; font-weight: 500; color: var(--faint); }
.field small { color: var(--faint); font-size: 12.5px; }
.field-link { font-weight: 500; text-decoration: none; }
input, select, textarea { font: inherit; color: var(--text); width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 93, 252, .14); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { width: auto; min-width: 0; flex: 1; }

/* Alerts & badges */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); border-color: #c3ecd2; color: #14532d; }
.alert-error { background: var(--red-bg); border-color: #f5c9c9; color: #7f1d1d; }
.alert-warn { background: var(--amber-bg); border-color: #f6dcae; color: #78350f; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gray { background: var(--gray-bg); color: var(--muted); }
.plan-tag { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: capitalize; background: var(--gray-bg); color: var(--muted); }
.plan-pro { background: #efecff; color: var(--brand-ink); }
.plan-agency { background: #e3f7fb; color: #0e7490; }

/* Shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 22px 16px; background: var(--sidebar); color: #e6e8ff; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.role-pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #c9ccf0; text-transform: uppercase; letter-spacing: .06em; }
.nav { display: grid; gap: 3px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #a9aecf; text-decoration: none; font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-link.is-active { background: rgba(124, 108, 255, .18); color: #fff; box-shadow: inset 2px 0 0 #8b7bff; }
.nav-icon { width: 18px; text-align: center; opacity: .85; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }
.whoami { display: flex; align-items: center; gap: 10px; padding: 0 6px; min-width: 0; }
.whoami-text { display: grid; min-width: 0; }
.whoami-text strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami-text small { color: #8a8fb5; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad); }
.avatar-sm { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.main { min-width: 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 32px 36px 64px; }
.banner { padding: 12px 36px; font-size: 14px; }
.banner-danger { background: #2a0d12; color: #fecaca; }
.banner-danger a { color: #fff; }

/* Page */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-header h1 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-header p { margin: 6px 0 0; }
.page-actions { display: flex; gap: 10px; }
.crumb { display: inline-block; margin-bottom: 8px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--text); }
.link { font-size: 13.5px; font-weight: 600; text-decoration: none; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.card-flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 620px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.card-title.spaced { margin-top: 26px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.card-head .card-title { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col .card { margin-bottom: 20px; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, #f4f2ff, #ecfbfe); border-color: #e3e0ff; }
.callout h2 { font-size: 17px; }
.callout p { margin: 4px 0 0; }

/* Sites grid */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 22px; }
.site-card { display: block; text-decoration: none; color: inherit; margin: 0; transition: transform .15s, box-shadow .15s, border-color .15s; }
.site-card:hover { transform: translateY(-2px); border-color: #cfcbff; box-shadow: 0 12px 30px -14px rgba(79, 63, 224, .35); }
.site-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.favicon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: var(--brand-ink); background: #efecff; }
.site-card-name { font-size: 17px; font-weight: 700; }
.site-card-url { margin: 2px 0 16px; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding-top: 14px; border-top: 1px solid var(--border); }
.site-card-meta dt { font-size: 12px; color: var(--faint); }
.site-card-meta dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }

/* Empty */
.empty { text-align: center; padding: 64px 24px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 18px; }
.empty-sm { padding: 28px; border: 0; background: transparent; }
.empty h2 { font-size: 21px; margin: 18px 0 8px; }
.empty p { max-width: 440px; margin: 0 auto 22px; }
.empty-art { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(109, 93, 252, .6); }

/* Copy / key boxes */
.copy-field, .key-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: #fbfbfe; max-width: 100%; }
.copy-field code, .key-box code { flex: 1; min-width: 0; font-size: 13.5px; overflow-x: auto; white-space: nowrap; }
.key-box { margin: 12px 0 8px; background: #0f1124; border-color: #0f1124; }
.key-box code { color: #c7f3ff; font-size: 14.5px; letter-spacing: .02em; }
.key-box-inline { margin-top: 10px; background: #fff; border-color: var(--border-strong); }
.key-box-inline code { color: var(--text); }
.is-copied { background: var(--green) !important; color: #fff !important; border-color: var(--green) !important; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); }
.step-body { flex: 1; min-width: 0; }
.step-body h2 { font-size: 16.5px; margin: 5px 0 6px; }
.step-body p { margin: 0 0 12px; }
.live-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--amber-bg); color: #78350f; font-weight: 500; }
.live-status.is-done { background: var(--green-bg); color: #14532d; }
.live-status.is-done .spinner { border-color: var(--green); border-right-color: transparent; animation: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d97706; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.card-flush .table th:first-child, .card-flush .table td:first-child { padding-left: 22px; }
.table-hover tbody tr { cursor: pointer; transition: background .1s; }
.table-hover tbody tr:hover { background: #f8f8fd; }
.cell-main { display: grid; text-decoration: none; color: inherit; }
.cell-main small { color: var(--muted); }
.tool { font-size: 12.5px; padding: 2px 7px; border-radius: 6px; background: var(--gray-bg); color: var(--text); }
.detail { color: var(--muted); font-size: 13px; max-width: 360px; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--border); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: inherit; }
.list-main { flex: 1; min-width: 0; display: grid; }
.list-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { display: grid; gap: 4px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.stat-sub { font-size: 13px; color: var(--muted); }
.stat-accent { background: linear-gradient(135deg, #4f3fe0, #0e9ab8); border: 0; color: #fff; }
.stat-accent .stat-label, .stat-accent .stat-sub { color: rgba(255, 255, 255, .78); }

/* Misc */
.danger-zone { border-color: #f5d4d4; }
.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 6px 0; }
.danger-row + .danger-row { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 10px; }
.danger-row p { margin: 2px 0 0; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--grad); margin-top: 2px; }
.search input { width: 280px; }
.filter select { width: auto; }
.usage { margin-bottom: 20px; }
.usage-bar { height: 10px; border-radius: 999px; background: var(--gray-bg); overflow: hidden; }
.usage-fill { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.usage-0 { width: 0; } .usage-10 { width: 10%; } .usage-20 { width: 20%; } .usage-30 { width: 30%; } .usage-40 { width: 40%; } .usage-50 { width: 50%; }
.usage-60 { width: 60%; } .usage-70 { width: 70%; } .usage-80 { width: 80%; } .usage-90 { width: 90%; } .usage-100 { width: 100%; }

/* Auth pages */
.auth { min-height: 100vh; background: #0a0b17; }
.auth-bg { position: fixed; inset: 0; background: radial-gradient(circle at 15% 10%, rgba(124, 108, 255, .35), transparent 45%), radial-gradient(circle at 90% 90%, rgba(34, 197, 230, .25), transparent 45%); pointer-events: none; }
.auth-wrap { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-logo { margin-bottom: 26px; color: #fff; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px; padding: 34px 32px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-card > .muted { margin: 0 0 24px; }
.auth-actions { margin-top: 22px; }
.auth-switch { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* Consent */
.consent-head { text-align: center; margin-bottom: 22px; }
.consent-head .auth-title { font-size: 21px; }
.consent-pair { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.consent-node { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #fff; background: #d97757; font-weight: 800; }
.consent-node-brand { background: var(--grad); }
.consent-wire { width: 54px; height: 2px; background: repeating-linear-gradient(90deg, #c5c8da 0 6px, transparent 6px 11px); }
.consent-block { padding: 16px 0; border-top: 1px solid var(--border); }
.consent-block h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 12px; }
.site-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.site-chips li { padding: 5px 11px; border-radius: 999px; background: var(--gray-bg); font-size: 13px; font-weight: 500; }
.consent-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; }

/* Responsive */
@media (max-width: 980px) {
	.stat-grid { grid-template-columns: repeat(2, 1fr); }
	.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.shell { grid-template-columns: 1fr; }
	.sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; }
	.nav { order: 3; width: 100%; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
	.nav-link { white-space: nowrap; padding: 8px 12px; }
	.nav-link.is-active { box-shadow: inset 0 -2px 0 #8b7bff; }
	.sidebar-bottom { margin: 0 0 0 auto; display: flex; align-items: center; }
	.whoami { display: none; }
	.container { padding: 22px 16px 48px; }
	.banner { padding: 12px 16px; }
	.search input { width: 100%; }
	.search { width: 100%; }
}
@media (max-width: 520px) {
	.stat-grid { grid-template-columns: 1fr; }
	.page-header h1 { font-size: 23px; }
	.step { padding: 18px; gap: 14px; }
	.danger-row { flex-direction: column; align-items: flex-start; }
	.auth-card { padding: 28px 22px; }
	.consent-actions { grid-template-columns: 1fr; }
	.inline-form { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- v3: agency features ---- */
.right { text-align: right; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: #f97316; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--gray-bg); color: var(--muted); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.site-card-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; margin-bottom: 14px; }
.stat-warn { border-color: #f6dcae; background: linear-gradient(180deg, #fffaf0, #fff); }
.tool-new { background: var(--green-bg); color: var(--green); }

/* Toggle switch (a submit button) */
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.setting-row .card-title { margin-bottom: 6px; }
.setting-row p { margin: 0; max-width: 640px; }
.switch { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--muted); padding: 4px; }
.switch-track { width: 46px; height: 26px; border-radius: 999px; background: #d6d9e6; position: relative; transition: background .2s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch.is-on { color: var(--brand-ink); }
.switch.is-on .switch-track { background: var(--brand); }
.switch.is-on .switch-thumb { transform: translateX(20px); }

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tab .nav-count { margin-left: 0; }

/* Approvals */
.change-list .list-row { padding: 16px 22px; }
.change-list > li + li { border-top: 1px solid var(--border); }
.change-list .list-row:hover { background: #fafaff; }
.change-id { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--faint); min-width: 38px; }
.diff-card { overflow: hidden; }
.diff-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: #fafbfe; }
.diff-head code { font-weight: 600; font-size: 13.5px; }
.diff-stat { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 13px; }
.diff-stat .plus { color: var(--green); }
.diff-stat .minus { color: var(--red); }
.diff { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.6; overflow-x: auto; max-height: 640px; overflow-y: auto; }
.diff-row { display: flex; white-space: pre; min-width: max-content; }
.diff-sign { flex: none; width: 28px; text-align: center; color: var(--faint); user-select: none; }
.diff-text { padding-right: 18px; }
.diff-add { background: #e9f9ef; }
.diff-add .diff-sign { color: var(--green); }
.diff-del { background: #fdeeee; }
.diff-del .diff-sign { color: var(--red); }
.diff-gap { background: #f3f4f9; color: var(--faint); font-style: italic; }
.diff-empty { padding: 16px 18px; margin: 0; }
.args { margin: 0; padding: 14px; border-radius: 10px; background: #0f1124; color: #c7f3ff; font-size: 12.5px; overflow-x: auto; }

/* Reports */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.report-pick { margin: 0; }
.report-pick-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.report-pick-head .card-title { margin: 0; }
.report-pick-head p { margin: 0; }
.month-list { list-style: none; margin: 0; padding: 0; }
.month-list li + li { border-top: 1px solid var(--border); }
.month-list a { display: block; padding: 9px 2px; text-decoration: none; font-weight: 500; font-size: 14px; }

/* Team */
.role-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.role-form select { width: auto; }
.site-picker { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; margin: 0; flex-basis: 100%; }
.site-picker legend { font-weight: 600; font-size: 13.5px; padding: 0 4px; }
.site-picker.is-hidden { display: none; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.check input { width: auto; }
.roles { margin: 0; display: grid; gap: 12px; }
.roles dt { font-weight: 600; font-size: 14px; }
.roles dd { margin: 2px 0 0; }

@media (max-width: 820px) {
	.setting-row { flex-direction: column; align-items: flex-start; }
	.nav-count { margin-left: 6px; }
}
