/* Art Request linesheet beta. Visual language from the Standard Rec design system (Figma "Standard Rec Design
   System": SF Pro / Inter text, Merriweather only for section titles, white cards with 12px corners, green for
   selected, blue pill buttons), laid out as a work tool rather than the website. */
:root {
  --text: #1f2937;
  --text-2: #5f6b7a;
  --muted: #6b7280; /* 4.8:1 on white (was #9ca3af, 2.5:1) */
  --border: #d9dee3;
  --subtle: #e8ecef;
  --surface: #f7f8fa;
  --page: #ffffff;
  --green-bg: #e0f4ea;
  --green: #2f6f46;
  --blue: #3b7ddd;
  --blue-dark: #2f6fc8;
  --blue-bg: #e9f2fd;
  --amber-bg: #fdf3e1;
  --amber: #8a5a0b;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
  --serif: Merriweather, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/20px var(--font); color: var(--text); background: var(--page); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--subtle); }
.bar-brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: none; }
.bar-title { font-weight: 600; font-size: 16px; }
.badge { font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--green-bg); color: var(--green); }
.bar-account { flex: 1; display: flex; justify-content: center; min-width: 0; }
.bar-links { display: flex; align-items: center; gap: 16px; color: var(--text-2); flex: none; }
.bar-links a { color: var(--text-2); text-decoration: none; }
.bar-links a:hover { color: var(--text); }
.bar-rep { font-weight: 500; color: var(--text); }

