/* Workspaces page. Tokens from tokens.css (the Enlighten Pro design system); header and wordmark as on the Designer Collection. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ep-bg-2); }
body { margin: 0; background: var(--ep-bg-2); color: var(--ep-fg-1); font-family: var(--ep-font-sans); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
img { display: block; -webkit-touch-callout: none; -webkit-user-drag: none; }

/* header: the Collection's */
header { background: var(--ep-bg-1); border-bottom: 1px solid rgba(0,0,0,.08); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
header img { height: 18px; width: auto; }
.tag { font-size: 13px; color: var(--ep-fg-3); flex: 1; }
.hnav { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.hlink { min-height: 44px; min-width: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; font: 500 14px var(--ep-font-sans); color: var(--ep-fg-1); text-decoration: none; }
.hlink:hover, .hlink:visited { color: var(--ep-fg-1); border-bottom-color: transparent; }
@media (hover: hover) { a.hlink:hover { text-decoration: underline; text-underline-offset: 3px; } }
.hname { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { header .wrap { gap: 0; } header img { height: 13px; margin-right: auto; } .tag, #hCollection { display: none; } }
@media (max-width: 359px) { header .wrap { padding: 0 12px; } header img { height: 10px; } .hlink { padding: 0 4px; } .hname { max-width: 88px; } }

/* register bar */
.gatebar { background: var(--ep-ink); color: var(--ep-fg-inverse); }
.gatebar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; min-height: 52px; }
.gatebar p { margin: 0; flex: 1 1 260px; min-width: 0; font: 400 14.5px/1.45 var(--ep-font-sans); color: var(--ep-fg-inverse); }
.gatebtns { flex: none; display: inline-flex; gap: 8px; }
.gatebtn { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ep-lumen-500); color: var(--ep-ink); font: 600 15px var(--ep-font-sans); text-decoration: none; }
.gatebtn:hover, .gatebtn:visited { color: var(--ep-ink); border-bottom-color: transparent; }
.gatebtn-alt { background: transparent; border: 1px solid rgba(255,255,255,.4); color: var(--ep-fg-inverse); font-weight: 500; }
.gatebtn-alt:hover, .gatebtn-alt:visited { color: var(--ep-fg-inverse); border-color: rgba(255,255,255,.4); }

/* title and the first question */
.intro { padding: 28px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.intro h1 { font: 500 clamp(26px, 4vw, 36px)/1.15 var(--ep-font-display); letter-spacing: var(--ep-track-tight); color: var(--ep-fg-3); margin: 0; }
.intro h1 span { color: var(--ep-fg-1); }
.intro p { margin: 0; color: var(--ep-fg-2); font-size: 15px; }
.sharedby { color: var(--ep-fg-1); font-weight: 500; }
h2.q { font: 500 clamp(24px, 3.4vw, 30px)/1.2 var(--ep-font-display); letter-spacing: var(--ep-track-tight); margin: 20px 0 16px; }
.cchoices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 48px; }
@media (max-width: 860px) { .cchoices { grid-template-columns: 1fr; } }
.cchoice { display: flex; flex-direction: column; background: var(--ep-bg-1); border: 1px solid rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ep-fg-1); }
.cchoice:hover { color: var(--ep-fg-1); border-color: rgba(0,0,0,.08); }
.cchoice:hover .cname { text-decoration: underline; text-underline-offset: 4px; }
.cname { display: block; padding: 14px 16px 2px; font: 600 20px/1.25 var(--ep-font-sans); }
.cn { display: block; padding: 0 16px 16px; font-size: 13px; color: var(--ep-fg-3); }
.cn b { font: 500 13px var(--ep-font-mono); font-variant-numeric: tabular-nums; color: var(--ep-fg-2); }

/* every picture: a 16:10 box reserved before it loads */
.pic { display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--ep-bg-2); overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }

