/* Sharelink administration. No external fonts, frameworks, or remote assets. */
:root {
    --canvas: #0c0e12;
    --paper: #15181e;
    --ink: #eef0f4;
    --muted: #9ca4b2;
    --line: #2a2e38;
    --accent: #ff963f;
    --accent-hover: #ffad66;
    --accent-soft: #352519;
    --sidebar: #101217;
    --danger: #ff9898;
    --radius: 16px;
    --blue: #88b6ff;
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #89b6ff; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -1.1px; font-weight: 680; margin-bottom: 10px; }
h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.35px; font-weight: 650; margin-bottom: 8px; }
h3 { font-size: 15px; margin-bottom: 7px; }
p { margin-bottom: 16px; }
small { display: block; font-size: 12px; color: var(--muted); line-height: 1.55; }
strong { font-weight: 630; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.muted, .help { color: var(--muted); }
.help { font-size: 12px; line-height: 1.65; margin-top: 12px; }
.nowrap { white-space: nowrap; }
.eyebrow { font-size: 10px; font-weight: 720; letter-spacing: 1.6px; color: var(--accent); margin-bottom: 10px; }
.sidebar { background: var(--sidebar); color: #c8cdd6; width: 240px; position: fixed; inset: 0 auto 0 0; padding: 34px 22px 20px; display: flex; flex-direction: column; z-index: 10; }
.wordmark { display: inline-flex; align-items: center; gap: 5px; color: inherit; font-size: 30px; font-weight: 720; letter-spacing: -1.5px; line-height: 1; }
.wordmark span { background: #ff963f; color: #201409; width: 29px; height: 29px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 24px; margin-left: 3px; }
.wordmark:hover { text-decoration: none; }
.sidebar .wordmark { color: #f5f6f8; margin-left: 8px; }
.sidebar-caption { color: #8a92a1; font-size: 9px; letter-spacing: 1.5px; margin: 19px 8px 39px; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 9px; font-size: 13px; font-weight: 500; color: #a8afbc; }
.nav-item:hover { background: #1c2028; text-decoration: none; color: #12151b; }
.nav-item.active { background: #2e241e; color: #ffb97e; }
.nav-item.active .icon { color: #ff963f; }
.sidebar-note { margin: auto 8px 28px; padding-top: 28px; font-size: 12px; }
.sidebar-note p { color: #9199a9; line-height: 1.8; font-size: 11px; margin: 10px 0 0; }
.status-dot, .legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: #8fbaff; margin-right: 7px; }
.account { border-top: 1px solid #2a2e38; padding-top: 20px; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.account strong { max-width: 108px; overflow: hidden; text-overflow: ellipsis; display: block; }
.account small { color: #9199a9; font-size: 10px; }
.account form { margin-left: auto; }
.avatar { display: grid; place-items: center; background: #242b38; color: #b8d3ff; border-radius: 50%; width: 34px; height: 34px; flex-shrink: 0; font-size: 13px; }
.logout { background: none; border: 0; color: #a8afbc; font-size: 21px; padding: 3px; }
.app-shell { margin-left: 240px; min-height: 100vh; }
.topbar { height: 77px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 40px; background: #101217e8; font-size: 12px; }
.breadcrumb-separator { color: #596273; padding: 0 12px; }
.service-domain { display: inline-flex; align-items: center; gap: 8px; color: #a0a9b8; font-size: 11px; }
.service-domain .icon { width: 16px; height: 16px; flex-basis: 16px; }
.main { padding: 35px 40px 20px; max-width: 1640px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading p:last-child { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 650; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.button:hover { text-decoration: none; }
.button .icon { width: 16px; height: 16px; flex-basis: 16px; }
.button.primary { background: var(--accent); color: #1c130c; box-shadow: 0 2px 3px #00000020; }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: var(--paper); color: var(--ink); border-color: #343946; }
.button.secondary:hover { border-color: #5c6575; background: #1c2028; }
.button.light { background: #272b34; color: #eceef4; }
.button.danger { border-color: #583139; background: #291c21; color: var(--danger); }
.button.full { width: 100%; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 23px; min-height: 146px; box-shadow: 0 2px 2px #00000014; }
.metric-card > span { color: #aeb5c2; font-size: 12px; }
.metric-card > strong { display: block; font-size: 36px; line-height: 1.25; letter-spacing: -1px; font-weight: 650; margin: 10px 0; font-variant-numeric: tabular-nums; }
.metric-card strong em { color: #7e899b; font-size: 21px; font-style: normal; font-weight: 450; }
.metric-card small { font-size: 10px; }
.metric-card strong.word-value { font-size: 27px; }
.metric-card strong.date-value { font-size: 20px; line-height: 1.4; letter-spacing: -.3px; }
.global-card { background: #1b1a1c; color: #12151b; border-radius: var(--radius); padding: 25px 28px; display: flex; align-items: center; gap: 20px; margin-bottom: 24px; position: relative; overflow: hidden; }
.global-icon { width: 48px; height: 48px; border: 1px solid #62422a; background: #33271e; display: grid; place-items: center; border-radius: 12px; flex-shrink: 0; }
.global-icon .icon { color: #ffac68; width: 24px; height: 24px; }
.global-content { min-width: 0; flex: 1; }
.global-card .eyebrow { color: #ffac68; font-size: 9px; margin-bottom: 7px; }
.global-card h2 { font-size: 18px; margin-bottom: 4px; color: #f2f3f6; }
.global-card .destination { color: #c0c5cf; margin-bottom: 5px; font-size: 12px; }
.global-hint { color: #9199a7; font-size: 10px; }
.destination { overflow-wrap: anywhere; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 23px 25px; margin-bottom: 24px; min-width: 0; box-shadow: 0 2px 2px #00000014; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 15px; margin: 0; }
.panel-heading p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 22px; }
.pill { display: inline-flex; align-items: center; white-space: nowrap; gap: 5px; padding: 4px 9px; border-radius: 6px; font-size: 10px; line-height: 1.4; font-weight: 600; }
.pill.green { background: #1a2b40; color: #a2c8ff; }
.pill.neutral { background: #222731; color: #b1b8c5; }
.line-chart { display: block; width: 100%; height: auto; margin: 5px 0; overflow: visible; }
.chart-grid { stroke: #2b303a; stroke-dasharray: 3 4; stroke-width: 1; }
.chart-label { fill: #9ca5b4; font-size: 11px; font-family: inherit; }
.chart-line { fill: none; stroke: #74aaff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: #74aaff; }
.chart-footer { border-top: 1px solid #282d36; padding-top: 15px; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.chart-footer .legend-dot { background: #74aaff; }
.bar-list { display: grid; gap: 19px; padding: 8px 0; }
.bar-label { display: flex; gap: 12px; justify-content: space-between; font-size: 11px; margin-bottom: 5px; }
.bar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label strong { font-size: 11px; font-variant-numeric: tabular-nums; }
meter { width: 100%; height: 7px; display: block; border: none; background: #242b36; border-radius: 8px; }
meter::-webkit-meter-bar { border: none; border-radius: 8px; background: #242b36; height: 7px; }
meter::-webkit-meter-optimum-value { background: #679dea; border-radius: 8px; }
meter::-moz-meter-bar { background: #679dea; border-radius: 8px; }
.table-wrap { overflow-x: auto; width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
th { color: #9da6b5; font-size: 10px; font-weight: 550; border-bottom: 1px solid var(--line); padding: 12px 14px 13px 0; white-space: nowrap; }
td { padding: 17px 14px 17px 0; border-bottom: 1px solid #282d36; vertical-align: middle; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td strong { font-size: 12px; display: block; }
td small { margin-top: 3px; font-size: 10px; }
td:first-child { min-width: 135px; }
.table-action { font-size: 11px; white-space: nowrap; font-weight: 600; }
.text-link { font-size: 11px; white-space: nowrap; }
.url-cell { max-width: 310px; }
.url-cell > span { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; color: #acb5c5; font-size: 11px; }
.stat-strip { display: flex; gap: 25px; align-items: center; font-size: 11px; color: var(--muted); margin: 5px 0 20px; flex-wrap: wrap; }
.stat-strip strong { margin-left: 8px; color: #dde2eb; }
.stat-strip span:last-child { margin-left: auto; max-width: 470px; font-size: 10px; }
.empty-state { text-align: center; padding: 40px 20px; color: #a7b0bf; }
.empty-state h3 { color: #dee4ed; }
.empty-state p { font-size: 12px; max-width: 390px; margin: 8px auto 20px; }
.empty-state.small { font-size: 12px; padding: 35px 15px; }
.empty-icon { display: grid; place-items: center; margin: 0 auto 16px; width: 48px; height: 48px; background: #222b3a; color: #a2c8ff; border-radius: 12px; }
.alert { padding: 14px 17px; margin-bottom: 20px; border: 1px solid; border-radius: 9px; font-size: 12px; line-height: 1.65; }
.alert.success { color: #afd4ff; background: #182638; border-color: #2b4967; }
.alert.error { color: #ffb5b5; background: #2a1b22; border-color: #583139; }
.alert.notice { color: #ffd3ab; background: #30231a; border-color: #5a4029; }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.stack { display: grid; gap: 20px; }
label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; }
label small { font-weight: 400; font-size: 11px; }
input, select, textarea { width: 100%; border: 1px solid #363c49; border-radius: 8px; min-height: 43px; padding: 10px 12px; color: #edf0f6; background: #12151b; font-size: 13px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #828b9c; font-weight: 400; }
textarea { resize: vertical; min-height: 105px; }
input:focus, select:focus, textarea:focus { border-color: #90b6f0; }
.check-label { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; }
.check-label input { accent-color: var(--accent); width: 17px; height: 17px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; }
.check-label small { margin-top: 5px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.form-panel { padding: 28px; }
.form-panel > h2 { font-size: 16px; margin-bottom: 24px; }
.form-panel > p { font-size: 12px; color: var(--muted); }
.form-footer { display: flex; gap: 12px; justify-content: flex-end; margin: 0 0 30px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.chart-panels { gap: 24px; }
.notice-box { background: #1a202a; border: 1px solid #303949; border-radius: 9px; padding: 17px; font-size: 12px; }
.notice-box p { color: #a7b4c8; font-size: 11px; margin: 8px 0; }
.notice-box a { font-size: 11px; }
summary { cursor: pointer; font-size: 12px; font-weight: 600; color: #bbd6ff; }
details p { margin-top: 12px; font-size: 12px; }
.disclosure { padding: 22px 25px; }
.disclosure .stack { margin-top: 24px; }
.disclosure .stack p { margin: 0; color: #aab4c4; font-size: 12px; }
.row-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; font-size: 11px; }
.row-actions form { margin: 0; }
.link-button { background: none; color: var(--accent); border: 0; padding: 0; font: inherit; }
.link-button:hover { text-decoration: underline; }
.code-block { white-space: pre-wrap; overflow-wrap: anywhere; background: #0d1016; color: #b5d2ff; border-radius: 10px; padding: 25px; line-height: 1.9; font: 12px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; margin: 0 0 20px; }
.light-code { background: #242b36; color: #b2caee; padding: 17px; font-size: 11px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
.install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 27px; }
.install-steps span { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: #28282a; color: #ffb87b; margin-bottom: 13px; }
.install-steps h3 { font-size: 12px; }
.install-steps p, .install-steps code { color: #a7b0bf; font-size: 11px; }
.url-box { padding: 14px 18px; border: 1px solid var(--line); background: #10141c; border-radius: 8px; font: 12px/1.8 ui-monospace, monospace; overflow-wrap: anywhere; }
.danger-zone { display: flex; gap: 25px; justify-content: space-between; align-items: center; border-color: #53313a; }
.danger-zone h2 { font-size: 15px; }
.danger-zone p { color: #c6a3a9; font-size: 12px; max-width: 600px; margin-bottom: 0; }
.search-field input { min-height: 36px; font-size: 11px; padding: 8px 12px; width: 230px; background: #1c2028; }
.filter-bar { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.filter-bar label { flex: 1; min-width: 125px; font-size: 10px; }
.filter-bar label input, .filter-bar label select { font-size: 11px; }
.filter-bar .button { height: 43px; }
.chart-data { font-size: 11px; margin: 10px 0; }
.chart-data .table-wrap { max-height: 270px; margin-top: 15px; }
.audit-details { max-width: 560px; white-space: pre-wrap; overflow-wrap: anywhere; background: #0f141c; border-radius: 8px; padding: 15px; font: 11px/1.7 ui-monospace, monospace; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 12px; margin: 25px 0; }
.app-footer { display: flex; justify-content: space-between; padding: 20px 40px 25px; color: #8892a3; font-size: 10px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 12px 20px; background: #263348; color: #eff4ff; border-radius: 9px; z-index: 100; box-shadow: 0 6px 24px #00000060; font-size: 12px; }
.guest-body { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; background: radial-gradient(ellipse at 20% 0%, #293347, transparent 52%), #0c0e12; }
.guest-card { width: min(100%, 460px); padding: 44px; background: #12151b; border: 1px solid #353b48; border-radius: 20px; box-shadow: 0 20px 80px #00000060; }
.guest-card .wordmark { margin-bottom: 42px; font-size: 33px; color: #f2f3f6; }
.guest-card .eyebrow { font-size: 9px; }
.guest-card h1 { font-size: 32px; }
.guest-card .intro { color: #a6afbd; font-size: 13px; margin-bottom: 29px; }
.guest-card .help { text-align: center; font-size: 11px; margin: 23px 0 0; }
.guest-card .button { margin-top: 6px; }
.guest-footer { display: flex; align-items: center; justify-content: center; gap: 6px; color: #a1aaba; margin-top: 32px; padding-top: 22px; border-top: 1px solid #2d3340; font-size: 10px; }
.guest-footer .icon { width: 14px; height: 14px; flex-basis: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 1000; padding: 12px 18px; background: #12151b; border-radius: 8px; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
@media (min-width: 1800px) { .metric-card { min-height: 155px; } }
@media (max-width: 1250px) {
    .sidebar { width: 210px; padding-inline: 17px; }
    .app-shell { margin-left: 210px; }
    .main { padding: 30px 26px 20px; }
    .topbar { padding-inline: 26px; }
    .metric-grid { gap: 12px; }
    .metric-card { padding: 18px 17px; }
    .metric-card > strong { font-size: 30px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .global-card { flex-wrap: wrap; }
    .global-card .button { margin-left: 68px; }
}
@media (max-width: 980px) {
    .sidebar { width: 190px; padding-inline: 12px; }
    .sidebar .wordmark { font-size: 26px; }
    .app-shell { margin-left: 190px; }
    .main { padding: 26px 20px; }
    .topbar { padding-inline: 20px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid, .form-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .page-heading { align-items: flex-start; }
    .service-domain { display: none; }
    .install-steps { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .install-steps > div { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
    .install-steps > div:last-child { border: 0; }
    .danger-zone { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
    .sidebar { width: 100%; position: relative; inset: auto; padding: 22px 20px 12px; display: block; }
    .sidebar .wordmark { font-size: 25px; }
    .sidebar .wordmark span { width: 25px; height: 25px; font-size: 20px; }
    .sidebar-caption, .sidebar-note, .account { display: none; }
    .sidebar nav { display: flex; gap: 5px; overflow-x: auto; margin-top: 20px; padding-bottom: 4px; }
    .nav-item { padding: 9px 11px; gap: 7px; white-space: nowrap; font-size: 11px; }
    .nav-item .icon { width: 16px; height: 16px; flex-basis: 16px; }
    .app-shell { margin-left: 0; }
    .topbar { height: 50px; padding-inline: 20px; font-size: 11px; }
    .main { padding: 24px 16px; }
    .page-heading { flex-direction: column; gap: 16px; margin-bottom: 23px; }
    .page-heading h1 { font-size: 28px; }
    .page-heading p:last-child { font-size: 12px; }
    .page-heading > .button { align-self: flex-start; }
    .metric-grid, .metric-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .metric-grid.three > :last-child { grid-column: 1 / -1; }
    .metric-card { min-height: 129px; padding: 16px; }
    .metric-card > strong { font-size: 30px; margin-block: 10px 7px; }
    .metric-card > span { font-size: 10px; }
    .metric-card small { font-size: 9px; }
    .panel { padding: 20px 17px; margin-bottom: 19px; }
    .panel-heading { align-items: flex-start; flex-wrap: wrap; }
    .global-card { gap: 14px; padding: 22px; align-items: flex-start; }
    .global-icon { width: 38px; height: 38px; border-radius: 9px; }
    .global-content { min-width: 190px; }
    .global-card .button { margin-left: 52px; }
    .global-card .destination { font-size: 11px; }
    .two-column { grid-template-columns: minmax(0, 1fr); gap: 17px; }
    .chart-panels { gap: 0; }
    .search-field, .search-field input { width: 100%; }
    .code-block { padding: 18px; font-size: 10px; }
    .filter-bar { gap: 12px; }
    .filter-bar label { min-width: calc(50% - 12px); }
    .filter-bar .button { width: 100%; }
    .stat-strip { gap: 14px; }
    .stat-strip span:last-child { margin-left: 0; }
    .app-footer { padding: 15px 20px 30px; gap: 15px; font-size: 9px; }
    .guest-card { padding: 30px 25px; }
    .guest-card .wordmark { margin-bottom: 32px; }
    .guest-card h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.mobile-signout { display: none; }
@media (max-width: 700px) { .mobile-signout { display: block; } }

/* Graphite / ember interface, version 1.1.0. No remote assets. */
::selection { background: #4c3b2b; color: #ffffff; }
body { background: var(--canvas); }
a { color: var(--blue); }
.sidebar { border-right: 1px solid #262a33; background: linear-gradient(180deg, #101217, #101319); }
.sidebar nav { gap: 8px; }
.nav-item { min-height: 45px; border: 1px solid transparent; }
.nav-item.active { border-color: #59402d; box-shadow: inset 3px 0 0 var(--accent); }
.wordmark { letter-spacing: -1.3px; }
.wordmark span { box-shadow: 0 0 25px #ff963f16; }
.sidebar-caption { letter-spacing: 1.7px; font-size: 9px; }
.sidebar-note .status-dot { display: inline-block; background: var(--blue); box-shadow: 0 0 0 4px #2c456333; }
.topbar { backdrop-filter: blur(12px); }
.workspace-dot { display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.service-domain { border: 1px solid #303745; border-radius: 7px; padding: 6px 10px; background: #181e28; }
.main { padding-top: 38px; }
h1 { font-weight: 700; letter-spacing: -1.25px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; color: #ffaf70; }
.button { border-radius: 9px; min-height: 42px; padding-inline: 17px; }
.button.primary { background: linear-gradient(180deg, #ffa250, #ff9138); border-color: #ffb87566; box-shadow: 0 4px 18px #ff963f0d; color: #21160c; }
.button.primary:hover { background: #ffb476; }
.button.secondary, .button.light { background: #20252e; border-color: #3d4451; color: #e6eaf2; }
.button.secondary:hover, .button.light:hover { background: #2a303c; border-color: #62718a; }
.metric-card { background: linear-gradient(160deg, #191d25, #14171e); position: relative; overflow: hidden; }
.metric-card::after { content: ''; position: absolute; width: 22px; height: 3px; background: #557dac; top: 0; left: 23px; border-radius: 0 0 3px 3px; }
.metric-card:first-child::after { background: var(--accent); }
.metric-card:first-child > strong { color: #ffb77d; }
.metric-card > strong { letter-spacing: -1.4px; }
.metric-card small { font-size: 11px; }
.global-card { background: radial-gradient(ellipse at 0 0, #4c31221a, transparent 75%), linear-gradient(115deg, #211c19, #181b22 65%); border: 1px solid #4c3828; box-shadow: inset 3px 0 0 #ff963f; }
.global-card .button { flex-shrink: 0; }
.global-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.global-badges .pill { padding: 4px 8px; font-size: 10px; }
.global-badges .icon { width: 12px; height: 12px; flex-basis: 12px; }
.pill { border: 1px solid transparent; }
.pill.orange { background: #39291c; color: #ffc28e; border-color: #64452c; }
.pill.green { background: #1b2a3c; color: #acd0ff; border-color: #304b6b; }
.pill.neutral { background: #232833; color: #b6bece; border-color: #323b4b; }
.panel { box-shadow: 0 4px 20px #0000000d; }
.panel-heading h2 { font-size: 16px; }
.chart-line { stroke-width: 2.8; filter: drop-shadow(0 0 5px #74aaff20); }
.chart-area { fill: #74aaff0a; }
.chart-grid { stroke-dasharray: 0; opacity: .8; }
.chart-footer a { color: var(--blue); }
.bar-list { gap: 22px; }
meter, meter::-webkit-meter-bar { height: 6px; background: #262d39; }
meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, #5189da, #91bcff); }
meter::-moz-meter-bar { background: #82b0f4; }
thead { background: #191e26; }
th { padding-left: 12px; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; }
td { padding-left: 12px; }
tbody tr:hover { background: #1c222b; }
td:first-child, th:first-child { border-radius: 6px 0 0 6px; }
td:last-child, th:last-child { border-radius: 0 6px 6px 0; }
label { color: #d8deea; }
input, select, textarea { background: #0f131a; border-color: #39414f; border-radius: 9px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
input::placeholder, textarea::placeholder { color: #8893a6; }
input:disabled, select:disabled, textarea:disabled { opacity: .55; }
select option { color: #e8edf5; background: #171c25; }
.switch-label { align-items: flex-start; }
.switch-label input { appearance: none; width: 40px; height: 23px; border-radius: 30px; background: #343c4a; border: 1px solid #5b677b; padding: 0; position: relative; margin: 0; transition: background .15s; }
.switch-label input::after { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #b9c4d7; left: 3px; top: 3px; transition: transform .15s; }
.switch-label input:checked { background: #ff963f; border-color: #ffb06d; }
.switch-label input:checked::after { background: #25180d; transform: translateX(17px); }
.notice-box { background: #111924; border-color: #2d415b; }
.notice-box strong { color: #d4e5ff; }
.notice-box p { color: #a9c1e3; }
.code-block { border: 1px solid #303c50; background: #0d121b; color: #bad6ff; border-radius: 12px; }
.single-line-code { white-space: pre; overflow-wrap: normal; word-break: normal; overflow-x: auto; max-width: 100%; min-width: 0; scrollbar-width: thin; scrollbar-color: #566d8e #151b26; }
.code-block.single-line-code { font-size: 12px; padding: 22px; }
.install-steps span { background: #2e251d; color: #ffba81; border: 1px solid #59422f; }
.install-steps code { color: #b7d3ff; }
.utm-panel { border-color: #39404e; }
.utm-panel .panel-heading h2 { display: flex; align-items: center; gap: 10px; }
.utm-values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.utm-values > div { min-width: 0; border: 1px solid #313b4e; border-radius: 9px; background: #111722; padding: 13px 15px; }
.utm-values span { display: block; font-size: 10px; letter-spacing: .35px; color: #9eabc0; margin-bottom: 5px; }
.utm-values code { display: block; font-size: 14px; color: #c7deff; overflow-wrap: anywhere; }
.utm-preview .utm-values, .notice-box .utm-values { margin: 15px 0; }
.upgrade-panel { display: flex; justify-content: space-between; align-items: center; gap: 22px; border-color: #775231; background: #291f19; }
.upgrade-panel p { color: #dac0a7; margin: 5px 0 0; font-size: 12px; }
.upgrade-panel form { flex-shrink: 0; }
.url-box { border-color: #394459; color: #c5d5ee; }
.guest-body { background: radial-gradient(ellipse at 20% 5%, #2b374c66, transparent 45%), radial-gradient(ellipse at 85% 85%, #49312433, transparent 45%), #0c0e12; }
.guest-card { background: linear-gradient(155deg, #1a202b, #14171e); border: 1px solid #39414e; box-shadow: 0 24px 80px #00000055; }
.skip-link { background: #1d2a40; color: #ffffff; }
.toast { border: 1px solid #526989; max-width: calc(100vw - 32px); text-align: center; }
@media (max-width: 700px) {
    .main { padding-top: 26px; }
    .sidebar { background: #101319; border-bottom: 1px solid #303643; border-right: 0; }
    .sidebar nav { margin-top: 20px; gap: 5px; }
    .nav-item { min-height: 40px; }
    .metric-card small { font-size: 10px; }
    .metric-card::after { left: 16px; }
    .global-content { min-width: 0; flex-basis: calc(100% - 55px); }
    .utm-values { gap: 9px; }
    .utm-values > div { padding: 11px; }
    .utm-values code { font-size: 12px; }
    .upgrade-panel { flex-direction: column; align-items: flex-start; }
    .code-block.single-line-code { font-size: 11px; padding: 17px; }
    input, select, textarea { font-size: 16px; }
    .app-footer { color: #a1aaba; }
}
/* Long destination URLs must truncate inside charts, not widen the page. */
.bar-list { grid-template-columns: minmax(0, 1fr); }
.bar-item, .bar-label { min-width: 0; }
.bar-label span { min-width: 0; flex: 1; }
.bar-label strong { flex-shrink: 0; }