/* Account picker (the design system's store selector) */
.account { position: relative; width: min(420px, 100%); }
.account-button { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; cursor: pointer; text-align: left; }
.account-button:hover { border-color: #c8d0d6; }
.account-button .account-name { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-button .account-empty { flex: 1; color: var(--muted); }
.account-pop { position: absolute; top: 50px; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(17,24,39,.12); padding: 8px; z-index: 30; }
.account-pop input { width: 100%; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; outline: none; }
.account-pop input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.account-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow: auto; }
.account-list button { width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.account-list button:hover, .account-list button:focus-visible { background: var(--surface); outline: none; }
.account-list small { color: var(--muted); }
.account-note { color: var(--muted); padding: 8px 12px; margin: 0; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: calc(100vh - 64px - 72px); }
.sheet { padding: 28px 32px 48px; min-width: 0; }
.panel { border-left: 1px solid var(--subtle); background: var(--surface); padding: 24px; position: sticky; top: 64px; height: calc(100vh - 64px - 72px); overflow: auto; }

/* Sheet header */
.sheet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.sheet-title { margin: 0; font: 400 26px/34px var(--serif); }
.sheet-sub { margin: 4px 0 0; color: var(--text-2); }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.chip { height: 32px; padding: 0 12px; border: 1px solid #c8d0d6; border-radius: 8px; background: #fff; color: var(--text-2); cursor: pointer; }
.chip:hover { border-color: var(--text-2); }
.chip[aria-pressed="true"] { background: var(--green-bg); border-color: var(--green-bg); color: var(--green); font-weight: 500; }

/* Buttons */
.button { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--blue-bg); background: #fff; color: var(--blue-dark); font-weight: 500; cursor: pointer; white-space: nowrap; }
.button:hover { border-color: #bcd5f6; }
.button-primary { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button-primary:hover { background: #2559a6; border-color: #2559a6; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-small { height: 32px; padding: 0 12px; font-size: 13px; }
.link-button { border: 0; background: none; padding: 0; color: var(--blue-dark); cursor: pointer; font-weight: 500; }
.link-button.danger { color: #a33b2b; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; font-size: 22px; cursor: pointer; color: var(--text-2); }
.icon-button:hover { background: var(--surface); }

/* Linesheet */
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--subtle); padding-bottom: 8px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font: 700 22px/30px var(--serif); }
.section-head span { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; }
.card { position: relative; align-self: start; display: block; width: 100%; border: 0; background: none; padding: 0; text-align: center; cursor: pointer; border-radius: var(--radius); }
.card-art { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--surface); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; overflow: hidden; }
.card:hover .card-art { outline-color: var(--subtle); }
.card[aria-pressed="true"] .card-art { outline-color: var(--blue); }
.card-art .front, .card-art .back { position: absolute; }
.card-art .back { width: 62%; right: 4%; top: 6%; }
.card-art .front { width: 70%; left: 4%; bottom: 4%; }
.card-art.single .front { width: 84%; left: 8%; bottom: 8%; }
.card-art svg { width: 100%; height: auto; display: block; }
.card-graphic { position: absolute; left: 8px; top: 8px; width: 46px; height: 46px; border-radius: 8px; background: #fff; border: 1px solid var(--subtle); padding: 3px; object-fit: contain; }
.card-copy { margin-top: 10px; display: grid; gap: 1px; }
.card-name { font-weight: 500; }
.card-meta { color: var(--text-2); font-size: 13px; }
.card-todo { justify-self: center; margin-top: 4px; font-size: 12px; line-height: 16px; padding: 2px 8px; border-radius: 4px; background: var(--amber-bg); color: var(--amber); }
.card-add { aspect-ratio: 1 / 1; border: 1px dashed #c8d0d6; border-radius: var(--radius); background: #fff; display: grid; place-content: center; gap: 4px; color: var(--text-2); cursor: pointer; }
.card-add:hover { border-color: var(--blue); color: var(--blue-dark); }
.card-add strong { font-size: 28px; font-weight: 400; line-height: 1; }

/* Empty states */
.empty { max-width: 520px; margin: 72px auto; text-align: center; }
.empty h1 { font: 400 28px/36px var(--serif); margin: 0 0 8px; }
.empty p { color: var(--text-2); margin: 0 0 24px; }
.empty .account { margin: 0 auto; }

/* Side panel */
.panel h3 { margin: 0 0 4px; font-size: 18px; line-height: 24px; font-weight: 600; }
.panel-sub { margin: 0 0 20px; color: var(--text-2); }
.field { margin-bottom: 22px; }
.label { display: block; font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text); margin-left: 4px; font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; background-size: cover; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
.search { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; outline: none; margin-bottom: 10px; }
.search:focus { border-color: var(--blue); }
.graphics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.graphic { aspect-ratio: 1 / 1; border: 1px solid var(--subtle); border-radius: 8px; background: #fff; padding: 4px; cursor: pointer; position: relative; }
.graphic img { width: 100%; height: 100%; object-fit: contain; }
.graphic span { position: absolute; left: 3px; bottom: 2px; font-size: 10px; line-height: 12px; color: var(--muted); }
.graphic[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-bg); }
.graphics-more { margin-top: 8px; }
textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; resize: vertical; outline: none; }
textarea:focus { border-color: var(--blue); }
.panel-actions { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--subtle); margin-top: 8px; padding-top: 16px; }
.muted { color: var(--muted); }

/* Summary in the panel when nothing is selected */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 20px; }
.stat { background: #fff; border: 1px solid var(--subtle); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-size: 24px; line-height: 30px; font-weight: 600; }
.stat span { color: var(--text-2); font-size: 13px; }
.size { border-radius: var(--radius); padding: 14px; margin-bottom: 20px; }
.size b { display: block; margin-bottom: 2px; }
.size-none { background: var(--amber-bg); color: var(--amber); }
.size-starter, .size-essentials { background: var(--blue-bg); color: #1f4f91; }
.size-showcase, .size-full { background: var(--green-bg); color: var(--green); }
.size-next { display: block; margin-top: 6px; font-weight: 500; }

/* Proven assortments (the tier buttons on an empty linesheet) */
.empty-wide { max-width: 760px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; text-align: left; }
.tier { display: grid; gap: 4px; align-content: start; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; }
.tier:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.tier strong { font-size: 16px; }
.tier-count { color: var(--text-2); font-size: 13px; }
.tier-styles { color: var(--muted); font-size: 12px; line-height: 16px; }
.breakdown { list-style: none; margin: 0; padding: 0; }
.breakdown li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--subtle); }
.breakdown li span:last-child { color: var(--text-2); }

/* Bottom tally bar (the design system's sticky checkout bar, without prices) */
.tally { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 28px; height: 72px; padding: 0 32px; background: #fff; border-top: 1px solid var(--subtle); }
.tally-item { display: grid; }
.tally-item span { font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tally-item b { font-size: 16px; font-weight: 600; }
.tally-divider { width: 1px; align-self: stretch; margin: 16px 0; background: var(--subtle); }
.tally-todo { color: var(--amber); font-weight: 500; }
.tally-spacer { flex: 1; }

/* Add-styles drawer (the design system's cart drawer) */
.drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(17,24,39,.32); display: flex; justify-content: flex-end; }
.drawer { width: min(640px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(17,24,39,.16); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 4px; }
.drawer-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.drawer-hint { margin: 0 24px 8px; color: var(--text-2); }
.drawer-body { flex: 1; overflow: auto; padding: 0 24px 24px; }
.drawer-body h3 { font: 700 18px/26px var(--serif); margin: 20px 0 10px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.pick { position: relative; border: 1px solid var(--subtle); border-radius: var(--radius); background: #fff; padding: 8px 8px 10px; cursor: pointer; text-align: center; }
.pick:hover { border-color: #c8d0d6; }
.pick[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-bg); }
.pick img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface); border-radius: 8px; }
.pick strong { display: block; margin-top: 6px; font-weight: 500; font-size: 13px; line-height: 17px; }
.pick small { color: var(--muted); }
.pick-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; line-height: 22px; display: none; }
.pick[aria-pressed="true"] .pick-check { display: block; }
.drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--subtle); }

.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 50; }

/* Tablet and phone: the panel moves under the sheet */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .panel { position: static; height: auto; border-left: 0; border-top: 1px solid var(--subtle); }
  .bar { gap: 12px; padding: 0 16px; }
  .bar-title, .bar-rep { display: none; }
  .sheet { padding: 20px 16px 32px; }
  .tally { gap: 16px; padding: 0 16px; overflow-x: auto; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 12px; }
}