/* bars, pills, buttons */
.bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 0; }
.cswitch { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.16); background: var(--ep-bg-1); color: var(--ep-fg-1); font: 500 14px var(--ep-font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.pill:hover { color: var(--ep-fg-1); border-bottom-color: rgba(0,0,0,.16); }
.pill[aria-pressed="true"] { background: var(--ep-fg-1); border-color: var(--ep-fg-1); color: var(--ep-fg-inverse); }
.pill b { font: 500 12px var(--ep-font-mono); font-variant-numeric: tabular-nums; }
.slbtn { margin-left: auto; }
.cta { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--ep-lumen-500); color: var(--ep-ink); font: 600 15px var(--ep-font-sans); cursor: pointer; }
.cta:hover { color: var(--ep-ink); }
.cta:disabled, .pill:disabled { opacity: .5; cursor: default; }
.back { min-height: 36px; display: inline-flex; align-items: center; font: 500 14px var(--ep-font-sans); color: var(--ep-fg-1); }
.back:hover { color: var(--ep-fg-1); }
.actions { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.notice { margin: 8px 0; padding: 10px 14px; background: var(--ep-bg-1); border: 1px solid rgba(0,0,0,.08); border-radius: 14px; font-size: 14px; color: var(--ep-fg-1); }
.notice a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ep-fg-1); font-weight: 600; margin-right: 10px; }
.notice.ok { border-color: var(--ep-success); }
.fine { margin: 4px 0 48px; font-size: 13px; color: var(--ep-fg-3); }

/* the options */
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; padding: 4px 0 16px; align-items: start; }
.ocard { background: var(--ep-bg-1); border: 1px solid rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ocard a.pic { border-bottom: 1px solid rgba(0,0,0,.08); }
.obody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.obody h3 { margin: 0; font: 600 16px/1.3 var(--ep-font-sans); }
.obody h3 a { display: flex; align-items: center; min-height: 32px; color: var(--ep-fg-1); text-decoration: none; }
.obody h3 a:hover { color: var(--ep-fg-1); border-bottom-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.obody p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ep-fg-2); }
.orow { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }

/* the option sheet and the client document */
.osheet, .docopt { max-width: 960px; }
.osheet h2, .docopt h2 { font: 500 clamp(24px, 3.4vw, 30px)/1.2 var(--ep-font-display); letter-spacing: var(--ep-track-tight); margin: 0 0 6px; }
.osheet .oline, .docopt .oline { margin: 0 0 14px; color: var(--ep-fg-2); font-size: 15px; }
.osheet .picwrap, .docopt .picwrap { position: relative; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; background: var(--ep-bg-1); }
.items { list-style: none; margin: 16px 0 0; padding: 0; background: var(--ep-bg-1); border: 1px solid rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; }
.items li { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 14px; align-items: center; padding: 10px 14px; border-top: 1px solid rgba(0,0,0,.08); }
.items li:first-child { border-top: 0; }
.items li.plain { grid-template-columns: 1fr; padding: 14px; color: var(--ep-fg-2); font-size: 14px; }
.ithumb { width: 72px; height: 72px; background: var(--ep-bg-2); border-radius: 8px; overflow: hidden; }
.ithumb img { width: 100%; height: 100%; object-fit: contain; }
.iname { font: 600 15px/1.3 var(--ep-font-sans); }
.icode { font: 500 12px var(--ep-font-mono); color: var(--ep-fg-2); font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.iqty { font: 500 14px var(--ep-font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ilink { grid-column: 2 / -1; font: 500 13px var(--ep-font-sans); min-height: 32px; display: inline-flex; align-items: center; color: var(--ep-signal-500); }
.docopt { margin: 0 0 32px; }
.docnote { margin: 10px 0 0; font-size: 12px; color: var(--ep-fg-3); }
.gapnote { margin: 12px 0 0; font-size: 13px; color: var(--ep-fg-3); }

/* the label band over the foot of a picture, so a screenshot carries it (the Collection's) */
.wmband { position: absolute; left: 0; right: 0; bottom: 0; min-height: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; padding: 4px 10px; background: var(--ep-bg-1); border-top: 1px solid rgba(0,0,0,.08); pointer-events: none; }
.wmband img { flex: none; width: 76px; height: auto; }
.wmband b { margin-left: auto; min-width: 0; overflow-wrap: anywhere; text-align: right; font: 500 11px/1.2 var(--ep-font-mono); color: var(--ep-fg-3); }

/* the gate panel for an option that needs a sign-up */
.gatepanel { margin: 4px 0 12px; padding: 16px; background: var(--ep-bg-1); border: 1px solid rgba(0,0,0,.08); border-radius: 14px; }
.gatepanel p { margin: 0 0 12px; font-size: 15px; }
.gatepanel .gatebtns a { text-decoration: none; }
.gatepanel .gatebtn-alt { color: var(--ep-fg-1); border-color: rgba(0,0,0,.16); }
.gatepanel .gatebtn-alt:hover, .gatepanel .gatebtn-alt:visited { color: var(--ep-fg-1); border-color: rgba(0,0,0,.16); }

/* dialogs */
dialog { border: 0; padding: 0; border-radius: 14px; max-width: min(92vw, 640px); width: 100%; max-height: 92vh; color: var(--ep-fg-1); background: var(--ep-bg-1); }
dialog::backdrop { background: rgba(10,11,13,.6); }
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 20px; border-bottom: 1px solid rgba(0,0,0,.08); position: sticky; top: 0; background: var(--ep-bg-1); }
.dhead h2 { font: 600 17px var(--ep-font-sans); margin: 0; }
.x { width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ep-fg-1); }
.dbody { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.reqfor { margin: 0; font-size: 14px; color: var(--ep-fg-2); }
.sllist { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; }
.sllist li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 8px 8px 8px 8px; border-top: 1px solid rgba(0,0,0,.08); }
.sllist li:first-child { border-top: 0; }
.sllist .pic { border-radius: 8px; }
.sllist .sn { font: 600 14px/1.3 var(--ep-font-sans); }
.sllist .sn small { display: block; font: 400 12px var(--ep-font-sans); color: var(--ep-fg-3); margin-top: 2px; }
.sllist li.off { opacity: .6; }
.sllist li.empty { grid-template-columns: 1fr; }
.sllist li.empty .sn { padding: 8px; }
.sllist .rm { min-height: 36px; min-width: 36px; border: 1px solid rgba(0,0,0,.16); border-radius: 999px; background: var(--ep-bg-1); cursor: pointer; font: 500 13px var(--ep-font-sans); padding: 0 12px; color: var(--ep-fg-1); }
.slactions { display: flex; flex-wrap: wrap; gap: 8px; }
.linkrow { margin: 0; }
.linkrow input, .fld input, .fld select, .fld textarea, .unitrow select { width: 100%; min-height: 44px; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; background: var(--ep-bg-1); color: var(--ep-fg-1); font: 16px var(--ep-font-sans); padding: 0 12px; }
.fld textarea { padding: 10px 12px; resize: vertical; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ep-fg-3); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--ep-fg-1); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .fgrid { grid-template-columns: 1fr; } .dbody { padding: 14px 16px 18px; } }
.unitrow { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.unitrow select { width: auto; min-width: 84px; }
.err { min-height: 0; font-size: 12px; color: var(--ep-danger); }
.err:empty { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ep-fg-1); color: var(--ep-fg-inverse); padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 50; max-width: 92vw; }

/* print: only the print document, one option to a page */
#printView { display: none; }
@media print {
  body { background: var(--ep-bg-1); }
  body > *:not(#printView) { display: none !important; }
  #printView { display: block !important; }
  #printView .docopt { break-after: page; page-break-after: always; margin: 0; }
  #printView .docopt:last-child { break-after: auto; page-break-after: auto; }
  #printView .items li { break-inside: avoid; }
  @page { margin: 14mm; }
}
