/* 9tofive Store client pages: the public request page and the private store workspace.
   Same palette, type, buttons, controls and focus styles as the 9tofive.store homepage theme
   (9Storesssss shopify-theme/sections/stores-program-home.liquid). No dashboard styles. */
:root { --navy: #152c4c; --cobalt: #195ab5; --cobalt-dark: #124a96; --paper: #faf9f5; --powder: #d3e5fa; --sand: #f6e8cb; --line: #c8d1dd; --muted: #3d5068; --ink: #152c4c; --card: #fff;
  --ok: #0b6b3a; --ok-bg: #e3f4ea; --warn: #8a4b00; --warn-bg: #fdf0dc; --err: #b42318; --err-bg: #fde8e6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--navy); font: 17px/1.5 Arial, Helvetica, sans-serif; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 70px); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, label.pill:focus-within { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* Public header and footer (same as the homepage) */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-block; line-height: 0; }
.brand img { display: block; height: 72px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { font-size: 15px; }
.site-nav .nav-cta { color: var(--cobalt); font-weight: bold; }
.site-footer { border-top: 1px solid var(--line); font-size: 15px; margin-top: 48px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding-top: 30px; padding-bottom: 36px; }
.site-footer h2 { font-size: 17px; letter-spacing: 0; margin: 0 0 6px; }
.site-footer p { margin: 0 0 10px; }
.purchasing { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; font-size: 16px; }
.purchasing p { margin: 0; }

/* Type */
h1 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -.05em; line-height: 1.04; margin: 0 0 18px; }
h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.04em; line-height: 1.15; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 16px 0 6px; }
p.lead { color: var(--muted); margin: 0 0 18px; font-size: 18px; }
.hint, label small { font-weight: 400; color: var(--muted); font-size: 14px; }

