:root {
  --navy:#0c1734;
  --blue:#0756df;
  --ink:#101a32;
  --muted:#5a657b;
  --line:#dce2ed;
  --surface:#fff;
  --green:#095d28;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:#f5f7fb;
  color:var(--ink);
  font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;
}
a {
  color:var(--blue);
  text-underline-offset:3px;
}
a:hover {
  text-decoration:none;
}
button,input,select,textarea {
  font:inherit;
}
button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:1px solid transparent;
  border-radius:9px;
  padding:10px 18px;
  background:var(--blue);
  color:#fff;
  font-weight:650;
  text-decoration:none;
  cursor:pointer;
}
button:hover,.button:hover {
  background:#0347bc;
  text-decoration:none;
}
.secondary {
  background:#edf3ff;
  color:var(--blue);
  border-color:#c7d8fb;
}
.secondary:hover {
  background:#dce8ff;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #f0aa24;
  outline-offset:3px;
}
.skip-link {
  position:fixed;
  top:-100px;
  left:16px;
  z-index:20;
  background:white;
  padding:10px;
}
.skip-link:focus {
  top:10px;
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:246px;
  padding:27px 18px;
  background:linear-gradient(160deg,#101e40,#09122a);
  color:#fff;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  z-index:5;
}
.brand {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:23px;
  letter-spacing:-.7px;
  font-weight:800;
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
}
.brand-mark {
  color:#3e8dff;
  font-size:36px;
  line-height:1;
}
.desktop-nav {
  display:grid;
  gap:7px;
  margin-top:38px;
}
.nav-link {
  display:flex;
  align-items:center;
  gap:14px;
  border-radius:10px;
  min-height:48px;
  padding:10px 14px;
  color:#e7ecf8;
  text-decoration:none;
  font-size:16px;
}
.nav-link:hover {
  background:#1b2c50;
  text-decoration:none;
}
.nav-link.is-active,.mobile-nav .is-active {
  background:linear-gradient(110deg,#0874ff,#0048e4);
  color:#fff;
  box-shadow:0 4px 16px #0049d72b;
}
.nav-icon {
  display:block;
  width:22px;
  height:22px;
  flex:none;
  background:currentColor;
  mask:center/contain no-repeat var(--icon);
  -webkit-mask:center/contain no-repeat var(--icon);
}
.icon-overview {
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11 12 3l9 8M5 10v11h14V10M9 21v-7h6v7' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.icon-products {
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 10 5v11l-10 5L2 18V7ZM2 7l10 5 10-5M12 12v11M7 4.5l10 5' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.icon-warehouse {
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 22V8l9-6 9 6v14M6 22V12h12v10M7 15h10M7 18h10M10 8h4' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.icon-expenses {
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 7H4V4h15v3M3 7v14h18V7M21 12h-6v5h6' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.icon-images {
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h20v18H2ZM2 18l6-6 4 4 5-8 5 7' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='8' r='2'/%3E%3C/svg%3E");
}
.icon-taxes {
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2h12l4 4v16H4ZM16 2v5h4M8 17l8-7' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='10' r='1.5'/%3E%3Ccircle cx='16' cy='17' r='1.5'/%3E%3C/svg%3E");
}
.icon-accounts {
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 2h8v8H2ZM14 2h8v8h-8ZM2 14h8v8H2ZM14 14h8v8h-8Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.icon-settings {
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7 3v6M16 9v6M10 15v6' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
}
.icon-more {
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='4' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='20' cy='12' r='2'/%3E%3C/svg%3E");
}
.sidebar-footer {
  margin-top:auto;
  padding:32px 12px 4px;
  display:grid;
  gap:12px;
}
.sidebar-footer>a {
  color:#d8e3ff;
}
.pilot-label {
  font-size:12px;
  letter-spacing:.06em;
  color:#a6b8d9;
}
.logout {
  padding:3px 0;
  background:none;
  color:#d8e3ff;
  font-weight:400;
  min-height:32px;
}
.logout:hover {
  background:transparent;
  color:white;
}
.workspace {
  margin-left:246px;
}
.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  min-height:76px;
  padding:14px 32px;
  border-bottom:1px solid var(--line);
  background:#ffffffb3;
}
.identity {
  display:flex;
  gap:14px;
  align-items:center;
  min-width:0;
}
.identity strong {
  overflow-wrap:anywhere;
}
.identity span,.user-name {
  font-size:13px;
  color:var(--muted);
}
.user-name {
  overflow-wrap:anywhere;
  max-width:40%;
}
main {
  max-width:1600px;
  margin:auto;
  padding:28px 32px 40px;
  min-width:0;
}
h1,h2,h3,p {
  margin-top:0;
}
h1 {
  font-size:34px;
  line-height:1.2;
  letter-spacing:-1px;
  margin-bottom:0;
}
h2 {
  font-size:20px;
  line-height:1.35;
  margin-bottom:16px;
  letter-spacing:-.3px;
}
h3 {
  font-size:16px;
  line-height:1.4;
  margin-bottom:8px;
}
p {
  margin-bottom:12px;
}
p:last-child {
  margin-bottom:0;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:24px;
}
.eyebrow {
  font-size:12px;
  letter-spacing:.07em;
  color:var(--muted);
  margin-bottom:8px;
}
.text-link {
  font-weight:650;
  white-space:nowrap;
}
.report-filters {
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  background:#fff;
  padding:16px;
  border:1px solid var(--line);
  border-radius:12px;
}
.filter-field {
  flex:1 1 150px;
  min-width:0;
}
.filter-field:first-child {
  flex-grow:2;
}
.filter-field label {
  font-size:12px;
  margin-bottom:5px;
  color:var(--muted);
}
label {
  display:block;
  font-weight:600;
}
input,select,textarea {
  color:var(--ink);
  background:white;
  max-width:100%;
  min-height:44px;
  padding:9px 11px;
  border:1px solid #b7c1d4;
  border-radius:8px;
}
input:not([type=checkbox]):not([type=radio]),select {
  width:100%;
}
input[type=checkbox],input[type=radio] {
  min-height:auto;
}
textarea {
  width:100%;
  min-height:110px;
}
select[multiple] {
  min-height:130px;
}
.reset-filter {
  padding:10px 2px;
  min-height:44px;
}
.filter-summary {
  font-size:12px;
  color:var(--muted);
  margin:9px 2px 18px;
}
.filter-errors {
  flex-basis:100%;
}
.errorlist {
  margin:6px 0;
  padding-left:18px;
  font-size:13px;
  color:#a51d23;
}
.helptext {
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:5px;
}
.quality-line {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:18px 0;
}
.badge {
  display:inline-block;
  padding:4px 10px;
  border-radius:6px;
  font-size:12px;
  font-weight:600;
  color:#34527f;
  background:#eaf0fb;
}
.badge.warning {
  background:#fff1d6;
  color:#805009;
}
.freshness {
  margin-left:auto;
  font-size:12px;
  color:var(--muted);
}
section {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:22px;
  margin:20px 0;
  box-shadow:0 2px 4px #0c173403;
  min-width:0;
}
section:first-child {
  margin-top:0;
}
.metrics {
  display:grid;
  grid-template-columns:1.6fr repeat(3,1fr);
  gap:16px;
  margin:20px 0;
}
.metrics section {
  margin:0;
}
.metric h2 {
  font-size:16px;
  margin-bottom:12px;
}
.metric p:not(.metric-value) {
  font-size:13px;
  color:var(--muted);
}
.metric-value {
  font-size:30px;
  line-height:1.2;
  letter-spacing:-1px;
  font-weight:800;
  margin-bottom:12px;
}
.profit {
  background:linear-gradient(110deg,#e1f3e3,#e5f9ec);
  border-color:#d9efde;
}
.profit .metric-value {
  font-size:38px;
  color:var(--green);
}
.profit a {
  font-size:13px;
  font-weight:700;
  color:#12612d;
}
.dashboard-grid {
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:20px;
  align-items:stretch;
}
.dashboard-grid section {
  margin:0;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}
.section-heading h2 {
  margin:0;
}
.section-heading a,.section-heading span {
  font-size:12px;
}
.muted {
  color:var(--muted);
}
.chart-empty {
  min-height:215px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  border:1px dashed #cbd6e9;
  border-radius:10px;
  background:linear-gradient(#f8faff,#fff);
  padding:24px 12px;
}
.chart-empty p,.empty-state p {
  font-size:14px;
  color:var(--muted);
}
.empty-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  background:#eaf1fe;
  color:var(--blue);
  border-radius:12px;
  font-size:28px;
  margin:0 auto 14px;
}
.empty-state {
  text-align:center;
  padding:35px 18px;
}
.empty-state p {
  max-width:590px;
  margin-left:auto;
  margin-right:auto;
}
.empty-state.compact {
  padding:20px 12px;
}
.generous {
  padding:50px 24px;
}
.generous .button {
  margin-top:14px;
}
.store-row {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--ink);
  padding:16px 0;
  border-top:1px solid var(--line);
}
.store-row:hover {
  text-decoration:none;
  background:#f7faff;
}
.store-symbol {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:40px;
  height:40px;
  border-radius:10px;
  background:#edf3ff;
  color:var(--blue);
  font-weight:700;
}
.store-name {
  min-width:0;
  flex:1;
  overflow-wrap:anywhere;
}
.store-name strong {
  display:block;
  font-size:14px;
}
.store-name>span {
  font-size:12px;
  color:var(--muted);
}
.store-value {
  font-size:11px;
  color:var(--muted);
  text-align:right;
  flex:none;
}
.store-value strong {
  display:block;
  font-size:13px;
  color:var(--ink);
}
.notice {
  background:#edf3ff;
  border:1px solid #ccdcf7;
  border-radius:10px;
  padding:14px 18px;
  font-size:14px;
  margin:18px 0;
}
.footnote {
  font-size:12px;
}
.back-link {
  display:inline-block;
  font-size:13px;
  margin-bottom:18px;
}
.tabs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:20px 0;
}
.tabs a {
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:white;
  color:var(--muted);
  padding:9px 15px;
  min-height:44px;
  text-decoration:none;
  font-size:14px;
}
.tabs a[aria-current] {
  background:#eaf1ff;
  color:var(--blue);
  border-color:#aec6f9;
  font-weight:650;
}
.resource-row {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:17px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  color:var(--ink);
  overflow-wrap:anywhere;
}
.resource-row span {
  color:var(--muted);
  font-size:13px;
}
.resource-row:last-child {
  border-bottom:0;
}
.resource-row:hover {
  color:var(--blue);
}
.table-scroll {
  max-width:100%;
  overflow-x:auto;
  margin:10px -6px 18px;
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:14px;
}
th,td {
  padding:14px 12px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
thead {
  background:#f3f5f9;
  font-size:12px;
  color:var(--muted);
}
tbody th {
  font-weight:600;
}
td {
  min-width:130px;
}
.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#b77a17;
  margin-right:6px;
}
form p {
  margin:18px 0;
}
form p label {
  margin-bottom:6px;
}
.mobile-nav {
  display:none;
}
.settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  align-items:start;
}
.settings-grid section {
  margin:0;
}
.settings-grid form {
  max-width:500px;
}
@media(min-width:1600px) {
  main {
    padding-top:36px;
  }
  .metric-value {
    font-size:36px;
  }
  .profit .metric-value {
    font-size:44px;
  }
}
@media(max-width:1150px) {
  .sidebar {
    width:220px;
    padding:24px 14px;
  }
  .brand {
    font-size:21px;
  }
  .workspace {
    margin-left:220px;
  }
  main {
    padding:24px;
  }
  .topbar {
    padding:14px 24px;
  }
  .metrics {
    grid-template-columns:repeat(3,1fr);
    gap:12px;
  }
  .metrics .profit {
    grid-column:1/-1;
  }
  .profit .metric-value {
    font-size:36px;
  }
  .dashboard-grid {
    grid-template-columns:1fr;
  }
  .settings-grid {
    grid-template-columns:1fr;
  }
  .freshness {
    margin-left:0;
    flex-basis:100%;
  }
}
@media(max-width:760px) {
  body {
    font-size:14px;
  }
  .sidebar {
    position:static;
    width:auto;
    padding:16px 18px;
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    overflow:visible;
  }
  .brand {
    font-size:22px;
  }
  .brand-mark {
    font-size:32px;
  }
  .desktop-nav {
    display:none;
  }
  .sidebar-footer {
    margin:0;
    padding:0;
    display:flex;
    gap:10px;
    align-items:center;
  }
  .sidebar-footer>a,.pilot-label {
    display:none;
  }
  .logout {
    font-size:12px;
    min-height:44px;
    padding:6px;
  }
  .workspace {
    margin-left:0;
  }
  .topbar {
    min-height:56px;
    padding:10px 18px;
    background:#fff;
  }
  .identity {
    display:block;
  }
  .identity strong {
    font-size:13px;
  }
  .identity span {
    display:block;
    font-size:11px;
  }
  .user-name {
    font-size:11px;
  }
  main {
    padding:22px 16px calc(98px + env(safe-area-inset-bottom));
  }
  .page-heading {
    margin-bottom:20px;
    gap:12px;
  }
  .page-heading .text-link {
    font-size:12px;
  }
  h1 {
    font-size:28px;
  }
  h2 {
    font-size:18px;
  }
  .eyebrow {
    font-size:10px;
  }
  .report-filters {
    padding:12px;
    gap:10px;
  }
  .filter-field {
    flex:1 1 calc(50% - 10px);
  }
  .filter-field:first-child {
    flex-basis:100%;
  }
  .report-filters button {
    flex:1;
  }
  .reset-filter {
    padding:10px;
  }
  .filter-summary {
    font-size:11px;
  }
  .quality-line {
    gap:6px;
  }
  .badge {
    font-size:11px;
  }
  .freshness {
    font-size:11px;
  }
  .metrics {
    gap:8px;
  }
  .metrics .metric {
    padding:14px 10px;
  }
  .metrics .profit {
    padding:22px;
  }
  .metric h2 {
    font-size:12px;
    letter-spacing:0;
  }
  .metric .metric-value {
    font-size:27px;
  }
  .metric p:not(.metric-value) {
    font-size:11px;
    overflow-wrap:anywhere;
  }
  .profit h2 {
    font-size:19px;
  }
  .profit .metric-value {
    font-size:36px;
  }
  .profit p:not(.metric-value) {
    font-size:13px;
  }
  section {
    padding:18px 16px;
    margin:16px 0;
    border-radius:12px;
  }
  .dashboard-grid {
    gap:16px;
  }
  .section-heading {
    gap:10px;
  }
  .section-heading span {
    font-size:10px;
  }
  .section-heading a {
    font-size:11px;
    white-space:nowrap;
  }
  .chart-empty {
    min-height:220px;
  }
  .store-row {
    gap:8px;
  }
  .store-symbol {
    width:34px;
    height:36px;
  }
  .store-name strong {
    font-size:13px;
  }
  .store-name>span {
    font-size:11px;
  }
  .store-value strong {
    font-size:12px;
  }
  .notice {
    padding:12px;
    font-size:13px;
  }
  .mobile-nav {
    display:flex;
    position:fixed;
    inset:auto 0 0;
    background:var(--navy);
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    gap:6px;
    z-index:10;
    box-shadow:0 -2px 16px #13244a18;
  }
  .mobile-nav a {
    display:flex;
    flex:1;
    min-height:56px;
    gap:4px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    color:#eaf0ff;
    text-decoration:none;
    font-size:12px;
    border-radius:11px;
  }
  .mobile-nav a:hover {
    background:#1b2c50;
  }
  .mobile-nav .nav-icon {
    width:23px;
    height:23px;
  }
  .generous {
    padding:35px 18px;
  }
  .tabs {
    gap:6px;
  }
  .tabs a {
    padding:9px 12px;
    font-size:12px;
  }
  .resource-row {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:6px;
  }
  table {
    font-size:12px;
  }
  th,td {
    padding:12px 9px;
  }
  .settings-grid {
    gap:16px;
  }
}
@media(prefers-reduced-motion:no-preference) {
  a,button {
    transition:background-color .15s ease,color .15s ease;
  }
}
.invitations-heading {
  margin-top:28px;
}
.invitation-row {
  padding:12px 0;
  overflow-wrap:anywhere;
}
.invitation-row p {
  font-size:13px;
  color:var(--muted);
  margin:4px 0 0;
}
#modules,#team {
  scroll-margin-top:24px;
}
.auth-card {
  max-width: 520px;
}
.auth-card button {
  width: 100%;
}
/* Financial input/history panels keep long CSV values and audit payloads contained. */
.panel { margin-block: 20px; padding: 20px; background: var(--surface, white); border-radius: 12px; }
.panel pre, .panel dd, .panel code { white-space: pre-wrap; overflow-wrap: anywhere; }
.panel dl { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr); gap: 6px 12px; }
.panel dd { margin: 0; }
.panel select[multiple] { min-height: 130px; }
.panel textarea, .panel input, .panel select { max-width: 100%; }
.panel details { margin-block: 12px; }
.panel summary { cursor: pointer; overflow-wrap: anywhere; }
@media (max-width: 480px) { .panel { padding: 14px; } .panel dl { grid-template-columns: 1fr; } }