/* Printing gives a plain linesheet */
@media print {
  .bar, .panel, .tally, .sheet-actions, .chips, .card-add, .card-todo, .toast { display: none !important; }
  .layout { display: block; }
  .card-art { outline: 0 !important; background: none; }
  .section { break-inside: avoid; }
}

/* Requests home (the first screen): every request the viewer may see, with the managers' Show menu */
.bar-new { display: inline-flex; align-items: center; text-decoration: none; color: #fff !important; }
.layout-home { grid-template-columns: minmax(0, 1fr); }
.layout-home .panel { display: none; }
.home { max-width: 1180px; margin: 0 auto; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.home-head h1 { margin: 0; font: 400 26px/34px var(--serif); }
.home-head p { margin: 4px 0 0; color: var(--text-2); }
.home-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0 16px; }
.home-tools .search { width: min(360px, 100%); margin: 0; height: 40px; }
.select { height: 40px; padding: 0 36px 0 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-weight: 500; cursor: pointer; }
.home-count { color: var(--muted); margin-left: auto; }
.draft { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--blue-bg); background: var(--blue-bg); border-radius: var(--radius); margin-bottom: 16px; }
.draft div { flex: 1; }
.draft b { display: block; }
.draft span { color: var(--text-2); }
.table { border: 1px solid var(--subtle); border-radius: var(--radius); overflow: hidden; background: #fff; }
.row { display: grid; grid-template-columns: minmax(0, 2.2fr) 168px minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr) 96px; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--subtle); color: var(--text); text-decoration: none; }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--surface); }
.row-head { font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.row-account { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.row-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { flex: none; font-size: 10px; line-height: 12px; font-weight: 400; padding: 1px 5px; border: 1px solid var(--subtle); border-radius: 4px; color: var(--muted); white-space: nowrap; }
/* Type colors match Airtable's Type field, so the art team and reps recognise them at a glance (Tom, 2026-10-09). */
.row-type { display: flex; align-items: center; gap: 8px; }
.type-menu { position: relative; }
.type-button { display: inline-flex; align-items: center; gap: 8px; font-size: inherit; color: var(--text); }
.type-pop { position: absolute; top: 46px; left: 0; min-width: 220px; margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(17,24,39,.12); padding: 6px; z-index: 30; }
.type-pop button { align-items: center; }
.type-pop button[aria-checked="true"] { background: var(--green-bg); color: var(--green); font-weight: 500; }
.type-option { display: flex; align-items: center; gap: 8px; }
.type-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
[data-type-dot="New Request"] { background: #5cd6cc; }
[data-type-dot="Illustration"] { background: #d23aa8; }
[data-type-dot="Revision"] { background: #f7bd3f; }
[data-type-dot="Licensing"] { background: #9ad88f; }
[data-type-dot="B2B Setup"] { background: #7a3ae0; }
.row-muted { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumbs { display: flex; gap: 4px; align-items: center; }
.thumbs img { width: 32px; height: 32px; border-radius: 6px; background: var(--surface); object-fit: contain; }
.thumbs span { color: var(--muted); font-size: 12px; }
.pill { justify-self: start; max-width: 100%; font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 4px; background: var(--subtle); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-more { display: flex; justify-content: center; margin: 16px 0 40px; }
.home-note { color: var(--muted); padding: 32px 16px; text-align: center; margin: 0; }
@media (max-width: 900px) {
  .bar-links a[data-nav="home"], .bar-links a[href="/"] { display: none; }
  /* Phones: each request shows its account and status (type, rep and date are on the request page). */
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row > :nth-child(2), .row > :nth-child(3), .row > :nth-child(n+5) { display: none; }
  .row-head { display: none; }
  .row-draft { grid-template-columns: minmax(0, 1fr) auto; }
  .row-draft > :nth-child(n+2) { display: none; }
}

/* Salesperson picker for managers on the linesheet */
/* "Request for": the salesperson (managers only) to the left of the account */
.request-for { display: flex; gap: 8px; align-items: center; width: min(620px, 100%); }
.request-for .account { flex: 1; min-width: 0; }
.salesperson { flex: none; }
.salesperson .select { height: 44px; max-width: 200px; }
.empty .request-for { margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Recommended-assortment buttons show the colors an admin chose */
.tier-swatches { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; min-height: 12px; }
.tier-swatches i { width: 12px; height: 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); }

/* Admin: recommended assortments */
.admin-tier { background: #fff; border: 1px solid var(--subtle); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.admin-tier-head { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.admin-field { display: grid; gap: 0; width: 220px; }
.admin-field-wide { flex: 1; min-width: 240px; }
.admin-field .search { margin: 0; height: 40px; }
.admin-count { color: var(--muted); padding-bottom: 10px; }
.admin-tier-head .link-button { padding-bottom: 10px; }
.admin-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.admin-item { position: relative; display: grid; gap: 8px; align-content: start; }
.admin-art { aspect-ratio: 1 / 1; }
.admin-remove { position: absolute; top: 4px; right: 4px; z-index: 2; background: rgba(255,255,255,.85); }
.select-block { width: 100%; height: 36px; font-weight: 400; font-size: 13px; }
.swatches-small { gap: 5px; }
.swatches-small .swatch { width: 22px; height: 22px; }
.swatch-none { background: repeating-linear-gradient(135deg, #fff 0 4px, var(--subtle) 4px 6px); }
.admin-color { font-size: 12px; color: var(--text-2); }
.admin-error { background: #fdecea; color: #8a2b1d; padding: 10px 14px; border-radius: 8px; }

/* Moving copies of a style */
.card[draggable="true"] { cursor: grab; }
.card.dragging { opacity: .4; }
.card.drop-before .card-art { box-shadow: -6px 0 0 -2px var(--blue); }
.card.drop-after .card-art { box-shadow: 6px 0 0 -2px var(--blue); }
.move-buttons { display: inline-flex; gap: 2px; }
.move-buttons .icon-button { width: 28px; height: 28px; font-size: 18px; line-height: 1; }
.move-buttons .icon-button:disabled { opacity: .3; cursor: default; }

/* Admin: moving copies of a style */
.admin-item[draggable="true"] { cursor: grab; }
.admin-item.dragging { opacity: .4; }
.admin-item.drop-before .admin-art { box-shadow: -6px 0 0 -2px var(--blue); }
.admin-item.drop-after .admin-art { box-shadow: 6px 0 0 -2px var(--blue); }
.admin-move { position: absolute; top: 4px; left: 4px; z-index: 2; background: rgba(255,255,255,.85); border-radius: 999px; }

/* Saved drafts */
.tally-discard { color: var(--text-2); font-weight: 400; margin-right: 4px; }
.tally-discard:hover { color: #a33b2b; }
.home-section { font: 600 14px/20px var(--font); margin: 24px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.home-section span { color: var(--muted); font-weight: 400; }
.row-draft { grid-template-columns: minmax(0, 2.2fr) 168px minmax(0, 1.2fr) minmax(0, 1fr) 190px; }
.row-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
@media (max-width: 900px) { .row-draft > :nth-child(5) { display: flex; } }
@media (max-width: 900px) { .row-status { justify-content: flex-end; } }

/* Close button on the product panel */
@media (max-width: 900px) { .panel { position: relative; } }
.panel-close { position: absolute; top: 14px; right: 14px; }
.panel h3 { padding-right: 40px; }

/* Request type: one choice for the whole request (a segmented control, not filter chips) */
.request-type { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.request-type .label { margin: 0; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--subtle); border-radius: 10px; }
.segment { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; font-weight: 500; }
.segment:hover { color: var(--text); }
.segment[aria-checked="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(17,24,39,.12), 0 0 0 1px rgba(17,24,39,.04); }
.segment:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
@media print { .request-type { display: none; } }

/* Theme filter on the graphic picker: a dropdown beside the search */
.graphic-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.graphic-tools .search { margin: 0; flex: 1; min-width: 0; }
.select-theme { height: 36px; max-width: 48%; font-weight: 400; font-size: 13px; }

/* Requests: status filters and the Status column */
.home-filters { display: contents; }
.pill-open { background: var(--amber-bg); color: var(--amber); }
.pill-done { background: var(--green-bg); color: var(--green); }
.pill-step { background: var(--blue-bg); color: var(--blue-dark); }
.row-status { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.home-chips { margin: 0; }
/* The filter row: status chips, a thin divider, then the Type menu sized like a chip. */
.home-filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 16px; }
.filter-divider { width: 1px; height: 22px; background: var(--border); }
.home-filterbar .type-button { height: 32px; padding: 0 30px 0 12px; border-radius: 8px; border-color: #c8d0d6; font-weight: 400; color: var(--text-2); background-position: right 9px center; background-size: 14px; }
.home-filterbar .type-button:hover { border-color: var(--text-2); }
.home-filterbar .type-button.type-active { background-color: var(--green-bg); border-color: var(--green-bg); color: var(--green); font-weight: 500; }
.home-filterbar .type-pop { top: 38px; }
@media (max-width: 900px) { .filter-divider { display: none; } }
.chip-count { margin-left: 4px; color: var(--muted); font-weight: 400; }
.chip[aria-pressed="true"] .chip-count { color: inherit; }

/* One request (2026-10-09): header, then what was asked for beside the steps since. */
.req { max-width: 1180px; margin: 0 auto; padding: 24px 32px 64px; }
.req-back { display: inline-block; margin-bottom: 16px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.req-back:hover { color: var(--text); }
.req-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--subtle); }
.req-head h1 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.req-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 14px; }
.req-type { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.req-muted { color: var(--muted); font-size: 13px; margin: 0; }
.req-actions { flex: none; display: flex; gap: 8px; }
.req-actions .button { display: inline-flex; align-items: center; text-decoration: none; }
.req-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; margin-top: 24px; align-items: start; }
.req-section { margin-bottom: 28px; }
.req-section h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 0 0 12px; }
.req-section h2 small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.req-styles { display: grid; gap: 12px; }
.req-style { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.req-style-art { width: 96px; height: 96px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.req-style-art img { width: 100%; height: 100%; object-fit: contain; }
.req-style-art span { font-size: 12px; color: var(--muted); text-align: center; padding: 4px; }
.req-style h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.req-style h3 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.rich { font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.rich p { margin: 0 0 8px; }
.rich p:last-child { margin-bottom: 0; }
.rich s { color: var(--muted); }
.req-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.req-file { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); background: #fff; }
.req-file:hover { border-color: var(--text-2); }
.req-file-art { display: grid; place-items: center; height: 110px; background: var(--surface); overflow: hidden; }
.req-file-art img { display: block; width: 100%; height: 110px; object-fit: contain; }
.req-file-art span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.req-file-name { display: block; padding: 8px 10px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-side { position: sticky; top: 88px; }
.req-steps { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 1px solid var(--subtle); }
.req-step { position: relative; padding: 0 0 20px 16px; }
.req-step-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px -21px; font-size: 13px; }
.req-step-head .type-dot { width: 10px; height: 10px; box-shadow: 0 0 0 3px #fff; }
.req-step-head span { color: var(--muted); margin-left: auto; }
@media (max-width: 900px) {
  .req { padding: 16px 16px 48px; }
  .req-head { flex-direction: column; }
  .req-grid { grid-template-columns: 1fr; }
  .req-side { position: static; }
  .req-style { grid-template-columns: 64px minmax(0, 1fr); }
  .req-style-art { width: 64px; height: 64px; }
}

/* Updating a request (2026-10-09): pick the type, check styles with a note each, add styles (revisions), notes and
   files, then review exactly what would be written. */
.req-compose { margin-bottom: 24px; padding: 16px; border: 1px solid var(--blue-bg); background: var(--blue-bg); border-radius: var(--radius); }
.req-compose-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.req-compose h2 { margin: 0; font-size: 16px; font-weight: 600; }
.req-compose .segmented { background: #fff; }
.req-compose .segment { display: inline-flex; align-items: center; gap: 6px; }
.segment[aria-checked="true"] .type-dot { box-shadow: none; }
.req-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.req-check input { width: 18px; height: 18px; accent-color: var(--green); }
.req-style-on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.req-note { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 14px; resize: vertical; box-sizing: border-box; }
.req-note:focus { outline: 2px solid var(--blue-bg); border-color: var(--blue); }
.tag-new { color: var(--green); border-color: var(--green-bg); background: var(--green-bg); }
.req-remove { margin-left: 8px; font-size: 13px; font-weight: 400; }
.req-add { margin-top: 12px; }
.req-drop { display: grid; place-items: center; min-height: 72px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-2); font-size: 14px; cursor: pointer; position: relative; background: #fff; }
.req-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.req-drop:hover { border-color: var(--text-2); }
.req-upload-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.req-upload-list li { padding: 6px 0; border-bottom: 1px solid var(--subtle); }
.req-upload-list small { color: var(--muted); margin: 0 8px; }
.req-bar { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 16px; margin: 24px -32px -64px; padding: 16px 32px; background: #fff; border-top: 1px solid var(--subtle); }
.modal-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(17,24,39,.35); display: grid; place-items: center; padding: 16px; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); background: #fff; border-radius: var(--radius); display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(17,24,39,.2); }
.modal-body { padding: 0 24px 16px; overflow: auto; }
.req-changes { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 16px; margin: 12px 0 0; font-size: 14px; }
.req-changes dt { font-weight: 600; }
.req-changes dd { margin: 0; }
.req-entry { margin-top: 8px; padding: 12px; border: 1px solid var(--subtle); border-radius: 8px; background: var(--surface); }
.req-problems { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 14px; }
.req-problems p { margin: 0; }
.req-off { flex: 1; }
@media (max-width: 900px) {
  .req-bar { margin: 24px -16px -48px; padding: 12px 16px; }
  .req-changes { grid-template-columns: 1fr; gap: 4px; }
  .req-changes dd { margin-bottom: 8px; }
}

/* Salesperson selectors carry a person icon (one person, or people for a group or everyone). */
.select-with-icon { position: relative; display: inline-flex; flex: none; }
.select-with-icon .select-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.select-with-icon .select { padding-left: 38px; }

/* Custom graphic (2026-10-09): the exception path, under the graphic grid. */
.custom-link { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.custom-link .link-button { font-size: 13px; }
.custom-box { padding: 14px; border: 1px dashed var(--amber); border-radius: var(--radius); background: var(--amber-bg); }
.custom-box textarea { width: 100%; box-sizing: border-box; margin-bottom: 14px; }
.custom-pick { margin: -6px 0 14px; font-size: 13px; }
.custom-hint { margin: 0 0 12px; font-size: 13px; color: var(--amber); }
.custom-drop { min-height: 56px; }
.custom-cancel { margin-top: 12px; font-size: 13px; }
.card-custom { display: grid; place-items: center; width: auto; height: auto; padding: 4px 8px; font-size: 11px; font-weight: 600; color: var(--amber); background: var(--amber-bg); border-color: var(--amber-bg); }
.stat-custom { display: block; font-style: normal; color: var(--amber); }
.tally-custom { font-size: 12px; font-weight: 500; color: var(--amber); }

/* Review request (2026-10-09): what submitting would write, with Request Details as the designers would read it. */
.modal-wide { width: min(760px, 100%); }
.req-details { max-height: 52vh; overflow: auto; }
.rich h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.rich h4:first-child { margin-top: 0; }
.rich ul { margin: 2px 0 10px; padding-left: 20px; }
.rich ul ul { margin: 2px 0 2px; }
.rich li { margin: 1px 0; }

/* Graphic minimums (Webflow's Graphic mins, 72 or 144): a small badge wherever the graphic shows. */
.graphic { position: relative; }
.graphic-min { position: absolute; top: 4px; right: 4px; padding: 1px 5px; border-radius: 4px; background: var(--amber-bg); color: var(--amber); font-size: 10px; line-height: 14px; font-weight: 600; font-style: normal; white-space: nowrap; }
.graphic-min-inline { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; text-transform: none; letter-spacing: 0; }

/* Graphic info (Webflow's Show Info Icon): an "i" on the tile; the note and breakdown image once chosen. */
.graphic-info-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 11px/1 Georgia, serif; font-style: italic; }
.graphic .graphic-info-icon { position: absolute; top: 4px; left: 4px; }
.graphic-info { margin: 0 0 12px; padding: 12px; border-radius: 10px; background: var(--blue-bg); font-size: 13px; overflow: hidden; }
.graphic-info-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.graphic-info p { margin: 0 0 8px; }
/* The image fills the card edge to edge, below the heading and note. */
.graphic-info-image { display: block; width: calc(100% + 24px); margin: 8px -12px -12px; padding: 0; border: 0; border-top: 1px solid var(--subtle); background: #fff; cursor: zoom-in; }
.graphic-info-image img { display: block; width: 100%; height: auto; }
.info-large { display: block; width: 100%; height: auto; }
.breakdown-min { margin-bottom: 16px; }

/* A graphic's note sits with the rep's notes, where they answer it; files can be attached per style and for the
   whole request (2026-10-09). */
.graphic-ask { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; background: var(--blue-bg); font-size: 13px; line-height: 1.45; }
.graphic-ask .graphic-info-icon { margin-top: 1px; flex: none; }
.item-drop { min-height: 48px; margin-top: 8px; font-size: 13px; }

/* Logos & files for the whole request, under Request type: always visible on the linesheet. */
.request-files { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.request-files .label { margin: 0 4px 0 0; }
.request-files-hint { font-size: 13px; }
.file-add { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; align-items: center; }
.file-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 240px; height: 28px; padding: 0 4px 0 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip button { flex: none; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; }
.file-chip button:hover { background: var(--subtle); color: var(--text); }
.sheet-drop { outline: 2px dashed var(--blue); outline-offset: -8px; background: var(--blue-bg); }
@media print { .request-files { display: none; } }

/* File tiles (2026-10-09): a square with a preview (images picked in this session) or the file type, the name
   underneath, and a × to delete. The last tile adds files. */
.file-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.file-tile { position: relative; width: 84px; display: grid; gap: 4px; font-size: 11px; color: var(--text-2); }
.file-tile-art { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.file-tile-art img { width: 100%; height: 100%; object-fit: cover; }
.file-tile-art span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); }
.file-tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-tile-remove { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--text-2); font-size: 14px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(17,24,39,.12); }
.file-tile-remove:hover { background: #a33b2b; border-color: #a33b2b; color: #fff; }
.file-tile-add { cursor: pointer; }
.file-tile-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-tile-add .file-tile-art { border-style: dashed; background: none; }
.file-tile-add .file-tile-art span { font-size: 24px; font-weight: 400; color: var(--blue); }
.file-tile-add:hover .file-tile-art { border-color: var(--blue); }
.request-files { align-items: flex-start; }
.request-files .label { margin-top: 8px; }
.request-files-hint { align-self: center; max-width: 320px; }
.files-label { display: block; margin-top: 12px; }
/* A PDF or AI page is shown whole, not cropped. */
.file-tile-vector img { object-fit: contain; padding: 4px; box-sizing: border-box; }

/* On a linesheet card: a paperclip with the number of files attached, and the rep's notes under the description. */
.card-attach { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: var(--text-2); font-size: 12px; vertical-align: -1px; }
.card-notes { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--text-2); font-style: italic; }
.card-notes[hidden] { display: none; }

/* Phones (audit 2026-10-09). The top bar gets a second row for the rep and account; the bottom bar keeps the key
   numbers on one row and the actions on another, all visible; dialog footers wrap. */
@media (max-width: 900px) {
  .bar { flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 16px; row-gap: 8px; }
  .bar-account { order: 3; flex: 1 0 100%; }
  .bar-account:empty { display: none; }
  .bar-links { margin-left: auto; }
  .request-for { width: 100%; }
  .salesperson .select { max-width: 150px; }
  .request-for .account { min-width: 0; }
  .tally { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px 18px; overflow-x: visible; }
  .tally-minor { display: none; }
  .tally-todo { flex-basis: 100%; order: 5; font-size: 13px; }
  .tally-spacer { display: none; }
  .tally .tally-discard { order: 6; margin-right: auto; }
  .tally > .button { order: 7; height: 38px; padding: 0 14px; font-size: 14px; }
  .tally .tally-discard { font-size: 14px; }
  .tally { column-gap: 10px; }
  .panel { scroll-margin-top: 120px; }
  .drawer-foot { flex-wrap: wrap; }
  .drawer-foot .req-off { flex-basis: 100%; }
}

/* Accessibility (audit 2026-10-09): a visible focus ring for keyboard users everywhere; spans inside cards lay out
   as blocks (cards are buttons, which may only contain spans). */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
[role=dialog]:focus { outline: none; }
.card-art, .card-art .front, .card-art .back { display: block; }

/* Sign in (2026-10-09): one small card; signed out, the bar shows only the brand. */
.signin { max-width: 420px; margin: 72px auto; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.signin h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.signin p { color: var(--text-2); margin: 0 0 20px; line-height: 1.5; }
.signin form { display: grid; gap: 10px; }
.signin .search { height: 44px; margin: 0; font-size: 16px; }
.signin .button { justify-self: start; }
.signin-status { margin: 14px 0 0 !important; color: var(--text-2); font-size: 14px; }
.signin-alert { color: #a33b2b !important; }
.signin-links { margin: 16px 0 0 !important; font-size: 14px; }
.signed-out .bar-links > :not(.bar-rep) { display: none; }
.bar-signout { font-size: 14px; color: var(--text-2); }
@media (max-width: 900px) { .signin { margin: 32px auto; padding: 24px 20px; } }