/* Buttons and controls (homepage .btn) */
button, .btn { display: inline-block; background: var(--cobalt); color: #fff; text-decoration: none; border: 0; border-radius: 4px; padding: 14px 22px; font: bold 16px Arial, Helvetica, sans-serif; cursor: pointer; min-height: 48px; }
button:hover, .btn:hover { background: var(--cobalt-dark); }
button.secondary, .btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
button.secondary:hover, .btn.secondary:hover { background: #eef2f7; }
button.link { background: none; color: var(--cobalt); padding: 6px 0; min-height: 0; text-decoration: underline; }
button.danger { background: #fff; color: var(--err); border: 1px solid var(--err); padding: 6px 12px; min-height: 0; font-size: 14px; }
button:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: bold; font-size: 15px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=search], select, textarea { width: 100%; font: 17px Arial, Helvetica, sans-serif; color: var(--navy); padding: 12px; border: 1px solid #8a97a8; border-radius: 4px; background: #fff; min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
input[type=color] { width: 64px; height: 44px; border: 1px solid #8a97a8; border-radius: 4px; padding: 2px; background: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 10px 0; }
.check input { width: 20px; height: 20px; flex: none; }
fieldset.choice { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
fieldset.choice legend { font-weight: bold; font-size: 15px; padding: 0; margin-bottom: 6px; width: 100%; }
label.pill { display: inline-flex; gap: 10px; align-items: center; font-weight: 400; font-size: 16px; margin: 0; border: 1px solid #8a97a8; border-radius: 4px; padding: 10px 16px; cursor: pointer; min-height: 48px; background: #fff; }
label.pill:has(input:checked) { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); background: #eef4fc; }
label.pill input { width: 18px; height: 18px; }
.field-err { color: var(--err); font-size: 14px; margin: 6px 0 0; }
[aria-invalid=true] { border-color: var(--err) !important; box-shadow: inset 0 0 0 1px var(--err); }
.honey { position: absolute; left: -9999px; }

/* Cards and notices */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; margin: 0 0 18px; }
.notice { border-radius: 6px; padding: 14px 16px; margin: 0 0 16px; border: 1px solid; }
.notice.ok { background: var(--ok-bg); border-color: #9fd3b4; color: var(--ok); }
.notice.warn { background: var(--warn-bg); border-color: #efc98f; color: var(--warn); }
.notice.err { background: var(--err-bg); border-color: #f1aaa2; color: var(--err); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: bold; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.todo { color: var(--warn); } .status.done { color: var(--ok); } .status.info { color: var(--cobalt); }

/* Public request page */
.request-page { padding-top: 44px; padding-bottom: 8px; display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 6%; align-items: start; }
.request-page .intro p { font-size: 19px; max-width: 520px; margin: 0 0 18px; }
.request-page .intro ul { margin: 0; padding-left: 20px; color: var(--muted); }
.request-form { padding: 28px; }
.request-form h2 { font-size: 24px; }
.after-form { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.after-form a { color: var(--navy); }
.after-form ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
details.existing { margin-top: 16px; }
details.existing summary { cursor: pointer; font-weight: bold; font-size: 15px; color: var(--cobalt); }

/* Store workspace */
.ws-header { background: var(--navy); color: #fff; }
.ws-header .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.ws-header .logo { background: var(--paper); border-radius: 4px; padding: 3px 6px; line-height: 0; flex: none; }
.ws-header .logo img { height: 40px; width: auto; display: block; }
.ws-header .titles { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ws-header .titles strong { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #dae8f7; }
.ws-header .titles span { font-size: 17px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-header a.help { color: #fff; font-size: 15px; flex: none; }
.ws-main { max-width: 900px; margin: 0 auto; padding: 24px clamp(14px, 4vw, 32px) 110px; }
.next { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--cobalt); border-radius: 6px; padding: 20px 22px; margin: 0 0 20px; }
.next h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; }
.next p { margin: 0 0 12px; }
.next .needs { margin: 6px 0 14px; padding-left: 20px; }
.next.waiting { border-left-color: var(--sand); background: #fffdf8; }
.next.done { border-left-color: var(--ok); }
.tabs { display: flex; gap: 8px; margin: 0 0 16px; overflow-x: auto; padding-bottom: 4px; }
.tabs button { background: #fff; color: var(--navy); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 14px; text-align: left; flex: 1 0 auto; min-width: 150px; }
.tabs button[aria-selected=true] { border-color: var(--cobalt); box-shadow: inset 0 -3px 0 var(--cobalt); }
.tabs .status { font-size: 12px; padding: 1px 8px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.sticky { position: sticky; bottom: 0; background: rgba(250, 249, 245, .97); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 8px; z-index: 5; }
.saved { font-size: 14px; color: var(--muted); }
.saved.ok { color: var(--ok); font-weight: bold; } .saved.err { color: var(--err); font-weight: bold; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 10px 0 6px; }
.cats label { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 0; border: 1px solid #8a97a8; border-radius: 4px; padding: 10px 12px; background: #fff; min-height: 48px; cursor: pointer; }
.cats label:has(input:checked) { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); background: #eef4fc; }
.item { border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin: 14px 0; background: #fcfcfa; }
.item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item-head h3 { margin: 0; }
.files { list-style: none; padding: 0; margin: 8px 0; }
.files li { display: flex; gap: 10px; align-items: center; padding: 4px 0; flex-wrap: wrap; }
.logo-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 1px dashed #8a97a8; border-radius: 6px; padding: 12px; background: #fff; }
.logo-thumb { max-height: 90px; max-width: 220px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); }
.problems { margin: 6px 0 0; padding-left: 20px; color: var(--warn); }
table.sum { width: 100%; border-collapse: collapse; font-size: 15px; }
table.sum th, table.sum td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sum td.num, table.sum th.num { text-align: right; white-space: nowrap; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 3px; border: 1px solid var(--line); vertical-align: -3px; margin-right: 4px; }
.from-request { background: #eef4fc; border: 1px solid var(--powder); border-radius: 6px; padding: 12px 16px; margin: 0 0 14px; font-size: 15px; }
.preview-link { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 6px; padding: 16px 18px; margin: 8px 0 16px; }
.preview-link .btn { background: #fff; color: var(--navy); }
.preview-link p { margin: 0; font-size: 15px; color: #dae8f7; flex: 1 1 240px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
fieldset.plain { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
fieldset.plain legend { font-weight: bold; font-size: 15px; padding: 0; margin-bottom: 6px; }
fieldset.price { background: #f7f9fc; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px 12px; }
label.upload { position: relative; }
label.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
label.upload:focus-within { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.table-scroll { overflow-x: auto; }
.cat-block { background: #fff; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.newlink { max-width: 420px; }
.newlink button { margin: 12px 0 16px; }
#panel-h:focus, #next-h:focus { outline: none; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; align-items: flex-start; }
  .brand img { height: 56px; }
  .site-nav { gap: 4px 14px; } .site-nav a { font-size: 14px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .request-page { grid-template-columns: 1fr; gap: 10px; padding-top: 24px; }
  .request-page .intro p { font-size: 17px; }
  .request-form { padding: 18px; }
  .row, .row3 { grid-template-columns: 1fr; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .tabs button { min-width: 0; padding: 8px 10px; font-size: 15px; }
  .sticky .actions button { flex: 1 1 auto; }
  .card { padding: 16px; }
  .ws-header .logo img { height: 32px; }
  .ws-header .titles span { font-size: 15px; }
  .tabs button { min-width: 132px; padding: 8px 10px; }
  table.sum thead { display: none; } table.sum td { display: block; border: 0; padding: 2px 0; } table.sum tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; } table.sum td.num { text-align: left; }
}