/* Private creative workflows use the existing responsive panels and controls. */
textarea { max-width: 100%; }

.service-nav { display:flex; flex-wrap:wrap; gap:12px; margin-block:20px; padding:16px; background:var(--navy, #14243c); border-radius:12px; }
.service-nav a { color:white; padding:8px; }

.service-entry { display:none; }
@media(max-width:760px) { .service-entry { display:inline; } .topbar:has(.service-entry) { flex-wrap:wrap; gap:8px; } }

/* In-app help shares the application shell and needs no scripts or remote assets. */
.context-help { text-align: right; margin-bottom: 1rem; }
.help-article { max-width: 940px; }
.help-article p, .help-article li { overflow-wrap: anywhere; line-height: 1.65; }
.help-article li + li { margin-top: .7rem; }
.help-article ol, .help-article ul { padding-inline-start: 1.6rem; }
.help-toc { display: flex; flex-direction: column; gap: .65rem; margin: 1rem 0; }
.help-section { scroll-margin-top: 1rem; }

/* Imported evidence hashes and identifiers must fit small private-preview screens. */
.imported-evidence { min-width: 0; overflow-wrap: anywhere; }
.imported-evidence dd { margin-inline-start: 1rem; }

/* Service confirmations include full source digests on narrow screens. */
.service-nav ~ .panel dd { overflow-wrap:anywhere; margin-inline-start:0; }

/* Stored help/support is escaped plain text; preserve paragraphs without HTML. */
.safe-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.support-mode { border: 3px solid #a35a00; background: #fff3cc; padding: 1rem; margin-bottom: 1rem; }
form input[type="datetime-local"], form input[type="number"], form select { max-width: 100%; }

/* Report summaries stay readable while source evidence remains available on demand. */
.period-presets { display:flex; flex-wrap:wrap; gap:8px; margin-block:16px; }
.period-presets a { padding:8px 12px; border:1px solid var(--line); border-radius:8px; }
.period-presets .is-active { background:#e7efff; color:#174da6; border-color:#adc6f5; }
.partial-label { display:block; font-size:12px; font-weight:500; line-height:1.5; margin-top:6px; }
.money { font-variant-numeric:tabular-nums; white-space:nowrap; }
.coverage-details, .report-details { margin-block:18px; }
summary { cursor:pointer; overflow-wrap:anywhere; }
.imported-evidence { padding-block:12px; border-bottom:1px solid var(--line); }
.imported-evidence pre { white-space:pre-wrap; overflow-wrap:anywhere; max-width:100%; font-size:12px; }
.table-scroll:focus-visible { outline:2px solid #2463d4; outline-offset:2px; }
@media(max-width:760px) {
  .store-row { flex-direction:column; align-items:flex-start; }
  .metric .money { font-size:clamp(19px, 6vw, 30px); }
  .table-scroll table { min-width:600px; }
  .store-row span { overflow-wrap:anywhere; max-width:100%; }
}

/* Shared pilot design system. Original local SVG paths above; no external assets. */
:root {
  --navy:#0b1531; --blue:#0756df; --ink:#14213b; --muted:#56647d;
  --canvas:#f2f5fb; --surface:#fff; --line:#dce3ef;
  --radius:12px; --shadow:0 3px 16px #14295208; --space:16px;
}
body { background:var(--canvas); }
main { padding-top:20px; }
.page-context { display:flex; gap:12px; justify-content:space-between; color:var(--muted); font-size:12px; margin-bottom:12px; }
.workspace-label { white-space:nowrap; }
.brand-mark.nav-icon { width:30px; height:30px; }
h1 { font-size:30px; font-weight:780; margin-bottom:18px; }
.page-heading h1 { margin-bottom:0; }
h1 + p { margin-top:10px; }
section,.panel { border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px; margin-block:16px; }
section section { box-shadow:none; }
main > form:not(.report-filters),main > .help-section { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-block:16px; }
.form-field { margin-bottom:16px; max-width:720px; min-width:0; }
.form-field label { margin-bottom:6px; font-size:13px; }
.form-field:has(input[type=checkbox]) { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.form-field:has(input[type=checkbox]) label { margin:0; }
input,textarea,select { border-color:#c1ccde; border-radius:8px; }
input:hover,select:hover,textarea:hover { border-color:#879ab9; }
.has-error input,.has-error select,.has-error textarea { border-color:#b42d37; background:#fffafb; }
.form-errors { padding:12px 14px; border-left:3px solid #b42d37; background:#fff3f3; margin-bottom:16px; }
.form-errors p { font-size:13px; margin-top:4px; }
button,.button { min-height:42px; padding:9px 16px; box-shadow:0 2px 3px #163d7410; }
form button + a { margin-inline-start:12px; }
.helptext { max-width:68ch; }
.helptext ul { padding-left:20px; }
.errorlist { flex-basis:100%; }
.notice { padding:12px 16px; margin-block:14px; }
.source-details { border:1px solid var(--line); background:#f8faff; border-radius:8px; padding:10px 12px; margin-block:10px; font-size:12px; }
.source-details summary { color:#34527f; font-weight:600; }
pre,code { font-family:ui-monospace,SFMono-Regular,monospace; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
pre { max-width:100%; padding:12px; background:#edf2f8; border-radius:8px; }
details { margin-block:12px; }
summary { min-height:30px; padding-block:4px; }
dl { display:grid; grid-template-columns:minmax(110px,1fr) minmax(0,3fr); gap:8px 16px; }
dt { color:var(--muted); font-size:13px; }
dd { margin:0; overflow-wrap:anywhere; }
.table-scroll { border:1px solid var(--line); border-radius:10px; margin-inline:0; }
th,td { padding:11px 13px; }
td { min-width:110px; }
tbody tr:last-child td,tbody tr:last-child th { border-bottom:0; }
tbody tr:hover { background:#f7faff; }
td:has(.money) { text-align:right; }
table .money { font-weight:600; }
.profit { background:linear-gradient(115deg,#dff2e3,#e9f9ef); }
.metric-value { font-variant-numeric:tabular-nums; }
.empty-state,.empty-state.generous { padding:24px 18px; }
.chart-empty { min-height:165px; }
.resource-row { padding-block:13px; }
.icon-reviews::before { content:none; }
.icon-reviews { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16v13H9l-5 5ZM8 7h8M8 11h5' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.service-sidebar { gap:3px; margin-top:22px; }
.service-sidebar .nav-link { font-size:13px; min-height:38px; padding:7px 10px; gap:10px; }
.service-sidebar .nav-icon { width:17px; height:17px; }
.sidebar:has(.service-sidebar) .sidebar-footer { padding-top:20px; }
.service-nav { background:#fff; border:1px solid var(--line); padding:10px; gap:6px; }
.service-nav a { color:var(--blue); font-size:13px; border-radius:6px; }
.service-nav a:hover { background:#edf3ff; }
.admin-mobile-menu { display:none; }
.auth-card { margin-top:20px; }
.safe-text,article,p,li { overflow-wrap:anywhere; }
@media(max-width:1024px) { .page-heading { flex-wrap:wrap; } main { padding-inline:20px; } }
@media(max-width:760px) {
  main { padding:18px 14px calc(94px + env(safe-area-inset-bottom)); }
  h1 { font-size:26px; letter-spacing:-.6px; }
  section,.panel,main > form:not(.report-filters) { padding:16px; }
  .page-context { font-size:11px; }
  .context-help { font-size:12px; margin-bottom:12px; }
  .admin-mobile-menu { display:block; background:var(--navy); color:white; border-radius:9px; padding:10px 14px; }
  .admin-mobile-menu .desktop-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:10px; }
  .admin-mobile-menu .nav-link { white-space:normal; }
  .admin-mobile-menu .nav-icon { display:none; }
  dl,.panel dl { grid-template-columns:1fr; gap:4px; }
  dd { margin-bottom:8px; }
  .topbar { flex-wrap:wrap; }
  .table-scroll { background:linear-gradient(90deg,#fff0 95%,#dce3ef); }
  .table-scroll table { min-width:560px; }
}
@media(max-width:360px) {
  main { padding-inline:10px; } section,.panel { padding:13px; }
  .brand { font-size:19px; } .sidebar { padding-inline:12px; }
  .metrics { gap:8px; } .metric { padding:12px; } .metric h2 { font-size:13px; }
  .metric-value { font-size:21px; } .metrics .profit .metric-value { font-size:30px; }
  .page-heading .badge { font-size:11px; } button,.button { max-width:100%; white-space:normal; }
}
.form-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 20px; max-width:960px; margin-bottom:16px; }
.form-fields .form-field { margin:0; }
.form-field:has(textarea),.form-field:has(select[multiple]),.form-field:has(input[type=file]) { grid-column:1/-1; }
.auth-card .form-fields { grid-template-columns:1fr; }
.record-line { padding-block:10px; border-bottom:1px solid var(--line); }
.record-line:last-child { border-bottom:0; }
.icon-users { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21v-3a5 5 0 0 1 10 0v3M16 13a5 5 0 0 1 5 5v3M15 3a4 4 0 0 1 0 8' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='7' r='4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E"); }
.icon-lock { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3M4 10h16v12H4ZM12 15v3' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.icon-activity { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12h5l3-8 4 16 3-8h5' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-document { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h10l4 4v16H5ZM15 2v5h4M8 11h8M8 15h8M8 19h5' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media(max-width:760px) { .form-fields { grid-template-columns:1fr; gap:14px; } }
.service-nav a[aria-current] { background:#e7efff; color:#174da6; font-weight:700; box-shadow:inset 0 0 0 1px #aec6f9; }

h1,h2,h3,.nav-link { min-width:0; overflow-wrap:anywhere; }
.metric .money { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

/* Compact financial typography: value and qualification are separate layers. */
body { font-size:14px; }
h1 { font-size:26px; line-height:1.25; }
h2 { font-size:18px; line-height:1.35; }
h3 { font-size:16px; }
.nav-link { font-size:14px; min-height:44px; gap:11px; }
.brand { font-size:21px; }
.metrics { grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
.metrics .metric { min-width:0; padding:20px; }
.metrics .metric h2 { font-size:14px; font-weight:600; line-height:1.4; margin-bottom:12px; }
.metrics .metric .metric-value { display:flex; flex-direction:column; align-items:flex-start; gap:7px; font-size:26px; line-height:1.18; letter-spacing:-.45px; font-weight:700; margin:0 0 12px; }
.metrics .profit .metric-value { font-size:32px; }
.metrics .metric .metric-value .money { font-size:inherit; font-weight:inherit; line-height:inherit; letter-spacing:inherit; white-space:nowrap; overflow-wrap:normal; max-width:100%; }
.metrics .metric .metric-value .partial-label { display:block; font-size:12px; font-weight:400; line-height:1.45; letter-spacing:normal; margin:0; white-space:normal; overflow-wrap:normal; color:var(--muted); }
.metrics .metric .metric-value .amount-empty { font-size:20px; font-weight:600; line-height:1.3; letter-spacing:normal; }
.metrics .metric p:not(.metric-value) { font-size:12px; line-height:1.5; font-weight:400; }
.icon-reviews { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16v13H9l-5 5V3ZM8 7h8M8 11h6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media(max-width:1150px) { .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } .metrics .profit { grid-column:1/-1; } .metrics .metric .metric-value { font-size:24px; } .metrics .profit .metric-value { font-size:30px; } }
@media(max-width:760px) { h1 { font-size:24px; } .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .metrics .profit,.metrics .metric:nth-child(2) { grid-column:1/-1; } .metrics .metric { padding:16px; } .metrics .metric .metric-value { font-size:22px; } .metrics .profit .metric-value { font-size:28px; } .metrics .metric .metric-value .partial-label { font-size:12px; } }
@media(max-width:360px) { .metrics .metric { padding:13px; } .metrics .metric .metric-value { font-size:20px; } .metrics .profit .metric-value { font-size:26px; } .metrics .metric .metric-value .amount-empty { font-size:18px; } }
/* Product evidence workspace: compact labels separate from monetary values. */
.dashboard-filters {display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-block:16px}
.dashboard-filters label {display:block;font-size:.85rem;margin-bottom:4px}
.dashboard-filters input,.dashboard-filters select {max-width:100%;min-width:0}
.dashboard-filters>div {flex:1 1 160px;min-width:0}
.more-filters {flex-basis:100%;padding:8px;background:#f2f5fa}
.more-filters>div {display:inline-block;vertical-align:top;width:min(100%,260px);padding:8px}
.dashboard-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dashboard-metrics .metric {min-width:0;text-decoration:none;color:inherit}
.dashboard-metrics h2 {font-size:1rem}
.dashboard-metrics .metric-value {font-size:clamp(1.15rem,2.1vw,1.65rem);line-height:1.4;overflow-wrap:anywhere}
.dashboard-metrics .amount-empty {font-size:1.05rem;color:#526176}
.metric small,.coherent-table small {display:block;font-size:.8rem;line-height:1.45;font-weight:400}
.money small {display:inline;font-size:.75em}
.comparison,.compact-status {font-size:.85rem;line-height:1.5;color:#526176}
.positive {color:#14783b}.negative {color:#bd2525}.neutral {color:#526176}
.dashboard-columns {display:grid;grid-template-columns:2fr 1fr;gap:20px}
.product-identity {display:flex;gap:10px;min-width:210px;align-items:center}
.product-identity img {object-fit:contain;flex-shrink:0}
.coherent-table td {vertical-align:top;max-width:300px;overflow-wrap:anywhere;font-size:.9rem}
.coherent-table .money {white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.95rem}
.product-workspace [data-column-options] label {display:inline-flex;gap:6px;padding:6px}
.table-expanded {position:fixed;inset:0;z-index:1000;background:white;overflow:auto;padding:20px}
.source-chart>div {display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:8px;border-bottom:1px solid #dde4ee}
.source-chart meter {width:48px;max-width:100%}
@media(max-width:900px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-columns{grid-template-columns:1fr}}
@media(max-width:480px){.dashboard-metrics{grid-template-columns:1fr}.dashboard-filters>div{flex-basis:100%}.dashboard-metrics .metric-value{font-size:1.4rem}.table-expanded{padding:8px}.product-workspace .page-heading{flex-wrap:wrap}}
.chart-bar {display:inline-block;width:var(--bar-width);height:8px;background:currentColor;max-width:240px;min-width:1px}

/* Local explanatory schematic; wraps without horizontal scrolling on mobile. */
.connection-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px;list-style:none;padding:0;counter-reset:none}
.connection-steps li{min-width:0;border:1px solid var(--border,#d9e2ef);border-radius:12px;padding:16px;background:var(--surface,#fff);overflow-wrap:anywhere}
.connection-example{display:block;border-left:3px solid #2563eb;padding:8px;background:#eff6ff;color:#18365b}
.connection-guide{margin-inline:0}

/* Shared link presentation: identify links by colour and keyboard focus. */
a, a:visited, a:hover, a:active, a:focus, a:focus-visible { text-decoration: none; }

/* Light application identity, approved S mark; retain semantic status colours. */
:root { color-scheme:light; --bg:#f7f9fc; --surface:#fff; --line:#e4e9f1; }
body { background:#f7f9fc; color:#17243b; }
.sidebar { background:#fff; color:#506078; border-right:1px solid #e4e9f1; box-shadow:none; }
.sidebar .brand { color:#1748df; display:flex; justify-content:flex-start; padding-left:12px; min-height:64px; }
.brand-symbol { display:block; width:38px; height:42px; flex-shrink:0; }
.sidebar .nav-link,.sidebar-footer a { color:#526079; }
.sidebar .nav-link:hover,.sidebar-footer a:hover { color:#1748df; background:#f1f5ff; }
.sidebar .nav-link.is-active { color:#1748df; background:#edf3ff; box-shadow:none; }
.sidebar .logout { color:#526079; }
.sidebar-footer { border-color:#e4e9f1; }
.topbar { background:#fff; border-bottom:1px solid #e4e9f1; }
.mobile-nav { background:#fff; color:#526079; border-top:1px solid #e4e9f1; }
.login-page { background:#f7f9fc; }
.login-page .sidebar,.login-page .topbar,.login-page .page-context,.login-page .context-help,.login-page .mobile-nav { display:none; }
.login-page .workspace { margin:0; width:100%; min-width:0; }
.login-page main { margin:0; padding:40px 20px; min-height:100svh; display:grid; place-items:center; }
.login-shell { width:100%; max-width:420px; display:flex; flex-direction:column; align-items:center; gap:26px; }
.login-symbol { display:flex; align-items:center; justify-content:center; width:72px; height:78px; }
.login-symbol img { display:block; }
.login-page .login-card { width:100%; max-width:none; margin:0; padding:36px; border:1px solid #e5eaf2; border-radius:18px; background:#fff; box-shadow:0 8px 36px #17243b06; }
.login-card h1 { margin:0; text-align:center; font-size:28px; line-height:1.25; letter-spacing:-.7px; }
.login-intro { margin:10px 0 28px; text-align:center; color:#748096; font-size:14px; }
.login-card .form-fields { display:grid; grid-template-columns:1fr; gap:18px; }
.login-card .form-field { margin:0; }
.login-card label { font-size:14px; font-weight:500; color:#34435a; }
.login-card input:not([type=hidden]):not([type=checkbox]) { width:100%; min-height:48px; border:1px solid #dce3ee; border-radius:9px; background:#fff; font-size:15px; box-shadow:none; }
.login-card input:focus-visible { outline:2px solid #91b3ff; outline-offset:2px; }
.login-recovery { display:flex; justify-content:flex-end; margin:14px 0 24px; font-size:13px; }
.login-card button[type=submit] { width:100%; min-height:48px; border-radius:9px; background:#1748df; color:#fff; font-size:15px; font-weight:600; box-shadow:none; }
.login-register { margin:24px 0 0; text-align:center; font-size:14px; color:#748096; }
.login-support { color:#748096; font-size:13px; }
@media(max-width:600px) { .login-page main { padding:28px 16px; } .login-page .login-card { padding:28px 24px; } .login-shell { gap:22px; } }

.profile-dropdown { position:relative; margin-left:auto; }
.profile-dropdown>summary { list-style:none; display:grid; place-items:center; width:42px; height:42px; cursor:pointer; border-radius:50%; color:#2453d5; background:#eef3ff; }
.profile-dropdown>summary::-webkit-details-marker { display:none; }
.profile-dropdown>summary svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
.profile-dropdown>summary:focus-visible { outline:2px solid #2453d5; outline-offset:3px; }
.profile-popover { position:absolute; top:calc(100% + 12px); right:0; z-index:100; width:290px; max-width:calc(100vw - 28px); background:#fff; border:1px solid #e6eaf2; border-radius:14px; box-shadow:0 12px 40px #14264918; overflow:hidden; }
.profile-account { display:grid; gap:5px; padding:20px; border-bottom:1px solid #edf0f6; }
.profile-account strong { font-size:15px; color:#17243b; }
.profile-account span { font-size:13px; color:#758197; overflow-wrap:anywhere; }
.profile-popover nav { padding:8px; display:grid; }
.profile-popover nav a { display:flex; align-items:center; gap:12px; padding:12px; color:#34435a; border-radius:8px; font-size:14px; }
.profile-popover nav a:hover { background:#f2f6ff; color:#1748df; }
.profile-popover .nav-icon { width:19px; height:19px; }
.profile-popover form { padding:8px; margin:0; border-top:1px solid #edf0f6; }
.profile-popover .profile-logout { display:block; width:100%; min-height:44px; padding:10px 12px; text-align:left; background:transparent; color:#d03945; border:0; box-shadow:none; border-radius:8px; font-size:14px; }
.profile-popover .profile-logout:hover { background:#fff3f3; }
@media(max-width:600px) { .profile-popover { width:280px; } .profile-popover nav a { min-height:44px; } }

/* Approved triangle identity: two centered wordmark lines. */
.sidebar .brand { align-items:center; justify-content:center; gap:11px; padding:0; }
.sidebar .brand-symbol { width:38px; height:38px; }
.brand-wordmark { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#1748df; font-size:19px; font-weight:650; line-height:1.1; letter-spacing:-.35px; text-align:center; }

/* Shared horizontal identity, sidebar and sign-in. */
.brand-wordmark { flex-direction:row; white-space:nowrap; gap:0; font-size:18px; line-height:1.2; }
.sidebar .brand { gap:8px; flex-wrap:nowrap; }
.sidebar .brand-symbol { width:34px; height:34px; flex-shrink:0; }
.login-shell .login-symbol { display:flex; align-items:center; justify-content:center; gap:12px; width:auto; height:auto; }
.login-shell .login-symbol img { width:44px; height:44px; }
.login-shell .brand-wordmark { font-size:25px; }

/* Dashboard navigation icon: four tiles. */
.icon-overview { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6d87' stroke-width='1.7'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); background-image:none !important; }

/* Monochrome brand requested by owner. */
.brand-wordmark { color:#111111; }

/* Shared local SVG symbols: consistent shape, stroke and alignment. */
.ui-icon { width:18px; height:18px; display:inline-block; vertical-align:middle; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
