/* ========== CREATE (E2, Labs) ==========
   The Create sheet: one box to paste or drop into, a live preview of the deck
   as the agent builds it, a thread to revise it by talking. Dashboard tokens
   (--bg, --text, --accent, --border…) come from dashboard.css. */

/* ---- Header controls ---- */
.dash-labs-btn {
  background: none;
  border: 0;
  padding: 0.6rem 0.35rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.dash-labs-btn[hidden] { display: none; }
.dash-labs-btn:hover { color: var(--text-muted); }
.dash-labs-btn[aria-pressed="true"] { color: var(--accent); }

.dash-create-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.dash-create-btn[hidden] { display: none; }
.dash-create-btn svg { color: var(--accent); }
.dash-create-btn:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.07); }

/* ---- Sheet ---- */
.cr-sheet {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  grid-template-columns: minmax(360px, 440px) 1fr;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
.cr-sheet.open { display: grid; }

.cr-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.5rem 2rem 1.75rem;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.cr-panel.dragover { background: rgba(255,77,0,0.04); }

.cr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}
.cr-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cr-close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cr-close:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

.cr-title {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 0.75rem;
}
.cr-lede {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 34ch;
}

/* ---- Compose stage ---- */
.cr-compose, .cr-draft { display: none; flex-direction: column; min-height: 0; flex: 1; }
.cr-sheet[data-stage="compose"] .cr-compose { display: flex; }
.cr-sheet[data-stage="draft"] .cr-draft { display: flex; }

.cr-box {
  flex: 1;
  min-height: 120px;
  width: 100%;
  resize: none;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.cr-box::placeholder, .cr-line-input::placeholder { color: var(--text-dim); }
.cr-box:focus, .cr-line-input:focus { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.045); }

.cr-files {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
  min-height: 1.75rem;
  /* Never squeezed under its photos on a short window (they used to spill
     over the direction field); the text box gives way instead. */
  flex-shrink: 0;
}
.cr-compose { overflow-y: auto; }
.cr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.35rem 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 100%;
}
.cr-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-chip button {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 999px;
  color: var(--text-dim); cursor: pointer; font-size: 0.9rem; line-height: 1;
}
.cr-chip button:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.cr-add-file {
  background: none; border: 0; padding: 0.3rem 0;
  font-family: var(--font); font-size: 0.78rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); text-underline-offset: 3px;
}
.cr-add-file:hover { color: var(--text); }

