* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* Layout: mobile first */
.main-area { min-width: 0; }

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  padding-top: calc(var(--space-2) + env(safe-area-inset-top, 0px));
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.topbar-name { flex: 1; font-family: var(--font-brand); font-size: 19px; }

.version-chip { color: var(--muted); font-size: 13px; }

.topbar .icon-btn { flex: none; }
@media (max-width: 480px) {
  .topbar-name { display: none; }
  .version-chip { flex: 1; }
}
.figure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: var(--space-3); }
.figure.wide { grid-column: 1 / -1; }
.figure:not(.figure-empty):not(.rank-card) { display: grid; grid-template-columns: 130px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: var(--space-3); row-gap: 6px; align-items: start; }
.figure > .form-section { grid-column: 1 / -1; margin: 0; }
.figure > p { margin: 0; }
.figure:not(.figure-empty) > .figure-art, .figure:not(.figure-empty) > .podium { grid-column: 1; grid-row: 2 / span 2; }
.figure > .figure-legend { grid-column: 2; }
.figure.broad:not(.figure-empty) { grid-template-columns: minmax(0, 1fr) 110px; }
.figure.broad > p { grid-column: 2; }
.figure.broad > span:empty { display: none; }
.figure.wide { grid-template-columns: minmax(0, 1fr) 200px !important; }
.figure.wide > p, .figure.wide > .figure-legend { grid-column: 2; }
.figure-art svg { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
  .figure.broad:not(.figure-empty), .figure.wide { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none; }
  .figure.broad > *, .figure.wide > * { grid-column: 1 !important; grid-row: auto !important; }
}
.figure.wide .figure-art svg { max-height: 190px; }
.figure-legend { display: flex; flex-direction: column; gap: 4px; }
.figure-key { display: flex; align-items: center; gap: var(--space-2); }
.figure-key strong { margin-left: auto; padding-left: var(--space-2); }
.figure-swatch { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); }
.kpi-tile { display: flex; flex-direction: column; gap: var(--space-1, 4px); }
.card.kpi-tile, .card.figure { border-left: 5px solid var(--viz-1); }
.card.figure.rank-card { border-left: 1px solid var(--border); }
.kpi-tile:nth-child(5n+2), .figure:nth-child(5n+2) { border-left-color: var(--viz-4) !important; }
.kpi-tile:nth-child(5n+3), .figure:nth-child(5n+3) { border-left-color: var(--viz-2) !important; }
.kpi-tile:nth-child(5n+4), .figure:nth-child(5n+4) { border-left-color: var(--viz-5) !important; }
.kpi-tile:nth-child(5n), .figure:nth-child(5n) { border-left-color: var(--viz-3) !important; }
.card.figure.rank-card { border-left: 1px solid var(--border) !important; }
.card.kpi-tile.alert { border-left-color: var(--danger) !important; }
.kpi-tile .field-label, .figure > .form-section { text-transform: uppercase; letter-spacing: .05em; }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; align-items: center; gap: var(--space-2); }
.rank-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-track { display: block; height: 8px; border-radius: 4px; background: var(--border); }
.rank-fill { display: block; height: 100%; border-radius: 4px; background: var(--viz-1); }
.rank-value { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: var(--space-2); }
.podium-place { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.podium-name { max-width: 100%; overflow-wrap: anywhere; }
.podium-block { width: 100%; margin-top: 4px; border-radius: 6px 6px 0 0; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.kpi-value { font-family: var(--font-brand); font-size: 22px; }
.timer { display: flex; align-items: center; gap: var(--space-2); }
.timer-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.time-dates { max-width: 420px; }
.time-totals { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.time-total { display: flex; flex-direction: column; }

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: min(var(--sidebar-width), 85vw);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--teal-dark);
  color: var(--on-teal);
  padding-top: env(safe-area-inset-top, 0px);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .2s ease, visibility .2s;
}

.sidebar.open { transform: none; visibility: visible; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: none;
  background: rgb(0 0 0 / .45);
}

.scrim.open { display: block; }

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid rgb(255 255 255 / .15);
}

.brand-logo { height: 44px; width: auto; filter: brightness(0) invert(1); }

.brand-name { display: block; font-family: var(--font-brand); font-size: 20px; line-height: 1.1; }

.brand-subtitle { display: block; margin-top: var(--space-1); font-size: 12px; opacity: .8; }

