/* hub-only additions on top of the prototype's style.css */
@font-face { font-family: "Canela"; src: url("fonts/Canela-Thin-Web.otf") format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
body { margin: 0; }
.muted { color: var(--grey); }
.signin { max-width: 420px; margin: 0 auto; padding: 56px 0 80px; display: flex; flex-direction: column; gap: 18px; }
.signin h1 { margin: 0; }
.err { color: var(--red); font-size: 13px; }
.steprow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.steprow:last-child { border-bottom: 1px solid var(--line); }
.steprow .field { padding: 4px 0; }
.steprow .tools { display: flex; gap: 10px; }
.invite { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); padding: 14px; font-size: 13px; }
.preview-bar { background: var(--wash); padding: 10px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.04em; }
.empty { padding: 28px 0; color: var(--grey); }
select.field { background: transparent; }
[hidden] { display: none !important; }
button.tides-btn-primary:disabled { opacity: .55; cursor: wait; }
/* stage 2 */
.clients.inbox .crow { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
@media (max-width: 760px) { .clients.inbox .crow { grid-template-columns: minmax(0, 1fr) auto; } }
.c-n .dot { vertical-align: middle; margin-right: 2px; }
a.mfile { color: inherit; text-decoration: none; }
a.mfile:hover b { color: var(--gold); }
.compose button[disabled] { opacity: .55; cursor: wait; }
/* photo lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(49, 43, 43, .88); display: flex; align-items: center; justify-content: center; padding: 24px 16px; cursor: zoom-out; }
.lb-fig { position: relative; margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; cursor: default; border-radius: 16px; overflow: hidden; }
.lb-fig img { display: block; max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); object-fit: contain; margin: 0 auto; background: var(--tint); }
.lb-fig figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; background: var(--paper); padding: 12px 16px; }
.lb-name { font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.lb-fig figcaption .tides-btn-secondary { margin-left: auto; }
.lb-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(252, 252, 248, .92); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 6px rgba(49, 43, 43, .18); }
.lb-close:hover, .lb-close:focus-visible { color: var(--gold); }
/* edit and delete */
.mmeta { display: flex; align-items: baseline; gap: 12px; margin: 3px 6px 0; }
.mmeta .mtime { margin: 0; }
.mine .mmeta { flex-direction: row-reverse; }
.mtools { display: none; gap: 12px; font-size: 11px; }
.mtools.on { display: inline-flex; }
@media (hover: hover) { .mrow:hover .mtools { display: inline-flex; } }
.mtools .linkbtn { font-size: 11px; color: var(--grey); }
.mtools .linkbtn:hover { color: var(--gold); }
.mtools .armed, .mtools .armed:hover { color: var(--red); }
.medited { display: block; font-size: 10px; color: var(--grey); margin-top: 3px; }
.mdel { display: inline-block; padding: 7px 14px; border: 1px dashed var(--line); border-radius: 16px; font-size: 12px; font-style: italic; color: var(--grey); }
/* lightbox: previous / next, together at the bottom centre of the photo */
.lb-stage { position: relative; display: flex; justify-content: center; background: var(--tint); }
.lb-pager { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 999px; background: rgba(252, 252, 248, .94); box-shadow: 0 1px 6px rgba(49, 43, 43, .16); }
.lb-nav { width: 36px; height: 32px; border: 0; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-nav:hover, .lb-nav:focus-visible { color: var(--gold); }
.lb-from { white-space: nowrap; }
.lb-fig img { user-select: none; -webkit-user-select: none; touch-action: pan-y; }
/* lightbox follows the photo's width; the caption never stretches it */
.lb-fig { width: fit-content; min-width: min(340px, 100%); }
.lb-stage { background: none; }
.lb-fig figcaption { width: 0; min-width: 100%; box-sizing: border-box; flex-wrap: nowrap; }
.lb-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.lb-from, .lb-fig figcaption .tides-btn-secondary { flex-shrink: 0; }
@media (max-width: 480px) { .lb-from { display: none; } }
/* translucent pager; n/k shows only for photos sent together */
.lb-pager { background: rgba(252, 252, 248, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 6px rgba(49, 43, 43, .12); }
.lb-count { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ink); padding: 0 2px; }
.lb-count:empty { display: none; }
.lb-pager[hidden] { display: none; }
/* PDFs in the lightbox */
.lb-pdf { display: block; border: 0; width: min(900px, calc(100vw - 32px)); height: calc(100vh - 140px); height: calc(100dvh - 140px); background: var(--paper); }
.lb-pdf[hidden], .lb-fig img[hidden], .lb-open[hidden] { display: none; }
.lightbox.is-pdf .lb-close { top: 12px; right: auto; left: 12px; }
.lb-open { flex-shrink: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .lightbox.is-pdf .lb-fig figcaption .tides-btn-secondary { display: none; } }
/* phones: a PDF card instead of the viewer */
.lb-doc { width: min(420px, calc(100vw - 32px)); padding: 56px 24px 60px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--paper); }
.lb-doc[hidden] { display: none; }
.lb-doc-icon svg { width: 36px; height: 44px; color: var(--ink); margin-bottom: 10px; }
.lb-doc-name { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; max-width: 100%; }
.lb-doc .lb-view { margin-top: 18px; }
.lightbox.pdf-card .lb-close { top: 10px; right: 10px; left: auto; }
.lightbox.pdf-card .lb-name { visibility: hidden; }
.lightbox.pdf-card .lb-stage { background: var(--paper); border-bottom: 1px solid #DDDAD3; }
.lightbox.pdf-card figcaption { display: none; } .lightbox.pdf-card .lb-stage { border-bottom: 0; }

/* ---------- moodboard canvas ---------- */
.mood { padding: 24px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.mood-bar { display: flex; flex-direction: column; gap: 12px; }
.mood-bar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mood-adds { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; }
.mood-add { cursor: pointer; }
.mood-zoom { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.mood-zoom span { min-width: 40px; text-align: center; }
.mood-zoom button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer; }
.mood-zoom button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.mood-zoom button:disabled { opacity: .35; cursor: default; }
.mood-compose { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 14px; background: var(--tint); }
.mood-compose .field { flex: 1 1 220px; min-width: 0; }
.mood-compose textarea.field { flex-basis: 100%; resize: vertical; }
.mood-compose-act { display: flex; gap: 16px; align-items: center; }
.board-view { position: relative; overflow: auto; height: calc(100vh - 260px); height: calc(100dvh - 260px); min-height: 420px; border: 1px solid var(--line); background-color: var(--paper);
  background-image: radial-gradient(circle, #D8D4CA 1px, transparent 1.2px); background-size: 24px 24px; overscroll-behavior: contain; }
.board-view.over { outline: 2px dashed var(--gold); outline-offset: -8px; }
.board-size { position: relative; }
.board { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.board-empty { position: absolute; left: 40px; top: 40px; width: 300px; padding: 20px; background: var(--tint); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mood-hint { margin: 0; font-size: 12px; }
.mc { position: absolute; background: var(--paper); border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(49,43,43,.05); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.mc:hover { border-color: var(--stone); }
.mc.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.mc.dragging { cursor: grabbing; box-shadow: 0 10px 28px rgba(49,43,43,.18); transform: rotate(-.6deg); }
.mc input, .mc textarea { user-select: text; -webkit-user-select: text; touch-action: auto; }
.mc-img { display: block; background: var(--tint); }
.mc-img img { display: block; width: 100%; height: auto; pointer-events: none; }
.mc-img.gone { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 12px; font-size: 12px; color: var(--grey); overflow-wrap: anywhere; }
.mc-link { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px 6px; color: var(--ink); text-decoration: none; }
.mc-host { font-size: 10px; letter-spacing: .16em; color: var(--gold); overflow-wrap: anywhere; }
.mc-title { font-family: var(--serif); font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.mc-link { cursor: grab; -webkit-user-drag: none; }
.mc-open { display: inline-flex; align-items: center; gap: 6px; color: var(--grey); }
.mc-link:hover .mc-open { color: var(--gold); }
.mc-note .mc-text, .mc-text { margin: 0; padding: 8px 6px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mc.mc-note { background: var(--wash); border-color: transparent; }
.mc.mc-note.sel { border-color: var(--gold); }
p.mc-note { margin: 0; font-size: 13px; line-height: 1.45; padding: 0 2px; overflow-wrap: anywhere; }
.mc-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; padding: 0 2px; }
.mc-tools { display: flex; gap: 14px; flex-wrap: wrap; padding: 6px 2px 0; border-top: 1px solid var(--line); }
.mc-tools .armed, .mc-tools .armed:hover { color: var(--red); }
.mc-form { display: flex; flex-direction: column; gap: 6px; }
.mc-form .field { font-size: 14px; padding: 8px 10px; }
.mc-form-act { display: flex; gap: 14px; }
.mood-heart { border: 0; background: none; padding: 4px; margin: -4px; color: var(--stone); display: inline-flex; cursor: pointer; }
.mood-heart.on { color: var(--gold); }
button.mood-heart:hover, button.mood-heart:focus-visible { color: var(--gold); }
span.mood-heart { cursor: default; }
@media (max-width: 760px) { .board-view { height: calc(100dvh - 220px); min-height: 360px; margin-inline: -16px; border-inline: 0; } .mood-adds { gap: 8px 16px; } }

/* ---------- shared nav: side nav on computers, menu button on phones ---------- */
.top.shell .logo { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.top.shell .nav { flex-direction: column; flex-wrap: nowrap; justify-content: space-between; gap: 0; }
.nav-main, .nav-end { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.top.shell .navlink { padding: 0; border-bottom: 0; }
.top.shell .navlink[aria-current="page"] { color: var(--gold); border-bottom: 0; }
.top.shell .navlink[aria-current="page"]::before { content: ''; width: 14px; height: 1px; background: currentColor; margin-right: 2px; }
.nav-end .navlink { color: var(--grey); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin: -10px; color: var(--ink); cursor: pointer; }
.menu-btn:hover { color: var(--gold); }

@media (min-width: 900px) {
  body:has(.top.shell) .wrap { padding-left: calc(220px + 56px); max-width: calc(1280px + 220px); }
  body:has(.top.shell) .preview-bar { padding-left: calc(220px + 16px); }
  .top.shell { position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; width: 220px; box-sizing: border-box; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 56px; padding: 34px 28px 32px; border-bottom: 0; border-right: 1px solid var(--ink); background: var(--paper); }
  .top.shell .logo { font-size: 15px; letter-spacing: .28em; }
  .top.shell .nav { flex: 1; width: 100%; }
}
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; position: relative; z-index: 42; }
  .top.shell .nav { display: flex; position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(300px, 82vw); box-sizing: border-box; background: var(--paper); border-left: 1px solid var(--ink);
    padding: 88px 28px 32px; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
  .top.shell.open .nav { transform: none; visibility: visible; }
  .top.shell::after { content: ''; position: fixed; inset: 0; z-index: 40; background: rgba(49,43,43,.35); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .top.shell.open::after { opacity: 1; pointer-events: auto; }
  .nav-main, .nav-end { gap: 22px; }
  .nav-main .navlink { font-size: 13px; }
  .nav-end { padding-top: 20px; border-top: 1px solid var(--line); width: 100%; }
  body:has(.top.shell.open) { overflow: hidden; }
}
.menu-btn .i-close, .top.shell.open .menu-btn .i-menu { display: none; }
.top.shell.open .menu-btn .i-close { display: block; }
/* with the side nav, the footer is a quiet line under the page, not a second rule */
@media (min-width: 900px) {
  body:has(.top.shell) .foot { margin-top: 0; border-top: 0; padding: 18px 0 28px; color: var(--grey); }
}
.mc-thumb { display: block; background: var(--tint); margin: -8px -8px 0; }
.mc-thumb img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; pointer-events: none; }
.mc-thumb.loading { aspect-ratio: 16 / 10; animation: moodpulse 1.2s ease-in-out infinite alternate; }
@keyframes moodpulse { from { opacity: .55; } to { opacity: 1; } }

/* ---------- moodboard: Unsorted tray, headings, moving around ---------- */
.mood-stage { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 0; border: 1px solid var(--line); }
.mood-stage .board-view { border: 0; touch-action: pan-x pan-y; }
.board-view.pan { cursor: grab; }
.board-view.panning, .board-view.pan .mc { cursor: grabbing; }
.board-view:not(.pan) .board { cursor: default; }
.tray { border-left: 1px solid var(--line); background: var(--tint); overflow-y: auto; height: calc(100vh - 260px); height: calc(100dvh - 260px); min-height: 420px; padding: 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
.tray.over { outline: 2px dashed var(--gold); outline-offset: -8px; }
.tray-head { position: sticky; top: -14px; margin: -14px -14px 0; padding: 14px 14px 8px; background: var(--tint); z-index: 2; }
.tray-empty { margin: 0; line-height: 1.5; }
.mc.mc-tray { position: relative; left: auto; top: auto; width: auto; flex-shrink: 0; }
.mc.mc-tray .mc-thumb img { max-height: 160px; }
.mc.lifting { opacity: .35; }
.mc-ghost { position: fixed !important; z-index: 200; pointer-events: none; box-shadow: 0 14px 34px rgba(49,43,43,.22); transform: rotate(-1.2deg); opacity: .95; }
.mc.mc-heading { background: none; border: 1px dashed transparent; box-shadow: none; padding: 4px 8px; width: auto; max-width: 640px; }
.mc.mc-heading:hover { border-color: var(--line); }
.mc.mc-heading.sel { border-color: var(--gold); box-shadow: none; }
.mc-head { margin: 0; font-family: var(--serif); font-weight: 300; font-size: var(--hs, 44px); line-height: 1.05; white-space: nowrap; letter-spacing: -0.01em; }
.mc.mc-tray.mc-heading { background: var(--paper); }
.mc.mc-tray .mc-head { font-size: 24px; white-space: normal; }
.mc-heading .mc-form .field { font-family: var(--serif); font-size: 28px; min-width: 260px; }
.mood-adds .tides-btn-primary { line-height: 2.2; }
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) { .touch-only { display: inline; } .hide-touch { display: none; } }
@media (max-width: 760px) {
  .mood-stage { grid-template-columns: minmax(0, 1fr); margin-inline: -16px; border-inline: 0; }
  .mood-stage .board-view { margin-inline: 0; }
  .tray { position: absolute; z-index: 20; top: 14px; right: 14px; width: min(280px, calc(100% - 28px)); height: auto; min-height: 0; max-height: calc(100% - 28px); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(49,43,43,.14); }
  .tray .mc.mc-tray { touch-action: pan-y; }
}

/* who added it: a small colour dot in the top-left corner; Maria's heart sits top-right */
.mc { padding-top: 8px; }
.mc-dot { position: absolute; z-index: 3; top: -5px; left: -5px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 1px 3px rgba(49,43,43,.25); }
.mc.mc-heading .mc-dot { top: 2px; left: -8px; }
.mc > .mood-heart { position: absolute; z-index: 3; top: 12px; right: 12px; margin: 0; padding: 5px; border-radius: 50%; background: rgba(252,252,248,.9); line-height: 0; }
.mc.mc-note > .mood-heart, .mc.mc-link:not(:has(.mc-thumb)) > .mood-heart { background: none; top: 6px; right: 6px; }
.mc:not(.loved) > button.mood-heart { opacity: 0; transition: opacity .15s; }
.mc:hover > button.mood-heart, .mc.sel > button.mood-heart, .mc > button.mood-heart:focus-visible { opacity: 1; }
@media (hover: none) { .mc > button.mood-heart { opacity: 1; } }
.mood-right { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.mood-key { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; }
.mood-key-i { display: inline-flex; align-items: center; gap: 6px; }
.kdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mood-dots { display: flex; gap: 10px; justify-content: flex-end; }
.dotpick { width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--paper); }
.dotpick.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.mc-text { padding-top: 4px; }

/* resize handle: bottom-right corner, shows on hover or when selected */
.mc-resize { position: absolute; z-index: 4; right: -7px; bottom: -7px; width: 18px; height: 18px; cursor: nwse-resize; opacity: 0; transition: opacity .15s; touch-action: none; }
.mc-resize::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); }
.mc:hover > .mc-resize, .mc.sel > .mc-resize, .mc.resizing > .mc-resize { opacity: 1; }
@media (hover: none) { .mc.sel > .mc-resize { opacity: 1; width: 28px; height: 28px; right: -12px; bottom: -12px; } }
.mc.resizing { box-shadow: 0 0 0 1px var(--gold); }
.mc.mc-heading .mc-form .field { font-size: min(var(--hs, 44px), 40px); }

/* who added it: a tiny mark inside the card's top-left corner (none on headings) */
.mc-dot { display: none; }
.mc-mark { position: absolute; z-index: 3; top: 9px; left: 9px; width: 10px; height: 10px; filter: drop-shadow(0 0 1.5px rgba(252,252,248,.9)); display: flex; align-items: center; justify-content: center; line-height: 0; pointer-events: auto; }
.mc-note > .mc-mark, .mc-link:not(:has(.mc-thumb)) > .mc-mark { filter: none; top: 7px; left: 7px; }
.mc-note .mc-text { padding-top: 14px; }
.mc-link:not(:has(.mc-thumb)) .mc-link { padding-top: 16px; }
.mood-key-i svg { flex-shrink: 0; }
.mood-dots { flex-direction: column; align-items: flex-end; gap: 10px; }
.mood-dots > div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.iconpick { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconpick.on { border-color: var(--ink); }
.iconpick:hover { border-color: var(--gold); }

/* picking several cards */
.mood-box { position: fixed; z-index: 50; border: 1px solid var(--gold); background: rgba(146,118,47,.08); pointer-events: none; }
.mood-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; padding: 8px 14px; border: 1px solid var(--line); background: var(--paper); }
.mood-selbar .armed { color: var(--red, #C8352F); }

/* the client's own key item opens the mark picker */
button.mood-key-me { font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 1px; cursor: pointer; }
button.mood-key-me:hover, button.mood-key-me.on { border-bottom-color: var(--gold); }
.mood-dots { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); align-items: flex-start; }
.mood-dots > div { justify-content: flex-start; }
.mood-dots-intro { margin: 0; font-size: 13px; max-width: 46ch; }
/* on pictures, the mark sits a little in from the picture's corner */
.mc-image > .mc-mark, .mc-link:has(.mc-thumb) > .mc-mark { top: 16px; left: 16px; }

/* Unsorted: close it, and a small floating button brings it back (always the way in on phones) */
.mood-stage { position: relative; }
.mood-stage.tray-closed { grid-template-columns: minmax(0, 1fr); }
.mood-stage.tray-closed .tray { display: none; }
.tray-head { display: flex; align-items: center; justify-content: space-between; }
.tray-x { border: 0; background: none; color: var(--grey, #6E6868); font-size: 12px; line-height: 1; padding: 6px; margin: -6px -6px -6px 0; cursor: pointer; }
.tray-x:hover { color: var(--ink); }
.tray-fab { display: none; gap: .45em; position: absolute; z-index: 15; top: 14px; right: 14px; padding: 8px 12px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 2px 8px rgba(49,43,43,.08); font: 500 11px/1 'Instrument Sans', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.tray-fab:hover, .tray-fab.over { border-color: var(--gold); }
.mood-stage.tray-closed .tray-fab { display: inline-flex; }

/* ---------- archive (archive.js) ---------- */
.archived-link { padding-top: 14px; }
.archived-link .linkbtn { text-decoration: none; }
.archived-link .linkbtn:hover { text-decoration: underline; }
.archived-bar { margin-top: 16px; background: var(--wash); padding: 10px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.04em; }
.archive-acts { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.clients .arow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.clients .arow:last-child { border-bottom: 1px solid var(--line); }
.arow .c-n { text-decoration: none; font-size: inherit; }
.arow-acts { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
@media (max-width: 760px) { .clients .arow { grid-template-columns: minmax(0, 1fr); gap: 8px; } .arow .hide-s { display: none; } .arow-acts { justify-content: flex-start; } }
.toast-act { background: none; border: 0; padding: 0 0 0 10px; color: var(--paper); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
dialog.hub-dialog { border: 0; padding: 28px; max-width: 460px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 16px 48px rgba(49,43,43,.22); }
dialog.hub-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
dialog.hub-dialog::backdrop { background: rgba(49,43,43,.35); }
dialog.hub-dialog .btns { margin-top: 4px; }
.purge-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
dialog.hub-dialog button:disabled, dialog.hub-dialog .check:has(input:disabled) { opacity: .35; cursor: default; }

/* ---------- proposals (proposals.js) ---------- */
.pe-item { gap: 14px; }
.pe-head { display: flex; justify-content: space-between; align-items: center; }
.grid-pe { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px 16px; }
.pe-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.pe-row:not(:has(.step-n)) { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.pe-row .tools { display: flex; gap: 12px; width: 44px; justify-content: flex-end; }
.pe-mini { display: inline-flex; align-items: center; gap: 6px; }
.pe-mini .field { width: 64px; text-align: center; padding: 6px 0; }
.pe-row > .field { padding: 6px 0; }
.pkgs.one { grid-template-columns: minmax(0, 1fr); }
.pkgs.one .pkg { cursor: default; }
.weeks-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.week.off { color: var(--grey); background: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 6px); }
.week.off .w-d { text-decoration: line-through; }
.week[aria-disabled="true"] { cursor: default; border-color: var(--gold); }
@media (max-width: 760px) {
  .weeks-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-pe { grid-template-columns: minmax(0, 1fr); }
  .pe-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .pe-row:not(:has(.step-n)) { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; }
  .pe-mini .field { width: 52px; }
  .pe-row > .step-n { display: none; }
}

/* ---------- contracts (contracts.js) ---------- */
.ce-item { gap: 10px; }
.ce-title { font-weight: 500; }
.ph { color: var(--red); }
.ct-import summary { cursor: pointer; list-style: none; display: inline; }
.ct-import summary::-webkit-details-marker { display: none; }
code { font-size: 12px; }
.pe-head .tools { display: flex; gap: 16px; align-items: center; }
textarea.field.fit { overflow: hidden; resize: none; min-height: 0; }
/* invoices */
.lab.red { color: var(--red); }
.inv-item { border-top: 1px solid var(--line); padding-top: 10px; }
.inv-item .row { padding: 2px 0; border: 0; }
.inv-acts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cur-pick { width: auto; padding: 0 2px; font-size: 13px; text-align: right; }
.pe-row.inv-line { grid-template-columns: minmax(0, 1fr) 130px 24px; }
.bank-fields { display: flex; flex-direction: column; }
.bank-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: end; }
.bank-row > span { padding-bottom: 9px; }
.bank-row .field { padding: 8px 0; }
@media (max-width: 560px) { .bank-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 8px; } }

/* questionnaires */
.q-h { font-family: var(--serif); font-weight: 100; font-size: 22px; margin: 28px 0 4px; }
.q-a { white-space: pre-wrap; }
.img-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 170px)); gap: 14px; }
.img-opt { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.img-pick.edit .img-opt { cursor: default; }
.img-box { display: block; aspect-ratio: 4 / 5; background: var(--line) center / cover no-repeat; outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.img-opt[aria-pressed="true"] .img-box { outline: 2px solid var(--gold); }
button.img-opt:not(:disabled):hover .img-box { outline-color: var(--stone); }
button.img-opt[aria-pressed="true"]:hover .img-box { outline-color: var(--gold); }
button.img-opt:disabled { cursor: default; }
.q-more summary { cursor: pointer; list-style: none; display: inline; }
.q-more summary::-webkit-details-marker { display: none; }
@media (max-width: 600px) { .img-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* moodboard colour cards: a swatch with a white label, like a Pantone chip */
.mc.mc-colour { padding: 0; gap: 0; background: #fff; }
.mc-swatch { display: block; aspect-ratio: 1 / 1; }
.mc-chip { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; background: #fff; color: var(--ink); }
.mc-chip-name { font-weight: 500; font-size: 13px; letter-spacing: .02em; line-height: 1.25; overflow-wrap: anywhere; }
.mc-codes { display: flex; flex-direction: column; gap: 1px; font-size: 10.5px; letter-spacing: .04em; color: var(--grey); font-variant-numeric: tabular-nums; }
.mc-code { padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: left; cursor: copy; }
.mc-code:hover { color: var(--ink); }
.mc.mc-colour > p.mc-note { padding: 0 12px 12px; }
.mc.mc-colour > .mc-tools, .mc.mc-colour > .mc-form { padding: 8px 12px 12px; }
.mc-pickrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1 1 100%; }
.mc-picker { width: 44px; height: 40px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; flex: none; }
.mc-picker::-webkit-color-swatch-wrapper { padding: 3px; }
.mc-picker::-webkit-color-swatch { border: 0; }
.mc-pickrow #mc-hex { flex: 0 1 120px; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.mood-compose-colour #mc-name { flex: 1 1 220px; }
.mc-form-colour .mc-pickrow #mc-hex { flex: 1 1 80px; }
.mc-code-main { color: var(--ink); font-weight: 500; font-size: 13px; letter-spacing: .02em; margin-bottom: 4px; }
