/*
 * playzo backend webui
 * one stylesheet for login + app. Colors as tokens, numbers always tabular.
 */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-sans/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-sans/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/ibm-plex-sans/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }

:root {
	--ink: #18202e;
	--ink-2: #222c3d;
	--ink-3: #2f3a4e;
	--ink-text: #c9d1de;
	--bg: #f2f4f7;
	--surface: #ffffff;
	--surface-2: #f8f9fb;
	--line: #e3e7ed;
	--line-strong: #cfd5de;
	--text: #18202e;
	--muted: #667085;
	--brand: #e75114;
	--brand-dark: #c4420d;
	--brand-soft: #fdeee6;
	--up: #13845a;
	--down: #c2381f;
	--radius-s: 6px;
	--radius: 10px;
	--sidebar: 232px;
	--font: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--shadow-pop: 0 12px 32px rgba(24, 32, 46, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.45;
	color: var(--text);
	background: var(--bg);
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { border: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & inputs ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 36px; padding: 0 14px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-s);
	background: var(--surface); color: var(--text);
	font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-icon { width: 36px; padding: 0; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }

.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-weight: 500; margin-bottom: 6px; }
.input {
	width: 100%; height: 42px; padding: 0 12px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-s);
	background: var(--surface); font-size: 15px;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input-code { font-size: 26px; letter-spacing: .4em; text-align: center; height: 56px; font-weight: 500; }
.select {
	height: 36px; padding: 0 30px 0 10px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-s);
	background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667085' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
	appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 500;
}

