/* Shared tokens. :root repeats the established page values unchanged, so the
   plan 053 access screens (which also load this file) render exactly as before.
   The portal shell takes the approved canvas v29 values (CLAUDE.md design
   language: ink #1A1A1A, borders #E5E5E5, brand wash #F7E9EF, hover #5E1637). */
:root {
  --burgundy: #7a1f48;
  --burgundy-dark: #5d1737;
  --ink: #1f2430;
  --line: #e8e6e2;
  --plum: var(--burgundy);
  --plum-d: var(--burgundy-dark);
  --plum-soft: #faf3f7;
  --muted: #6b7280;
  --card: #fff;
}
.portal-shell {
  --burgundy-dark: #5e1637;
  --plum-d: var(--burgundy-dark);
  --ink: #1a1a1a;
  --line: #e5e5e5;
  --muted: #6b6b6b;
  --bg: #f7f5f6;
  --wash: #f7e9ef;
  --plum-soft: var(--wash);
  color: var(--ink);
}
/* Shared shell and components. Chips remain on white cards. */
.portal-shell { background: var(--bg); }
.portal-shell .nav a.active { background: var(--wash); color: var(--burgundy); font-weight: 600; }
.portal-shell .side { width: 220px; flex-basis: 220px; }
.portal-shell .brand { font-size: 22px; line-height: 1; }
.portal-shell .brand small { display: block; font-size: 9px; margin-top: 5px; letter-spacing: .08em; }
.portal-shell .nav { margin-top: 0; }
.portal-shell .nav a { font-size: 13px; }
.portal-shell .main { max-width: none; padding: 28px 32px; }
.portal-shell .nav-new { margin-left:auto; border:1px solid #e8b8cb; border-radius:999px; padding:1px 6px; color:var(--burgundy); font-size:10px; line-height:1.3; }
.portal-shell .card { border-radius: 10px; }

/* Plan 070 N8 · approved AtlasNews-11 myAura frame. */
.customer-news-view { display:grid; gap:14px; max-width:1092px; }
.customer-news-view h1 { margin:0; font-size:22px; line-height:1.25; }
.customer-news-view .news-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.customer-news-view .news-header p { margin:12px 0 0; font-size:13px; }
.customer-news-view .news-feed { display:grid; gap:14px; }
.customer-news-view .news-card { display:flex; align-items:flex-start; gap:14px; margin:0; padding:14px 16px; color:var(--ink); text-decoration:none; background:var(--card); border:1px solid var(--line); }
.customer-news-view .news-card:hover { border-color:#d5a1b7; }
.customer-news-view .news-art { width:132px; height:88px; flex:0 0 auto; display:grid; place-items:center; border-radius:8px; background:linear-gradient(135deg,#E9DCE2 0%,#F5EFF2 60%,#EFE6EA 100%); color:#a07e8d; }
.customer-news-view .news-art svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.customer-news-view .news-copy { display:flex; flex:1; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; }
.customer-news-view .news-copy strong { font-size:15px; }
.customer-news-view .news-copy > span:not(:first-child) { font-size:13px; color:#3f3f3f; }
.customer-news-view .news-copy small { margin-top:2px; color:var(--muted); font-size:12px; }
.customer-news-view .news-category,.customer-news-view .news-pinned { display:inline-flex; align-items:center; width:auto; border-radius:999px; line-height:1; }
.customer-news-view .news-category { height:20px; padding:0 8px; background:#f2f4f7; color:#344054; font-size:11px; font-weight:600; }
.customer-news-view .news-category-holidays { background:#f0fdfa; color:#0f766e; }
.customer-news-view .news-category-quality { background:#f1f9f4; color:#1f7a4a; }
.customer-news-view .news-pinned { height:22px; margin-left:6px; padding:0 10px; border:1px solid var(--line); background:#fff; color:var(--ink); font-size:11.5px; }
.customer-news-view .news-post { padding:22px; background:#fff; }
.customer-news-view .news-post > p { max-width:760px; white-space:pre-wrap; line-height:1.65; }
.customer-news-view .news-empty { padding:28px; background:#fff; }
.customer-news-view .news-empty h2 { margin-top:0; }
.customer-news-view .news-language { display:inline-flex; border:1px solid var(--line); border-radius:999px; padding:2px; background:#fff; }
.customer-news-view .news-language button { border:0; border-radius:999px; padding:5px 10px; background:transparent; color:var(--muted); }
.customer-news-view .news-language button[aria-pressed="true"] { background:var(--burgundy-wash,#f7e9ef); color:var(--burgundy); }
.customer-news-view .news-error { display:flex; gap:10px; align-items:center; padding:12px 14px; border:1px solid #e8b8cb; border-radius:8px; background:#fff; color:var(--burgundy); }
.customer-news-view .news-error span { flex:1; }
.customer-news-view .news-error button,.customer-news-view .news-back { border:0; background:none; color:var(--burgundy); font:inherit; }
@media(max-width:700px){.customer-news-view .news-card{display:grid;grid-template-columns:88px minmax(0,1fr)}.customer-news-view .news-art{width:88px;height:100%;min-height:88px}.customer-news-view .news-header{display:grid}.customer-news-view .news-error{align-items:flex-start;flex-direction:column}}
.portal-shell .usermenu { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-account { width: 100%; overflow-wrap: anywhere; margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.portal-view > h1 { margin-bottom: 18px; }
.portal-table { overflow-x: auto; }
.portal-shell .empty { background: white; border-radius: 8px; }
.portal-shell a:focus-visible, .portal-shell button:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
@media (max-width: 760px) {
  .portal-shell { flex-direction: column; }
  .portal-shell .side { position: static; width: 100%; height: auto; flex-basis: auto; }
  .portal-shell .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-shell .main { padding: 20px 16px; }
}
/* Shared button classes; legacy lane selectors are aliases during integration.
   Lane rules below retain board-specific size, spacing and typography. */
.portal-view .btn, .portal-button, .home-action-link, .orders-view button, .orders-view .btn, .messages-page .btn, .message-thread button, .materials-view button, .materials-view .card > header a, .materials-upload {
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.portal-view .btn, .portal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; box-sizing: border-box; padding: 6px 12px; font: inherit; text-decoration: none; }
.portal-view .btn.primary, .portal-button.primary, .home-action-link.primary, .orders-view .primary, .messages-page .btn.primary, .message-thread .thread-primary, .materials-view button.primary, .projects-view button.primary, .project-detail button.primary { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.portal-view .btn.primary:hover:not(:disabled), .portal-button.primary:hover:not(:disabled) { background: var(--burgundy-dark); }
.portal-date-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.portal-shell .pill { display: inline-block; border-radius: 999px; }
.portal-shell .portal-view .pill.pill-unset, .home-unset, .orders-view .orders-unset, .documents-unset, .inventory-unset, .project-unset { display: inline-block; border-radius: 999px; border: 1px dashed var(--line); background: var(--card); color: var(--muted); font-weight: 400; }
/* BEGIN VIEW home */
.home-view { display: flex; flex-direction: column; gap: 18px; }
.home-heading h1 { margin: 0; font-size: 24px; font-weight: 700; }
.home-heading p { margin: 2px 0 0; }
.home-view .card { padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.home-section-heading h2 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.home-section-heading > a { font-size: 12px; text-decoration: none; color: var(--burgundy); }
.home-card-body { padding: 12px 16px; font-size: 13px; }
.home-view .muted { font-size: 12px; color: var(--muted); }
.home-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.home-action:last-child { border-bottom: 0; }
.home-action p { margin: 3px 0 0; }
.home-action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; box-sizing: border-box; padding: 6px 14px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-action-link.primary:hover { background: var(--burgundy-dark); }
.home-new { display: inline-block; margin-left: 6px; border: 1px solid var(--burgundy); border-radius: 4px; padding: 0 5px; color: var(--burgundy); font-size: 9px; font-weight: 700; letter-spacing: .06em; vertical-align: middle; }
.home-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.home-aside { display: flex; flex-direction: column; gap: 18px; }
.home-view .pill { width: auto; padding: 2px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.home-unset { width: auto; padding: 2px 8px; font-size: 11px; white-space: nowrap; }
.home-orders { width: 100%; border-collapse: collapse; font-size: 13px; }
.home-orders th { text-transform: uppercase; font-size: 10px; letter-spacing: .06em; font-weight: 600; color: var(--muted); background: transparent; }
.home-orders th, .home-orders td { text-align: left; padding: 10px 5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.home-orders tbody tr:last-child td { border-bottom: 0; }
.home-orders td:first-child a { font-weight: 600; text-decoration: none; }
.home-checklist { list-style: none; padding: 0; margin: 6px 0 0; line-height: 1.7; }
.home-checklist a, .home-profile { color: var(--ink); font-size: 13px; text-decoration: none; }
.home-profile { border: 0; background: transparent; padding: 0; font-family: inherit; cursor: pointer; }
.home-checklist a:hover, .home-profile:hover { color: var(--burgundy-dark); text-decoration: underline; }
.home-account { margin: 0; }
.home-account dt { color: var(--muted); font-size: 12px; margin-top: 6px; }
.home-account dt:first-child { margin-top: 0; }
.home-account dd { margin: 2px 0 0; overflow-wrap: anywhere; }
@media (max-width: 1050px) { .home-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .home-action { grid-template-columns: minmax(0, 1fr); } .home-action-link { justify-self: start; } }
/* END VIEW home */
/* BEGIN VIEW orders */
.orders-view { display: flex; flex-direction: column; gap: 16px; }
.orders-view h1 { font-size: 24px; margin: 0; }
.orders-view .muted { font-size: 12px; color: var(--muted); }
.orders-header, .orders-controls, .orders-section-heading, .orders-kinds, .orders-attachment { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.orders-header { justify-content: space-between; align-items: flex-end; }
.orders-header p { margin: 2px 0 0; }
.orders-controls { justify-content: flex-end; flex: 1; }
.orders-view button, .orders-view input, .orders-view select { font: inherit; }
.orders-view button, .orders-view .btn { min-height: 34px; padding: 6px 12px; }
.orders-view button:disabled { cursor: default; opacity: .55; }
.orders-view button[data-orders-filter], .orders-kinds button { border-radius: 999px; font-size: 12px; min-height: 0; padding: 4px 10px; }
.orders-view button[data-orders-filter] span { opacity: .7; }
.orders-view button[aria-pressed=true] { background: var(--burgundy); border-color: var(--burgundy); color: var(--card); }
.orders-view input, .orders-view select { min-height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; color: var(--ink); background: var(--card); box-sizing: border-box; }
.orders-view input:focus-visible, .orders-view select:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.orders-view input[aria-label="Search orders"] { width: 220px; border-radius: 6px; }
.orders-view .card { padding: 0; background: var(--card); }
.orders-section-heading { justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.orders-section-heading h2 { margin: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.orders-view .orders-quiet { border: 0; min-height: auto; padding: 0; color: var(--burgundy); }
.orders-view table { width: 100%; border-collapse: collapse; font-size: 13px; }
.orders-view th { text-align: left; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; color: var(--muted); }
.orders-view td, .orders-view th { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.orders-view tr:last-child td { border-bottom: 0; }
.orders-view small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.orders-view .pill { width: fit-content; white-space: nowrap; font-size: 11px; font-weight: 600; padding: 2px 8px; }
.orders-view .orders-unset { padding: 3px 8px; font-size: 12px; }
.orders-new { display: inline-block; font-size: 9px; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; letter-spacing: .06em; }
.orders-view progress { width: 80px; height: 5px; accent-color: var(--burgundy); }
.orders-intake { border-color: var(--burgundy); }
.orders-intake form { padding: 12px 16px; }
.orders-intake fieldset { margin: 10px 0; padding: 0; border: 0; min-width: 0; }
.orders-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.orders-fields label, .orders-field-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.orders-fields input, .orders-fields select { display: block; max-width: 100%; margin-top: 4px; text-transform: none; letter-spacing: normal; font-size: 13px; }
.orders-fields [data-po-date] { display: inline-block; margin-top: 4px; }
.orders-attachment { margin-top: 10px; font-size: 13px; }
.orders-attachment input { max-width: 260px; }
.orders-submit { display: flex; justify-content: flex-end; margin-top: 10px; }
.orders-documents > p { margin: 12px 16px; }
.orders-commitments .orders-section-heading > div { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.orders-commitments .orders-section-heading > a { font-size:12px; }
.orders-commitments ul { margin:0; padding:0 16px; list-style:none; }
.orders-commitments li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.orders-commitments li:last-child { border-bottom:0; }
.orders-commitments [role=alert] { margin:12px 16px; }
.orders-view [role=alert] { color: var(--burgundy); font-size: 13px; }
.orders-view [data-orders-list] { display: flex; flex-direction: column; gap: 16px; }
.orders-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) { .orders-controls { justify-content: flex-start; } .orders-fields { grid-template-columns: 1fr; } }
/* END VIEW orders */
/* BEGIN VIEW order-detail */
.od-page { font-size: 13px; line-height: 1.5; }
.od-page h1 { font-size: 24px; font-weight: 600; margin: 8px 0; }
.od-page h3 { font-size: 14px; margin: 10px 0; }
.od-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 16px 0 22px; }
.od-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--card); margin-bottom: 16px; }
.od-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.od-heading h2, h2.od-heading { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.od-heading > span { font-size: 12px; color: var(--muted); }
.od-page button { background: var(--card); color: var(--burgundy); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; font: inherit; cursor: pointer; }
.od-page button:hover { color: var(--burgundy-dark); border-color: var(--burgundy); }
.od-page button:disabled { opacity: .55; cursor: wait; }
.od-heading button, .od-heading a { border: 0; background: none; padding: 0; font-size: 12px; text-transform: none; letter-spacing: normal; font-weight: 500; }
.od-page a { color: var(--burgundy); }
.od-page .pill, .od-pill, .od-page dd { display: inline-block; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; background: var(--card); color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.od-page .kv { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 9px 14px; margin: 12px 0; }
.od-page dt, .od-muted { color: var(--muted); }
.od-page dd { margin: 0; }
.od-page .od-unset { border-style: dashed; color: var(--muted); }
/* Owner call 2026-10-18: board dots with one live current indicator. */
.od-timeline { display: flex; gap: 4px; padding: 28px 28px 4px; margin: 0; list-style: none; overflow: visible; }
.od-timeline li { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; padding: 0; color: var(--ink); overflow: visible; }
.od-timeline li:not(:last-child)::before { content: ''; position: absolute; top: 5px; left: 50%; width: calc(100% + 4px); height: 4px; background: #e9e3e6; border-radius: 2px; }
.od-timeline li.done:has(+ li.done)::before { background: var(--burgundy); }
.od-stage-dot { box-sizing: border-box; position: relative; z-index: 1; flex: none; width: 14px; height: 14px; border: 3px solid #cfc6cb; border-radius: 50%; background: var(--card); }
.od-timeline li.done .od-stage-dot, .od-stage-dot.od-stage-pulse { background: var(--burgundy); border-color: var(--burgundy); }
.od-timeline li.hold .od-stage-dot { background: #a32626; border-color: #a32626; box-shadow: 0 0 0 4px #fde8e8; }
.od-stage-label { font-size: 11px; margin-top: 8px; line-height: 1.2; font-weight: 500; }
.od-stage-current .od-stage-label { font-weight: 700; }
.od-stage-date { font-size: 10px; line-height: normal; }
/* Absolute rings and transform-only breathing keep the rail stable during animation. */
.od-stage-pulse { animation: od-stage-breathe 1.8s ease-out infinite; }
.od-stage-pulse::before, .od-stage-pulse::after { content: ''; box-sizing: border-box; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--burgundy); box-shadow: 0 0 10px var(--burgundy); pointer-events: none; animation: od-stage-pulse 1.8s ease-out infinite; }
.od-stage-pulse::after { animation-delay: -0.9s; }
.od-timeline li.hold .od-stage-pulse::before, .od-timeline li.hold .od-stage-pulse::after { border-color: #a32626; box-shadow: 0 0 10px #a32626; }
@keyframes od-stage-pulse {
  from { transform: scale(1); opacity: 0.75; }
  to { transform: scale(3.2); opacity: 0; }
}
@keyframes od-stage-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .od-stage-pulse { animation: none; transform: none; }
  .od-stage-pulse::before, .od-stage-pulse::after { animation: none; transform: scale(1.4); opacity: 0.2; }
  .od-stage-pulse::after { content: none; }
}
.od-banner { border-top: 1px solid var(--line); padding-top: 14px; }
.od-banner p { margin: 4px 0; }
.od-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; color: var(--muted); font-size: 12px; }
.od-page input:not([type=radio]):not([type=file]), .od-page select, .od-page textarea { box-sizing: border-box; max-width: 100%; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; }
.od-page textarea { min-height: 76px; resize: vertical; }
.od-page input:focus-visible, .od-page select:focus-visible, .od-page textarea:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.od-page fieldset { border: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.od-page legend { margin-bottom: 6px; color: var(--muted); }
.od-page fieldset label { display: inline-flex; align-items: center; gap: 6px; width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink); cursor: pointer; }
.od-page fieldset label:has(:checked) { border-color: var(--burgundy); color: var(--burgundy); }
.od-page fieldset label:has(:focus-visible) { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.od-error { color: var(--burgundy); font-weight: 600; border-left: 2px solid var(--burgundy); padding-left: 10px; }
.od-error:empty { display: none; }
.od-row, .od-thread { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.od-row p, .od-thread p { margin: 3px 0; }
.od-question, .od-invoice { border-bottom: 1px solid var(--line); padding: 10px 0; }
.od-page table { width: 100%; border-collapse: collapse; font-size: 12px; }
.od-page th { text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.od-page th, .od-page td { background: var(--card); padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.od-lot { color: var(--muted); margin-top: 5px; }
.od-document-list { display: flex; flex-direction: column; gap: 8px; }
.od-document-list button { border: 0; padding: 0; text-align: left; }
.od-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.od-gallery { padding: 12px; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; }
.od-photo-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.od-photo-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 6px; overflow-wrap: anywhere; }
.od-photo-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.od-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.od-case-preview { padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 760px) { .od-pair { grid-template-columns: 1fr; } .od-header { flex-wrap: wrap; } .od-row, .od-thread { grid-template-columns: 1fr; gap: 6px; } .od-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .od-page .kv { grid-template-columns: 100px minmax(0,1fr); } }

/* END VIEW order-detail */
/* BEGIN VIEW documents */
.documents-page { display: flex; flex-direction: column; gap: 16px; }
.documents-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.documents-header h1 { margin: 0; font-size: 24px; }
.documents-header p { margin: 3px 0 0; }
.documents-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.documents-filters input { width: 220px; height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: var(--card); font: inherit; font-size: 12px; }
.documents-filter, .documents-button { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.documents-filter[aria-pressed="true"] { border-color: var(--burgundy); color: var(--burgundy); font-weight: 600; }
.documents-button { border-radius: 6px; }
.documents-page .card { background: var(--card); padding: 12px 16px; }
.documents-section-heading { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.documents-page h2 { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.documents-section-heading h2 { margin-right: auto; }
.documents-quiet { background: var(--card); color: var(--burgundy); border: 0; padding: 4px; font: inherit; font-size: 12px; cursor: pointer; }
.documents-pack-label { font-size: 12px; }
.documents-pack-label select { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; background: var(--card); color: var(--ink); }
.documents-page table { width: 100%; border-collapse: collapse; font-size: 13px; }
.documents-page th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--card); }
.documents-page th, .documents-page td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.documents-page tr:last-child td { border-bottom: 0; }
.documents-page td:first-child { min-width: 230px; }
.documents-page .pill { background: var(--card); color: var(--ink); border: 1px solid var(--line); width: fit-content; white-space: nowrap; }
.documents-unset { padding: 2px 8px; white-space: nowrap; }
.documents-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.documents-help p { margin: 6px 0 0; }
.documents-page input:focus-visible, .documents-page select:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.documents-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.documents-regulatory .documents-list { padding: 0; overflow: hidden; border-radius: 10px; }
.documents-regulatory .documents-section-heading { padding: 12px 16px; }
.documents-regulatory th, .documents-regulatory td { padding: 10px 16px; }
.documents-regulatory td { font-size: 13px; line-height: 1.5; }
.documents-regulatory th { font-size: 10.5px; }
.documents-regulatory .documents-action-none { font-size: 12.5px; }
.documents-regulatory td:first-child { min-width: 150px; }
.documents-regulatory .documents-version { font-variant-numeric: tabular-nums; }
.documents-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.documents-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.documents-status.ready { background: #e7f4ec; color: #2f6b3a; }
.documents-status.review { background: #e8eef7; color: #2b4c7e; }
.documents-status.evid { background: #fbf1dd; color: #8a5a00; }
.documents-status.withheld { background: #eeebec; color: var(--muted); }
.documents-action { appearance: none; border: 0; background: transparent; color: var(--muted); padding: 0; font: inherit; font-size: 12.5px; text-decoration: none; cursor: pointer; }
.documents-action:hover { color: var(--burgundy); }
.documents-action:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 900px) { .documents-help { grid-template-columns: 1fr; } }
/* END VIEW documents */
/* BEGIN VIEW approvals */
.approvals-view { display:flex; flex-direction:column; gap:16px; }
.approvals-view h1, .approvals-view p { margin:0; }
.approvals-view .card { padding:16px; background:var(--card); }
.approvals-view h2, .approvals-view h3 { color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
.approvals-view .pill, .approval-unset { display:inline-block; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:3px 8px; width:max-content; }
.approval-unset { border-style:dashed; color:var(--muted); }
.approvals-view [data-approval-action="close"] { border:0; float:right; }
.approval-item { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
.approval-item:last-child { border-bottom:0; }
.approval-item p { margin-top:6px; font-size:12px; }
.approval-review, .approval-fields { display:grid; grid-template-columns:1.2fr 1fr; gap:16px; }
.approval-preview { min-height:220px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:8px; color:var(--muted); }
.approval-consent { border-top:1px solid var(--line); margin-top:16px; padding-top:12px; }
.approval-fields label, .approvals-view form label { display:flex; flex-direction:column; gap:6px; }
.approvals-view input:not([type=checkbox]), .approvals-view textarea { border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--ink); padding:8px 12px; }
.approvals-view textarea { border-radius:8px; min-height:80px; }
.approval-check { display:flex; align-items:flex-start; gap:8px; margin:12px 0; }
.approval-check input { width:auto; }
.approval-actions { display:flex; gap:8px; justify-content:flex-end; margin:12px 0; flex-wrap:wrap; }
.approvals-view button { background:var(--card); color:var(--burgundy); border:1px solid var(--line); border-radius:6px; }
.approvals-view button:disabled { opacity:.5; cursor:not-allowed; }
.approvals-view input:focus-visible, .approvals-view textarea:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.approvals-view [role=alert]:empty { display:none; }
@media(max-width:760px) { .approval-review, .approval-fields, .approval-item { grid-template-columns:1fr; } }

/* Plan 053 StepUp · the native myAura signing ceremony. This uses the portal's
   shared button classes and tokens; the signed payload remains server prepared. */
.signing-modal-bg { align-items:flex-start; padding:0; background:#f7f5f6; overflow:auto; }
.modal.signing-modal { width:1280px; max-width:none; min-height:800px; max-height:none; margin:0 auto; padding:0; border-radius:0; overflow:visible; background:#f7f5f6; color:#1a1a1a; font-family:-apple-system,"Segoe UI",system-ui,sans-serif; }
.signing-study { width:1280px; padding:28px 32px; box-sizing:border-box; display:flex; flex-direction:column; gap:16px; background:transparent; color:#1a1a1a; font-size:16px; line-height:normal; }
.signing-intro h1 { margin:0; font-size:22px; line-height:normal; font-weight:700; }
.signing-intro p { margin:4px 0 0; color:#6b6b6b; font-size:12px; line-height:normal; }
.signing-steps { display:flex; gap:6px; }
.signing-step { display:inline-block; border:1px solid #e5e5e5; border-radius:999px; padding:4px 10px; background:#fff; color:#1a1a1a; font-size:12px; line-height:normal; }
.signing-step.on { background:#7a1f48; border-color:#7a1f48; color:#fff; }
.signing-layout { display:grid; grid-template-columns:1.3fr 1fr; gap:16px; align-items:start; }
.signing-card { background:#fff; border:1px solid #e5e5e5; border-radius:10px; }
.signing-card-head { min-height:43px; box-sizing:border-box; padding:12px 16px; border-bottom:1px solid #e5e5e5; font-size:14px; line-height:normal; font-weight:700; display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.signing-card-body { padding:12px 16px; font-size:13px; line-height:normal; }
.signing-sidebar { height:440px; box-sizing:border-box; }
.signing-study[data-signing-state="review"] .signing-primary { height:361px; }
.signing-study[data-signing-state="review"] .signing-primary .signing-card-body { height:317px; }
.signing-study[data-signing-state="verify"] .signing-primary { height:360px; }
.signing-study[data-signing-state="verify"] .signing-primary .signing-card-body { height:316px; }
.signing-tag { display:inline-block; border-radius:999px; padding:2px 8px; font-size:11px; line-height:normal; font-weight:600; white-space:nowrap; }
.signing-tag.success { background:#e8f5ee; color:#1e6b3f; }
.signing-tag.warning { background:#fff4db; color:#8a5a00; }
.signing-tag.neutral { background:#f3f3f3; color:#555; }
.signing-review-grid { display:grid; grid-template-columns:200px 1fr; gap:14px; }
.signing-preview { height:150px; box-sizing:border-box; border:1px solid #e5e5e5; border-radius:8px; background:#f3f3f3; display:flex; align-items:center; justify-content:center; color:#9a9a9a; font-size:12px; text-align:center; padding:10px; overflow-wrap:anywhere; }
.signing-kv { display:grid; grid-template-columns:140px 1fr; gap:4px 10px; margin:0; font-size:13px; line-height:normal; }
.signing-kv dt { color:#6b6b6b; font-size:12px; }
.signing-kv dd { margin:0; overflow-wrap:anywhere; }
.signing-authorization { display:flex; gap:8px; align-items:flex-start; margin:14px 0 0; color:#1a1a1a; font-size:13px; font-weight:400; }
.signing-authorization input { width:auto; height:auto; margin:3px 0 0; accent-color:#7a1f48; }
.signing-identity { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.signing-identity label,.signing-field { display:block; margin:0; color:#1a1a1a; font-weight:400; }
.signing-identity label span,.signing-field span,.signing-code-field legend { display:block; margin-bottom:4px; color:#6b6b6b; font-size:10px; line-height:normal; letter-spacing:.08em; text-transform:uppercase; font-weight:600; }
.signing-identity input,.signing-field input,.signing-codeboxes input { box-sizing:border-box; width:100%; height:34px; padding:0 10px; border:1px solid #e5e5e5; border-radius:6px; background:#fff; color:#1a1a1a; font-family:inherit; font-size:13px; }
.signing-identity input[readonly] { opacity:1; }
.signing-confirm-title { margin:0; font-size:15px; line-height:normal; font-weight:700; }
.signing-muted { margin:4px 0 0; color:#6b6b6b; font-size:12px; line-height:normal; }
.signing-pin { width:180px; margin-top:14px; }
.signing-pin input { height:44px; font-size:18px; letter-spacing:.3em; }
.signing-code-field { margin:14px 0 0; padding:0; border:0; }
.signing-study[data-signing-state="verify"] .signing-pin span { width:644px; }
.signing-study[data-signing-state="review"] .signing-kv { height:152px; align-content:start; }
.signing-study[data-signing-state="review"] .signing-identity { margin-top:12px; }
.signing-codeboxes { display:grid; grid-template-columns:repeat(6,56px); gap:8px; }
.signing-codeboxes input { width:56px; height:48px; padding:0; text-align:center; font-size:20px; }
.signing-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:14px; }
.signing-study .btn { display:inline-flex; align-items:center; justify-content:center; width:auto; height:34px; min-height:34px; box-sizing:border-box; margin:0; padding:0 14px; border:1px solid #e5e5e5; border-radius:6px; background:#fff; color:#1a1a1a; font-family:inherit; font-size:13px; font-weight:600; text-decoration:none; }
.signing-study .btn.primary { background:#7a1f48; border-color:#7a1f48; color:#fff; }
.signing-study .btn.primary:hover:not(:disabled) { background:#5e1637; }
.signing-link { width:auto; height:auto; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:#7a1f48; font-family:inherit; font-size:12px; font-weight:400; text-decoration:underline; }
.signing-link:hover { background:transparent; color:#5e1637; }
.signing-error { min-height:0; margin-top:10px; color:#a32626; font-size:12px; }
.signing-error:empty { display:none; }
.signing-message { margin-top:10px; }
.signing-sidebar-item { display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #e5e5e5; }
.signing-sidebar-item:last-of-type { border-bottom:0; }
.signing-sidebar-item b { font-weight:700; }
.signing-sidebar-item p { margin:3px 0 0; color:#6b6b6b; font-size:12px; line-height:normal; }
.signing-why { margin:10px 0 0; color:#6b6b6b; font-size:12px; line-height:normal; }
.signing-signed-title { display:flex; align-items:center; gap:10px; }
.signing-record { grid-template-columns:150px 1fr; margin-top:12px; }
.signing-locked { margin-top:10px; }
.signing-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:900px) {
  .modal.signing-modal,.signing-study { width:100%; min-height:100vh; }
  .signing-layout,.signing-review-grid,.signing-identity { grid-template-columns:1fr; }
  .signing-codeboxes { grid-template-columns:repeat(6,minmax(38px,56px)); }
  .signing-codeboxes input { width:100%; }
}

/* END VIEW approvals */
/* BEGIN VIEW billing */
.billing-view { display: grid; gap: 16px; }
.billing-view > h1, .billing-view > p { margin: 0; }
.billing-view .card { padding: 16px; background: var(--card); border: 1px solid var(--line); }
.billing-view h2, .billing-view h3, .billing-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.billing-view h2 { margin: 0 0 12px; }
.billing-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.billing-stat { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 14px; }
.billing-stat > .pill { font-size: 16px; font-variant-numeric: tabular-nums; }
.billing-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.billing-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.billing-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; align-items: start; }
.billing-view table { width: 100%; border-collapse: collapse; }
.billing-view th { color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.billing-view th, .billing-view td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.billing-view .pill, .billing-unset { display: inline-block; width: fit-content; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.billing-unset { border-style: dashed; color: var(--muted); }
.billing-view label { display: block; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.billing-view input, .billing-view select, .billing-view textarea { display: block; box-sizing: border-box; max-width: 100%; width: 100%; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: inherit; }
.billing-view input:focus-visible, .billing-view select:focus-visible, .billing-view textarea:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.billing-view [role="alert"] { color: var(--burgundy); }
.billing-notice { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.billing-remittance { white-space: pre-wrap; }
.billing-view form + form { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
@media (max-width: 900px) { .billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .billing-columns { grid-template-columns: 1fr; } }
@media (max-width: 550px) { .billing-fields, .billing-summary { grid-template-columns: 1fr; } }
/* END VIEW billing */

/* BEGIN VIEW ai-tools */
.ai-tools-view, .connected-apps-view { display:flex; flex-direction:column; gap:16px; }
.ai-tools-view h1, .connected-apps-view h1 { margin:0; font-size:24px; }
.ai-back { color:var(--burgundy); text-decoration:none; font-size:12px; font-weight:600; width:max-content; }
.ai-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; }
.ai-heading p { margin:4px 0 0; max-width:760px; color:var(--muted); }
.ai-tools-view .card, .connected-apps-view .card { padding:0 16px; background:var(--card); }
.ai-section-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:46px; border-bottom:1px solid var(--line); }
.ai-section-heading h2 { margin:0; color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.ai-section-heading a { color:var(--burgundy); text-decoration:none; font-size:12px; }
.ai-app-row { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:58px; border-bottom:1px solid var(--line); }
.ai-app-row:last-child { border-bottom:0; }
.ai-app-logo { display:inline-flex; width:24px; height:24px; align-items:center; justify-content:center; }
.ai-app-logo img { display:block; width:24px; height:24px; object-fit:contain; }
.ai-neutral-logo { display:inline-flex; width:24px; height:24px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:6px; background:var(--card); color:var(--ink); font-weight:600; }
.ai-app-name { display:flex; flex-direction:column; min-width:0; }
.ai-app-name > span { color:var(--muted); font-size:11px; }
.ai-app-action { display:flex; align-items:center; gap:10px; }
.ai-app-action a { color:var(--burgundy); font-size:12px; text-decoration:none; }
.ai-connected { display:inline-flex; width:max-content; color:#276749; border:1px solid #b9dbc9; border-radius:999px; padding:3px 9px; background:var(--card); font-size:11px; }
.ai-inline-hint:not(:empty) { margin-top:3px; color:#276749; }
.ai-inline-hint.ai-inline-error { color:#a32626; }
.ai-other-toggle, .ai-text-link, .ai-danger-link { width:max-content; border:0; padding:0; background:var(--card); color:var(--burgundy); font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.ai-other-toggle { margin:2px 0 -12px; }
.ai-other { padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--card); }
.ai-address { display:flex; align-items:center; gap:8px; }
.ai-address code { flex:1; min-width:0; overflow-wrap:anywhere; border:1px solid var(--line); border-radius:6px; padding:9px 12px; background:var(--card); color:var(--ink); }
.ai-key-create { border-top:1px solid var(--line); margin-top:14px; padding-top:14px; }
.ai-key-create form { display:grid; gap:8px; max-width:520px; }
.ai-key-create input { box-sizing:border-box; width:100%; border:1px solid var(--line); border-radius:6px; padding:9px 12px; background:var(--card); color:var(--ink); font:inherit; }
.ai-key-create input:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.ai-key-once { display:flex; flex-direction:column; gap:10px; border:1px solid #b9dbc9; border-radius:8px; padding:12px; }
.ai-key-once > button { align-self:flex-end; }
.ai-error { color:#a32626; font-weight:600; border-left:2px solid #a32626; padding-left:10px; }
.ai-error:empty { display:none; }
.ai-disabled { display:flex; flex-direction:column; gap:3px; padding:12px 14px; border:1px solid #e1bd86; border-radius:8px; background:var(--card); color:var(--ink); }
.ai-disabled span { color:var(--muted); }
.ai-footnote { margin:0; }
.ai-security { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ai-security > h2 { grid-column:1/-1; margin:0; }
.ai-security section { border:1px solid var(--line); border-radius:8px; padding:12px; background:var(--card); }
.ai-security h3, .ai-security p { margin:0; }
.ai-security p { margin-top:4px; color:var(--muted); }
.account-security-links { display:flex; flex-direction:column; }
.account-security-links a { display:flex; flex-direction:column; gap:2px; padding:12px 0; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; }
.account-security-links a:last-child { border-bottom:0; }
.account-security-links a span { color:var(--muted); font-size:12px; }
/* END VIEW ai-tools */

/* BEGIN VIEW connected-apps */
.connected-tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); }
.connected-tabs button { border:0; border-bottom:2px solid transparent; padding:8px 10px; background:var(--card); color:var(--muted); font:inherit; cursor:pointer; }
.connected-tabs button[aria-selected="true"] { border-bottom-color:var(--burgundy); color:var(--burgundy); font-weight:600; }
.connected-grid { display:grid; grid-template-columns:32px minmax(140px,1.4fr) repeat(3,minmax(90px,1fr)) minmax(110px,auto); align-items:center; gap:10px; min-height:58px; border-bottom:1px solid var(--line); font-size:12px; }
.connected-grid:last-child, .key-grid:last-child { border-bottom:0; }
.connected-grid small, .key-grid small { display:block; margin-top:2px; color:var(--muted); }
.connected-head { min-height:34px; color:var(--muted); font-size:10px; letter-spacing:.06em; text-transform:uppercase; }
.key-grid { display:grid; grid-template-columns:minmax(170px,1.5fr) repeat(3,minmax(100px,1fr)) minmax(70px,auto); align-items:center; gap:10px; min-height:58px; border-bottom:1px solid var(--line); font-size:12px; }
.key-grid.is-expired { color:var(--muted); opacity:.75; }
.ai-danger-link { justify-self:start; color:#a32626; }
.connected-confirm { position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center; padding:20px; background:rgb(0 0 0 / .28); }
.connected-confirm .card { width:min(420px,100%); padding:18px; }
.connected-confirm h2 { margin:0; color:var(--ink); font-size:16px; }
.connected-confirm .card > div { display:flex; justify-content:flex-end; gap:8px; }
.btn.danger { background:#a32626; border-color:#a32626; color:white; }
@media (max-width:760px) {
  .ai-heading { align-items:flex-start; flex-direction:column; }
  .ai-app-row { grid-template-columns:32px minmax(0,1fr); padding:10px 0; }
  .ai-app-action { grid-column:2; }
  .ai-address { align-items:stretch; flex-direction:column; }
  .ai-security { grid-template-columns:1fr; }
  .connected-grid, .key-grid { grid-template-columns:32px minmax(0,1fr); padding:12px 0; }
  .key-grid { grid-template-columns:1fr 1fr; }
  .connected-head { display:none; }
  .connected-grid > :nth-child(n+3) { grid-column:2; }
  .key-grid > :last-child { grid-column:1/-1; }
}
/* END VIEW connected-apps */
/* BEGIN VIEW private-label */
.pl-heading { margin-bottom: 16px; }
.pl-heading h1 { margin: 0; font-size: 24px; }
.pl-heading p { margin: 4px 0 0; }
.pl-new { display: inline-block; vertical-align: middle; border: 1px solid var(--burgundy); color: var(--burgundy); background: var(--card); border-radius: 4px; padding: 1px 5px; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.pl-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pl-product { display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; overflow: hidden; }
.pl-product:hover, .pl-product.is-selected { border-color: var(--burgundy); }
.pl-product.is-selected { box-shadow: 0 0 0 2px var(--wash); }
.pl-product-photo { display: flex; justify-content: center; align-items: center; height: 100px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pl-product-copy { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; font-size: 13px; }
.pl-product-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.portal-shell .pl-product-pills .pill { display: inline-flex; width: fit-content; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
@media (max-width: 1000px) { .pl-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pl-catalog { grid-template-columns: 1fr; } }
/* END VIEW private-label */
/* BEGIN VIEW private-label-detail */
.pl-detail { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-top: 18px; overflow: hidden; }
.pl-detail > header { padding: 16px; border-bottom: 1px solid var(--line); }
.pl-detail h2 { margin: 0; font-size: 14px; }
.pl-detail header p { margin: 5px 0 0; color: var(--muted); }
.pl-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; }
.pl-tabs button { background: var(--card); color: var(--muted); border: 0; border-radius: 0; border-bottom: 2px solid transparent; font-size: 12px; padding: 13px 9px; }
.pl-tabs button[aria-selected="true"] { border-bottom-color: var(--burgundy); color: var(--burgundy); }
#pl-panel { padding: 0 16px 16px; }
.pl-section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pl-section:last-child { border-bottom: 0; }
.pl-section > h3 { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pl-kv { display: grid; grid-template-columns: minmax(110px, 28%) minmax(0, 1fr); gap: 8px 12px; font-size: 12px; }
.pl-kv dt { color: var(--muted); }
.pl-kv dd { margin: 0; }
.pl-value { display: inline-block; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; background: var(--card); overflow-wrap: anywhere; font-size: 12px; }
.pl-unset { border-style: dashed; color: var(--muted); }
.pl-link { background: var(--card); color: var(--burgundy); border: 0; padding: 3px; font-size: inherit; }
.pl-facts { border: 1px solid var(--ink); padding: 5px; max-width: 300px; font-family: Arial, sans-serif; color: var(--ink); background: var(--card); }
.pl-facts-title { display: block; font-size: 15px; font-weight: 900; line-height: 1.1; }
.pl-serving { border-bottom: 6px solid var(--ink); padding: 3px 0; font-size: 8.5px; }
.pl-facts-head, .pl-nutrient { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; border-bottom: 1px solid var(--ink); font-size: 8.5px; }
.pl-facts-head { font-size: 7px; font-weight: bold; border-bottom-width: 1px; }
.pl-nutrient span:first-child { white-space: pre-wrap; }
.pl-heavy { border-bottom-width: 3px; }
.pl-foot { font-size: 6.5px; padding: 4px 0; }
.pl-other { max-width: 300px; font-size: 7.5px; }
.pl-photo { display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1px dashed var(--line); color: var(--muted); background: var(--card); margin-bottom: 12px; font-size: 12px; }
.pl-label { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; border: 1px solid var(--ink); padding: 12px; }
.pl-label > div > h3 { text-transform: none; letter-spacing: normal; font-size: 18px; }
.pl-file { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.pl-file p { margin: 4px 0 0; }
.pl-file-heading { text-transform: uppercase; letter-spacing: .06em; font-size: 10px; color: var(--muted); }
.pl-field { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; font-size: 11px; letter-spacing: .04em; }
.pl-field input, .pl-field select { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); padding: 9px 12px; }
.pl-field input:focus-visible, .pl-field select:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.pl-error:not([hidden]) { margin: 16px; border: 1px solid var(--burgundy); padding: 12px; color: var(--burgundy); }
.pl-locks { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
@media (max-width: 900px) { .pl-grid, .pl-label { grid-template-columns: 1fr; } .pl-file { grid-template-columns: 1fr 1fr; } }
.pl-detail .kv { display: grid; grid-template-columns: minmax(110px, 28%) minmax(0, 1fr); gap: 8px 12px; font-size: 12px; }
.pl-detail .kv dt { color: var(--muted); }
.pl-detail .kv dd { display: block; width: fit-content; max-width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; background: var(--card); overflow-wrap: anywhere; }
.pl-overview > div > .pl-section { border-bottom: 1px solid var(--line); }
.pl-look-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; align-items: start; }
.pl-detail .pl-chip .pill { display: inline-block; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; background: var(--card); color: var(--ink); white-space: normal; }
.pl-detail .pl-field input, .pl-detail .pl-field select { width: auto; max-width: 100%; align-self: flex-start; }
.pl-detail .pl-field input:placeholder-shown { border-style: dashed; }
@media (max-width: 1100px) { .pl-look-grid { grid-template-columns: 1fr; } }
.pl-detail .pl-field select:has(option[value=""]:checked) { border-style: dashed; }
.pl-pallet { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: start; }
.pl-pallet > .kv { grid-column: 2; }
.pl-pallet .pl-layers { grid-row: 1 / span 2; min-height: 96px; margin: 0; align-items: flex-end; padding-bottom: 4px; font-size: 10px; }
.pl-detail .pl-drawing { margin-top: 8px; }
.pl-detail .pl-drawing dd { border: 0; padding: 0; }
/* END VIEW private-label-detail */
/* BEGIN VIEW materials */
.materials-view { display:grid; gap:16px; font-size:13px; }
.materials-view header, .materials-view footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.materials-view h1 { margin:0; font-size:24px; font-weight:700; }
.materials-view > header p { margin:2px 0 0; font-size:12px; }
/* Card headers are bold titles as on the board; field and section labels are small caps. */
.materials-view h2 { margin:0; font-size:14px; font-weight:700; }
.materials-view .card > header p { font-weight:400; font-size:12px; margin:0; }
.materials-view h3, .materials-label, .materials-fields label { display:block; margin:8px 0 4px; font-size:10px; text-transform:uppercase; letter-spacing:.08em; font-weight:600; color:var(--muted); }
.materials-view .card { background:var(--card); padding:12px 16px; border:1px solid var(--line); border-radius:10px; margin:0; }
.materials-view .card > header { border-bottom:1px solid var(--line); margin:-12px -16px 12px; padding:12px 16px; }
.materials-view button, .materials-view .card > header a, .materials-upload { display:inline-flex; align-items:center; gap:4px; height:34px; box-sizing:border-box; padding:0 14px; font:inherit; font-size:13px; font-weight:600; text-decoration:none; }
.materials-view button.primary:hover:not(:disabled) { background:var(--burgundy-dark); }
.materials-view button:not(.primary):hover:not(:disabled), .materials-upload:hover { color:var(--burgundy); }
.materials-view button[aria-pressed=true] { border-color:var(--burgundy); color:var(--burgundy); }
.materials-view button:disabled { opacity:.45; cursor:not-allowed; }
.materials-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.materials-fields label { margin:0; }
.materials-fields input { box-sizing:border-box; display:block; width:100%; height:34px; margin-top:4px; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:6px; padding:0 10px; font:inherit; font-size:13px; font-weight:400; text-transform:none; letter-spacing:normal; }
.materials-view input:focus-visible, .materials-upload:focus-within { outline:2px solid var(--burgundy); outline-offset:3px; }
.materials-kinds, .materials-uploads { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
/* The upload is a button-like label; the native file control stays focusable but is not drawn. */
.materials-upload { position:relative; }
.materials-upload input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.materials-result { display:grid; grid-template-columns:1.2fr 1fr; gap:16px; align-items:start; }
.materials-label-preview { border:1.5px solid var(--ink); border-radius:4px; padding:10px 12px; font-family:ui-monospace,Menlo,monospace; font-size:11px; line-height:1.5; }
.materials-view table { width:100%; border-collapse:collapse; }
.materials-view td, .materials-view th { border-bottom:1px solid var(--line); padding:9px 6px; text-align:left; vertical-align:middle; }
.materials-view thead th { font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.materials-view tbody tr:last-child td { border-bottom:0; }
.materials-view .pill.gray { background:var(--card); border:1px solid var(--line); }
.materials-view .kv { grid-template-columns:120px 1fr; gap:4px 10px; font-size:13px; }
.materials-error { border-left:3px solid var(--burgundy); padding:12px; margin:0; }
@media(max-width:900px) { .materials-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } .materials-result { grid-template-columns:1fr; } }
@media(max-width:480px) { .materials-fields { grid-template-columns:1fr; } }
.materials-new { display:inline-block; margin-left:6px; font-size:9px; font-weight:700; letter-spacing:.06em; border:1px solid var(--burgundy); color:var(--burgundy); background:var(--card); border-radius:4px; padding:0 5px; vertical-align:middle; text-transform:none; }
/* END VIEW materials */
/* BEGIN VIEW inventory */
.inventory-view { display: flex; flex-direction: column; gap: 16px; font-size: 13px; }
.inventory-header, .inventory-actions, .inventory-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inventory-filters { gap: 6px; }
.inventory-header { justify-content: space-between; align-items: flex-end; }
.inventory-header h1 { margin: 0; font-size: 24px; font-weight: 700; }
.inventory-header p { max-width: 820px; margin: 2px 0 0; }
.inventory-new { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 0 5px; border: 1px solid var(--burgundy); border-radius: 4px; background: var(--card); color: var(--burgundy); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
/* Board .btn: 32px, 6px radius, semibold. Filters are the board's .sc pills. */
.inventory-view button, .inventory-view .inventory-button { display: inline-flex; align-items: center; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.inventory-view button:hover, .inventory-view .inventory-button:hover { color: var(--burgundy); }
.inventory-filters button { height: auto; padding: 4px 10px; border-radius: 999px; font-weight: 400; }
.inventory-filters button[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.inventory-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.inventory-stats section, .inventory-explanations section, .inventory-table { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--card); min-width: 0; }
.inventory-stats h2 { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin: 0; color: var(--muted); }
.inventory-stat { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.inventory-stat.red { color: #a32626; }
.inventory-stat.amber { color: #8a5a00; }
.inventory-stats p { margin: 0; }
.inventory-table { padding: 0; }
.inventory-table > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.inventory-table > header h2 { margin: 0; font-size: 14px; font-weight: 700; }
.inventory-table > .portal-table, .inventory-table > .empty { padding: 4px 16px 12px; }
.inventory-view .pill.gray { background: var(--card); border: 1px solid var(--line); }
.inventory-unset { padding: 2px 8px; font-size: 11px; white-space: nowrap; }
.inventory-view .muted { font-size: 12px; }
.inventory-view table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inventory-view td, .inventory-view th { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.inventory-view thead th { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.inventory-view tbody th { font-weight: 400; min-width: 150px; }
.inventory-lots { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12px; }
.inventory-lots td, .inventory-lots th { padding: 6px; }
.inventory-explanations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 12px; }
.inventory-explanations h3 { margin: 0; font-size: 12px; font-weight: 700; }
.inventory-explanations p { line-height: 1.55; margin: 4px 0 0; }
@media (max-width: 900px) { .inventory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inventory-explanations { grid-template-columns: 1fr; } }
.inventory-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 4px; background: var(--line); }
.inventory-bar i { display: block; height: 100%; background: var(--burgundy); }
.inventory-bar i + i { background: #d9a7c0; }
/* END VIEW inventory */
/* BEGIN VIEW company */
.company-view { display: flex; flex-direction: column; gap: 16px; }
.company-heading, .company-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.company-heading h1 { font-size: 24px; margin: 0; }
.company-heading p { margin: 2px 0 0; }
.company-view .card { background: var(--card); border: 1px solid var(--line); padding: 16px; }
.company-view h2 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.company-values { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; margin: 0; font-size: 13px; }
.company-values dt { color: var(--muted); align-self: start; padding-top: 4px; }
.company-values dd { margin: 0; min-width: 0; }
.company-view .pill { width: auto; max-width: 100%; box-sizing: border-box; border: 1px solid transparent; padding: 3px 9px; white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
.company-view .pill.gray { border-color: var(--line); background: var(--card); color: var(--ink); }
.company-address { margin: 0; font-size: 13px; line-height: 1.5; }
.company-view .company-unset { border: 1px dashed var(--line); background: transparent; color: var(--muted); }
.company-agreements { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.company-agreements-open { border-color: #f2d9a0; background: #fff8e8; }
.company-agreements .muted { flex-basis: 100%; margin: 0; }
.company-view button { background: var(--card); color: var(--burgundy); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer; }
.company-view button:disabled { cursor: default; opacity: .6; }
.company-view #company-propose, .company-view #company-change-submit { color: var(--card); background: var(--burgundy); border-color: var(--burgundy); }
.company-view a { color: var(--burgundy); font-size: 12px; }
.company-view a:hover { color: var(--burgundy-dark); }
.company-document { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.company-document > div { flex: 1; }
.company-document p { margin: 4px 0 0; }
#company-change-form { display: grid; gap: 8px; max-width: 620px; }
#company-change-form label { color: var(--muted); font-size: 12px; }
#company-change-form select, #company-change-form textarea { background: var(--card); color: var(--ink); font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
#company-change-form textarea { min-height: 80px; resize: vertical; }
.company-form-actions { display: flex; gap: 8px; }
.company-view input:focus-visible, .company-view select:focus-visible, .company-view textarea:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
#company-error, #company-status { margin: 0; border-left: 2px solid var(--burgundy); padding: 8px 12px; background: var(--card); }
@media (max-width: 900px) { .company-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .company-values { grid-template-columns: 1fr; gap: 6px; } .company-values dd { margin-bottom: 8px; } .company-document { flex-wrap: wrap; } }

.company-new { display: inline-block; border: 1px solid var(--burgundy); border-radius: 4px; padding: 0 5px; margin-left: 6px; color: var(--burgundy); background: var(--card); font-size: 9px; letter-spacing: .06em; }
/* END VIEW company */
/* BEGIN VIEW team */
.team-view { display: grid; gap: 16px; }
.team-view h1 { margin: 0; font-size: 24px; }
.team-view header p { margin: 3px 0 0; }
.team-view .card { background: var(--card); padding: 0; overflow: hidden; }
.team-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.team-view .team-heading h2, .team-label, .team-view th { margin: 0; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.team-body { padding: 12px 16px; font-size: 13px; }
.team-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.team-view table { width: 100%; border-collapse: collapse; font-size: 13px; }
.team-view th, .team-view td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.team-view tbody tr:last-child td { border-bottom: 0; }
.team-view .pill { width: fit-content; max-width: 100%; box-sizing: border-box; white-space: normal; padding: 3px 9px; border: 1px solid transparent; overflow-wrap: anywhere; font-size: 12px; }
.team-view .pill.gray { color: var(--ink); border-color: var(--line); background: var(--card); }
.team-view .team-quiet { background: var(--card); border: 0; color: var(--burgundy); padding: 4px; font-weight: 500; }
.team-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-fields label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.team-fields input { display: block; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; margin-top: 4px; background: var(--card); color: var(--ink); }
.team-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.team-view fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.team-check { display: inline-flex; align-items: center; gap: 6px; margin: 8px 12px 0 0; }
.team-check input { width: auto; }
.team-view input:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.team-view [role="alert"] { color: var(--burgundy); }
.team-view [role="alert"]:empty, .team-view [role="status"]:empty, #team-editor:empty { display: none; }
.team-new { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--burgundy); border-radius: 4px; color: var(--burgundy); background: var(--card); font-size: 9px; }
.team-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; margin-right: 8px; background: var(--wash); color: var(--burgundy); font-size: 12px; font-weight: 600; }
.team-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) { .team-bottom, .team-fields { grid-template-columns: 1fr; } }
/* END VIEW team */
/* BEGIN VIEW messages */

.messages-page { max-width: 976px; display: flex; flex-direction: column; gap: 16px; }
.messages-page .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600; }
.messages-page .btn.quiet { padding: 0 6px; border-color: transparent; color: var(--burgundy); }
.messages-page button:disabled { opacity: .6; cursor: default; }
.messages-page .btn.primary:hover { background: var(--burgundy-dark); }
.messages-page h1 { margin: 0; font-size: 24px; font-weight: 700; }
.messages-page p { margin: 4px 0 0; }
.messages-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.messages-page .muted { color: var(--muted); font-size: 12px; }
.messages-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.messages-chip { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
.messages-chip[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--card); }
.messages-page .messages-list { padding: 0; overflow: hidden; }
.messages-page .messages-group { padding: 8px 18px; margin: 0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.messages-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
.messages-row:last-child { border-bottom: 0; }
.messages-subject { color: var(--ink); font-weight: 600; text-decoration: none; }
.messages-subject:hover { color: var(--burgundy-dark); text-decoration: underline; }
.messages-compose { display: flex; flex-direction: column; gap: 14px; padding: 14px 18px; font-size: 13px; }
.messages-compose fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.messages-compose legend, .messages-compose label:not(.messages-urgent) { display: block; margin-bottom: 5px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.messages-compose input:not([type="checkbox"]):not([type="file"]), .messages-compose select { box-sizing: border-box; width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; font: inherit; color: var(--ink); background: var(--card); }
.messages-compose textarea { display: block; box-sizing: border-box; width: 100%; min-height: 110px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; background: var(--card); color: var(--ink); }
.messages-drop { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; font-size: 12px; color: var(--muted); }
.messages-drop input { max-width: 100%; font: inherit; }
.messages-drop ul { padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.messages-drop li { width: fit-content; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.messages-urgent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
.messages-urgent input { margin-top: 2px; }
.messages-actions { display: flex; justify-content: flex-end; gap: 8px; }
.messages-fallback { padding: 14px 18px; }
.messages-fallback h2 { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.messages-fallback li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.messages-page :is(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
@media (max-width: 700px) { .messages-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.messages-page .pill.gray { background: var(--card); border: 1px dashed var(--line); }
/* END VIEW messages */
/* BEGIN VIEW message-thread */
.message-thread { max-width: 976px; display: flex; flex-direction: column; gap: 16px; font-size: 13px; }
.message-thread h1 { font-size: 22px; margin: 6px 0 0; }
.message-thread p { margin: 4px 0 0; }
.message-thread .thread-back { color: var(--burgundy); display: inline-block; padding: 6px 0; text-decoration: none; }
.thread-heading, .thread-message-heading, .thread-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.thread-heading > .pill { margin-top: 8px; }
.thread-muted { color: var(--muted); font-size: 12px; line-height: 1.5; }
.thread-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.thread-owner { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.thread-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--wash); color: var(--burgundy); font-weight: 700; font-size: 12px; overflow: hidden; text-align: center; }
.thread-avatar.you { background: #eaf0fa; color: #2b4c8c; }
.thread-message { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.thread-message:last-child { border-bottom: 0; }
.thread-message-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; line-height: 1.5; }
.thread-file { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; margin: 6px 6px 0 0; font-size: 12px; overflow-wrap: anywhere; }
#message-reply { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.message-thread textarea { width: 100%; box-sizing: border-box; min-height: 80px; resize: vertical; background: var(--card); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: inherit; padding: 8px 10px; }
.message-thread button { padding: 8px 14px; font: inherit; font-weight: 600; }
.message-thread button:disabled { opacity: .6; cursor: default; }
.thread-actions { margin-top: 8px; align-items: center; }
.thread-actions > div { display: flex; gap: 8px; }
.thread-error { color: var(--burgundy); }
.message-thread :is(button, a, textarea, input):focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.message-thread .thread-primary:hover { background: var(--burgundy-dark); }
.message-thread .pill.gray { background: var(--card); border: 1px dashed var(--line); }
/* END VIEW message-thread */
/* BEGIN VIEW projects */

.projects-view { display:flex; flex-direction:column; gap:16px; }
.projects-header, .projects-wizard header, .projects-wizard footer { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.projects-header h1 { margin:0; font-size:24px; }
.projects-header p { margin:4px 0 0; }
.projects-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.projects-project { display:flex; flex-direction:column; gap:8px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); text-decoration:none; font-size:12px; }
.projects-project.selected { border-color:var(--burgundy); }
.projects-project > div { display:flex; align-items:start; justify-content:space-between; gap:6px; }
.projects-project .pill { background:var(--card); width:max-content; max-width:100%; }
.projects-project > .muted:nth-last-child(2) { margin-top:auto; }
.projects-next { color:var(--burgundy); font-weight:600; }
.projects-explainers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.projects-view .card { background:var(--card); padding:16px; }
.projects-explainers h2, .projects-wizard h2, .projects-wizard h3 { font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.projects-explainers p { font-size:12px; }
.projects-wizard { border-color:var(--burgundy); }
.projects-wizard fieldset { border:0; padding:0; margin:0 0 12px; min-width:0; }
.projects-wizard legend, .projects-field > span { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; color:var(--muted); }
.projects-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0; }
.projects-field { display:block; min-width:0; }
.projects-field input, .projects-field select, .projects-field textarea { width:auto; max-width:100%; box-sizing:border-box; border:1px solid var(--line); border-radius:18px; padding:8px 12px; color:var(--ink); background:var(--card); }
.projects-field textarea { width:100%; min-height:90px; border-radius:10px; }
.projects-field input:placeholder-shown, .projects-field textarea:placeholder-shown { border-style:dashed; }
.projects-wizard input:focus-visible, .projects-wizard select:focus-visible, .projects-wizard textarea:focus-visible { outline:2px solid var(--burgundy); outline-offset:2px; }
.projects-choices { display:flex; flex-wrap:wrap; gap:6px; }
.projects-choices button, .projects-check { border:1px solid var(--line); border-radius:999px; background:var(--card); padding:7px 10px; font-size:12px; }
.projects-choices button[aria-pressed=true] { border-color:var(--burgundy); color:var(--burgundy); }
.projects-check { display:inline-flex; align-items:start; gap:7px; }
.projects-check input { width:auto; margin:2px 0; }
.projects-steps { display:flex; gap:16px; list-style:none; padding:12px 0; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }
.projects-steps [aria-current] { color:var(--burgundy); font-weight:600; }
.projects-divider { border-top:1px solid var(--line); padding-top:12px; }
.projects-drop { display:block; padding:18px; border:1px dashed var(--line); border-radius:10px; color:var(--muted); }
.projects-drop input { display:block; margin-top:8px; }
.projects-wizard footer > div { display:flex; gap:8px; }
.projects-view button { margin-top:0; background:var(--card); color:var(--ink); border:1px solid var(--line); }
.projects-view button:focus-visible, .projects-view a:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.projects-wizard [role=alert]:empty { display:none; }
@media(max-width:900px) { .projects-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .projects-cards, .projects-fields, .projects-explainers { grid-template-columns:1fr; } .projects-header, .projects-wizard header, .projects-wizard footer { align-items:start; flex-direction:column; } .projects-steps { flex-wrap:wrap; } }
/* END VIEW projects */
/* BEGIN VIEW project-detail */
.project-detail .card { background: var(--card); }
.project-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.project-heading h2 { margin: 0; }
.project-detail .muted { color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); padding: 12px 0 0; }
.project-detail button { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.project-tabs [role="tab"] { border-radius: 0; border-width: 0 0 2px; border-color: transparent; color: var(--muted); font-weight: 600; }
.project-tabs [role="tab"][aria-selected="true"] { color: var(--burgundy); border-color: var(--burgundy); }
.project-detail button:disabled { opacity: .55; cursor: default; }
.project-detail :focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.project-content { padding-top: 16px; }
.project-detail .pill { background: var(--card); width: fit-content; }
.project-unset { width: fit-content; padding: 3px 9px; }
.project-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-signer { display: flex; flex-wrap: wrap; gap: 20px; margin: 10px 0; }
.project-signer dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.project-signer dd { margin: 0; }
.project-facts { display: grid; grid-template-columns: minmax(80px, 1fr) 3fr; margin: 0; }
.project-facts dt, .project-facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.project-facts dt { color: var(--muted); }
.project-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-row > div { flex: 1; min-width: 220px; }
.project-acceptance { border: 1px solid var(--burgundy); padding: 16px; margin-top: 16px; border-radius: 8px; }
.project-detail h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.project-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
#project-message label { display: block; }
#project-message textarea { display: block; background: var(--card); color: var(--ink); border: 1px solid var(--line); padding: 8px; border-radius: 8px; width: 100%; box-sizing: border-box; }
#project-message { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
#project-message textarea { min-height: 90px; margin: 8px 0; }
@media (max-width: 700px) { .project-columns { grid-template-columns: 1fr; } }
/* END VIEW project-detail */

/* Owner calls 2026-10-17: portal values are plain text, including unset values
   (no grey pill border or fill). Toned status tags stay the boards' borderless
   tinted tags (.tag.g/.a/.r/.b); they are statuses, not values. */
.portal-shell .portal-view :is(.pill.gray, .pill.pill-unset, .od-pill, .pl-value, dd,
  .home-unset, .orders-unset, .documents-unset, .inventory-unset, .project-unset,
  .approval-unset, .billing-unset, .pl-unset, .company-unset, .thread-file, .messages-drop li) {
  border: 0; border-radius: 0; background: transparent; padding: 0;
}
.portal-shell .portal-view .pill.gray { font-size: inherit; font-weight: inherit; color: inherit; white-space: normal; }
.portal-shell .portal-view .pill:is(.green, .amber, .red, .blue) { border: 0; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.portal-shell .portal-view .pill.green { background: #e8f5ee; color: #1e6b3f; }
.portal-shell .portal-view .pill.amber { background: #fff4db; color: #8a5a00; }
.portal-shell .portal-view .pill.red { background: #fde8e8; color: #a32626; }
.portal-shell .portal-view .pill.blue { background: #eaf0fa; color: #2b4c8c; }
.account-view .kv { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.account-view dt { color: var(--muted); }
.account-view dd { margin: 0; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.portal-view .account-quiet { background: none; border: 0; padding: 0; color: var(--burgundy); font: inherit; cursor: pointer; }
.portal-shell .portal-account a { color: var(--burgundy); text-decoration: none; }
.portal-shell .portal-account a:hover { color: var(--burgundy-dark); text-decoration: underline; }
.orders-attachment input[hidden] { display: none; }
.od-card:has(.od-timeline) .od-heading h2,
.od-card[data-testid="shipping-requirements"] .od-heading h2,
.od-card[data-od-shipments] .od-heading h2,
.od-card[aria-label="Messages about this order"] .od-heading h2 {
  font-size: 14px; font-weight: 700; letter-spacing: normal; text-transform: none;
}
.od-row { gap: 10px; padding: 8px 0; }
.od-row:last-child { border-bottom: 0; }
.od-thread { grid-template-columns: minmax(0,1fr) 150px 130px; gap: 12px; border: 0; padding: 4px 0; }
.od-thread a { color: var(--ink); font-weight: 600; text-decoration: none; }
.od-shipment { display: grid; grid-template-columns: 100px 1fr 1fr 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.od-shipment-head { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.od-shipments-list { min-width: 660px; }
@media (max-width: 760px) { .od-thread { grid-template-columns: 1fr; } }
.portal-shell .portal-view .od-header > .pill:is(.green, .amber, .red, .blue) { font-size: 12px; padding: 5px 12px; }
.portal-shell .portal-view :is(.pill.pill-unset, .home-unset, .orders-unset, .documents-unset, .inventory-unset, .project-unset, .approval-unset, .billing-unset, .pl-unset, .company-unset) { font-weight: 400; color: var(--muted); }
/* Owner-approved M8c, 2026-10-18. Scoped to the new self-edit surface. */
.m8-profile{display:flex;flex-direction:column;gap:14px;color:#1A1A1A;font-size:13px}
.m8-profile h1{font-size:24px;margin:0}.m8-profile header p{margin:2px 0 0}
.m8-profile .muted{color:#6B6B6B;font-size:12px}.m8-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.m8-stack{display:flex;flex-direction:column;gap:16px}
.m8-card{background:#fff;border:1px solid #E5E5E5;border-radius:10px;overflow:hidden}.m8-head{padding:12px 16px;border-bottom:1px solid #E5E5E5;display:flex;justify-content:space-between;align-items:center;gap:8px}.m8-head h2{font-size:14px;font-weight:700;margin:0;text-transform:none;letter-spacing:normal;color:#1A1A1A}.m8-head>div{display:flex;gap:10px;align-items:center}.m8-body{padding:12px 16px;display:flex;flex-direction:column;gap:10px}.m8-body p{margin:0}
.m8-profile .btn{border:1px solid #E5E5E5;border-radius:6px;height:32px;padding:0 12px;font-size:12px;font-weight:600;background:#fff;color:#1A1A1A;width:auto}.m8-profile .btn.primary{background:#7A1F48;border-color:#7A1F48;color:white}.m8-lock{font-size:11px;color:#6B6B6B}.m8-kv,.m8-edit{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;margin:0}.m8-kv dt,.m8-edit label{font-size:12px;color:#6B6B6B}.m8-kv dd{margin:0}.m8-edit{align-items:center}.m8-edit input{font:inherit;border:1px solid #E5E5E5;border-radius:6px;padding:6px 10px;min-width:0;width:100%;box-sizing:border-box}.m8-edit input:focus{border-color:#7A1F48;box-shadow:0 0 0 3px rgba(122,31,72,.12);outline:none}.m8-body form{display:flex;flex-direction:column;gap:10px}.m8-actions{display:flex;gap:8px}.m8-saved{display:flex;align-items:center;gap:6px;font-size:12px;color:#1E6B3F}.m8-history p{display:grid;grid-template-columns:118px minmax(0,1fr);gap:10px;padding:6px 0;border-bottom:1px solid #F3EFF1;font-size:12px}.m8-history time{color:#6B6B6B}.m8-address{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;padding:12px 0;border-bottom:1px solid #E5E5E5}.m8-address:last-child{border-bottom:0}.m8-address-actions{display:flex;gap:12px;align-items:start}.m8-address .btn{border:0;background:none;color:#7A1F48;text-decoration:underline;height:auto;padding:0;font-weight:400}.m8-default{background:#E8F5EE;color:#1E6B3F;border-radius:999px;padding:2px 8px;font-size:11px;align-self:start}.m8-error,.m8-conflict{padding:10px;border:1px solid #E5C6CC;border-radius:6px;background:#FFF6F7;color:#8A2536;font-size:12px}.m8-check{display:flex;align-items:center;gap:8px}.m8-check input{width:auto}
@media(max-width:800px){.m8-grid{grid-template-columns:1fr}.m8-address{grid-template-columns:1fr auto}.m8-address-actions{grid-column:1/-1}.m8-lock{display:none}}
.profile-code-summary{white-space:pre-line;background:#FAF9F9;border:1px solid #E5E5E5;border-radius:6px;padding:10px;margin:16px 0;font-size:12px}
.m8-kv{grid-template-columns:140px minmax(0,1fr);gap:6px 10px}.m8-edit input{font-size:12px;min-height:32px;padding:0 10px}.m8-profile{font-family:-apple-system,"Segoe UI",system-ui,sans-serif;line-height:1.45}
@media(min-width:801px){.portal-shell:has(.m8-profile) .side{width:200px;flex-basis:200px}.portal-shell:has(.m8-profile) .main{padding:24px 28px}}
.m8-head{font-size:14px;font-weight:700}

.m8-address>div:first-child{min-width:0}.m8-address>div:first-child p{margin-top:6px}.m8-address{grid-template-columns:minmax(0,1fr) auto}.m8-address-actions{grid-column:1/-1}.m8-actions{justify-content:flex-end}
.m8-code-modal{width:400px;max-width:calc(100vw - 32px);font-family:-apple-system,"Segoe UI",system-ui,sans-serif}.m8-code-modal>button{display:block;width:100%;margin-top:10px}.m8-code-modal h2{font-size:20px}.m8-code-modal .codeboxes{gap:8px}
[data-shipments-form] fieldset{border:1px solid #E5E5E5;border-radius:6px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:12px}[data-shipments-form] label{display:flex;flex-direction:column;gap:6px}[data-shipments-form] input,[data-shipments-form] select{min-width:0;width:100%;box-sizing:border-box}[data-shipments-form] fieldset button{grid-column:1/-1;justify-self:start}
.m8-card{gap:0}.m8-edit input{color:#1A1A1A}
.modal.m8-code-modal{font-size:13px;line-height:1.45;color:#1A1A1A;border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:12px}
.m8-code-modal .profile-code-summary{line-height:1.45;color:#4A4A4A;background:#FCFBFB;border-color:#F0EDEE;border-radius:8px;padding:8px 10px;margin:0}
.modal.m8-code-modal>p,.modal.m8-code-modal>h2{margin:0}.modal.m8-code-modal>button{margin:0}.modal.m8-code-modal #profile-resend{border-color:transparent}.modal.m8-code-modal #cancel{color:#1A1A1A;border-color:#E5E5E5;background:white}
[data-shipments-form] fieldset{border-radius:8px;padding:10px 12px;gap:8px;background:#fff}
.od-page [data-shipments-form] fieldset label{display:flex;align-items:stretch;width:auto;border:0;border-radius:0;padding:0;color:#6B6B6B;cursor:default;text-align:left;font-size:12px;font-weight:400;outline:none}
.od-page [data-shipments-form] fieldset label:has(:checked){border:0;color:#6B6B6B}.od-page [data-shipments-form] fieldset label:has(:focus-visible){outline:none}
.m8-address{grid-template-columns:minmax(0,1fr) auto auto}.m8-address-actions{grid-column:auto}.m8-address-actions,.m8-address>.btn{align-self:start;font-size:12px}.m8-address>.btn{white-space:nowrap}
@media(max-width:800px){.m8-address{grid-template-columns:1fr auto}.m8-address-actions{grid-column:1/-1}}
.modal.m8-remove-modal{font-family:-apple-system,"Segoe UI",system-ui,sans-serif;font-size:13px;line-height:1.45;color:#1A1A1A;border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:12px}
/* Approved M3b a: uploaded file chip, JPEG copy thumbnail beside the original name. */
.upload-chip{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff;margin:8px 0}
.upload-chip img{width:56px;height:56px;object-fit:cover;border-radius:6px;border:1px solid var(--line);flex:none}
.upload-chip b{font-weight:600;font-size:13px}.upload-chip p{margin:2px 0 0;font-size:12px}
/* Approved M17b: availability belongs to the server, selected windows stay on white. */
.od-slot-label{display:block;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin:12px 0 5px;color:#666}
.od-pickup-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.od-pickup-days button,.od-pickup-windows button{border:1px solid #e5e5e5;border-radius:8px;background:#fff;color:#1a1a1a;padding:8px 10px;font-size:12px;font-weight:400}
.od-pickup-days small{display:block;font-size:10px}.od-pickup-windows{display:grid;grid-template-columns:1fr 1fr;gap:8px}.od-pickup-windows button{display:flex;justify-content:space-between;text-align:left}.od-pickup-windows small{font-size:10px}
.od-pickup-days button[aria-pressed=true],.od-pickup-windows button[aria-pressed=true]{background:#f7e9ef;border-color:#7a1f48;color:#7a1f48;font-weight:600}
.od-pickup-days button:disabled,.od-pickup-windows button:disabled{background:#f3f1f2;color:#999;border-color:#efedef;cursor:not-allowed}.od-slot-navigation{display:flex;gap:12px;margin:8px 0}.od-slot-navigation button{font-size:12px}
@media(max-width:600px){.od-pickup-days{grid-template-columns:repeat(4,minmax(0,1fr))}.od-pickup-windows{grid-template-columns:1fr}}
.m8-lock{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#6B6B6B;font-weight:500}.m8-lock-icon{flex:0 0 12px}.m8-kv dd{white-space:pre-line}.m8-address p.m8-added{margin-top:2px;color:#8A8A8A}

/* Plan 059 M5b: compact pack states on white, with honest indeterminate progress. */
.document-pack { margin-top:16px; border:1px solid var(--border, #e5e5e5); border-radius:10px; overflow:hidden; background:white; }
.pack-heading { font-size:14px; font-weight:700; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 16px; border-bottom:1px solid var(--border, #e5e5e5); }
.pack-heading h3 { margin:0; font-size:14px; font-weight:700; }
.pack-body { padding:12px 16px; display:flex; flex-direction:column; gap:10px; font-size:13px; }
.pack-body p { margin:0; }
.pack-notice, .pack-ready { border:1px solid #D6DFEF; border-radius:10px; padding:12px 16px; background:#F6F9FE; line-height:1.45; }
.pack-ready { border-color:#B9DEC6; background:#F1F9F4; }
.pack-progress { height:6px; border-radius:3px; background:linear-gradient(90deg,#f3eef0,#7a1f48,#f3eef0); background-size:200% 100%; animation:pack-wait 2s linear infinite; }
.pack-actions { display:flex; justify-content:flex-end; gap:8px; }
.pack-failure, [data-pack-error] { color:#a12622; }
@keyframes pack-wait { to { background-position:200% 0; } }
@media (prefers-reduced-motion:reduce) { .pack-progress { animation:none; } }

.document-pack .btn { min-height:32px; height:32px; padding:0 12px; font-size:12px; font-weight:600; }
.document-pack .muted { font-size:12px; color:#6b6b6b; }
/* Ask Aura, Myaura7. The shell carries portal-shell--ask while the ask route is
   selected (shell.select), so other portal pages keep their dimensions. */
.portal-shell.portal-shell--ask .side { width:210px; flex-basis:210px; }
.portal-shell.portal-shell--ask .main { padding:24px 28px; }
.ask-aura { margin:0; font-family:-apple-system,"Segoe UI",system-ui,sans-serif; }
.ask-aura h1 { font-size:24px; font-weight:700; margin:0; line-height:1.15; }
.ask-aura header p { margin:2px 0 0; font-size:13px; }
.ask-aura header + .ask-card { margin-top:12px; }
.ask-card { line-height:1.45; max-width:920px; background:white; border:1px solid #E5E5E5; padding:0; margin-top:16px; border-radius:10px; font-size:13px; overflow:hidden; }
.ask-card h2 { font-size:14px; font-weight:700; padding:12px 16px; margin:0; border-bottom:1px solid #E5E5E5; }
.ask-card form { padding:12px 16px; }
.ask-card label { display:block; font-size:12px; font-weight:600; color:#1A1A1A; margin:0 0 4px; }
.ask-card input[name] { display:block; width:100%; box-sizing:border-box; background:white; border:1px solid #E5E5E5; border-radius:8px; margin:0 0 10px; padding:8px 12px; height:37px; font:inherit; }
.ask-composer { border:1px solid #E5E5E5; border-radius:8px; overflow:hidden; }
.ask-card textarea { display:block; width:100%; box-sizing:border-box; background:white; font:inherit; border:0; margin:0; padding:10px 12px; font-size:13px; min-height:72px; border-radius:0; }
.ask-compose-footer { display:flex; align-items:center; gap:12px; padding:8px 10px 8px 12px; border-top:1px solid #F0EDEE; justify-content:flex-end; }
.ask-card .btn { line-height:1.45; height:32px; padding:0 12px; border-radius:6px; font-size:12px; font-weight:600; }
.ask-drop { display:flex; align-items:center; gap:12px; border:1.5px dashed #D6CFD2; border-radius:8px; padding:12px 14px; margin-top:10px; background:#FCFBFB; }
.ask-card .ask-attach { position:relative; display:inline-flex; align-items:center; white-space:nowrap; margin:0; border:1px solid #7A1F48; border-radius:6px; height:32px; padding:0 12px; color:#7A1F48; background:#F7E9EF; }
.ask-attach input { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer; }
.ask-attach:focus-within { outline:2px solid #7A1F48; outline-offset:2px; }
.ask-drop p { margin:0; font-size:12px; }
.ask-card>p,.ask-thread,.ask-row { margin-left:16px; margin-right:16px; }
.ask-card>.btn { margin:0 16px 12px; }
.ask-row { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #E5E5E5; padding:14px 0; color:inherit; text-decoration:none; }
.ask-row>span:first-child { flex:1; }
.ask-status,.ask-file { display:inline-flex; align-items:center; width:auto; gap:8px; border:1px solid #E5E5E5; border-radius:8px; padding:4px 8px; background:white; color:#1A1A1A; font-size:12px; }
.ask-status { height:24px; padding:0 10px; border-radius:999px; font-weight:600; }
.ask-status[data-state="Waiting for Aura"] { background:#FFF4DB; color:#8A5A00; border-color:transparent; }
.ask-status[data-state="Replied"] { background:#E8F5EE; color:#1E6B3F; border-color:transparent; }
.ask-status[data-state="Closed"] { color:#555; }
.ask-files { display:flex; flex-wrap:wrap; gap:8px; }
.ask-file button { background:none; color:inherit; border:0; cursor:pointer; }
.ask-row time,.ask-thread time { color:#737373; font-size:12px; }
.ask-thread article { border-top:1px solid #E5E5E5; padding:16px 0; }
.ask-thread time { margin-left:12px; }
.ask-thread p { white-space:pre-wrap; }
.ask-error { color:#9b1c31; }

/* Plan 078 J2: owner-approved myAura commitment, board E. */
.commitments-view,.commitment-detail { max-width:1004px; }
.commitments-view { display:flex; flex-direction:column; gap:14px; }
.commitments-view h1 { margin:0; font-size:22px; }
.commitments-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,32rem),1fr)); gap:14px; }
.commitment-card,.commitment-detail .card { margin:0; padding:0; overflow:hidden; background:var(--card); border:1px solid var(--line); border-radius:10px; }
.commitment-card-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--line); }
.commitment-card-heading h2 { margin:0; font-size:14px; font-weight:700; }
.commitment-card-heading p { margin:2px 0 0; color:#555; font-size:13px; }
.commitment-card-body { display:flex; flex-direction:column; gap:14px; padding:16px; font-size:13px; }
.commitment-kind,.commitment-days { display:inline-block; flex:0 0 auto; border-radius:999px; padding:2px 8px; font-size:11px; font-weight:600; white-space:nowrap; }
.commitment-kind { background:var(--wash); color:var(--burgundy-dark); }
.commitment-days { background:#f3f3f3; color:#555; }
.commitment-balance { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; }
.commitment-balance dt { color:var(--muted); font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.commitment-balance dd { margin:0; font-size:24px; font-weight:700; font-variant-numeric:tabular-nums; line-height:normal; }
.commitment-balance div:last-child dd { color:var(--burgundy-dark); }
.commitment-balance small { display:block; color:var(--muted); font-size:12px; font-weight:400; line-height:normal; }
.commitment-meter { display:flex; height:8px; overflow:hidden; border-radius:4px; background:var(--wash); }
.commitment-meter i { display:block; background:var(--burgundy); }
.commitment-card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.commitment-card-footer p { margin:0; color:var(--muted); font-size:12px; }
.commitment-detail { display:flex; flex-direction:column; gap:14px; line-height:normal; }
.portal-shell:has(.commitment-detail) .main { max-width:1060px; padding:24px 28px; }
.commitment-header nav { color:var(--muted); font-size:12px; }
.commitment-header h1 { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:4px 0 0; font-size:22px; font-weight:700; }
.commitment-header p { margin:2px 0 0; color:#555; font-size:14px; }
.commitment-calloff { margin:0; line-height:1.5; }
.commitment-orders table { width:100%; border-collapse:collapse; font-size:13px; }
.commitment-orders th { padding:8px 12px; border-bottom:1px solid var(--line); color:var(--muted); font-size:10px; font-weight:600; letter-spacing:.06em; text-align:left; text-transform:uppercase; }
.commitment-orders td { padding:10px 12px; border-bottom:1px solid var(--line); font-size:13px; font-variant-numeric:tabular-nums; vertical-align:middle; }
.commitment-orders a { font-weight:600; }
.commitment-orders .commitment-number { text-align:right; }
.commitment-orders .commitment-sku { color:var(--muted); font-family:ui-monospace,Menlo,monospace; font-size:12px; letter-spacing:.03em; }
.commitment-order-group { vertical-align:top !important; }
.commitment-truncated { margin:12px 16px; color:var(--muted); font-size:12px; }
.commitment-actions { display:flex; gap:8px; flex-wrap:wrap; }
.commitment-actions .btn { min-height:36px; padding:0 14px; font-size:14px; font-weight:600; }
.commitment-actions .btn.primary { border:0; }
@media(max-width:700px){
  .commitment-balance { grid-template-columns:1fr; }
  .commitment-balance div { padding-top:10px; border-top:1px solid var(--line); }
  .commitment-balance div:first-child { padding-top:0; border-top:0; }
  .commitment-balance dd { font-size:21px; }
}

/* Plan 075d P15 · approved myAura dossier review board 15. */
.reg-review-page{display:flex;flex-direction:column;gap:16px;max-width:1156px;color:#1a1a1a}
.reg-review-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.reg-review-header h1{margin:4px 0 2px;font-family:Georgia,"Times New Roman",serif;font-size:26px;line-height:1.15;font-weight:600}
.reg-review-header p{margin:0;font-size:13px}.reg-review-back{font-size:12px;color:var(--burgundy);text-decoration:none}
.reg-review-actions{display:flex;gap:10px;flex-wrap:wrap}.reg-review-actions .btn{height:36px;padding:0 14px;border-radius:6px;font-size:13px;font-weight:600}
.reg-review-actions .secondary{border:1px solid var(--line);background:#fff;color:#1a1a1a}.reg-review-actions .primary{border-color:var(--burgundy);background:var(--burgundy);color:#fff}
.reg-review-banner,.reg-review-status,.reg-review-error,.reg-review-notice{margin:8px 0 0;border-radius:8px;padding:9px 12px;font-size:13px}
.reg-review-banner{border:1px solid #d6cfef;background:#f7f5fb}.reg-review-status,.reg-review-notice{border:1px solid var(--line);background:#fff}.reg-review-error{border:1px solid #e8b8cb;background:#fff;color:#8b1e3f}
.reg-review-split{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px;align-items:start}
.reg-review-document{min-height:560px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:16px 18px;font-size:12px;line-height:1.6}
.reg-review-document h2{margin:8px 0 14px;font-size:12px;line-height:1.6;font-weight:700}.reg-review-switcher{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.reg-review-switcher select{max-width:420px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:6px 28px 6px 9px;color:#1a1a1a;font:inherit;text-transform:none;letter-spacing:normal}
.reg-review-lines{display:grid;align-content:start}.reg-review-line{display:block;width:100%;border:0;border-radius:2px;background:transparent;padding:2px;text-align:left;color:#1a1a1a;font:inherit;line-height:1.6;cursor:pointer}
.reg-review-line:hover{background:#fffbea}.reg-review-line.hl{background:#ffe79a;outline:2px solid #e7b400}.reg-review-line:focus-visible{outline:2px solid var(--burgundy);outline-offset:2px}
.reg-review-comments{display:grid;align-content:start;gap:10px}.reg-review-comments>h2{margin:0;color:var(--muted);font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.reg-review-comments [data-review-comments]{display:grid;gap:10px}.reg-review-comment{display:grid;gap:4px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px 12px;font-size:12.5px}.reg-review-comment b{font-size:12.5px}.reg-review-reply{margin-left:18px}
.reg-review-comments form{display:grid;gap:7px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px 12px}.reg-review-comments form label{display:grid;gap:5px;font-size:12px;font-weight:600}.reg-review-comments textarea{min-height:76px;resize:vertical;border:1px solid var(--line);border-radius:6px;padding:8px 10px;color:#1a1a1a;font:13px/1.45 inherit}.reg-review-comments form .btn{justify-self:end;height:32px;padding:0 12px}
.reg-review-note{border:1px solid var(--line);border-radius:8px;background:#faf8f9;padding:10px 12px;font-size:12.5px}
.reg-review-dialog{display:grid;gap:14px}.reg-review-dialog h2,.reg-review-dialog p{margin:0}.reg-review-dialog label{display:grid;gap:6px;font-size:13px;font-weight:600}.reg-review-dialog textarea{min-height:100px;border:1px solid var(--line);border-radius:8px;padding:9px 12px;font:inherit}.reg-review-dialog>div{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:900px){.reg-review-split{grid-template-columns:1fr}.reg-review-document{min-height:0}.reg-review-header{display:grid}.reg-review-comments{max-width:none}}