.nav-groups { flex: 1; padding: var(--space-2) 0; }

.nav-group-button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--tap);
  padding: 0 var(--space-4);
  font-weight: 600;
  cursor: pointer;
}

.nav-group-button:hover { background: rgb(255 255 255 / .1); }

.nav-group-button:focus-visible { outline: 2px solid var(--on-teal); outline-offset: -2px; }

.nav-group-button::after { content: "+"; opacity: .8; }

.nav-group.open .nav-group-button::after { content: "\2013"; }

.nav-group.single .nav-group-button { display: none; }

.nav-items { display: none; background: rgb(0 0 0 / .15); }

.nav-group.open .nav-items { display: block; }

.nav-group.single .nav-items { display: block; background: none; }

.nav-link {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-4) 0 var(--space-5);
  color: var(--on-teal);
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover { background: rgb(255 255 255 / .1); }

.nav-link:focus-visible { outline: 2px solid var(--on-teal); outline-offset: -2px; }

.nav-link.active { background: var(--teal); font-weight: 600; }

.nav-group.single .nav-link { padding-left: var(--space-4); font-size: 16px; font-weight: 600; }

.version {
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  opacity: .8;
}

/* Page */
.page-header { margin-bottom: var(--space-5); }

.eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  outline: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.card-title { margin: 0 0 var(--space-2); font-size: 18px; font-weight: 600; }

.muted { margin: 0; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 var(--space-4);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  color: var(--on-teal);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }

/* Only for backing out, such as Cancel */
.btn.cancel, .btn.cancel:hover:not(:disabled) { background: #E5E7EB; border-color: #E5E7EB; color: #1F2937; }
.btn.outline, .btn.outline:hover:not(:disabled) { background: var(--card); border-color: var(--teal); color: var(--teal); }

.icon-btn { width: var(--tap); padding: 0; }

.btn:disabled { opacity: .6; cursor: default; }

.btn.wide { width: 100%; }

.link-btn {
  min-height: var(--tap);
  background: none;
  border: 0;
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Forms: 16px text stops iOS zooming on focus */
.stack { display: flex; flex-direction: column; gap: var(--space-3); }

.field { display: block; }

.field-label { display: block; margin-bottom: var(--space-1); color: var(--muted); font-size: 13px; font-weight: 600; }

.input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }

.form-error { margin: 0; color: var(--danger); font-size: 14px; }

.form-notice { margin: 0; color: var(--accent-text); font-size: 14px; }

[hidden] { display: none !important; }

/* Sign-in pages */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-4);
}

.auth-card {
  width: min(420px, 100%);
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.auth-card .tagline { margin-bottom: var(--space-5); color: var(--teal); font-size: clamp(22.5px, 5vw, 28.5px); }

.auth-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }

.auth-logo { display: block; height: 72px; width: auto; }

.auth-name { color: #000; font-family: var(--font-brand); font-size: clamp(26px, 8vw, 34px); font-weight: 500; line-height: 1.1; }

@media (prefers-color-scheme: dark) {
  .auth-name { color: var(--text); }
  .auth-card .tagline { color: var(--accent-text); }
}

@media (prefers-color-scheme: dark) {
  .auth-logo { filter: brightness(0) invert(1); }
}

/* Sidebar account */
.account { border-top: 1px solid rgb(255 255 255 / .15); padding: var(--space-2) 0; }

.account .nav-link { padding-left: var(--space-4); font-weight: 600; }

.sign-out { font-size: 14px; font-weight: 400; }

.sign-out::after { content: none !important; }

/* Page sections and tables */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--space-4); }

.section { margin-bottom: var(--space-4); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }

.section-head .card-title { margin: 0; }

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th { padding: var(--space-2); border-bottom: 2px solid var(--border); color: var(--muted); font-size: 12px; text-align: left; white-space: nowrap; }

td { padding: var(--space-2); border-bottom: 1px solid var(--border); font-size: 14px; }

td .input { min-width: 104px; }

/* Reusable table */
.table-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }

.table-search { flex: 1 1 200px; width: auto; }

.table-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.table-filters .input { width: auto; }

.table-actions { display: flex; gap: var(--space-2); }

.table-count { display: block; margin-bottom: var(--space-2); color: var(--muted); font-size: 13px; }

.table-state { padding: var(--space-5) 0; text-align: center; }

.th-btn { min-height: var(--tap); padding: 0; background: none; border: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }

/* Phones: each row becomes a card, so no sideways scrolling */
@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
  .data-table td { padding: var(--space-1) 0; border: 0; overflow-wrap: anywhere; }
  .data-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
  .data-table td:empty { display: none; }
  .table-filters, .table-filters .input, .table-search { flex: 1 1 100%; width: 100%; }
  .table-actions { width: 100%; }
  .table-actions .btn { flex: 1; }
}

/* Catalog cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: var(--space-3); }

.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: inherit; text-align: left; cursor: pointer; }

.product-card:hover { border-color: var(--teal); }

.product-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.product-card.inactive { opacity: .55; }

.product-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }

.product-photo.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }

.product-info { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); min-width: 0; }

.product-name { font-weight: 600; overflow-wrap: anywhere; }

.product-line { font-size: 13px; overflow-wrap: anywhere; }

.product-price { margin: 0; color: var(--accent-text); font-weight: 600; }

.product-flag { color: var(--danger); font-size: 13px; font-weight: 600; }

/* Showroom capture: large targets at every width */
.capture { max-width: 520px; }

.btn.capture-btn { min-height: 64px; font-size: 18px; cursor: pointer; }

.capture-preview { display: block; width: 100%; max-height: 50vh; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg); }

/* Longer forms */
.check-field { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); font-size: 14px; }

.check-field input, .data-table input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--teal); }

.modal.wide { width: min(720px, 100%); }

.form-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.form-row > * { flex: 1 1 140px; min-width: 0; }

.form-section { margin: var(--space-2) 0 0; color: var(--accent-text); font-size: 13px; font-weight: 600; }

/* Roadmap checklist */
.check-list { margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: 14px; }

.check-list li { display: flex; gap: var(--space-2); padding: var(--space-1) 0; }

.check-list .done > :first-child { color: var(--accent-text); font-weight: 700; }

/* Editable dropdown */
.list-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.list-row .input { flex: 1 1 160px; width: auto; }

.list-row.inactive .input { opacity: .55; }

.list-row .code-input { flex: 0 0 96px; }

.import-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); }

.combo { position: relative; display: block; }

.combo::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted, #667); pointer-events: none; }

.combo-input { padding-right: 32px; text-overflow: ellipsis; }

.combo-panel { position: fixed; z-index: 12; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }

.combo-option { padding: 10px 12px; cursor: pointer; color: #1f2d2d; }

.combo-option:hover, .combo-option.active { background: rgba(0, 128, 128, .1); }

.combo-option.selected, .combo-option.strong { color: #008080; font-weight: 600; }

.combo-option.muted { color: #667; }

.combo-option.manage { position: sticky; bottom: 0; background: #fff; border-top: 1px solid rgba(0, 0, 0, .1); color: #008080; }

.combo-option.manage:hover, .combo-option.manage.active { background: #e6f2f2; }

.manage-list { display: flex; flex-direction: column; gap: var(--space-2); height: min(45vh, 340px); overflow-y: auto; padding: 2px; }

.manage-list .list-row { flex: none; }

.menu-btn { flex: none; min-width: 40px; padding: 0 var(--space-2); }

.row-menu { flex: 1 0 100%; display: flex; gap: var(--space-2); }

.textarea { min-height: 88px; padding: var(--space-2) var(--space-3); resize: vertical; }

input[type="color"].input { padding: var(--space-1); }

/* Modals and toasts */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgb(0 0 0 / .45);
}

.modal {
  width: min(440px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: var(--space-5);
  background: var(--card);
  border-radius: var(--radius);
}

.modal-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-4); }

.toasts { position: fixed; right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); z-index: 11; display: flex; flex-direction: column; gap: var(--space-2); }

.toast { padding: var(--space-3) var(--space-4); background: var(--teal-dark); border-radius: var(--radius-sm); color: var(--on-teal); font-size: 14px; }

/* Tablet and desktop: sidebar stays visible */
@media (min-width: 900px) {
  .sidebar { transform: none; visibility: visible; transition: none; }
  .scrim, .scrim.open { display: none; }
  .main-area { margin-left: var(--sidebar-width); }
  .topbar .icon-btn { display: none; }
  .topbar-name { visibility: hidden; }
  .content { padding: var(--space-6); }
  /* Compact controls where a fixed sidebar means there is room and usually a mouse */
  .btn { min-height: 36px; padding: 0 var(--space-3); font-size: 14px; }
  .input { min-height: 36px; padding: 0 var(--space-2); font-size: 14px; }
  .textarea { padding: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

.tdc-crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.link-btn { background: none; border: 0; padding: 0; color: #008080; font: inherit; cursor: pointer; text-decoration: underline; }

.tdc-list { display: flex; flex-direction: column; }

.tdc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; min-height: 44px; padding: 8px 4px; background: none; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .08); color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }

.tdc-row:hover { background: rgba(0, 128, 128, .07); }

.tdc-name { flex: 1 1 220px; overflow-wrap: anywhere; }

.tdc-meta { font-size: 13px; }

.tdc-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 4px; border-bottom: 1px solid rgba(0, 0, 0, .08); }

.tdc-item .tdc-name { flex: 1 1 240px; }

.tdc-prices { flex: 1 1 200px; font-size: 13px; }

.tdc-choice { display: flex; align-items: center; gap: 8px; min-height: 36px; }

.tdc-badge { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgba(0, 0, 0, .06); color: #556; }

.tdc-badge.read { background: #008080; color: #fff; }

.tdc-badge.order { }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chips:empty { display: none; }

.color-input { flex: none; width: 44px; height: 44px; padding: 2px; border: 1px solid #d5dedb; border-radius: 8px; background: #fff; cursor: pointer; }

.chip { padding: 4px 10px; min-height: 30px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }

.site-links { display: flex; flex-wrap: wrap; gap: 8px; }

.site-links a { white-space: nowrap; text-decoration: none; }

/* Clients */
.client-card { align-items: center; padding-top: 1rem; }
.client-avatar { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; margin: 0 auto; border-radius: 50%; background: #008080; color: #fff; font-weight: 600; }
.check-row { display: flex; align-items: center; gap: .5rem; }
/* Deleting and removing are red. Buttons never stretch across a form. */
.btn.danger { background: #B3261E; border-color: #B3261E; color: #fff; }
.btn.danger:hover:not(:disabled) { background: #8C1D18; border-color: #8C1D18; }
.stack > .btn { align-self: flex-start; min-height: 36px; padding: 0 var(--space-3); font-size: 14px; }
.stack > .btn.danger { align-self: flex-end; }

/* Compact layout, every screen. Phones keep 16px inputs so iOS does not zoom. */
.page-header { margin-bottom: var(--space-3); }
.tagline { font-size: clamp(22px, 4vw, 28px); }
.card { padding: var(--space-4); }
.stack { gap: var(--space-2); }
.form-row { gap: var(--space-2); align-items: flex-end; }
.field-label { margin-bottom: 2px; font-size: 12px; }
.card-title { margin-bottom: var(--space-1); font-size: 16px; }
.modal { padding: var(--space-4); }
.modal.wide { width: min(1100px, 100%); }
.modal-actions { margin-top: var(--space-3); }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); padding-bottom: var(--space-1); border-bottom: 1px solid var(--border); }
.form-head .form-section { margin: 0; }
.repeat-row { padding-bottom: var(--space-2); }
.form-row > .btn, .form-row > .check-row { flex: 0 0 auto; min-height: 36px; }
.form-row > .grow { flex: 2 1 200px; }
.form-row > .narrow { flex: 0 1 90px; }
.textarea { min-height: 64px; }
td, th { padding-top: 6px; padding-bottom: 6px; }
@media (min-width: 900px) {
  .content { padding: var(--space-4) var(--space-5); }
  .btn { min-height: 32px; }
  .input { min-height: 32px; }
  .form-head .btn, .form-row > .btn, .stack > .btn { min-height: 28px; padding: 0 var(--space-2); font-size: 13px; }
}

/* Text beside a checkbox or radio reads like a field label, everywhere. */
.check-row, .check-field, .tdc-choice, .tdc-item { color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 600; }
.tdc-item .muted, .tdc-prices { font-weight: 400; }
/* Photo beside the main fields; stacked on phones. */
.form-split { display: grid; gap: var(--space-3); }
.form-photo .capture-preview { max-height: 160px; }
@media (min-width: 700px) { .form-split { grid-template-columns: 190px 1fr; } }
.form-row > .check-field, .form-row > p { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-1); min-height: 32px; }
.form-row > .btn.danger { margin-left: auto; }
/* Nothing in a form may push it wider than the screen. */
.form-split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .form-split { grid-template-columns: 190px minmax(0, 1fr); } }
.form-split > * { min-width: 0; }
.form-row > div:empty { display: none; }
input[type='file'].input { max-width: 100%; padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
.modal { overflow-x: hidden; }
/* Dropdown lists read like the fields they open from. Phones keep larger tap targets. */
@media (min-width: 900px) {
  .combo-panel { font-size: 14px; }
  .combo-option { padding: 6px 10px; }
}
/* One text size for everything except titles. The only exception: phone inputs stay 16px so iOS does not zoom. */
:root { --text-size: 14px; }
body, .muted, .field-label, .form-error, .form-notice, .form-section, .btn, .link-btn, .chip, .toast,
.check-row, .check-field, .tdc-choice, .tdc-item, .tdc-meta, .tdc-prices, .tdc-badge,
.table-count, .check-list, .combo-panel, .combo-option, .nav-link, .nav-group.single .nav-link,
.product-line, .product-flag, table, td, th, summary, select,
.form-head .btn, .form-row > .btn, .stack > .btn, input[type='file'].input {
  font-size: var(--text-size);
}
.btn.capture-btn { font-size: 18px; }
.tdc-item .muted, .tdc-prices, .muted { font-weight: 400; }
@media (min-width: 900px) { .input, .textarea { font-size: var(--text-size); } }
/* No photo: the fields take the full width. */
.form-split:has(> .form-photo > img[hidden]:only-child) { grid-template-columns: minmax(0, 1fr); }
.form-photo:has(> img[hidden]:only-child) { display: none; }

/* Add by photo: two big buttons, easy to hit in a showroom. */
.capture-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.capture-choices .btn.capture-btn { min-height: 120px; padding: var(--space-4); font-size: 20px; }
.capture-btn { position: relative; overflow: hidden; touch-action: manipulation; }
.capture-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Projects */
.project-card { align-items: stretch; padding-top: .75rem; }
.project-code { color: #008080; font-weight: 600; }
.project-client { display: flex; align-items: center; gap: .5rem; }
.client-avatar.small { width: 1.75rem; height: 1.75rem; margin: 0; flex: none; }
.project-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--color-border, #d8e2df); -webkit-overflow-scrolling: touch; }
.project-tab { flex: none; min-height: 40px; padding: 0 .75rem; border: 0; border-bottom: 3px solid transparent; background: none; color: inherit; font: inherit; cursor: pointer; }
.project-tab.active { border-bottom-color: #008080; color: #008080; font-weight: 600; }
.project-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: .75rem 1.25rem; }
.project-fact { display: flex; flex-direction: column; gap: .125rem; white-space: pre-wrap; }
.project-fact .field-label { color: var(--color-muted, #5f6f6b); }
.project-facts { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
.form-head > .btn { flex: none; white-space: nowrap; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr)); gap: var(--space-2, .5rem); }
.photo-tile { display: flex; flex-direction: column; gap: .25rem; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; min-width: 0; text-align: left; }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.capture-choices.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capture-choices.compact .btn.capture-btn { min-height: 56px; padding: var(--space-2, .5rem); font-size: 14px; }

.line-thumb { display: block; width: 48px; height: 48px; flex: none; border-radius: var(--radius-sm); background: var(--bg); object-fit: cover; }
.pick-row { display: flex; align-items: center; gap: .75rem; }
.pick-name { display: flex; flex: 1; min-width: 0; flex-direction: column; }

/* One button text everywhere: same font and size. Emphasis comes from the background color only. */
.btn, .btn.capture-btn, .capture-choices .btn.capture-btn, .capture-choices.compact .btn.capture-btn { font-family: inherit; font-size: var(--text-size); font-weight: 600; line-height: 1.2; text-align: center; }
label.btn { display: inline-flex; align-items: center; justify-content: center; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; touch-action: manipulation; white-space: nowrap; }

.proposal-line { display: flex; gap: .5rem; align-items: flex-start; padding-bottom: .5rem; border-bottom: 1px solid var(--color-border, #d8e2df); }
.proposal-line .form-row { flex: 1; min-width: 0; }
.proposal-totals { display: flex; flex-direction: column; gap: .25rem; max-width: 320px; margin-left: auto; width: 100%; }
.plain-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.item-results:empty { display: none; }
.item-result { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .25rem; border: 1px solid var(--color-border, #d8e2df); border-radius: var(--radius-sm); background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.textarea.tall { min-height: 240px; }

/* Button colors, the same everywhere: teal = main action, slate blue = other actions, red = delete, gray = cancel. */
.btn { white-space: nowrap; }
.btn.secondary { background: #3D5A80; border-color: #3D5A80; color: #fff; }
.btn.secondary:hover:not(:disabled) { background: #2F4664; border-color: #2F4664; }
.modal-actions { flex-wrap: wrap; align-items: center; }
.modal-extras { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-right: auto; }
.modal-extras .btn { flex: 0 0 auto; }

.email-preview { display: block; width: 100%; height: 480px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.email-editor { min-height: 120px; height: auto; overflow: auto; }
.email-editor p { margin: 0 0 8px; }
.email-tools { width: auto; }
.email-tools .btn { flex: 0 0 auto; }
.email-field { border: 1px solid var(--border); background: #fff; cursor: pointer; font: inherit; }

.aging-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--space-2); }
.aging-card { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); }

.portal-page { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.portal-brand { display: flex; align-items: center; gap: var(--space-2); }
.message-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-4); }
.message-people { display: flex; flex-direction: column; gap: 4px; }
.message-person { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-2); padding: var(--space-2); text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; color: inherit; font: inherit; cursor: pointer; }
.message-person:hover, .message-person.active { background: var(--bg); border-color: var(--border); }
.message-person .product-line { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.message-pane { min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.message-list { display: flex; flex-direction: column; gap: var(--space-2); max-height: 380px; overflow-y: auto; }
.message { align-self: flex-start; max-width: 80%; display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); background: var(--bg); border-radius: 10px; }
.message.mine { align-self: flex-end; background: color-mix(in srgb, var(--teal) 14%, var(--card)); }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-form { display: flex; flex-direction: column; gap: var(--space-2); }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--viz-4); color: #fff; font-weight: 700; text-align: center; }
.nav-badge[hidden] { display: none; }
@media (max-width: 700px) { .message-layout { grid-template-columns: minmax(0, 1fr); } }
.portal-sub { display: block; }
.portal-action { padding: 4px 12px; background: rgba(0, 128, 128, .1); border-radius: 999px; color: var(--teal, #008080); font-size: 14px; font-weight: 600; white-space: nowrap; }
.portal-line { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.portal-line img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.portal-terms { white-space: pre-wrap; }
.portal-version { text-align: center; padding: var(--space-2); }
.signature-pad { display: block; width: 100%; max-width: 600px; aspect-ratio: 10 / 3; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); touch-action: none; cursor: crosshair; }
.portal-brand .brand-logo { filter: none; }
.portal-late { padding: 4px 12px; background: rgba(179, 38, 30, .1); border-radius: 999px; color: #b3261e; font-size: 14px; font-weight: 600; white-space: nowrap; }
.signature-preview { display: block; max-width: 300px; max-height: 90px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.portal-choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.portal-choice-options { display: flex; gap: var(--space-3); }
.photo-shared { color: var(--teal, #008080); font-size: 0.8em; font-weight: 600; }
a.btn { text-decoration: none; }
/* Same layout as the email header: 48px logo, 21px name. The sidebar keeps its own color. */
.sidebar .brand { padding: 20px 24px; gap: 20px; }
.sidebar .brand-logo { height: 48px; }
.sidebar .brand-name { font-size: 21px; font-weight: 400; color: #fff; }
.gantt { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.gantt-months { display: flex; background: var(--teal-dark); color: #fff; }
.gantt-month-name { position: sticky; left: 8px; }
.gantt-month { flex: none; padding: 6px 8px; border-left: 1px solid rgba(255, 255, 255, .25); font-size: 12px; font-weight: 600; white-space: nowrap; }
.gantt-days { display: flex; border-bottom: 1px solid var(--border); }
.gantt-day { display: flex; flex: none; flex-direction: column; align-items: center; padding: 3px 0; color: var(--muted, #55706e); font-size: 11px; }
.gantt-day b { font-weight: 600; }
.gantt-day i { font-style: normal; }
.gantt-day.weekend { background: rgba(0, 0, 0, .04); }
.gantt-day.today { background: #c92a2a; border-radius: 4px; color: #fff; }
.gantt-body { position: relative; background-image: linear-gradient(to right, var(--border) 1px, transparent 1px); }
.gantt-arrows { position: absolute; top: 0; left: 0; pointer-events: none; }
.gantt-arrows path { fill: none; stroke: #8a9a98; stroke-width: 1.5; }
.gantt-arrows path.conflict { stroke: #c92a2a; }
.gantt-phase { position: absolute; padding-top: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.gantt-bar { position: absolute; height: 20px; padding: 0; border: 0; border-radius: 5px; }
button.gantt-bar { cursor: pointer; }
button.gantt-bar:hover { filter: brightness(1.12); }
.gantt-bar.done { opacity: .55; }
.gantt-bar.late, .gantt-bar.conflict { outline: 2px solid #c92a2a; outline-offset: 1px; }
.gantt-bar.draggable { cursor: grab; touch-action: none; user-select: none; }
.gantt-bar.draggable:active { cursor: grabbing; }
.gantt-grip { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.gantt-grip.start { left: 0; }
.gantt-grip.end { right: 0; }
.gantt-moves { color: var(--muted); font-size: 12px; }
.gantt-moves summary { cursor: pointer; font-weight: 600; }
.gantt-moves p { margin: 2px 0; }
.gantt-label { position: absolute; font-size: 12px; white-space: nowrap; pointer-events: none; }
.gantt-label.late { color: #c92a2a; font-weight: 600; }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: #c92a2a; opacity: .6; pointer-events: none; }

/* Client portal: what the client sees of the studio. */
.portal-hero { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; }
.portal-hero-inner { max-width: 1120px; margin: 0 auto; padding: var(--space-3) 16px var(--space-6); }
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.portal-brand .brand-name { color: #fff; }
.portal-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-top: var(--space-6); }
.portal-eyebrow { margin: 0 0 var(--space-1); letter-spacing: .12em; opacity: .85; }
.portal-greeting { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 500; line-height: 1.1; color: #fff; }
.portal-welcome { margin: var(--space-2) 0 0; opacity: .92; }
.portal-figure { display: flex; flex-direction: column; gap: 2px; min-width: 200px; padding: var(--space-3) var(--space-4); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius); color: #fff; text-decoration: none; }
.portal-figure:hover { background: rgba(255, 255, 255, .22); }
.portal-figure strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.15; }
.portal-summary:empty { display: none; }
.btn.portal-jump { display: none; margin-top: var(--space-3); background: #fff; color: var(--teal-dark); }
.portal-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: var(--space-5); width: 100%; max-width: 1120px; margin: 0 auto; padding: var(--space-5) 16px; }
.portal-content { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.portal-aside { position: sticky; top: var(--space-4); min-width: 0; }
.portal-section { display: flex; flex-direction: column; gap: var(--space-2); }
.portal-title { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--text); }
.portal-list { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.portal-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; min-height: 64px; padding: var(--space-3) var(--space-4); background: none; border: 0; border-bottom: 1px solid var(--border); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.portal-row:last-child { border-bottom: 0; }
.portal-row:hover { background: color-mix(in srgb, var(--teal) 6%, transparent); }
.portal-row-text { min-width: 0; overflow-wrap: anywhere; }
.portal-done { padding: 4px 12px; background: var(--bg); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.portal-done::before { content: "\2713\00a0"; color: var(--accent-text); }
.portal-attention .portal-list { border-left: 4px solid var(--viz-2); }
.portal-timeline { overflow-x: auto; }
.portal-empty { text-align: center; padding: var(--space-6); }
.portal-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); }
.portal-photo { padding: 0; aspect-ratio: 1; overflow: hidden; background: var(--card); border: 0; border-radius: var(--radius); cursor: pointer; }
.portal-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.portal-photo:hover img { transform: scale(1.04); }
.portal-messages .message-list { max-height: 320px; }
.portal-messages .message { max-width: 90%; }
.portal-messages .textarea { min-height: 64px; }
.portal-messages .table-actions { justify-content: flex-end; }
@media (max-width: 900px) {
  .portal-main { grid-template-columns: minmax(0, 1fr); }
  .portal-aside { position: static; }
  .btn.portal-jump { display: inline-flex; }
  .portal-intro { margin-top: var(--space-5); }
  .portal-figure { flex: 1 1 100%; }
  .portal-summary { width: 100%; }
}

.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-3); }
.report-card { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); width: 100%; min-height: 64px; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.report-card:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(0, 128, 128, .12); }
.column-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.table-subtotal td { background: var(--bg); font-weight: 600; }
.table-total td { background: color-mix(in srgb, var(--teal) 12%, var(--card)); font-weight: 700; }
.table-group-by .input { width: auto; }
@media (max-width: 700px) { .table-subtotal td:empty, .table-total td:empty { display: none; } }

/* Moodboards */
.mood-work { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: var(--space-3); }
.mood-holder { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.mood-stage { position: absolute; top: 0; left: 0; width: 1200px; height: 800px; overflow: hidden; transform-origin: 0 0; touch-action: none; user-select: none; }
.mood-piece { position: absolute; cursor: move; touch-action: none; }
.mood-piece img { display: block; width: 100%; height: 100%; pointer-events: none; }
.mood-piece.selected { outline: 2px solid var(--teal); outline-offset: 1px; }
.mood-shape { width: 100%; height: 100%; }
.mood-shape.ellipse { border-radius: 50%; }
.mood-shape.line { height: 4px; margin-top: calc(var(--line-offset, 0px)); position: relative; top: calc(50% - 2px); }
.mood-text { width: 100%; height: 100%; line-height: 1.2; white-space: pre-wrap; overflow-wrap: break-word; pointer-events: none; }
.mood-grip { position: absolute; width: 22px; height: 22px; background: #fff; border: 3px solid var(--teal); border-radius: 50%; touch-action: none; transform: scale(var(--grip-scale, 1)); }
.mood-grip.nw { top: -11px; left: -11px; cursor: nwse-resize; }
.mood-grip.ne { top: -11px; right: -11px; cursor: nesw-resize; }
.mood-grip.sw { bottom: -11px; left: -11px; cursor: nesw-resize; }
.mood-grip.se { bottom: -11px; right: -11px; cursor: nwse-resize; }
.mood-grip.turn { top: -48px; left: calc(50% - 11px); cursor: grab; background: var(--teal); }
.mood-panel { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.mood-panel input[type=range] { width: 100%; accent-color: var(--teal); }
.mood-color { width: 64px; height: 40px; padding: 2px; }
.mood-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-2); }
.mood-catalog-item { display: flex; flex-direction: column; gap: 4px; padding: var(--space-1); background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: inherit; font: inherit; cursor: pointer; }
.mood-catalog-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.mood-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-3); }
.mood-board-card { display: flex; flex-direction: column; gap: var(--space-2); }
.mood-board-open { padding: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.mood-board-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .mood-work { grid-template-columns: minmax(0, 1fr); } }
.mood-tools { flex-wrap: wrap; }
.search-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-3); }
.search-method.automatic { border-top: 4px solid var(--teal); }
.search-method.manual { border-top: 4px solid #3D5A80; }
.found-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.found-image { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 6px; background: var(--bg); }
.found-text { display: flex; flex: 1 1 160px; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.quick-site { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.quick-site .input { flex: 1 1 220px; width: auto; }
@media (max-width: 900px) { .search-methods { grid-template-columns: minmax(0, 1fr); } }
.btn.output { background: #6b7280; border-color: #6b7280; color: #fff; }
.btn.output:hover:not(:disabled) { background: #565c68; border-color: #565c68; }
.mood-edit-area { display: flex; justify-content: center; padding: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-sm); background: repeating-conic-gradient(#e6ecea 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.mood-edit-canvas { display: block; max-width: 100%; max-height: 60vh; touch-action: none; cursor: crosshair; }
.mood3d { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: var(--space-3); }
.mood3d-scene { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: grab; touch-action: none; user-select: none; }
.mood3d-board { position: absolute; top: 50%; left: 50%; width: 1200px; height: 800px; margin: -400px 0 0 -600px; transform-style: preserve-3d; }
.mood3d-back { position: absolute; inset: 0; box-shadow: 0 12px 40px rgba(23, 48, 47, .25); }
.mood3d-controls input[type=range] { width: 100%; accent-color: var(--teal); }
@media (max-width: 900px) { .mood3d { grid-template-columns: minmax(0, 1fr); } }
.mood-editor .modal-actions { flex-wrap: wrap; }
.mood-editor, .mood-work > * { min-width: 0; }
.mood-version-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.mood-blank { display: block; width: 100%; aspect-ratio: 1; background: #fff; border: 1px dashed var(--border); border-radius: 6px; }
.portal-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-3); }
.portal-board { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.portal-board img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
