/* SampleNova v0.10 — readable capture, explicit choices and a static source-page boundary. */

:root {
  --v10-night: #09080c;
  --v10-panel: #141118;
  --v10-card: #1a161f;
  --v10-field: #0f0d13;
  --v10-paper: #f3efe8;
  --v10-muted: #aaa2ae;
  --v10-dim: #7f7785;
  --v10-line: rgba(243, 239, 232, .13);
  --v10-pink: #ff4fa3;
  --v10-pink-soft: #ff9ccc;
  --v10-violet: #6338ff;
  --v10-violet-soft: #aa94ff;
  --v10-amber: #ffbd67;
}

body,
button,
input,
select,
textarea {
  font-family: Manrope, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

/* The page under the companion is deliberately a non-interactive facsimile. */
.host-page {
  width: min(1360px, calc(100% - 48px));
  min-height: 1480px;
  padding: 74px 0 90px;
  background:
    radial-gradient(circle at 8% 7%, rgba(99, 56, 255, .12), transparent 28%),
    radial-gradient(circle at 94% 33%, rgba(255, 79, 163, .08), transparent 24%),
    #0b0a0e;
}

.source-site-window {
  overflow: hidden;
  min-height: 1320px;
  color: #ebe7e1;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px;
  background: #111015;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .42);
  pointer-events: none;
}

.source-site-masthead {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 8, 10, .72);
}

