/*
  Blushy Review Board — professional polish layer (27 Nov 2026).
  Loaded after styles-v11.css and manual-content.css. Visual only: no layout
  structure, ids or behaviour change. Remove the <link> to revert.
*/

:root {
  --bg: #f7f3f1;
  --surface: #ffffff;
  --surface-soft: #fbf7f6;
  --ink: #1f1a1c;
  --muted: #7b6f71;
  --line: #ebe2df;
  --line-strong: #dccfcb;
  --accent: #9a5f6e;
  --accent-strong: #84475a;
  --accent-soft: #f5e9ec;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(31, 26, 28, 0.04), 0 6px 20px rgba(31, 26, 28, 0.04);
  --shadow-raised: 0 2px 6px rgba(31, 26, 28, 0.06), 0 12px 28px rgba(31, 26, 28, 0.07);
  --press-shadow: 0 2px 8px rgba(31, 26, 28, 0.07);
  --press-shadow-strong: 0 6px 18px rgba(31, 26, 28, 0.09);
  --focus-ring: 0 0 0 3px rgba(154, 95, 110, 0.2);
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.45;
}

/* Subtle press feedback instead of the springy scale. */
button:active,
.nav-card:active,
.version-button:active,
.upload-dropzone:active,
.activity-item.clickable:active,
.product-row a:active {
  transform: translateY(1px);
}

/* ---------- Top bar ---------- */
.welcome-banner {
  min-height: 64px;
  padding: 10px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.welcome-banner::before,
.welcome-banner::after {
  width: 40px;
  margin: 0 16px;
  background: var(--line-strong);
}

.welcome-banner p {
  font-size: 26px;
  color: var(--ink);
}

.profile-toggle,
.activity-toggle {
  min-width: 0;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.profile-toggle {
  border-color: var(--line);
  background: var(--surface);
}

.profile-toggle span,
.activity-toggle span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.profile-toggle strong,
.activity-toggle strong {
  font-size: 13px;
  font-weight: 600;
}

.activity-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.activity-toggle span { color: var(--accent); }
.activity-toggle strong { color: var(--ink); }

.profile-toggle:hover,
.activity-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: var(--press-shadow);
}

.activity-toggle:hover strong { color: var(--ink); }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 20px 16px;
}

.brand {
  gap: 2px;
  margin-bottom: 20px;
}

.brand span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.brand strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.manual-content-toggle {
  min-height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(132, 71, 90, 0.25);
}

.manual-content-toggle:hover {
  background: #74394c;
  border-color: #74394c;
}

.manual-content-toggle > span {
  font-size: 19px;
  line-height: 1;
}

.filters {
  gap: 8px;
}

.filters select,
.filters input,
.secondary-action,
.comment-form input,
.comment-form textarea {
  border-radius: var(--radius-md);
  border-color: var(--line);
  padding: 9px 12px;
  font-size: 14px;
  box-shadow: none;
}

.secondary-action {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.card-list {
  gap: 4px;
}

.nav-group + .nav-group {
  margin-top: 18px;
}

.nav-group-title {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 4px 6px;
}

.nav-group-title strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.nav-group-title span {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.8;
}

.nav-group-items {
  gap: 2px;
}

.nav-card {
  --nav-state: #b8aeb0;
  --nav-state-bg: transparent;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--nav-state-bg);
  box-shadow: inset 4px 0 0 var(--nav-state);
}

/* Status colours (same meaning as before): green approved/downloaded,
   orange needs revision / awaiting check, teal revised, red rejected,
   amber in preparation, grey no decision. */