/* ---------- login ---------- */
.page-login {
	min-height: 100vh;
	display: flex; align-items: center; justify-content: center;
	padding: 24px 16px;
	background: var(--ink) center / cover no-repeat;
}
.page-login::before { content: ''; position: fixed; inset: 0; background: linear-gradient(120deg, rgba(24,32,46,.55), rgba(24,32,46,.15)); pointer-events: none; }
.login-card {
	position: relative; width: 100%; max-width: 380px;
	background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop);
	padding: 32px 32px 28px;
}
.login-card .logo { display: block; height: 44px; width: auto; margin: 0 0 24px; }
.login-card h1 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.login-card .lead { color: var(--muted); margin-bottom: 24px; }
.login-card .btn-primary { width: 100%; height: 44px; font-size: 15px; margin-top: 4px; }
.login-card .back { display: inline-block; margin-top: 16px; color: var(--muted); font-size: 13px; }
.notice { border-radius: var(--radius-s); padding: 10px 12px; margin-bottom: 16px; font-size: 13px; }
.notice[hidden] { display: none; }
.notice-error { background: #fdecea; color: #8f2414; }
.notice-info { background: #eef3fb; color: #24467a; }
.login-foot { position: fixed; bottom: 12px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 12px; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
	position: sticky; top: 0; height: 100vh;
	display: flex; flex-direction: column;
	background: var(--ink); color: var(--ink-text);
	padding: 20px 14px;
}
.sidebar .brand { display: block; padding: 4px 10px 22px; }
.sidebar .brand img { height: 30px; width: auto; display: block; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav a {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 10px; border-radius: var(--radius-s);
	text-decoration: none; font-weight: 500; color: var(--ink-text);
}
.nav a i { width: 18px; text-align: center; opacity: .8; }
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--ink-3); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.nav a[aria-current="page"] i { color: var(--brand); opacity: 1; }
.sidebar .user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--ink-3); }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; }
.user .who { min-width: 0; line-height: 1.25; }
.user .who strong { display: block; color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .who span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.user .logout { margin-left: auto; color: var(--ink-text); width: 32px; height: 32px; border-radius: var(--radius-s); display: grid; place-items: center; text-decoration: none; }
.user .logout:hover { background: var(--ink-2); color: #fff; }

.main { min-width: 0; padding: 28px 32px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.app-foot { color: var(--muted); font-size: 12px; margin-top: 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.month-stepper { display: inline-flex; align-items: center; gap: 4px; }
.month-stepper .select { min-width: 0; }

.projects {
	display: flex; gap: 8px; flex-wrap: wrap;
	margin-bottom: 20px;
}
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	height: 38px; padding: 0 14px 0 5px;
	border: 1px solid var(--line-strong); border-radius: 999px;
	background: var(--surface); cursor: pointer; font-weight: 500;
	transition: border-color .12s, background-color .12s;
}
.chip img, .chip .swatch { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.chip .swatch { display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--chip-color, var(--brand)); background: var(--chip-bg, var(--brand-soft)); box-shadow: inset 0 0 0 1px var(--chip-color, var(--brand)); }
.chip[aria-pressed="false"].dimmed { opacity: .55; }
.chip-all { padding-left: 14px; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.panel-head h2 { font-size: 15px; font-weight: 600; }
.panel-head .hint { color: var(--muted); font-size: 13px; }
.panel-body { padding: 12px 20px 18px; }
.panel-body.flush { padding: 12px 0 0; }
.grid-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.grid-2 > .panel { margin-bottom: 20px; min-width: 0; }
.chart { height: 300px; }
.chart.tall { height: 340px; }

/* KPI strip: one panel, figures separated by rules */
.kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.kpi { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-size: 22px; font-weight: 600; margin-top: 4px; letter-spacing: -.01em; white-space: nowrap; }
.kpi:first-child .value { font-size: 30px; }
.kpi .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.delta { font-weight: 600; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 9px 14px; text-align: left; vertical-align: middle; }
table.data thead th {
	position: sticky; top: 0; z-index: 1;
	background: var(--surface-2); color: var(--muted);
	font-size: 12px; font-weight: 500;
	border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
	white-space: nowrap;
}
table.data th:first-child, table.data td:first-child { padding-left: 20px; }
table.data th:last-child, table.data td:last-child { padding-right: 20px; }
table.data tbody td { border-bottom: 1px solid var(--line); }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data tfoot td { font-weight: 600; border-top: 2px solid var(--line-strong); }
table.data .num { text-align: right; white-space: nowrap; }
table.data .muted { color: var(--muted); }
table.data .project-cell { display: flex; align-items: center; gap: 10px; }
table.data .logo-s { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex: none; }
table.data tr.group td { background: var(--surface); font-weight: 600; cursor: pointer; }
table.data tr.group td:first-child .caret { display: inline-block; width: 14px; color: var(--muted); transition: transform .15s; }
table.data tr.group[aria-expanded="true"] .caret { transform: rotate(90deg); }
table.data tr.child td { color: var(--muted); font-size: 13px; background: var(--surface-2); }
table.data tr.child td:first-child { padding-left: 58px; }
table.data tr.child[hidden] { display: none; }
table.data tr.clickable { cursor: pointer; }
table.data tr.positive td:first-child { box-shadow: inset 3px 0 0 var(--up); }
table.data tr.open td { background: var(--brand-soft); }
table.data tr.details > td { padding: 0; background: var(--surface-2); }
table.data table.data { background: var(--surface-2); }
table.data table.data thead th { position: static; background: var(--surface-2); }
.flag { width: 16px; height: 11px; vertical-align: -1px; margin-right: 6px; }
.share { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.share .bar { width: 80px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.share .bar span { display: block; height: 100%; background: var(--bar, var(--brand)); }
.tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }

details.panel > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--muted); transition: transform .15s; }
details.panel[open] > summary::after { transform: rotate(180deg); }
details.panel[open] > summary { padding-bottom: 4px; }

/* ---------- home ---------- */
.welcome { padding: 24px; }
.welcome h2 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.welcome p { color: var(--muted); max-width: 64ch; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tile { display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.tile:hover { border-color: var(--brand); }
.tile i { color: var(--brand); font-size: 18px; margin-bottom: 10px; display: block; }
.tile strong { display: block; font-weight: 600; margin-bottom: 2px; }
.tile span { color: var(--muted); font-size: 13px; }
.contact { line-height: 1.7; }

/* ---------- states ---------- */
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.loading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; }
.loading-bar.on { opacity: 1; }
.loading-bar::before { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--brand); animation: loading 1s ease-in-out infinite; }
@keyframes loading { from { left: -40%; } to { left: 100%; } }
.skeleton { height: 100%; min-height: 120px; border-radius: var(--radius-s); background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast {
	position: fixed; right: 20px; bottom: 20px; z-index: 200; max-width: 380px;
	background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-s); box-shadow: var(--shadow-pop);
}
.toast.error { background: #8f2414; }
.toast[hidden] { display: none; }

/* highcharts */
.highcharts-container, .highcharts-container text { font-family: var(--font) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.grid-2 { grid-template-columns: 1fr; }
	.kpis { grid-template-columns: 1fr 1fr; }
	.kpi:nth-child(3) { border-left: 0; }
	.kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
	.app { grid-template-columns: 1fr; }
	.sidebar { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; overflow-x: auto; }
	.sidebar .brand { padding: 0 6px 0 0; }
	.sidebar .brand img { height: 22px; }
	.nav { flex-direction: row; }
	.nav a { padding: 8px; }
	.nav a .label { display: none; }
	.sidebar .user { margin: 0 0 0 auto; padding: 0; border: 0; }
	.sidebar .user .who, .sidebar .user .avatar { display: none; }
	.main { padding: 20px 16px 32px; }
	.page-head h1 { font-size: 22px; }
	.kpi:first-child .value { font-size: 24px; }
	.chart, .chart.tall { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* marketing: keep campaign names readable */
#campaigns table.data > tbody > tr > td:first-child { min-width: 220px; }
#campaigns table.data > tbody > tr > td:first-child strong { font-weight: 500; }
table.data .project-cell { white-space: nowrap; }
#campaigns table.data th, #campaigns table.data td { padding-left: 9px; padding-right: 9px; font-size: 13px; }
#campaigns table.data th:first-child, #campaigns table.data td:first-child { padding-left: 20px; }
#campaigns table.data > tbody > tr > td:first-child { min-width: 200px; }

/* KPI strip with 5 figures, app store figure highlighted */
.kpis.kpis-5 { grid-template-columns: 1.3fr 1fr 1.1fr 1fr 1fr; }
.kpi-app { background: linear-gradient(0deg, rgba(11,128,67,.06), rgba(11,128,67,.06)); box-shadow: inset 0 3px 0 #0b8043; }
.kpi-app .label i { color: #0b8043; }
.kpi-app .label i.fa-apple { color: #1f1f24; }
.kpi-app .meta strong { color: #0b8043; }
.kpi .value .delta { font-size: inherit; }

/* payment methods: app stores as their own highlighted group */
.pay-icon { width: 18px; text-align: center; font-size: 15px; flex: none; }
.pay-icon.fa-google-play { color: #0b8043; }
.pay-icon.fa-apple { color: #1f1f24; font-size: 17px; }
.pay-icon.muted { color: var(--muted); }
.tag-app { background: #e6f4ec; border-color: #b7dcc6; color: #0b6b39; }
table.data tr.subtotal td { font-weight: 600; font-size: 13px; background: var(--surface-2); color: var(--text); }
table.data tr.subtotal.pay-app td { background: #e9f5ee; color: #0b6b39; }
table.data tr.subtotal.pay-app td:first-child { box-shadow: inset 3px 0 0 #0b8043; }
table.data tr.subtotal td i { margin-right: 2px; }
table.data tr.pay-app:not(.subtotal) td:first-child { box-shadow: inset 3px 0 0 #8fd0a9; }
table.data .app-num { color: #0b6b39; }
table.data.payments tbody tr:hover td { background: inherit; }

/* authenticator app setup */
.totp-grid { display: grid; grid-template-columns: 168px 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.totp-qr { width: 168px; height: 168px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.totp-qr svg { width: 100%; height: 100%; display: block; }
.totp-steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.totp-steps li { margin-bottom: 6px; }
.totp-secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .04em; word-break: break-all; color: var(--text); background: var(--surface-2); border-radius: 4px; padding: 2px 6px; }
.login-card.wide { max-width: 520px; }
.login-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.login-actions .btn-primary { flex: 1; margin-top: 0; }
.login-actions .btn { height: 44px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.success-mark { width: 44px; height: 44px; border-radius: 50%; background: #e6f4ec; color: #0b8043; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.sidebar .user .icon-link { color: var(--ink-text); width: 32px; height: 32px; border-radius: var(--radius-s); display: grid; place-items: center; text-decoration: none; }
.sidebar .user .icon-link:hover { background: var(--ink-2); color: #fff; }
.sidebar .user .logout { margin-left: 0; }
.sidebar .user .who { margin-right: auto; }

/* greeting */
.greeting-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--brand-dark); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }

@media (max-width: 1100px) {
	.kpis.kpis-5 { grid-template-columns: 1fr 1fr 1fr; }
	.kpis.kpis-5 .kpi { border-top: 0; border-left: 1px solid var(--line); }
	.kpis.kpis-5 .kpi:nth-child(3n+1) { border-left: 0; }
	.kpis.kpis-5 .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
	.kpis.kpis-5 { grid-template-columns: 1fr 1fr; }
	.kpis.kpis-5 .kpi { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
	.kpis.kpis-5 .kpi:nth-child(2n+1) { border-left: 0; }
	.kpis.kpis-5 .kpi:nth-child(-n+2) { border-top: 0; }
	.kpis.kpis-5 .kpi:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
	.kpis.kpis-5 .kpi:nth-child(2) { border-left: 0; }
	.kpis.kpis-5 .kpi:nth-child(3) { border-left: 1px solid var(--line); }
	.kpis.kpis-5 .kpi:nth-child(4) { border-left: 0; }
	.kpis.kpis-5 .kpi:nth-child(5) { border-left: 1px solid var(--line); }
	.totp-grid { grid-template-columns: 1fr; }
	.totp-qr { margin: 0 auto; }
}
.grid-2.grid-even { grid-template-columns: 1fr 1fr; }
.grid-even .share .bar { width: 56px; }
.grid-even table.data th, .grid-even table.data td { padding-left: 10px; padding-right: 10px; }
.grid-even table.data th:first-child, .grid-even table.data td:first-child { padding-left: 16px; }
.grid-even table.data th:last-child, .grid-even table.data td:last-child { padding-right: 16px; }
@media (max-width: 1100px) { .grid-2.grid-even { grid-template-columns: 1fr; } }

/* language selector */
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; gap: 2px; font-size: 12px; font-weight: 600; }
.lang-switch a { text-decoration: none; padding: 3px 9px; border-radius: 999px; color: var(--muted); letter-spacing: .02em; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang-switch.on-card { position: absolute; top: 20px; right: 20px; }
.lang-switch.in-sidebar { margin: auto 6px 12px; align-self: flex-start; border-color: var(--ink-3); }
.lang-switch.in-sidebar a { color: var(--ink-text); }
.lang-switch.in-sidebar a:hover { color: #fff; }
.lang-switch.in-sidebar a[aria-current="true"] { background: var(--ink-3); color: #fff; }
.sidebar .lang-switch.in-sidebar + .user { margin-top: 0; }
@media (max-width: 760px) {
	.lang-switch.in-sidebar { margin: 0 0 0 auto; align-self: center; }
	.lang-switch.in-sidebar + .user { margin-left: 0; }
}
.greeting-note[hidden] { display: none; }

/* project logos: show the whole logo (they are not round), no cropping */
.chip img, .chip .swatch { border-radius: 6px; object-fit: contain; background: #fff; }
.chip .swatch { background: var(--ink); }
table.data .logo-s { object-fit: contain; border-radius: 4px; background: transparent; }

/* segmented control (marketing: month/year, period/cohort) */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.panel-head .toolbar { gap: 8px; }
.panel-explain { padding: 6px 20px 0; color: var(--muted); font-size: 13px; max-width: 90ch; }
table.data.partners tr.group td:first-child .project-cell { gap: 8px; }