/* Photos (E4): a grid of small squares between the documents and the add link. */
.cr-photos { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.4rem; margin: 0.15rem 0 0.1rem; }
.cr-photo { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,0.05); }
.cr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-photo.up::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25); border-top-color: #fff; animation: cr-photo-spin 0.8s linear infinite; }
.cr-photo.up img { opacity: 0.45; }
.cr-photo.fail img { opacity: 0.3; }
.cr-photo-x, .cr-photo-again { position: absolute; display: grid; place-items: center; border: 0; color: #fff; cursor: pointer; font-family: var(--font); line-height: 1; }
.cr-photo-x { top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 50%; background: rgba(0,0,0,0.62); font-size: 0.8rem; opacity: 0; transition: opacity 0.15s; }
.cr-photo:hover .cr-photo-x, .cr-photo-x:focus-visible, .cr-photo.fail .cr-photo-x { opacity: 1; }
.cr-photo-again { inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent, #ff4d00); color: #0a0a0a; font-size: 0.95rem; font-weight: 700; }
@keyframes cr-photo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cr-photo.up::after { animation-duration: 2.4s; } }
@media (hover: none) { .cr-photo-x { opacity: 1; } }
/* Replace (any tile) and videos (E4): replace sits top-left, shown with the ✕;
   a video tile carries its length, and while it uploads its progress, then
   "Preparing" while the server compresses it. */
.cr-photo-rp { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; border: 0; padding: 0; background: rgba(0,0,0,0.62); color: #fff; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.cr-photo:hover .cr-photo-rp, .cr-photo-rp:focus-visible { opacity: 1; }
@media (hover: none) { .cr-photo-rp { opacity: 1; } }
.cr-photo.up .cr-photo-rp { display: none; }
.cr-photo-dur { position: absolute; left: 3px; bottom: 3px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 4px; border-radius: 4px; background: rgba(0,0,0,0.65); color: #fff; font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 9px; line-height: 1.4; pointer-events: none; }
.cr-photo-dur svg { width: 7px; height: 7px; }
.cr-photo.up .cr-photo-dur { display: none; }
.cr-photo-st { position: absolute; inset: auto 0 0 0; padding: 2px 3px; background: rgba(0,0,0,0.72); color: rgba(255,255,255,0.88); font-size: 9px; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.cr-photo-st:empty { display: none; }
.cr-photo.vid:not(.up) .cr-photo-st { display: none; }
.wl-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }

.cr-line-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.86rem;
  line-height: 1.45;
  outline: none;
  resize: none;
  transition: border-color 0.2s, background 0.2s;
}

.cr-primary {
  margin-top: 1rem;
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.cr-primary:hover { background: #ff6622; }
.cr-primary:disabled { opacity: 0.35; cursor: default; }
/* Client colors (T1): one quiet line under the direction field. Two chips,
   each a dot (opens the system picker) and a field to paste a brand code. */
.cr-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.5rem; margin-top: 0.85rem; font-size: 0.78rem; color: var(--text-muted); }
.cr-colors[hidden] { display: none; }
.cr-colors-label { margin-right: auto; }
.cr-color-pair { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cr-colors-label b { color: var(--text); font-weight: 600; }
.cr-colors-label span { color: var(--text-dim); }
.cr-color { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem 0.25rem 0.3rem; border: 1px solid var(--border); border-radius: 999px; transition: border-color 0.2s; }
.cr-color:focus-within { border-color: rgba(255,255,255,0.28); }
.cr-color-dot { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; flex: none; overflow: hidden; }
.cr-color-dot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.cr-color-hex { width: 4.9rem; background: none; border: 0; outline: none; padding: 0; color: var(--text); font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 0.75rem; letter-spacing: 0.02em; }
.cr-color-hex::placeholder { color: var(--text-muted); font-family: var(--font); letter-spacing: 0; }
.cr-colors-reset { background: none; border: 0; padding: 0.25rem 0; font-family: var(--font); font-size: 0.75rem; color: var(--text-muted); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); text-underline-offset: 3px; }
.cr-colors-reset:hover { color: var(--text); }
.cr-colors-reset[hidden], .cr-colors-note[hidden] { display: none; }
.cr-colors-note { flex-basis: 100%; margin: 0.1rem 0 0; padding-left: 0.6rem; border-left: 2px solid var(--accent); font-size: 0.75rem; line-height: 1.45; color: var(--text-muted); }

.cr-hint { margin-top: 0.6rem; min-height: 1.1rem; font-size: 0.75rem; color: var(--text-dim); }
.cr-hint.warn { color: var(--accent); }

/* ---- Draft stage: the thread ---- */
.cr-deck-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}
.cr-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -0.5rem 1rem;
  padding: 0 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.cr-receipt {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: cr-in 0.35s ease both;
}
.cr-r-kind {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cr-r-title {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cr-say {
  margin: 1rem 0 0.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  animation: cr-in 0.35s ease both;
}
.cr-say.you { color: var(--text-muted); padding-left: 0.9rem; border-left: 1px solid rgba(255,255,255,0.18); }
.cr-say.quiet { color: var(--text-muted); }
.cr-say-photos { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: -0.25rem 0 0.4rem; }
.cr-say-photos img { width: 44px; height: 33px; object-fit: cover; border-radius: 4px; opacity: 0.85; }
/* Photos and videos added under a draft (Nov 19): tiles wait above the box,
   go with the next instruction, and show again on the person's line. */
.cr-say-photos.you { justify-content: flex-end; margin: -0.2rem 0 0.6rem; }
.cr-say-photos.you img { opacity: 1; }
.cr-draft { position: relative; }
.cr-rev-att { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.cr-rev-att[hidden] { display: none; }
.cr-rev-att .cr-photo { width: 48px; height: 48px; flex: none; }
.cr-rev-drop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 24px; border: 1.5px dashed var(--accent); border-radius: 12px; background: rgba(10,10,10,0.97); pointer-events: none; }
.cr-rev-drop[hidden] { display: none; }
.cr-rev-drop b { display: block; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.cr-rev-drop span { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--text-dim); }
.cr-clip { color: var(--text-muted); }

/* Things to check (E5): after a build, under the thread. */
.cr-checks { margin: 1.1rem 0 0.4rem; animation: cr-in 0.35s ease both; }
.cr-ck-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.55rem; }
.cr-ck-head b { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; }
.cr-fix { background: none; border: 0; padding: 0; font-family: var(--font); font-size: 0.78rem; font-weight: 600; color: var(--accent); cursor: pointer; }
.cr-fix:hover { text-decoration: underline; text-underline-offset: 3px; }
.cr-fix:disabled { opacity: 0.4; cursor: default; }
.cr-ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.cr-ck button {
  width: 100%; display: grid; grid-template-columns: 0.85rem 1fr auto; gap: 0.55rem; align-items: start; text-align: left;
  padding: 0.55rem 0.65rem; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,0.025);
  color: var(--text); font-family: var(--font); font-size: 0.8rem; line-height: 1.45; cursor: pointer;
}
.cr-ck button:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }
.cr-ck button:disabled { cursor: default; color: var(--text); }
.cr-ck button:disabled:hover { border-color: var(--border); background: rgba(255,255,255,0.025); }
.cr-ck button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cr-ck i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0.42rem 0 0 0.2rem; }
.cr-ck li.yours i { background: rgba(255,255,255,0.4); }
.cr-ck em { font-style: normal; font-size: 0.68rem; color: var(--text-dim); padding-top: 0.12rem; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .cr-checks { animation: none; } }
.cr-working {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cr-sheet.busy .cr-working { display: flex; }
.cr-working i {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  animation: cr-pulse 1.1s ease-in-out infinite;
}

.cr-revise { display: flex; gap: 0.5rem; align-items: flex-end; }
.cr-send {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}
.cr-send:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }
.cr-send:disabled, .cr-sheet.busy .cr-send { opacity: 0.3; cursor: default; }
.cr-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 0.25rem; }
.cr-actions .cr-primary { flex: 1; }
.cr-quiet {
  background: none; border: 0; padding: 0.5rem 0; margin-top: 1rem;
  font-family: var(--font); font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
}
.cr-quiet:hover { color: var(--text); }
.cr-quiet:disabled { opacity: 0.35; cursor: default; }

