:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --canvas: #f7f8fa;
  --lime: #d4ff28;
  --danger: #b42318;
}
* { box-sizing: border-box; }
body.backoffice-body { margin: 0; font-family: Arial, sans-serif; color: var(--ink); background: var(--canvas); }
.backoffice-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.backoffice-shell a { color: inherit; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; background: #111827; color: #f9fafb; padding: 20px 14px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 18px; font-weight: 800; font-size: 17px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--lime); color: #111827; font-size: 23px; }
.operator-context { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 8px 18px; font-size: 11px; }
.environment { display: inline-flex; border-radius: 5px; padding: 5px 7px; font-weight: 800; letter-spacing: .04em; }
.environment.prod { color: #fff; background: #a62b1f; }
.environment.non-prod { color: #111827; background: #d4ff28; }
.operator-role { color: #d1d5db; }
.operator-name { flex-basis: 100%; color: #d1d5db; overflow-wrap: anywhere; }
.nav-group { margin: 10px 0 18px; }
.sidebar .nav-group h2 { margin: 0 10px 6px; font-size: 11px; color: #9ca3af; letter-spacing: .05em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; margin: 2px 0; border-radius: 8px; color: #d1d5db !important; text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.nav-link:hover { background: #263244; color: #fff !important; }
.nav-link.active { background: var(--lime); color: #111827 !important; font-weight: 700; }
.technical-link { border-top: 1px solid #344054; border-radius: 0; font-size: 12px; }
.mobile-navigation { display: none; }
.skip-link { position: absolute; top: -100px; left: 12px; padding: 12px; background: var(--lime); color: var(--ink); z-index: 10; }
.skip-link:focus { top: 12px; }
.backoffice-shell main { min-width: 0; padding: 24px clamp(16px, 3vw, 40px) 48px; overflow-wrap: anywhere; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-header > div { min-width: 0; }
.backoffice-shell h1 { font-size: 26px; margin: 0; }
.backoffice-shell h2 { font-size: 18px; margin: 24px 0 10px; }
.backoffice-shell h3 { font-size: 15px; margin: 18px 0 8px; }
.backoffice-shell p { line-height: 1.5; }
.backoffice-shell .subtle, .backoffice-shell .empty, .backoffice-shell .muted { color: var(--muted); font-size: 13px; }
.toolbar, .actions, .row-inline, .legacy-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.toolbar > label { min-width: 0; max-width: 100%; }
.backoffice-shell label { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 700; }
.backoffice-shell input, .backoffice-shell select, .backoffice-shell textarea, .backoffice-shell button { font: inherit; }
.backoffice-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .backoffice-shell select, .backoffice-shell textarea {
  min-height: 44px; max-width: 100%; min-width: 0; border: 1px solid #cfd4dc; border-radius: 8px; padding: 10px; background: #fff; color: var(--ink);
}
.backoffice-shell textarea { width: 100%; min-height: 180px; font-family: ui-monospace, monospace; font-size: 13px; }
.backoffice-shell input[type=checkbox], .backoffice-shell input[type=radio] { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
.row-inline { align-items: center; }
.row-inline label { display: inline-flex; align-items: center; min-height: 44px; }
.backoffice-shell button, .backoffice-shell .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; border: 1px solid #cfd4dc; border-radius: 8px; padding: 10px 14px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 700; font-size: 13px; text-align: center; }
.backoffice-shell button.primary, .backoffice-shell .button.primary { background: var(--lime); border-color: #b8df20; }
.backoffice-shell button.danger, .backoffice-shell .button.danger { color: var(--danger); border-color: #f0b5b0; }
.backoffice-shell button:disabled { opacity: .55; cursor: not-allowed; }
.backoffice-shell :focus-visible { outline: 3px solid #789200; outline-offset: 3px; }
.sidebar :focus-visible { outline-color: var(--lime); }
.cards, .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.card, .panel, .legacy-content .section { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card span, .card .label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.card strong, .card .value { font-size: 22px; }
.panel > h2:first-child, .legacy-content .section > h2:first-child { margin-top: 0; }
.legacy-content .section { margin: 16px 0; }
.legacy-content input[type=text], .legacy-content input[type=email], .legacy-content select { width: 100%; }
.legacy-content label { margin: 12px 0 6px; }
.legacy-content .actions { margin-top: 16px; }
.legacy-nav { margin-bottom: 18px; }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; overscroll-behavior-x: contain; }
.backoffice-shell table { width: 100%; border-collapse: collapse; }
.backoffice-shell th, .backoffice-shell td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; white-space: nowrap; }
.backoffice-shell th { background: #f2f4f7; color: #475467; }
.backoffice-shell tr:last-child td { border-bottom: 0; }
.backoffice-shell td form { margin: 4px 0; }
.quota-table input[type=number] { width: 110px; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: #eef1f5; font-size: 11px; font-weight: 700; }
.badge.ok { background: #ecfdf3; color: #027a48; }
.badge.danger { background: #fef3f2; color: var(--danger); }
.notice, .legacy-content div.ok, .legacy-content .alert, .ops-content .alert { padding: 12px; border-radius: 8px; margin: 0 0 14px; font-size: 13px; }
.notice.success, .legacy-content div.ok { background: #ecfdf3; color: #027a48; }
.notice.error, .legacy-content .alert, .ops-content .alert { background: #fef3f2; color: var(--danger); }
.legacy-content li.ok { color: #027a48; }
.legacy-content li.ko { color: var(--danger); }
.backoffice-shell code, .backoffice-shell pre { font-family: ui-monospace, monospace; }
.backoffice-shell pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f2f4f7; border-radius: 8px; padding: 12px; font-size: 12px; }
.backoffice-shell main details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 10px 0; }
.backoffice-shell main summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.bot-switcher { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.bot-context { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 16px; }
.overview-group .actions { align-items: stretch; }
.ops-content .section-block { margin-bottom: 18px; }
.ops-content .context { font-size: 13px; margin: 12px 0; }
.ops-content .bar-row { margin: 8px 0; }
.ops-content .bar-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-bottom: 4px; }
.ops-content .bar-bg { width: 100%; height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.ops-content .bar-fill { height: 100%; background: #789200; border-radius: 999px; }
@media (max-width: 900px) {
  .backoffice-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { position: static; height: auto; overflow-y: visible; padding: 12px 16px; }
  .brand { padding: 0 0 10px; }
  .operator-context { padding: 0 0 10px; }
  .operator-name { flex-basis: auto; }
  .desktop-navigation { display: none; }
  .mobile-navigation { display: block; border-top: 1px solid #344054; }
  .mobile-navigation > summary { min-height: 44px; display: list-item; padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 700; }
  .mobile-navigation .nav-group h2 { color: #9ca3af; font-size: 11px; }
  .page-header { flex-direction: column; gap: 10px; }
  .backoffice-shell main { padding: 18px 16px 36px; }
}
@media (max-width: 600px) {
  .backoffice-shell h1 { font-size: 23px; }
  .toolbar { align-items: stretch; }
  .toolbar > label, .toolbar > button { width: 100%; }
  .toolbar > a.button { flex: 1 1 auto; }
  .backoffice-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .backoffice-shell select, .backoffice-shell textarea { font-size: 16px; }
  .overview-grid { grid-template-columns: 1fr; }
  .card, .panel, .legacy-content .section { padding: 14px; }
}

.mobile-row-toggle, .mobile-record-tools { display: none !important; }
.record-value { min-width: 0; }
.customer-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.customer-sections a { min-height: 44px; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
.customer-section { scroll-margin-top: 18px; }
.customer-section > summary { display: flex; align-items: center; gap: 10px; min-height: 44px !important; }
.customer-section > summary::before { content: '›'; font-size: 22px; }
.customer-section[open] > summary::before { transform: rotate(90deg); }
.customer-section > summary::after { content: attr(data-summary); margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; text-align: right; }
.account-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.account-facts div { min-width: 0; }
.account-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.account-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .table-wrap:has(> .record-table) { border: 0; border-radius: 0; background: transparent; }
  .mobile-record-tools { display: flex !important; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
  .table-wrap:has(> .record-table):not([data-mobile-view=table]) { overflow: visible; }
  .table-wrap:not([data-mobile-view=table]) .record-table,
  .table-wrap:not([data-mobile-view=table]) .record-table tbody { display: block; width: 100%; }
  .table-wrap:not([data-mobile-view=table]) .record-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap:not([data-mobile-view=table]) .record-table tr:has(td) { display: block; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; background: #fff; }
  .table-wrap:not([data-mobile-view=table]) .record-table td { display: grid; grid-template-columns: minmax(72px, 30%) minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; white-space: normal; overflow-wrap: anywhere; }
  .table-wrap:not([data-mobile-view=table]) .record-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; line-height: 1.5; }
  .table-wrap:not([data-mobile-view=table]) .record-table td.empty { display: block; }
  .table-wrap:not([data-mobile-view=table]) .record-table td.empty::before { content: none; }
  .table-wrap:not([data-mobile-view=table]) .record-table tr[data-record-expanded=false] td.record-detail { display: none; }
  .table-wrap:not([data-mobile-view=table]) .record-table .mobile-row-toggle { display: flex !important; grid-column: 1 / -1; width: 100%; margin-top: 4px; background: #f7f8fa; }
  .record-value form, .record-value .toolbar { width: 100%; }
  .record-value .toolbar { display: grid; grid-template-columns: 1fr; }
  .record-value label, .record-value input:not([type=checkbox]):not([type=hidden]), .record-value select { max-width: 100%; width: 100%; }
  .record-value .button { width: 100%; margin: 4px 0; }
  .customer-summary .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-summary .card strong { font-size: 18px; overflow-wrap: anywhere; }
}
.mobile-row-controls { display: none !important; }
@media (max-width: 900px) {
  .table-wrap:not([data-mobile-view=table]) .record-table td[colspan] { display: block; }
  .table-wrap:not([data-mobile-view=table]) .record-table td[colspan]::before { content: none; }
  .table-wrap:not([data-mobile-view=table]) .record-table td.mobile-row-controls { display: block !important; }
}

/* Operational overview: compact cards and responsive native SVG charts. */
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.dashboard-cards strong { display: block; font-size: 28px; margin-top: 8px; }
.dashboard-chart { min-width: 0; }
.dashboard-chart svg { display: block; width: 100%; height: auto; max-height: 200px; }
.dashboard-legend { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 600; margin: 10px 0; }
.dashboard-signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.dashboard-signal { display: flex; gap: 12px; align-items: flex-start; }
.signal-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; margin-top: 5px; }
.signal-dot.green { background: #21854b; }
.signal-dot.yellow { background: #b07800; }
.signal-dot.red { background: #be3434; }
@media (max-width: 500px) { .dashboard-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Support workspace and install controls */
.language-switcher {display:flex;gap:6px;padding:0 8px 16px;}
.language-switcher a {padding:8px 10px;border-radius:8px;text-decoration:none;font-size:13px;}
.language-switcher a[aria-current="true"] {background:var(--lime);color:var(--ink);font-weight:700;}
.pwa-help {margin-top:32px;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;}
.pwa-help details {margin-top:12px;}
.pwa-help summary {cursor:pointer;}
.customer-summary {background:white;padding:20px;border-radius:16px;border:1px solid var(--line);}
.customer-section[open] > summary {border-left:4px solid var(--lime);padding-left:12px;}
@media (max-width: 900px) {.language-switcher {padding-bottom:8px;} }
@media (max-width: 760px) {.toolbar label:has(input[name="q"]) {width:100%;} }

#install-backoffice[hidden] {display:none;}
.login-panel {max-width:440px;margin:10vh auto;padding:28px;background:white;border:1px solid var(--line);border-radius:20px;}
.login-panel h1 {display:flex;gap:12px;align-items:center;font-size:24px;}
.login-panel form,.login-panel label {display:grid;gap:12px;}
.login-panel input {padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit;}
.login-panel button {background:var(--lime);border:0;border-radius:10px;padding:14px;font:inherit;font-weight:700;cursor:pointer;}
.login-panel .language-switcher a {color:var(--ink);}
@media(max-width:500px) {.login-panel {margin:8vh 16px;}}

@media(max-width:500px) {
  .customer-section > summary {flex-wrap:wrap;row-gap:4px;}
  .customer-section > summary::after {flex-basis:100%;text-align:left;margin-left:20px;}
}

/* Overview: dense metrics, compact controls, optional operational detail. */
.overview-content .page-header {align-items:center;margin-bottom:12px;gap:10px;}
.overview-content .page-header h1 {font-size:23px;}
.overview-content .page-header p {margin:3px 0 0;font-size:12px;}
.overview-content .bot-switcher {gap:6px;}
.overview-content .bot-switcher label {display:flex;align-items:center;gap:6px;}
.overview-content .bot-switcher select {padding:6px 8px;min-height:36px;max-width:220px;font-size:14px;}
.overview-content .bot-switcher button {padding:6px 10px;min-height:36px;}
.dashboard-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 10px;}
.dashboard-toolbar {display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.dashboard-toolbar label {display:flex;align-items:center;gap:6px;font-size:12px;}
.dashboard-toolbar select {min-height:36px;padding:6px 8px;font-size:14px;}
.dashboard-toolbar button {min-height:36px;padding:6px 10px;}
.dashboard-heading time {font-size:11px;white-space:nowrap;}
.overview-content .dashboard-cards {grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:10px;}
.dashboard-metric {padding:10px 12px;background:white;position:relative;}
.dashboard-metric > span {display:block;color:var(--muted);font-size:12px;line-height:1.25;min-height:30px;}
.dashboard-metric strong {font-size:26px;line-height:1.15;margin:3px 0 0;font-variant-numeric:tabular-nums;}
.dashboard-metric small {position:absolute;bottom:10px;right:10px;color:var(--muted);font-size:10px;}
.dashboard-charts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.overview-content .dashboard-chart {padding:10px 12px;}
.overview-content .dashboard-chart h2 {margin:0;font-size:14px;}
.overview-content .dashboard-chart svg {max-height:120px;}
.overview-content .dashboard-legend {gap:10px;margin:6px 0;font-size:11px;font-weight:400;}
.overview-content .dashboard-chart details {border:0;border-top:1px solid var(--line);border-radius:0;margin:4px 0 0;padding:5px 0 0;}
.overview-content .dashboard-chart summary {font-size:11px;min-height:28px;display:flex;align-items:center;}
.dashboard-status {display:flex;gap:6px;flex-wrap:wrap;margin:10px 0;}
.overview-content .dashboard-signal {display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:8px;background:white;padding:7px 8px;font-size:11px;}
.overview-content .signal-dot {width:7px;height:7px;flex-basis:7px;margin:0;}
.overview-content .dashboard-notes {padding:7px 10px;margin:8px 0 14px;font-size:12px;}
.overview-content .dashboard-notes summary {min-height:28px;display:flex;align-items:center;font-size:12px;}
.overview-content .dashboard-notes li {margin:6px 0;}
.overview-content .overview-grid {gap:6px;grid-template-columns:repeat(2,minmax(0,1fr));}
.overview-content .overview-group {margin:0;padding:6px 10px;}
.overview-content .overview-group summary {min-height:32px;display:flex;align-items:center;justify-content:space-between;font-size:13px;}
.overview-content .overview-group summary::after {content:'+';color:var(--muted);}
.overview-content .overview-group[open] summary::after {content:'−';}
.overview-content .overview-group p {margin:5px 0 8px;font-size:12px;}
.overview-content .overview-group .actions {gap:5px;}
.overview-content .overview-group .button {min-height:34px;padding:6px 8px;font-size:12px;}
@media(min-width:1200px) {.overview-content .dashboard-cards {grid-template-columns:repeat(9,minmax(0,1fr));}}
@media(max-width:900px) {
  .backoffice-body:has(.overview-content) .sidebar {display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:10px 12px;align-items:center;}
  .backoffice-body:has(.overview-content) .brand {padding:0;font-size:14px;}
  .backoffice-body:has(.overview-content) .brand-mark {height:26px;flex-basis:26px;font-size:20px;}
  .backoffice-body:has(.overview-content) .operator-context {grid-column:1;padding:0;gap:5px;font-size:10px;}
  .backoffice-body:has(.overview-content) .operator-name {display:none;}
  .backoffice-body:has(.overview-content) .language-switcher {grid-column:2;grid-row:1 / span 2;padding:0;gap:2px;}
  .backoffice-body:has(.overview-content) .language-switcher a {padding:10px 6px;font-size:12px;}
  .backoffice-body:has(.overview-content) .mobile-navigation {grid-column:1 / -1;}
  .backoffice-body:has(.overview-content) .mobile-navigation > summary {min-height:36px;padding:8px 0;font-size:12px;}
  .backoffice-shell main.overview-content {padding:12px 12px 24px;}
  .overview-content .page-header {flex-direction:row;flex-wrap:wrap;}
  .overview-content .page-header > div {flex:1;}
  .overview-content .page-header p {display:none;}
  .overview-content .bot-switcher label {font-size:0;}
  .overview-content .bot-switcher select {width:150px;font-size:16px;min-height:44px;}
  .overview-content .bot-switcher button {font-size:12px;min-height:44px;padding:6px 8px;}
}
@media(max-width:500px) {
  .overview-content .page-header h1 {font-size:20px;}
  .overview-content .bot-switcher select {width:135px;}
  .dashboard-heading time {width:100%;text-align:right;margin-top:-3px;}
  .dashboard-toolbar select {font-size:16px;min-height:44px;}
  .dashboard-toolbar button {min-height:44px;}
  .dashboard-metric {padding:8px;}
  .dashboard-metric > span {font-size:11px;min-height:28px;}
  .dashboard-metric strong {font-size:23px;}
  .dashboard-metric small {bottom:9px;right:6px;font-size:9px;}
  .dashboard-charts {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
  .overview-content .dashboard-chart {padding:8px;}
  .overview-content .dashboard-chart h2 {font-size:12px;min-height:30px;}
  .overview-content .dashboard-legend {font-size:10px;gap:4px;min-height:26px;}
  .overview-content .dashboard-chart summary {font-size:10px;}
  .overview-content .dashboard-chart svg {max-height:90px;}
  .overview-content .dashboard-chart summary,.overview-content .dashboard-notes summary,.overview-content .overview-group summary {min-height:40px;}
  .overview-content .overview-grid {grid-template-columns:1fr;}
  .overview-content .overview-group .button {min-height:44px;}
  .overview-content .dashboard-status {gap:4px;}
  .overview-content .dashboard-signal {font-size:10px;padding:6px;gap:4px;}
}
.course-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;margin:16px 0;}
.course-filters label {display:flex;flex-direction:column;gap:6px;min-width:0;}
.course-filters select {width:100%;min-width:0;min-height:44px;}
@media(min-width:1000px) {.course-filters {grid-template-columns:repeat(4,minmax(0,1fr));}}

/* Support: people and conversation first, developer diagnostics last. */
.support-person h2 { margin-bottom: 6px; }
.support-summary { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.support-message header { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.support-message time { margin-left:auto; font-size:13px; color:var(--muted); }
.support-message p { white-space:pre-wrap; overflow-wrap:anywhere; }
.support-internal { border-left:4px solid #e1b530; background:#fffdf4; }
.support-screenshots { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0; }
.support-screenshots a { display:block; max-width:100%; }
.support-screenshots img { display:block; width:auto; max-width:100%; max-height:360px; border-radius:12px; border:1px solid var(--line); }
.support-compose { margin:24px 0; }
.support-compose [role=tablist] { display:flex; gap:8px; flex-wrap:wrap; }
.support-compose [role=tab][aria-selected=true] { background:var(--lime); border-color:var(--ink); }
.support-compose [hidden] { display:none !important; }
.support-developer { margin:24px 0; font-size:13px; }
.support-developer dl { display:grid; grid-template-columns:minmax(80px,1fr) minmax(0,3fr); gap:12px; }
.support-developer dd { margin:0; overflow-wrap:anywhere; }
.support-person { overflow-wrap:anywhere; }

.support-alerts {display:flex;flex-wrap:wrap;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0 20px;}
.support-alerts p {flex-basis:100%;margin:0;}
.pwa-help ol {padding-left:24px;}
.pwa-help li {margin:8px 0;}

.analytics-filters {display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px;}
.analytics-filters label {flex:1 1 180px;}
.analytics-stats {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;margin:16px 0;}
.analytics-stat {padding:16px;border:1px solid var(--line);background:white;border-radius:12px;display:flex;flex-direction:column;gap:8px;}
.analytics-stat strong {font-size:24px;}
.analytics-detail {display:block;color:var(--muted);font-size:12px;margin-top:5px;overflow-wrap:anywhere;}

/* Commerce summaries have longer labels and explicit period captions. */
.overview-content .dashboard-commerce .dashboard-cards {grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));}
.dashboard-commerce .dashboard-metric small {position:static;display:block;margin-top:5px;}
.dashboard-commerce .dashboard-metric strong {overflow-wrap:anywhere;}
@media(max-width:500px) {
  .overview-content .dashboard-commerce .dashboard-cards {grid-template-columns:repeat(2,minmax(0,1fr));}
  .dashboard-commerce .dashboard-metric strong {font-size:20px;}
}
