/* Signed-in customer pages. Reuses the portal design tokens from styles.css. */
body.op { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--text-base); }
.op-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 1.25rem; height: var(--header-h); background: var(--navy); color: #fff; }
.op-brand { font-weight: 700; letter-spacing: .01em; }
.op-user { display: flex; gap: 1rem; align-items: center; font-size: var(--text-sm); }
.op-link { color: #bcd6f2; }
.op-main { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.op-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; max-width: 34rem; margin: 2rem auto; box-shadow: var(--shadow-sm); }
.op-card h1 { margin-top: 0; font-size: var(--text-xl); }
.op-btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; padding: .65rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; border: 0; cursor: pointer; font: inherit; }
.op-btn:focus-visible, .op-tabs button:focus-visible, .op-table a:focus-visible, .op-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.op-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.op-tabs button { background: none; border: 0; padding: .7rem 1rem; font: inherit; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; }
.op-tabs button[aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--accent); font-weight: 600; }
.op-company { color: var(--ink-3); font-size: var(--text-sm); margin-bottom: .75rem; }
.op-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; margin-bottom: .75rem; }
.op-seg button { border: 0; background: none; padding: .4rem .9rem; border-radius: 999px; font: inherit; color: var(--ink-2); cursor: pointer; }
.op-seg button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 600; }
.op-seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.op-search { display: flex; gap: .5rem; margin-bottom: 1rem; }
.op-search input { flex: 1; max-width: 22rem; padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
.op-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.op-table th, .op-table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.op-table th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); background: var(--surface-2); }
.op-table a { color: var(--brand-ink); font-weight: 600; }
.op-num { font-variant-numeric: tabular-nums; text-align: right !important; }
.op-pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--info-wash); font-size: var(--text-xs); }
.op-pill.done { background: var(--ok-wash); color: var(--ok); }
.op-status { color: var(--ink-3); }
.op-status.err { color: var(--danger); }
.op-detail h2 { margin: .25rem 0 .5rem; font-size: var(--text-xl); }
.op-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0 0 1.25rem; }
.op-detail dt { color: var(--ink-3); }
.op-detail dd { margin: 0; }
.op-back { display: inline-block; margin-bottom: 1rem; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.op-more { margin-top: 1rem; }
.op-scroll { overflow-x: auto; }
@media (max-width: 640px) { .op-head { padding: 0 .75rem; } .op-main { padding: 1rem .75rem 3rem; } }
.op-detail h3 { margin: 1.5rem 0 .5rem; }

.op-user { flex-wrap: wrap; justify-content: flex-end; }
.op-staff { display: inline-flex; align-items: center; gap: .5rem; }
.op-staff-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: #b8c6d1; }
.op-staff select { max-width: 15rem; padding: .35rem .5rem; border-radius: var(--radius-sm); border: 1px solid #3a4a58; background: #1d2c3a; color: #fff; font: inherit; font-size: var(--text-sm); }
.op-staff select:focus-visible, .op-banner-btn:focus-visible { outline: 2px solid #ffa45c; outline-offset: 2px; }
.op-banner { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .55rem 1.25rem; background: var(--warn-wash); color: var(--warn); border-bottom: 1px solid #e8d6ae; font-size: var(--text-sm); font-weight: 600; }
.op-banner-btn { background: transparent; border: 1px solid var(--warn); color: var(--warn); border-radius: var(--radius-sm); padding: .2rem .65rem; font: inherit; font-size: var(--text-sm); cursor: pointer; }
.op-btn-sm { display: inline-block; padding: .3rem .7rem; font-size: var(--text-sm); background: var(--brand); color: #fff !important; border-radius: var(--radius-sm); border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-family: inherit; }
.op-actions { margin: 0 0 1.25rem; }
@media (max-width: 640px) {
  .op-head { height: auto; min-height: var(--header-h); padding: .5rem .75rem; }
  .op-user { gap: .5rem .75rem; }
  .op-staff select { max-width: 11rem; }
  .op-tabs button { padding: .6rem .75rem; }
  .op-search input { max-width: none; }
  .op-seg { display: flex; width: 100%; }
  .op-seg button { flex: 1; }
  .op-detail dl { grid-template-columns: 1fr; gap: 0; }
  .op-detail dt { margin-top: .5rem; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; }
}
.op-staff[hidden], .op-banner[hidden], .op-user[hidden] { display: none !important; }
.op-staff-label, .op-pill, .op-nowrap { white-space: nowrap; }

@media (max-width: 640px) {
  .op-scroll { overflow-x: visible; }
  .op-table, .op-table tbody, .op-table tr, .op-table td { display: block; }
  .op-table thead { display: none; }
  .op-table tr { padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
  .op-table tr:last-child { border-bottom: 0; }
  .op-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border: 0; padding: .2rem 0; text-align: right; overflow-wrap: anywhere; }
  .op-table td[data-label]::before { content: attr(data-label); flex: none; color: var(--ink-3); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .op-table td:not([data-label]) { justify-content: flex-start; padding-top: .45rem; }
  .op-brand { font-size: var(--text-base); }
}

/* Order pictures: a small square in each list row, a larger one on the order. */
.op-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
/* White frame on all four sides: the picture is inset by 9% of the box (never under 6px) and is fitted, never cropped. */
.op-thumb img { width: calc(100% - max(12px, 18%)); height: calc(100% - max(12px, 18%)); object-fit: contain; background: #fff; display: block; }
.op-thumb-ph { width: 40%; height: 40%; opacity: .45; background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='16' rx='2'/><circle cx='9' cy='10' r='1.6'/><path d='M21 16l-5-5-8 9'/></svg>"); }
.op-thumb.has-img .op-thumb-ph { display: none; }
.op-thumb-lg { width: 280px; height: 280px; }
.op-thumb-line { width: 120px; height: 120px; }
.op-thumb.zoom { cursor: zoom-in; }
.op-thumb.zoom:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.op-line-row { display: flex; gap: 1rem; align-items: flex-start; }
.op-line-body { flex: 1; min-width: 0; }
.op-track, .op-pill-link { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.op-pill-link:focus-visible, .op-track:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.op-staff-banner { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: var(--radius-sm); background: var(--info-wash); border: 1px solid var(--line); font-weight: 600; }
.op-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(16, 24, 32, .86); display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem 1rem; cursor: zoom-out; }
.op-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: var(--radius-sm); }
.op-lightbox-close { position: absolute; top: .75rem; right: .75rem; padding: .45rem .9rem; border: 0; border-radius: var(--radius-sm); background: #fff; color: #111; font: inherit; font-weight: 600; cursor: pointer; }
.op-artcell { width: 1%; padding-right: 0 !important; }
.op-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 640px) {
  .op-thumb { width: 64px; height: 64px; }
  .op-thumb-lg { width: 200px; height: 200px; }
  .op-thumb-line { width: 84px; height: 84px; }
  .op-line-row { gap: .7rem; }
  .op-order-head { gap: .5rem; }
  .op-table td.op-artcell { width: auto; padding: .45rem 0 .2rem !important; }
}

/* Sign out is a POST form; style the button like the old link. */
.op-signout { margin: 0; display: inline; }
button.op-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.op-brand { white-space: nowrap; }
@media (max-width: 640px) {
  .op-head { gap: .25rem .75rem; flex-wrap: wrap; }
  .op-brand { font-size: var(--text-sm); }
  #op-user-line { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .op-user { flex-wrap: nowrap; }
  .op-staff { order: -1; flex-basis: 100%; }
  .op-staff select { max-width: none; flex: 1; }
}

/* Keep the orders table inside the page on laptops; hide blank cells on phones. */
.op-table th, .op-table td { padding: .65rem .6rem; }
.op-table td.op-nowrap { white-space: nowrap; }
@media (max-width: 640px) { .op-table td.op-empty { display: none; } }

/* Order lines: one row per item with its own proofs and art. */
.op-lines { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.op-line { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.op-line:last-child { border-bottom: 0; }
.op-line-main { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.op-line-desc { display: flex; flex-direction: column; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.op-line-price { display: flex; gap: 1rem; flex: none; white-space: nowrap; color: var(--ink-2); }
.op-line-price strong { color: var(--ink); }
.op-line-files { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-top: .5rem; font-size: var(--text-sm); }
.op-line-files:empty { display: none; }
.op-line-label { color: var(--ink-3); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; min-width: 6.5rem; }
.op-file a { font-weight: 600; color: var(--brand-ink); }
.op-file-note { color: var(--ink-3); }
@media (max-width: 640px) {
  .op-line-main { flex-direction: column; gap: .4rem; }
  .op-line-price { flex-wrap: wrap; white-space: normal; gap: .25rem 1rem; }
  .op-line-label { min-width: 100%; }
}

/* Customer stages: pill, one action, a plain sentence. Staff see the raw label in small grey text. */
.op-status-cell { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
.op-status-sub { flex-basis: 100%; color: var(--ink-2); font-size: var(--text-sm); }
.op-action { font-size: var(--text-xs); font-weight: 600; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.op-action:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.op-raw-status { flex-basis: 100%; font-size: .7rem; color: #6b7780; }

/* QC photos */
.op-photos { margin-top: 1.5rem; }
.op-photo-group { margin: .75rem 0 .35rem; font-weight: 600; color: var(--ink-2); }
.op-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.op-thumb.op-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.op-photo img { width: 100%; height: 100%; object-fit: cover; }   /* QC photos stay full bleed */

.op-controls { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .75rem; }
.op-controls .op-seg { margin-bottom: 0; }
.op-placed-by { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); white-space: nowrap; }
.op-placed-by select { font: inherit; padding: .4rem .6rem; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); max-width: 100%; }
.op-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; text-align: left; }
.op-sort:hover { color: var(--brand); }
.op-sort:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) { .op-controls { flex-direction: column; align-items: stretch; } .op-placed-by { justify-content: space-between; } }
.op-sort-btn { display: none; font: inherit; padding: .4rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-2); cursor: pointer; }
.op-sort-btn[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 600; border-color: var(--brand); }
@media (max-width: 640px) { .op-sort-btn { display: block; } }

.op-shipments { margin-top: 1.25rem; }
.op-ship-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.op-ship { border: 1px solid var(--line, #e3e3e3); border-radius: 8px; padding: .6rem .8rem; }
.op-ship-head { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: baseline; font-weight: 600; }
.op-ship-date { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.op-ship-items { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: .2rem; font-size: .93rem; }
.op-ship-items li { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; }
.op-ship-none { color: var(--ink-2); }
.op-ship-sku, .op-ship-qty { color: var(--ink-2); }
.op-kind { font-size: .78rem; padding: .05rem .45rem; border-radius: 999px; background: #eef1f5; color: #34404f; }

/* Real HBS logo in the signed-in header (reversed for the navy bar). */
a.op-brand { display: inline-flex; align-items: center; text-decoration: none; }
.op-logo { display: block; height: 36px; width: auto; }
@media (max-width: 640px) { .op-logo { height: 30px; } }
a.op-brand:focus-visible { outline: 2px solid #ffa45c; outline-offset: 3px; border-radius: 4px; }
/* Reorder: custom-size lines and art upload */
.op-custom-price { color: var(--ink-2); font-size: var(--text-sm); }
.op-custom-note { color: var(--ink-2); font-size: var(--text-sm); margin: .5rem 0 1rem; }
.op-art-wrap { margin: .25rem 0 1rem; }
.op-art-wrap textarea { width: 100%; box-sizing: border-box; }
.op-art-box { margin-top: .75rem; }
.op-art-zone { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 1.1rem 1rem; text-align: center; background: #fafbfb; }
.op-art-zone.op-drag { border-color: var(--accent); background: var(--brand-wash); }
.op-art-title { margin: 0 0 .25rem; font-weight: 600; }
.op-art-hint { margin: 0 0 .75rem; color: var(--ink-2); font-size: var(--text-sm); }
.op-art-choose { display: inline-block; cursor: pointer; }
.op-art-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.op-art-choose:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.op-art-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.op-art-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: .35rem .75rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.op-art-name { font-weight: 600; overflow-wrap: anywhere; }
.op-art-size { color: var(--ink-2); font-size: var(--text-sm); white-space: nowrap; }
.op-art-prog { display: inline-flex; align-items: center; gap: .25rem; font-size: var(--text-sm); white-space: nowrap; }
.op-art-prog progress { width: 110px; height: 8px; accent-color: var(--brand); }
.op-art-ok { color: #1d6b3a; font-size: var(--text-sm); font-weight: 600; }
.op-art-err { color: #a12a1f; font-size: var(--text-sm); }
.op-art-note { color: var(--ink-2); font-size: var(--text-sm); }
.op-art-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--text-sm); color: var(--ink-2); }
.op-art-tag select { font: inherit; padding: .3rem .5rem; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); max-width: 16rem; }
.op-art-rm { border: 0; background: none; font: inherit; font-size: var(--text-sm); color: var(--brand-ink); text-decoration: underline; cursor: pointer; padding: 0; }
.op-art-rm:disabled { color: var(--ink-2); cursor: default; text-decoration: none; }
.op-art-received { margin: .25rem 0 1rem; padding-left: 1.25rem; }
@media (max-width: 640px) {
  .op-art-list li { grid-template-columns: 1fr auto; }
  .op-art-name { grid-column: 1 / -1; }
  .op-art-prog, .op-art-ok, .op-art-err, .op-art-note { grid-column: 1 / -1; }
  .op-art-tag { grid-column: 1 / -1; }
  .op-art-tag select { flex: 1; max-width: none; min-width: 0; }
}

/* Reorder table: the art picture beside each line, in the same padded white frame as the order pages. */
.op-reorder-item { display: flex; align-items: center; gap: .75rem; text-align: left; }
.op-reorder-item > span { min-width: 0; overflow-wrap: anywhere; }
.op-thumb.op-thumb-reorder { width: 64px; height: 64px; background: #fff; }
.op-thumb.op-thumb-reorder img { width: calc(100% - max(12px, 18%)); height: calc(100% - max(12px, 18%)); object-fit: contain; background: #fff; }
@media (max-width: 640px) { .op-thumb.op-thumb-reorder { width: 56px; height: 56px; } }

/* Brand accent (burnt orange): primary button hover only. Focus rings use --focus, which is the same colour. */
.op-btn:hover, .op-btn-sm:hover { background: var(--accent); }
html[data-theme='dark'] .op-btn:hover { color: #1a0d00; }
html[data-theme='dark'] .op-btn-sm:hover { color: #1a0d00 !important; }
.op-btn:focus-visible, .op-btn-sm:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Reorder form: structured ship-to and ship-from, in-hands date, PO PDF. */
.op-detail h3 { margin: 1.25rem 0 .35rem; font-size: var(--text-lg); }
.op-addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .9rem; max-width: 40rem; margin: .5rem 0 1rem; }
.op-af label { display: block; font-size: var(--text-sm); color: var(--ink-2); margin-bottom: .2rem; }
.op-af input { width: 100%; box-sizing: border-box; }
.op-af-street, .op-af-street2, .op-af-name, .op-af-company { grid-column: 1 / -1; }
.op-af-name, .op-af-company { grid-column: auto; }
.op-ship-box select, .op-hands input[type="date"] { font: inherit; padding: .4rem .5rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); max-width: 100%; }
.op-from-fields { margin-left: 1.6rem; }
.op-hint { color: var(--ink-2); font-size: var(--text-sm); margin: .25rem 0 .75rem; }
.op-hint a { font-weight: 600; }
.op-btn-quiet { background: transparent; color: var(--brand-ink); border: 1px solid var(--brand-ink); padding: .45rem 1rem; }
.op-btn-quiet:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme='dark'] .op-btn-quiet:hover { color: #1a0d00; }
.op-po-row { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; margin: .5rem 0 1rem; }
.op-po-row[hidden], .op-btn-quiet[hidden] { display: none; }
.op-proof-note { border-left: 4px solid var(--accent); padding: .35rem .75rem; background: var(--brand-wash); font-weight: 600; margin: 1rem 0; }
.op-addr { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .op-addr-grid { grid-template-columns: 1fr; }
  .op-af-name, .op-af-company { grid-column: 1 / -1; }
  .op-from-fields { margin-left: 0; }
}

/* Links to the HBS store, in the header. Burnt orange is only the accent. */
.op-site { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; font-size: var(--text-sm); }
.op-site-link { color: #bcd6f2; text-decoration: none; font-weight: 600; padding: .35rem 0; border-bottom: 2px solid transparent; }
.op-site-link:hover { color: #fff; border-bottom-color: #ffa45c; }
.op-site-new { color: #fff; padding: .45rem .85rem; border: 1px solid #6f8db4; border-radius: var(--radius-sm); border-bottom-width: 1px; }
.op-site-new:hover { border-color: #ffa45c; }
.op-site-link:focus-visible { outline: 2px solid #ffa45c; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 640px) {
  .op-head { row-gap: 0; }
  .op-site { order: 3; flex-basis: calc(100% + 1.5rem); margin: .35rem -.75rem 0; padding: .55rem .75rem; justify-content: space-around; background: rgba(255, 255, 255, .08); gap: .5rem; }
  .op-site-new { border: 0; padding: .35rem 0; border-bottom: 2px solid transparent; }
  .op-site-new:hover { border-bottom-color: #ffa45c; }
}

/* Sell HBS: resource library */
.op-sell h2 { margin: .25rem 0 .35rem; font-size: var(--text-xl); }
.op-sell-intro { margin: 0 0 .5rem; color: var(--ink-2); }
.op-sell-help { margin: 0 0 1rem; padding: .6rem .8rem; background: var(--info-wash); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--ink); max-width: 46rem; }
.op-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.op-chip { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); text-decoration: none; background: var(--surface); font-size: var(--text-sm); }
.op-chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.op-chip:focus-visible, .op-sell-dl:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.op-sell-product { margin-bottom: 1.5rem; }
.op-sell-product h3 { margin: 0 0 .4rem; font-size: var(--text-lg); display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.op-sell-cat { font-size: var(--text-xs); font-weight: 400; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.op-sell-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.op-sell-row { display: grid; grid-template-columns: 11rem 1fr; gap: .4rem 1rem; align-items: center; padding: .65rem .9rem; border-top: 1px solid var(--line); }
.op-sell-row:first-child { border-top: 0; }
.op-sell-id { display: flex; flex-direction: column; }
.op-sell-sku { font-weight: 600; }
.op-sell-size { font-size: var(--text-sm); color: var(--ink-3); }
.op-sell-files { display: flex; flex-wrap: wrap; gap: .4rem; }
.op-sell-dl { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--brand-ink); text-decoration: none; font-size: var(--text-sm); font-weight: 600; background: var(--surface); }
.op-sell-dl:hover { background: var(--info-wash); }
.op-sell-none, .op-sell-gap, .op-sell-empty { color: var(--ink-3); font-size: var(--text-sm); }
.op-sell-gap { grid-column: 2; }
@media (max-width: 640px) {
  .op-sell-row { grid-template-columns: 1fr; }
  .op-sell-gap { grid-column: 1; }
  .op-sell-dl { padding: .5rem .8rem; }
  .op-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
  .op-chip { white-space: nowrap; }
}

/* Art tab: Art Check */
.op-art h2 { margin: .25rem 0 .35rem; font-size: var(--text-xl); }
.op-art-intro { margin: 0 0 1rem; color: var(--ink-2); max-width: 46rem; }
.op-art-form { display: grid; gap: .6rem; max-width: 46rem; margin-bottom: 1.25rem; }
.op-art-form label { font-weight: 600; font-size: var(--text-sm); }
.op-art-form select, .op-art-size input { font: inherit; padding: .55rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); min-width: 0; }
.op-art-form select { width: 100%; }
.op-art-panel { display: grid; gap: .35rem; }
.op-art-panel[hidden] { display: none; }
.op-art-panel label { font-weight: 600; font-size: var(--text-sm); }
.op-art-panel select { font: inherit; padding: .55rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); min-width: 0; }
.op-art-size { display: flex; align-items: center; gap: .5rem; }
.op-art-size[hidden], .op-art-fixes[hidden] { display: none; }
.op-art-size input { width: 8rem; }
.op-art-fileinput { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.op-art-drop { display: flex; flex-direction: column; gap: .2rem; align-items: center; text-align: center; padding: 1.5rem 1rem; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; font-weight: 400 !important; color: var(--ink-2); }
.op-art-drop strong { color: var(--ink); font-size: var(--text-base, 1rem); }
.op-art-drop.over, .op-art-drop:hover { border-color: var(--brand-ink); background: var(--info-wash); }
.op-art-fileinput:focus-visible + .op-art-drop { outline: 2px solid var(--focus); outline-offset: 2px; }
.op-art-busy, .op-art-err { margin: 0; padding: .7rem .9rem; border-radius: var(--radius-sm); max-width: 46rem; }
.op-art-busy { background: var(--info-wash); }
.op-art-upload { display: grid; gap: .5rem; }
.op-art-prog-label { margin: 0; font-size: var(--text-sm); overflow-wrap: anywhere; }
.op-art-prog-track { height: .6rem; border-radius: 999px; background: var(--border, #d9dde3); overflow: hidden; }
.op-art-prog-fill { height: 100%; width: 0; background: var(--accent, #1d4f91); border-radius: 999px; transition: width .15s linear; }
.op-art-prog-track.done .op-art-prog-fill { animation: op-art-pulse 1.2s ease-in-out infinite; }
@keyframes op-art-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .op-art-prog-fill, .op-art-prog-track.done .op-art-prog-fill { transition: none; animation: none; } }
.op-art-err { background: var(--danger-wash); color: var(--danger); }
.op-art-result { max-width: 60rem; }
.op-art-verdict { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid var(--line); }
.op-art-verdict strong { font-size: var(--text-lg); }
.op-art-verdict.pass { background: var(--ok-wash); color: var(--ok); border-color: var(--ok); }
.op-art-verdict.notes { background: var(--warn-wash); color: var(--warn); border-color: var(--warn); }
.op-art-verdict.fail { background: var(--danger-wash); color: var(--danger); border-color: var(--danger); }
.op-art-verdict span { color: var(--ink); font-size: var(--text-sm); }
.op-art-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.op-art-checks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.op-art-check { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .75rem; padding: .7rem .9rem; border-top: 1px solid var(--line); }
.op-art-check:first-child { border-top: 0; }
.op-art-badge { align-self: start; text-align: center; padding: .1rem .4rem; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; background: var(--ok-wash); color: var(--ok); }
.op-art-badge.note { background: var(--warn-wash); color: var(--warn); }
.op-art-badge.fail { background: var(--danger-wash); color: var(--danger); }
.op-art-body { min-width: 0; }
.op-art-label { font-weight: 600; }
.op-art-text { font-size: var(--text-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.op-art-preview { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.op-art-key { margin: .3rem 0 .8rem; font-size: var(--text-xs); color: var(--ink-3); }
.op-art-facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: 0; font-size: var(--text-sm); }
.op-art-facts dt { color: var(--ink-3); }
.op-art-facts dd { margin: 0; overflow-wrap: anywhere; }
.op-art-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.op-art-act[disabled] { opacity: .55; cursor: not-allowed; }
.op-art-soon { font-size: var(--text-xs); color: var(--ink-3); }
.op-art-fee[hidden] { display: none; }
.op-art-fee { margin-top: .8rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: var(--text-sm); }
.op-art-fee p { margin: .3rem 0; }
.op-art-fee-h { margin: 0 0 .3rem; font-size: var(--text-base); }
.op-art-fee-price { font-size: var(--text-base); }
.op-art-fee-sub { margin: .8rem 0 .3rem; font-size: var(--text-sm); }
.op-art-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.op-art-choices li { display: grid; gap: .1rem; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.op-art-choices li.mine { border-color: var(--brand, #0b1f44); background: var(--info-wash); }
.op-art-mine { font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
.op-art-choice-covers { font-size: var(--text-xs); color: var(--ink-3); }
.op-art-fee-status { min-height: 1.2em; font-weight: 600; }
.op-art-fee-fine { font-size: var(--text-xs); color: var(--ink-3); }
.op-art-draft { margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.op-art-draft summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.op-art-draft ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.op-art-fixes { margin: .8rem 0 0; padding: .7rem .9rem .7rem 2rem; background: var(--info-wash); border-radius: var(--radius-sm); font-size: var(--text-sm); }
@media (max-width: 720px) {
  .op-art-cols { grid-template-columns: minmax(0, 1fr); }
  .op-art-act { padding: .6rem 1rem; }
  .op-art-size input { width: 6.5rem; }
}

/* Art Check: product suggestions, raw art and what to do */
.op-art-suggest { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--info-wash); }
.op-art-suggest h3 { margin: 0 0 .25rem; font-size: var(--text-base); }
.op-art-sug-note { margin: 0 0 .6rem; font-size: var(--text-sm); color: var(--ink-2); }
.op-art-sug-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.op-art-sug { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.op-art-sug-main { display: grid; gap: .1rem; min-width: 0; }
.op-art-sug-main strong, .op-art-sug-size, .op-art-sug-why { overflow-wrap: anywhere; }
.op-art-sug-size { font-size: var(--text-sm); color: var(--ink-2); }
.op-art-sug-why { font-size: var(--text-xs); color: var(--ink-3); }
.op-art-pick { flex: 0 0 auto; }
.op-art-prodnote { margin: .6rem 0 0; font-size: var(--text-sm); color: var(--ink-2); }
.op-art-raw { margin-top: 1rem; padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--text-sm); }
.op-art-raw p { margin: .25rem 0 0; color: var(--ink-2); }
.op-art-todo { margin-top: 1rem; font-size: var(--text-sm); }
.op-art-todo h3 { margin: 0 0 .3rem; font-size: var(--text-base); }
.op-art-todo ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.op-art-fixes li { margin-bottom: .35rem; }
@media (max-width: 720px) {
  .op-art-sug { flex-direction: column; align-items: stretch; }
  .op-art-pick { padding: .6rem 1rem; }
}

/* Art Check: See it at print size */
.op-art-closeups { margin-top: .5rem; }
.op-art-closeups summary { cursor: pointer; color: var(--brand-ink); font-weight: 600; font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 2px; padding: .2rem 0; }
.op-art-closeups summary:focus-visible, .op-art-shot-btn:focus-visible, .op-art-viewer-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.op-art-closeups-note { margin: .4rem 0 .6rem; font-size: var(--text-sm); color: var(--ink-2); }
.op-art-shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.op-art-shot { margin: 0; }
.op-art-shot-box { width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.op-art-shot-btn { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.op-art-shot-img { display: block; max-width: none; height: auto; }
.op-art-shot figcaption { margin-top: .25rem; font-size: var(--text-xs); color: var(--ink-3); }
.op-art-viewer { max-width: 96vw; max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.op-art-viewer::backdrop { background: rgba(10, 18, 26, .72); }
.op-art-viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.op-art-viewer-body { overflow: auto; max-height: calc(94vh - 3.2rem); max-width: 96vw; line-height: 0; background: #fff; }
.op-art-viewer-body img { display: block; max-width: none; height: auto; }

/* How to use your portal */
.op-help-link { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.op-help-page { max-width: 46rem; }
.op-help-page h2 { margin: .25rem 0 .35rem; font-size: var(--text-xl); }
.op-help-intro { margin: 0 0 1rem; color: var(--ink-2); }
.op-help-nav button.op-chip { font: inherit; font-size: var(--text-sm); cursor: pointer; }
.op-help-nav button.op-chip:hover { background: var(--info-wash); }
.op-help-section { margin: 0 0 1.75rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); scroll-margin-top: 1rem; }
.op-help-section h3 { margin: 0 0 .6rem; font-size: var(--text-lg); color: var(--brand-ink); }
.op-help-section h4 { margin: 1.1rem 0 .4rem; font-size: var(--text-base); }
.op-help-section p { margin: 0 0 .7rem; line-height: 1.5; }
.op-help-list { margin: 0 0 .8rem; padding-left: 1.3rem; line-height: 1.5; }
.op-help-list li { margin-bottom: .3rem; }
.op-help-stages, .op-help-checks { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; margin: 0 0 .9rem; }
.op-help-stages dt, .op-help-checks dt { margin: 0; }
.op-help-stages dd, .op-help-checks dd { margin: 0; line-height: 1.45; }
.op-help-checks dt { font-weight: 600; }
.op-help-badges, .op-help-fees { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .5rem; }
.op-help-badges li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .75rem; align-items: start; line-height: 1.45; }
.op-help-fees li { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); line-height: 1.45; }
.op-help-callout { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin: 0 0 1rem; padding: .9rem 1rem; background: var(--brand-wash); border: 1px solid var(--brand-ink); border-radius: var(--radius); line-height: 1.45; }
.op-help-callout strong { font-size: var(--text-lg); color: var(--brand); }
.op-help-page a:focus-visible, .op-help-nav .op-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) {
  .op-help-section { padding: .9rem; }
  .op-help-stages, .op-help-checks { grid-template-columns: 1fr; gap: .15rem; }
  .op-help-stages dd, .op-help-checks dd { margin-bottom: .6rem; }
  .op-help-nav { flex-wrap: wrap; overflow: visible; }
  .op-help-nav .op-chip { white-space: normal; }
}
html[data-theme='dark'] .op-help-callout strong { color: var(--ink); }

/* Pay invoice */
.op-pay { margin: 0 0 1.25rem; }
.op-pay[hidden] { display: none; }
.op-pay-note { margin: 0 0 .35rem; color: var(--ink-2); }
/* API tab */
.op-api h2 { margin: .25rem 0 .35rem; font-size: var(--text-xl); }
.op-api-card { margin: 0 0 1.25rem; max-width: 52rem; }
.op-api-card h3 { margin: 0 0 .4rem; font-size: var(--text-lg); }
.op-api-note { margin: 0 0 .8rem; color: var(--ink-2); max-width: 44rem; }
.op-api-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem 1rem; align-items: start; }
.op-api-field { display: flex; flex-direction: column; gap: .25rem; }
.op-api-label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.op-api-hint { font-size: var(--text-xs); color: var(--ink-3); }
.op-api-field input, .op-api-field select, .op-api-create input { font: inherit; padding: .45rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); min-width: 0; }
.op-api-check { display: flex; align-items: center; gap: .5rem; align-self: end; padding-bottom: .5rem; }
.op-api-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1rem; }
.op-api-create { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin: .4rem 0 .8rem; }
.op-api-create .op-api-field { flex: 1 1 14rem; }
.op-api-msg { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.op-api-msg.err { color: var(--danger, #b42318); }
.op-api-new { margin: .6rem 0 1rem; padding: .8rem 1rem; background: var(--info-wash); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.op-api-new[hidden] { display: none; }
.op-api-keyrow { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.op-api-keybox { flex: 1 1 20rem; font: .9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .5rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); min-width: 0; }
.op-api-admins { list-style: none; margin: 0 0 .8rem; padding: 0; }
.op-api-admins li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px solid var(--line); }
.op-api-admins li:first-child { border-top: 0; }
.op-btn-danger { background: transparent; color: var(--danger, #b42318) !important; border: 1px solid currentColor; }
.op-api code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 40rem) { .op-api-keyrow .op-btn-sm { flex: 0 0 auto; } }