.source-site-brand {
  color: white;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.source-site-masthead nav {
  display: flex;
  align-items: center;
  gap: 27px;
  color: #85818a;
  font-size: 12px;
}

.source-site-account {
  padding: 9px 13px;
  color: #d8d2da;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-size: 11px;
}

.source-site-search {
  width: min(740px, calc(100% - 64px));
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 28px auto 0;
  padding: 0 16px;
  color: #726d78;
  border: 1px solid rgba(255, 255, 255, .095);
  border-radius: 14px;
  background: #0b0a0e;
  font-size: 12px;
}

.source-site-search > span:first-child { color: #d9d3dd; font-size: 22px; }
.source-site-search kbd { padding: 4px 7px; color: #8c8791; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; font: 10px "IBM Plex Mono", monospace; }

.source-site-window .host-hero {
  width: auto;
  margin: 0;
  padding: 76px 64px 58px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  background:
    radial-gradient(circle at 91% 20%, rgba(255, 79, 163, .16), transparent 27%),
    radial-gradient(circle at 75% 65%, rgba(99, 56, 255, .18), transparent 35%);
}

.source-site-window .host-title {
  max-width: 790px;
  margin-top: 13px;
  color: #f4f0e8;
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 300;
  letter-spacing: -.065em;
  line-height: .98;
}

.source-site-window .host-description { max-width: 650px; color: #9e98a3; font-size: 14px; line-height: 1.7; }
.source-site-window .host-stat { border-color: rgba(255,255,255,.1); background: rgba(10,9,13,.66); }
.source-site-window .host-stat strong { font-weight: 400; }
.source-results-section { padding: 30px 34px 64px; }
.source-site-window .host-toolbar { margin: 0 0 25px; }

.source-site-window .host-filter,
.source-site-window .host-sort {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: #8c8791;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: #17151b;
  font-size: 10.5px;
}

.source-site-window .host-filter.is-active { color: #111015; border-color: var(--v10-paper); background: var(--v10-paper); }
.source-site-window .source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.source-site-window .source-card--static {
  position: relative;
  min-width: 0;
  cursor: default;
  border-color: rgba(255,255,255,.09);
  border-radius: 18px;
  background: #17151b;
  box-shadow: none;
  transform: none;
}

.source-site-window .source-card--static:hover {
  border-color: rgba(255,255,255,.09);
  box-shadow: none;
  transform: none;
}

.source-card-copy { position: relative; min-height: 72px; }
.source-card-index { float: right; color: #625d68; font: 10px "IBM Plex Mono", monospace; }
.source-site-window .source-card h2 { max-width: calc(100% - 28px); font-size: 14px; font-weight: 500; line-height: 1.35; }
.source-site-window .source-card p { color: #8c8791; font-size: 10.5px; line-height: 1.45; }
.cover-art { position: relative; }
.cover-play { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; color: #111015; border-radius: 50%; background: var(--v10-paper); font-size: 10px; }
.source-save-mark { position: absolute; right: 14px; bottom: 14px; width: 27px; height: 27px; display: grid; place-items: center; color: #e7e1eb; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; font-size: 14px; }

.source-editorial {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
  padding: 64px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(145deg, rgba(99,56,255,.14), rgba(255,79,163,.06));
}

.source-editorial > div { padding-right: 36px; }
.source-editorial h2 { max-width: 510px; margin: 10px 0 13px; font-size: 34px; font-weight: 300; letter-spacing: -.045em; line-height: 1.06; }
.source-editorial p { color: #918b97; font-size: 12px; line-height: 1.6; }
.source-editorial article { min-height: 150px; padding: 20px; border: 1px solid rgba(255,255,255,.09); border-radius: 17px; background: rgba(11,10,14,.64); }
.source-editorial article > span { color: var(--v10-pink); font: 10px "IBM Plex Mono", monospace; }
.source-editorial article strong { display: block; margin: 40px 0 8px; font-size: 18px; font-weight: 400; }
.source-site-footer { min-height: 120px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 0 64px; color: #716b77; border-top: 1px solid rgba(255,255,255,.07); font-size: 10px; }
.source-site-footer strong { color: #d6d1d9; font-size: 15px; font-weight: 500; }
.source-site-footer span { text-align: center; }

/* The floating control is draggable, compact and distinct from a status dot. */
.companion { width: 52px; height: 208px; touch-action: none; }
.capture-orb { width: 48px !important; height: 48px !important; cursor: grab; touch-action: none; }
.companion.is-dragging .capture-orb { cursor: grabbing; transform: scale(1.04); }
.companion.is-dragging .dock-actions,
.companion.is-dragging .orb-hint { opacity: 0 !important; pointer-events: none; }

/* Capture window type and targets: compact, but no longer miniature. */
.capture-popover {
  right: 18px;
  bottom: 78px;
  width: 520px;
  height: min(730px, calc(100vh - 100px));
  min-width: 390px;
  min-height: 480px;
  max-width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 92px);
  border-radius: 25px;
  background: rgba(17, 14, 21, .99);
}

.capture-header { padding: 23px 20px 15px 50px; }
.capture-header h1 { margin-top: 3px; font-size: 31px; font-weight: 300; letter-spacing: -.05em; line-height: 1.05; }
.capture-popover .eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .11em; }
.capture-popover .icon-button { width: 38px; height: 38px; }
.capture-resize-handle { width: 36px; height: 36px; }
.mode-row { padding: 0 18px 13px; }
.mode-tab { min-height: 58px; padding: 10px 13px; }
.mode-tab strong { font-size: 15px; font-weight: 500; }
.mode-tab small { margin-top: 2px; font-size: 11.5px; line-height: 1.25; }
.capture-form { padding: 0 18px 18px; }
.capture-popover .detected-card { padding: 17px !important; }
.detected-main { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; margin-top: 12px; }
.mini-art { width: 52px; height: 52px; }
.detected-copy strong { font-size: 15px; font-weight: 500; line-height: 1.35; }
.detected-copy span { margin-top: 4px; color: var(--v10-muted); font-size: 12px; line-height: 1.45; }
.detected-copy { min-width: 0; }
.detected-copy strong,
.detected-copy span { overflow-wrap: anywhere; word-break: break-word; }
.source-chip { padding: 5px 9px; font-size: 10.5px; }
.url-row { margin-top: 11px; padding-top: 10px; font-size: 10.5px; line-height: 1.45; }
.capture-kind-heading > span,
.origin-heading > span { font-size: 13px; font-weight: 500; }
.capture-kind-heading small,
.origin-heading small,
.capture-kind-help { color: var(--v10-dim); font-size: 11px; line-height: 1.45; }
.capture-kind-row { display: flex; flex-wrap: wrap; gap: 7px; overflow: visible; }
.capture-kind-row button { min-height: 36px; padding: 7px 11px; font-size: 11.5px; }
.capture-kind-custom input { min-height: 42px; color: var(--v10-paper) !important; border-color: rgba(255,79,163,.28) !important; background: #120e16 !important; font-size: 13px !important; }
.context-card { padding: 16px; }
.context-heading strong,
.context-card--explore strong { font-size: 16px; font-weight: 500; }
.context-summary,
.context-card p { font-size: 11.5px; line-height: 1.5; }
.compact-field select { min-height: 42px; font-size: 13px !important; }
.field-heading,
.field > span:first-child,
.collaborator-builder > span:first-child { margin-bottom: 7px; font-size: 13px; font-weight: 500; }
.field textarea,
.field input,
.field select,
.metadata-grid input,
.metadata-grid select,
.relationship-row input { min-height: 42px; padding: 10px 12px; font-size: 13px !important; line-height: 1.45; }
.field textarea { min-height: 76px; }
.field--note textarea { min-height: 96px; }
.field--target > span:first-child { font-size: 11.5px; }
.voice-button { min-height: 39px; font-size: 12px; }
#voice-status { font-size: 10.5px; }
.capture-details summary { min-height: 50px; padding: 12px 14px; font-size: 13px; }
.capture-details summary small,
.optional-label { font-size: 10.5px; }
.more-info-section { padding: 18px 15px; }
.more-info-heading strong { font-size: 15px; font-weight: 500; }
.source-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.source-facts > span { min-height: 55px; padding: 9px 10px; }
.source-facts small,
.metadata-grid label span,
.file-label,
.state-fieldset legend { font-size: 10.5px; }
.source-facts strong { font-size: 12px; line-height: 1.35; }
.metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metadata-grid label { min-width: 0; }
.metadata-grid input { width: 100%; }
.microcopy,
.boundary-note,
.file-note,
.field-help { font-size: 10.5px; line-height: 1.55; }
.text-button,
.inline-link { min-height: 30px; font-size: 12px; }
.file-button { min-height: 39px; font-size: 11.5px; }
.button { min-height: 42px; padding: 10px 15px; font-size: 12.5px; }

/* Choices wrap into readable rows instead of a hidden horizontal strip. */
.detected-tags,
.prompt-strip,
.tag-bank-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible;
  padding-bottom: 0;
}

.detected-tags button,
.prompt-strip button,
.tag-bank-list button {
  min-height: 32px;
  padding: 6px 10px;
  color: #b9b2bd;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: #0f0d13;
  font-size: 10.5px;
  font-weight: 400;
}

.detected-tags button.is-selected,
.prompt-strip button.is-selected,
.tag-bank-list button.is-selected {
  color: white;
  border-color: rgba(170,148,255,.48);
  background: rgba(99,56,255,.72);
}

.detected-tags:not(.detected-tags--suggested) button.is-selected::before { content: "✓ "; color: #ddd5ff; }
.tag-bank-grid { display: grid; gap: 8px; margin-top: 12px; }
.tag-bank { overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: #120f16; }
.tag-bank summary { min-height: 40px; display: flex; align-items: center; padding: 9px 11px; color: #c6c0ca; cursor: pointer; font-size: 11.5px; list-style: none; }
.tag-bank summary::-webkit-details-marker { display: none; }
.tag-bank summary::after { content: "+"; margin-left: auto; color: var(--v10-pink-soft); }
.tag-bank[open] summary::after { content: "−"; }
.tag-bank-list { padding: 0 10px 11px; }
.personal-description-field { margin-top: 10px !important; }
.personal-description-field textarea { width: 100%; min-height: 78px; }

.state-choice-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.state-choice span { min-height: 40px; padding: 7px; font-size: 10.5px; line-height: 1.25; }
.file-split { grid-template-columns: 1fr; gap: 11px; }
.file-split > div { padding: 13px; }
.relationship-row { grid-template-columns: 1fr 1fr; gap: 8px; }
.relationship-note-field textarea { min-height: 72px; }

/* Styled selects keep a consistent hierarchy. Custom values appear only on request. */
.choice-field,
.compact-field select,
.field select {
  appearance: none;
  padding-right: 38px !important;
  background-color: var(--v10-field) !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #9b92a2 50%),
    linear-gradient(135deg, #9b92a2 50%, transparent 50%) !important;
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
}

.custom-choice-input:not([hidden]) { display: block; margin-top: 8px; border-color: rgba(255,79,163,.3) !important; background: #120e16 !important; }
[hidden] { display: none !important; }

/* @ mention friend picker. */
.friend-picker-inline { position: relative; display: grid; gap: 8px; }
.friend-suggestions { display: grid; gap: 5px; max-height: 210px; overflow: auto; padding: 6px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: #0f0d13; }
.friend-suggestions button { min-height: 46px; display: grid; grid-template-columns: minmax(90px, .45fr) 1fr; align-items: center; gap: 10px; padding: 8px 10px; text-align: left; color: #ddd7df; border: 1px solid transparent; border-radius: 9px; background: transparent; }
.friend-suggestions button:hover,
.friend-suggestions button.is-selected { border-color: rgba(170,148,255,.3); background: rgba(99,56,255,.12); }
.friend-suggestions b { color: var(--v10-pink-soft); font-size: 11px; font-weight: 500; }
.friend-suggestions span { color: #87808c; font-size: 10.5px; }
.selected-friends { min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.selected-friends small { color: #77707c; font-size: 10.5px; }
.friend-chip { min-height: 31px; padding: 5px 9px; color: #ded6ff; border: 1px solid rgba(170,148,255,.26); border-radius: 999px; background: rgba(99,56,255,.1); font-size: 10.5px; }
.friend-suggestions--modal { margin-top: 12px; }

/* Modal fields use the same readable scale as capture. */
.modal-card { color: var(--v10-paper); background: #151119; }
.modal-header h2 { font-weight: 300; }
.modal-card .field input,
.modal-card .field select,
.modal-card .field textarea { color: var(--v10-paper); border-color: var(--v10-line); background-color: var(--v10-field); font-size: 14px; }
.modal-card .field > span:first-child { color: #c8c0cb; font-size: 12.5px; }
.modal-card .field-help { color: #817986; }

@media (min-width: 650px) {
  .capture-popover[style*="width: 6"],
  .capture-popover[style*="width: 7"] { --wide-capture: 1; }
  .capture-popover[style*="width: 6"] .metadata-grid,
  .capture-popover[style*="width: 7"] .metadata-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capture-popover[style*="width: 6"] .file-split,
  .capture-popover[style*="width: 7"] .file-split { grid-template-columns: 1fr 1.15fr; }
}

@media (max-width: 900px) {
  .source-site-window .source-grid { grid-template-columns: 1fr 1fr; }
  .source-site-window .source-card:last-child { display: none; }
  .source-editorial { grid-template-columns: 1fr 1fr; padding: 42px 34px; }
  .source-editorial > div { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .host-page { width: calc(100% - 24px); min-height: 1300px; padding-top: 52px; }
  .source-site-masthead { grid-template-columns: 1fr auto; padding: 0 18px; }
  .source-site-masthead nav { display: none; }
  .source-site-search { width: calc(100% - 32px); }
  .source-site-window .host-hero { padding: 52px 22px 38px; }
  .source-site-window .host-title { font-size: clamp(42px, 12vw, 60px); }
  .source-results-section { padding: 24px 16px 46px; }
  .source-site-window .source-grid { grid-template-columns: 1fr; }
  .source-site-window .source-card:last-child { display: block; }
  .source-editorial { grid-template-columns: 1fr; padding: 40px 22px; }
  .source-editorial > div { grid-column: auto; padding-right: 0; }
  .source-site-footer { grid-template-columns: 1fr; align-content: center; gap: 8px; padding: 24px; }
  .source-site-footer span { text-align: left; }

  .companion { width: 50px; height: 208px; }
  .capture-orb { width: 48px !important; height: 48px !important; }
  .capture-popover {
    right: 12px;
    bottom: 72px;
    width: calc(100vw - 24px) !important;
    height: calc(100vh - 86px) !important;
    min-width: 0;
    min-height: 430px;
    border-radius: 22px;
  }
  .capture-header { padding: 19px 15px 13px 47px; }
  .capture-header h1 { font-size: 28px; }
  .mode-row,
  .capture-form { padding-left: 13px; padding-right: 13px; }
  .mode-tab { min-height: 56px; }
  .metadata-grid,
  .relationship-row { grid-template-columns: 1fr; }
  .state-choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-form-grid { grid-template-columns: 1fr; }
  .modal-form-grid .field--wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .companion.is-dragging .capture-orb { transform: none; }
}