.nav-card[data-nav-state="decision-approved"],
.nav-card[data-nav-state="download-complete"] { --nav-state: #2f7a4f; --nav-state-bg: #f1f8f3; }
.nav-card[data-nav-state="decision-revision"],
.nav-card[data-nav-state="status-pending_review"] { --nav-state: #c46a12; --nav-state-bg: #fff6ec; }
.nav-card[data-nav-state="decision-revised"],
.nav-card[data-nav-state="status-revised"] { --nav-state: #2f6572; --nav-state-bg: #eef6f7; }
.nav-card[data-nav-state="decision-rejected"] { --nav-state: #a3392f; --nav-state-bg: #fcf0ef; }
.nav-card[data-nav-state="status-output_waiting"] { --nav-state: #c9a464; --nav-state-bg: #fffcf5; }

.nav-card:hover {
  border-color: var(--line-strong);
  background: var(--nav-state-bg);
  box-shadow: inset 4px 0 0 var(--nav-state), var(--press-shadow);
  transform: none;
}

/* Selection: outline + lift, so it never hides the status colour. */
.nav-card.active {
  border-color: var(--accent-strong);
  background: var(--nav-state-bg);
  box-shadow: inset 4px 0 0 var(--nav-state), 0 0 0 2px rgba(132, 71, 90, 0.22), var(--press-shadow);
}

.nav-card-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.nav-card-copy > span {
  font-size: 12px;
}

.nav-status-mark {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.nav-status-mark strong,
.nav-status-mark.status-pending_review strong,
.nav-status-mark.decision-revised strong,
.nav-status-mark.status-revised strong {
  width: 26px;
  height: 26px;
  font-size: 15px;
  font-weight: 800;
}

.nav-status-mark.decision-approved,
.nav-status-mark.download-complete,
.nav-status-mark.decision-revision,
.nav-status-mark.status-pending_review,
.nav-status-mark.decision-revised,
.nav-status-mark.status-revised,
.nav-status-mark.decision-rejected,
.nav-status-mark.status-current,
.nav-status-mark.status-candidate,
.nav-status-mark.status-unknown,
.nav-status-mark.status-output_waiting {
  border: 0;
  background: transparent;
}

.nav-status-mark.status-output_waiting::before {
  width: 22px;
  height: 22px;
  border: 2.5px solid #c9a464;
}

.nav-status-mark.status-output_waiting::after {
  width: 4px;
  height: 4px;
  background: #b48f52;
  box-shadow: -6px 0 0 #b48f52, 6px 0 0 #b48f52;
}

.nav-state-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--nav-state);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag {
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- Detail header ---------- */
.detail {
  gap: 16px 18px;
  padding: 22px 24px;
}

.detail-header {
  margin-bottom: 4px;
  align-items: center;
}

.detail-header p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.detail-header h1 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.status-pill {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border-color: var(--line);
}

/* ---------- Panels ---------- */
.panel {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-title {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.media-main {
  border-right-color: var(--line);
}

.version-list {
  background: var(--surface-soft);
}

.version-button {
  border-radius: var(--radius-md);
  box-shadow: none;
}

.version-button.active {
  box-shadow: 0 0 0 2px rgba(154, 95, 110, 0.22);
}

.version-image-wrap {
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

/* ---------- Decision + download ---------- */
.decision-bar {
  gap: 8px;
  margin: 0 14px 10px;
}

.decision-button {
  min-height: 40px;
  border-radius: var(--radius-md);
  border-color: var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.decision-button:hover {
  box-shadow: none;
  transform: none;
}

.decision-button span {
  opacity: 0.55;
}

.decision-button.active span {
  opacity: 1;
}

.download-button {
  min-height: 46px;
  margin: 0 14px 14px;
  border-radius: var(--radius-md);
  background: var(--ink);
  border-color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 1px 2px rgba(31, 26, 28, 0.2);
}

.download-button span {
  font-size: 18px;
}

.download-button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 4px 14px rgba(132, 71, 90, 0.25);
  transform: none;
}

.download-button:active {
  box-shadow: 0 1px 2px rgba(31, 26, 28, 0.2);
}

.upload-dropzone {
  border-radius: var(--radius-md);
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.upload-dropzone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Review state box ---------- */
.selected-decision-mark {
  padding: 12px 18px;
  background: var(--surface);
}

.decision-mark {
  min-height: 0;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  border-width: 1px;
  border-radius: var(--radius-md);
}

.decision-mark strong,
.decision-mark.decision-revised strong,
.decision-mark.status-revised strong {
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
}

.decision-mark span {
  font-size: 15px;
  font-weight: 650;
}

/* ---------- Products ---------- */
.product-row {
  padding: 13px 18px;
  border-bottom-color: var(--line);
}

.product-row .num {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.product-row strong {
  font-size: 14px;
  font-weight: 600;
}

.product-row span {
  font-size: 11px;
  letter-spacing: 0.06em;
}

.product-row a {
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong);
  border-color: var(--line);
  box-shadow: none;
}

.product-row a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
  transform: none;
}

/* ---------- Comments ---------- */
.comment {
  border-radius: var(--radius-md);
  border-color: var(--line);
}

.comment-form {
  padding: 14px 16px 16px;
}

.comment-form button {
  border-radius: var(--radius-md);
  background: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(132, 71, 90, 0.25);
}

.comment-form button:hover {
  background: #74394c;
}

/* ---------- Layout editor ---------- */
.layout-item-actions button,
.layout-primary-actions button,
.layout-reset,
.layout-background-remove,
.layout-background-upload,
.layout-background-tools input:not([type="range"]):not([type="file"]) {
  border-radius: var(--radius-md);
}

.layout-background-tools,
.layout-source-summary {
  border-radius: var(--radius-lg);
}

.layout-primary-actions button:first-child {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

/* ---------- Modals ---------- */
.profile-modal,
.activity-modal,
.batch-label-modal,
.delete-confirm-modal,
.manual-content-modal {
  border-radius: var(--radius-lg);
  border-color: var(--line);
  box-shadow: 0 24px 60px rgba(31, 26, 28, 0.18);
}

.profile-options button {
  border-radius: var(--radius-md);
}

.manual-content-modal input:not([type="checkbox"]):not([type="file"]),
.manual-content-modal select,
.manual-add-product,
.manual-import-button,
.manual-photo-pick,
.manual-content-footer button {
  border-radius: var(--radius-md);
}

/* ---------- Loading skeleton matches new surfaces ---------- */
.loading-sidebar {
  background: var(--surface);
}

.loading-brand span,
.loading-brand strong,
.loading-control,
.loading-list span,
.loading-title,
.loading-image,
.loading-versions span {
  background: #efe8e5;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; }
}

/* =========================================================
   Emphasis pass (27 Nov 2026): anything the eye must find —
   states, the active decision, the selected item, section
   labels — is high-contrast; everything else stays calm.
   ========================================================= */

:root {
  --muted: #655a5c;
  --approved: #2a7347;
  --revision: #c0650f;
  --revised: #2b6170;
  --failed: #a3392f;
}

/* Section labels in the sidebar read as clear dividers. */
.nav-group-title {
  margin-top: 2px;
  padding: 9px 6px 7px;
  border-bottom: 2px solid var(--ink);
}

.nav-group-title strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.nav-group-title span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  opacity: 1;
}

.nav-card-copy strong {
  font-size: 15px;
  font-weight: 700;
}

.nav-card .mini-status .tag {
  font-weight: 600;
  color: var(--muted);
  border-color: var(--line-strong);
}

.downloaded-badge.nav {
  padding: 2px 7px;
  border: 0;
  border-radius: 999px;
  background: var(--approved);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Page header: what is open, at a glance. */
.detail-header p {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
}

.detail-header h1 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
}

.status-pill {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--line-strong);
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
}

/* Current version state: a strong coloured banner. */
.decision-mark {
  border-width: 1px;
  border-left-width: 6px;
  padding: 12px 16px;
  grid-template-columns: 40px minmax(0, 1fr);
}

.decision-mark strong,
.decision-mark.decision-revised strong,
.decision-mark.status-revised strong {
  width: 38px;
  height: 38px;
  font-size: 19px;
}

.decision-mark span {
  font-size: 17px;
  font-weight: 700;
}

.decision-mark.decision-approved { border-color: var(--approved); }
.decision-mark.decision-revision,
.decision-mark.status-pending_review { border-color: var(--revision); }
.decision-mark.decision-revised,
.decision-mark.status-revised { border-color: var(--revised); }
.decision-mark.decision-rejected { border-color: var(--failed); }
.decision-mark.status-output_waiting { border-color: #c9a464; }

/* Decision buttons: the chosen decision is unmistakable (solid fill). */
.decision-button.approved.active { background: var(--approved); border-color: var(--approved); color: #fff; }
.decision-button.revision.active { background: var(--revision); border-color: var(--revision); color: #fff; }
.decision-button.revised.active { background: var(--revised); border-color: var(--revised); color: #fff; }
.decision-button.rejected.active { background: var(--failed); border-color: var(--failed); color: #fff; }
.decision-button.active span { opacity: 1; }

/* Version thumbnails: state readable from the edge, selection obvious. */
.version-button {
  border-width: 2px;
}

.version-button.active {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(132, 71, 90, 0.25);
}

.version-state {
  font-size: 11px;
  padding: 7px 6px;
}

.downloaded-badge.main,
.downloaded-badge.thumb {
  border: 0;
  border-radius: 999px;
  background: var(--approved);
  color: #fff;
}

.version-number-badge {
  background: var(--ink);
}

/* Products and comments: names first. */
.product-row strong {
  font-size: 14.5px;
  font-weight: 700;
}

.product-row span {
  color: var(--muted);
  font-weight: 600;
}

.comment strong {
  color: var(--accent-strong);
  font-weight: 700;
}

.comment p {
  font-size: 14px;
}

.comment-version {
  font-weight: 700;
}

/* Keyboard focus is always visible. */
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-card:focus-visible,
.version-button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

/* =========================================================
   Open card in the drawer: unmistakable at a glance.
   Burgundy row, white text; the status bar/chip/icon stay.
   ========================================================= */
.nav-card {
  scroll-margin: 48px 0 12px;
}

.nav-card.active,
.nav-card.active:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  box-shadow: inset 6px 0 0 var(--nav-state), 0 6px 18px rgba(132, 71, 90, 0.35);
}

.nav-card.active .nav-card-copy strong { color: #fff; }
.nav-card.active .nav-card-copy > span { color: rgba(255, 255, 255, 0.82); }

.nav-card.active .mini-status .tag {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.nav-card.active .nav-state-chip {
  box-shadow: 0 0 0 1.5px #fff;
}

.nav-card.active .nav-status-mark strong {
  box-shadow: 0 0 0 2px #fff;
}

.nav-card.active .nav-status-mark.status-output_waiting::before { border-color: #fff; }
.nav-card.active .nav-status-mark.status-output_waiting::after {
  background: #fff;
  box-shadow: -6px 0 0 #fff, 6px 0 0 #fff;
}

/* =========================================================
   Narrow widths (Orca split pane, small laptop): same
   structure as wide — drawer stays on the left, banner
   stays one row, nothing jumps above the content.
   ========================================================= */
.welcome-banner { min-height: 64px; }
.loading-overlay { inset: 64px 0 0; }
.loading-shell { min-height: calc(100vh - 64px); }

@media (max-width: 1040px) {
  .shell,
  .loading-shell {
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  }

  .detail {
    padding: 16px;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .shell,
  .loading-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 14px 10px;
  }

  .loading-sidebar {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .nav-card {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 8px 7px 10px;
  }

  .nav-status-mark { width: 26px; height: 26px; }
  .nav-status-mark strong { width: 22px; height: 22px; font-size: 13px; }
}

/* Versions become a horizontal strip under the image instead of a tall list. */
@media (max-width: 900px) {
  .version-list {
    grid-auto-flow: column;
    grid-auto-columns: 118px;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    border-top: 1px solid var(--line);
  }

  .media-panel.single-version .version-list { display: none; }
}

/* Banner: one compact row at every width. */
@media (max-width: 860px) {
  .welcome-banner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
  }

  .welcome-banner::before,
  .welcome-banner::after { display: none; }

  .welcome-banner p {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-toggle,
  .activity-toggle {
    position: static;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    text-align: left;
    transform: none;
  }

  .profile-toggle { order: 0; }
  .activity-toggle { order: 2; }

  .profile-toggle:hover,
  .activity-toggle:hover { transform: none; }

  .loading-overlay { inset: 56px 0 0; }
  .loading-shell { min-height: calc(100vh - 56px); }
}

@media (max-width: 620px) {
  .welcome-banner {
    min-height: 56px;
    padding: 8px 12px;
  }

  .welcome-banner p { font-size: 17px; }

  .loading-overlay { inset: 56px 0 0; }
  .loading-shell { min-height: calc(100vh - 56px); }

  /* Four decisions stay a compact 2×2 grid instead of four stacked rows. */
  .decision-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 12px 10px;
  }

  .image-stage { min-height: 0; }
}

/* Phone width: the drawer sits on top but is capped, so the open card is
   always one short scroll away. */
@media (max-width: 640px) {
  .sidebar {
    max-height: 44vh;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Drawer never scrolls sideways: rows shrink and truncate instead. */
.sidebar { overflow-x: hidden; }

.card-list,
.nav-group,
.nav-group-items,
.nav-card,
.nav-card-copy {
  min-width: 0;
  max-width: 100%;
}

.nav-card { width: 100%; }

.nav-card-copy {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
}

.nav-card-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-card .mini-status {
  flex-wrap: wrap;
  min-width: 0;
}

/* Grid blow-out guard: implicit auto tracks may grow to their content's
   min-content width; pin every drawer grid to the container width. */
.card-list,
.nav-group,
.nav-group-items,
.filters {
  grid-template-columns: minmax(0, 1fr);
}

.nav-group-title {
  min-width: 0;
}

/* =========================================================
   Prestige pass: editorial type, calm motion, refined chrome.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-emphasis: cubic-bezier(0.2, 0.8, 0.2, 1);
  --serif-display: "Playfair Display", "Bodoni 72", Didot, Georgia, serif;
}

::selection { background: rgba(154, 95, 110, 0.22); }

/* Editorial headings. */
.detail-header h1,
.brand strong {
  font-family: var(--serif-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.detail-header h1 { font-size: clamp(28px, 3vw, 38px); }
.brand strong { font-size: 23px; }

.profile-card-header strong,
.manual-content-header h2 {
  font-family: var(--serif-display);
  font-weight: 600;
}

/* One consistent, quiet motion language. */
button,
a,
select,
input,
textarea,
.nav-card,
.version-button,
.upload-dropzone,
.product-row a,
.decision-button,
.panel {
  transition:
    background-color 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    color 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    opacity 220ms var(--ease-out);
}

.manual-content-toggle:hover,
.comment-form button:hover,
.download-button:hover,
.layout-primary-actions button:hover {
  transform: translateY(-1px);
}

.decision-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.decision-button.active {
  animation: decision-confirm 420ms var(--ease-emphasis);
}

@keyframes decision-confirm {
  0% { transform: scale(0.97); }
  60% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.version-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

/* Opening a card: content settles in, never jumps. */
.detail.is-entering > * {
  animation: detail-enter 360ms var(--ease-emphasis) both;
}

.detail.is-entering > *:nth-child(2) { animation-delay: 40ms; }
.detail.is-entering > *:nth-child(3) { animation-delay: 80ms; }
.detail.is-entering > *:nth-child(4) { animation-delay: 120ms; }

@keyframes detail-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Image switch: soft crossfade with a hint of scale. */
.media-main img {
  transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-emphasis), filter 320ms var(--ease-out);
}

.preview-frame.is-image-loading img {
  opacity: 0.2;
  transform: scale(0.985);
  filter: saturate(0.6);
}

.preview-frame.is-image-loading::after {
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Skeleton leaves gracefully. */
.loading-overlay {
  transition: opacity 260ms var(--ease-out);
}

.loading-overlay.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* Dialogs open with depth instead of popping. */
dialog[open] {
  animation: dialog-enter 300ms var(--ease-emphasis);
}

dialog[open]::backdrop {
  background: rgba(31, 26, 28, 0.38);
  backdrop-filter: blur(3px);
  animation: backdrop-enter 300ms var(--ease-out);
}

@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Panels: hairline border plus soft depth. */
.panel {
  box-shadow: 0 1px 1px rgba(31, 26, 28, 0.03), 0 10px 30px rgba(31, 26, 28, 0.05);
}

.panel-title {
  background: linear-gradient(180deg, #ffffff, #fdfbfa);
}

/* Quiet, thin scrollbars. */
.sidebar,
.version-list,
.comments,
.activity-list {
  scrollbar-width: thin;
  scrollbar-color: #d8cbc7 transparent;
}

.sidebar::-webkit-scrollbar,
.version-list::-webkit-scrollbar,
.comments::-webkit-scrollbar { width: 8px; height: 8px; }

.sidebar::-webkit-scrollbar-thumb,
.version-list::-webkit-scrollbar-thumb,
.comments::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #d8cbc7 padding-box;
}

@media (prefers-reduced-motion: reduce) {
  .detail.is-entering > *,
  .decision-button.active,
  dialog[open],
  dialog[open]::backdrop { animation: none !important; }
}

/* No version yet: hide the empty state band under "Ürünler". */
.selected-decision-mark:empty { display: none; }

/* Simplify pass (1 Dec 2026): one state chip per row; no duplicate labels. */
.nav-card .mini-status { gap: 6px; }

.nav-card[data-nav-state="status-output_waiting"] .nav-state-chip,
.nav-card[data-nav-state="status-current"] .nav-state-chip,
.nav-card[data-nav-state="status-candidate"] .nav-state-chip,
.nav-card[data-nav-state="status-unknown"] .nav-state-chip {
  background: #efe6da;
  color: #5d4a2c;
}

.nav-card.active[data-nav-state="status-output_waiting"] .nav-state-chip,
.nav-card.active[data-nav-state="status-current"] .nav-state-chip,
.nav-card.active[data-nav-state="status-candidate"] .nav-state-chip,
.nav-card.active[data-nav-state="status-unknown"] .nav-state-chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
}

/* Version thumbnails: the coloured band on the image is the state. */
.version-button { gap: 4px; }

.version-meta {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

#selectedFilename:empty { display: none; }

/* =========================================================
   Simple content intake ("Yeni İçerik").
   ========================================================= */
.intake-modal {
  width: min(620px, calc(100vw - 24px));
  max-width: none;
  max-height: min(860px, calc(100dvh - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(31, 26, 28, 0.18);
}

.intake-modal form {
  display: flex;
  flex-direction: column;
  max-height: min(860px, calc(100dvh - 24px));
  margin: 0;
}

.intake-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.intake-header h2 {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 600;
}

.intake-header button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.intake-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  overflow: auto;
}

.intake-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.intake-drop {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.intake-drop:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.intake-drop.is-dragging {
  border-color: var(--accent-strong);
  border-style: solid;
  background: var(--accent-soft);
}

.intake-drop textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
}

.intake-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.intake-file {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  animation: detail-enter 260ms var(--ease-emphasis) both;
}

.intake-file img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intake-file button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 26, 28, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.intake-drop-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.intake-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.intake-add:hover { background: var(--accent-soft); }

.intake-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.intake-summary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.intake-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
}

.intake-modal.is-sent .intake-status {
  animation: decision-confirm 420ms var(--ease-emphasis);
}

.intake-history-section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.intake-history {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intake-request {
  --intake-state: #9a8f86;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: inset 4px 0 0 var(--intake-state);
}

.intake-request[data-status="in_progress"] { --intake-state: #c46a12; }
.intake-request[data-status="needs_info"] { --intake-state: #a3392f; }
.intake-request[data-status="done"] { --intake-state: #2f7a4f; }

.intake-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--intake-state);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.intake-request-copy {
  display: grid;
  min-width: 0;
}

.intake-request-copy strong { font-size: 13px; }
.intake-request-copy small { color: var(--muted); font-size: 11px; }
.intake-request-copy em { color: var(--ink); font-size: 12px; font-style: normal; }

.intake-request button {
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.intake-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.intake-footer button {
  min-width: 140px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius-md);
  background: var(--accent-strong);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.intake-footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 540px) {
  .intake-body { padding: 14px; }
  .intake-footer button { width: 100%; }
}