/* ---- Stage: the preview ---- */
.cr-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 1.5rem;
  background: #050505;
}
.cr-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.cr-frame iframe {
  position: absolute;
  top: 0; left: 0;
  border: 0;
  transform-origin: 0 0;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cr-sheet.has-draft .cr-frame iframe { opacity: 1; }
.cr-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cr-empty p {
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(255,255,255,0.14);
  max-width: 16ch;
}
.cr-sheet.has-draft .cr-empty { opacity: 0; }

@keyframes cr-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes cr-pulse { 0%, 100% { opacity: 0.25; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .cr-receipt, .cr-say { animation: none; }
  .cr-working i { animation: none; }
}

@media (max-width: 900px) {
  .cr-sheet.open { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 42vh; }
  .cr-panel { border-right: 0; border-bottom: 1px solid var(--border); padding: 1.25rem 1.25rem 1.25rem; overflow-y: auto; }
  .cr-box { min-height: 120px; }
  .cr-title { font-size: 1.6rem; }
  .cr-lede { margin-bottom: 1rem; }
  .cr-top { margin-bottom: 1.25rem; }
  .cr-stage { padding: 0.75rem; }
}


/* ---- Welcome window (Labs) ----
   Over the dashboard, first visit of the day and from New Presentation. */
@font-face { font-family: "Chalet New York 1970"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/fonts/chalet-newyork-1970.woff") format("woff"); }
.wl-overlay { position: fixed; inset: 0; z-index: 450; display: none; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(6, 6, 6, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; }
.wl-overlay.open { display: grid; }
.wl-card { position: relative; width: min(600px, 100%); padding: 2.4rem 2.5rem 2.1rem; border-radius: 16px; background: #101010; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); font-family: var(--font); color: var(--text); }
.wl-x { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-muted); cursor: pointer; }
.wl-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.wl-date { margin: 0; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.wl-hello { margin: 0.7rem 0 0; font-family: "Chalet New York 1970", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.wl-ask { margin: 0.45rem 0 0; font-size: 1rem; color: var(--text-muted); }
.wl-box { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; padding: 0.9rem 1rem 0.8rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: #161616; transition: border-color 0.2s; }
.wl-box:focus-within { border-color: rgba(255, 255, 255, 0.3); }
.wl-box.dragover { border-color: var(--accent); }
.wl-text { min-height: 84px; resize: vertical; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 0.92rem; line-height: 1.5; padding: 0; }
.wl-text::placeholder { color: var(--text-dim); }
.wl-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.wl-files { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-width: 0; }
.wl-add { border: 0; background: none; padding: 0; font: inherit; font-size: 0.8rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wl-add:hover { color: var(--text); }
.wl-photo { position: relative; width: 28px; height: 28px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,0.06); flex: none; }
.wl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-photo button { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.85rem; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.wl-photo:hover button, .wl-photo button:focus-visible { opacity: 1; }
.wl-build { border: 0; border-radius: 8px; padding: 0.6rem 1.1rem; font: inherit; font-size: 0.82rem; font-weight: 600; background: var(--accent); color: #0a0a0a; cursor: pointer; }
.wl-build:disabled { background: rgba(255, 77, 0, 0.25); color: rgba(255, 255, 255, 0.5); cursor: default; }
.wl-or { margin: 1.4rem 0 0.55rem; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.wl-blank { width: 100%; display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: #141414; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.wl-blank:hover { border-color: rgba(255, 255, 255, 0.28); background: #181818; }
.wl-blank-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.wl-blank-text { flex: 1; min-width: 0; display: grid; gap: 0.1rem; }
.wl-blank-text b { font-size: 0.88rem; font-weight: 600; }
.wl-blank-text span { font-size: 0.78rem; color: var(--text-muted); }
.wl-blank-arrow { color: var(--text-dim); }
.wl-blank:hover .wl-blank-arrow { color: var(--text); }
.wl-recent { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.wl-recent[hidden] { display: none; }
.wl-recent-head { margin: 0 0 0.75rem; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.wl-recent-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.wl-deck { display: grid; gap: 0.25rem; min-width: 0; color: var(--text); text-decoration: none; }
.wl-deck-img { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #1a1a1a; }
.wl-deck-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.wl-deck:hover .wl-deck-img img { transform: scale(1.03); }
.wl-deck b { margin-top: 0.3rem; font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-deck > span:last-child { font-size: 0.7rem; color: var(--text-dim); }
.wl-card :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-card .wl-text:focus-visible { outline: none; } /* the box's border shows focus */
@media (max-width: 560px) {
  .wl-card { padding: 1.8rem 1.25rem 1.5rem; }
  .wl-recent-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-recent-row > :nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wl-deck-img img { transition: none; } }

/* ---- What's new (Nov 19): over the dashboard every time WRAP opens, until
   "Don't show again". A list on the left (grey until picked; the picked line
   is white with its label in orange) and a looping clip on the right. */
.wn-overlay { position: fixed; inset: 0; z-index: 460; display: none; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(6, 6, 6, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; }
.wn-overlay.open { display: grid; }
.wn-card { position: relative; width: min(1080px, 100%); display: grid; grid-template-columns: 250px minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: #121212; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); font-family: var(--font); color: var(--text); }
.wn-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: rgba(255, 255, 255, 0.75); cursor: pointer; }
.wn-x:hover { color: #fff; background: rgba(0, 0, 0, 0.75); }
.wn-side { border-right: 1px solid rgba(255, 255, 255, 0.1); padding: 26px 16px; display: flex; flex-direction: column; min-width: 0; }
/* The header is the first thing to see: Chalet, CAPE orange, large. */
.wn-title { margin: 0 10px 20px; font-family: "Chalet New York 1970", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 2.3rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; color: var(--accent); }
.wn-list { display: flex; flex-direction: column; gap: 2px; }
.wn-item { display: grid; gap: 3px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wn-item:hover .wn-t { color: rgba(255, 255, 255, 0.7); }
.wn-item.on { background: rgba(255, 255, 255, 0.06); }
.wn-item:focus-visible, .wn-btn:focus-visible, .wn-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wn-k { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.38); }
.wn-t { font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, 0.42); transition: color 0.15s; }
.wn-item.on .wn-k { color: var(--accent); }
.wn-item.on .wn-t { color: var(--text); }
.wn-main { display: flex; flex-direction: column; min-width: 0; }
.wn-vid { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #000; }
.wn-copy { padding: 20px 28px 6px; display: grid; gap: 8px; }
.wn-h { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.wn-d { margin: 0; max-width: 62ch; font-size: 0.9rem; line-height: 1.55; color: var(--text-muted); }
.wn-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 28px 22px; }
.wn-never { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; }
.wn-never input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.wn-btn { padding: 9px 16px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.12); background: none; color: var(--text); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.wn-btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.wn-next { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.wn-next:hover { filter: brightness(1.08); border-color: var(--accent); }
@media (max-width: 760px) {
  .wn-card { grid-template-columns: 1fr; }
  .wn-side { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 12px; }
  .wn-title { margin: 4px 8px 12px; font-size: 1.9rem; }
  .wn-list { flex-direction: row; overflow-x: auto; }
  .wn-item { flex: none; max-width: 210px; }
  .wn-copy, .wn-foot { padding-left: 18px; padding-right: 18px; }
}

/* While drafting, the color line sits above "Tell it what to change" (Nov 25). */
.cr-draft .cr-colors { margin: 0 0 0.6rem; }

/* A deck · A recap · A weekly update (Nov 26, board 26). WRAP's own UI:
   fixed colors, never the deck's. */
.cr-kinds { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; flex-shrink: 0; }
.cr-kinds button { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 0.38rem 0.85rem; background: none; color: rgba(255, 255, 255, 0.72); font: inherit; font-size: 0.8rem; line-height: 1.2; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.cr-kinds button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cr-kinds button[aria-checked="true"] { border-color: #ff4d00; background: rgba(255, 77, 0, 0.14); color: #fff; }
.wl-kinds { margin: 0.8rem 0 0; }

/* Continue from last week (Nov 26, board 27): only with "A weekly update".
   "Nothing, start fresh" in CAPE orange (Manu). WRAP's own UI colors. */
.cr-continue { display: flex; align-items: center; gap: 0.7rem; margin: -0.3rem 0 1rem; flex-shrink: 0; }
.cr-continue[hidden] { display: none; }
.cr-continue-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.cr-pick { position: relative; flex: 1; min-width: 0; }
.cr-pick-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 9px; background: #141414; color: #fff; font: inherit; font-size: 0.8rem; text-align: left; cursor: pointer; }
.cr-pick-btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.cr-pick-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-pick-btn.fresh span { color: #ff4d00; }
.cr-pick-btn svg { flex: none; color: rgba(255, 255, 255, 0.45); }
.cr-pick-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; background: #161616; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); max-height: 260px; overflow-y: auto; }
.cr-pick-menu[hidden] { display: none; }
.cr-pick-menu button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.5rem 0.6rem; border: 0; border-radius: 6px; background: none; color: rgba(255, 255, 255, 0.85); font: inherit; font-size: 0.8rem; text-align: left; cursor: pointer; }
.cr-pick-menu button b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-pick-menu button span { flex: none; color: rgba(255, 255, 255, 0.4); font-size: 0.72rem; white-space: nowrap; }
.cr-pick-menu button:hover, .cr-pick-menu button[aria-selected="true"] { background: rgba(255, 77, 0, 0.14); color: #fff; }
.cr-pick-menu .cr-pick-fresh, .cr-pick-menu .cr-pick-fresh:hover, .cr-pick-menu .cr-pick-fresh[aria-selected="true"] { color: #ff4d00; }
