:root {
  color-scheme: light;
  --forge-charcoal: #2b2523;
  --warm-ember: #c84f32;
  --ember-highlight: #f07a3d;
  --parchment-card: #f7f0e6;
  --soft-background: #eee3d6;
  --canvas-heading: var(--forge-charcoal);
  --canvas-heading-muted: var(--muted-text);
  --steel-border: #c8b8aa;
  --ink-text: #2e2725;
  --muted-text: #625650;
  --smart-teal: #3a8f8a;
  --bg: var(--soft-background);
  --surface: #fffaf3;
  --surface-strong: var(--parchment-card);
  --card-surface: #fff8ee;
  --panel-surface: #fff9f0;
  --surface-warm: #fbf1e4;
  --chip-bg: #f7eadb;
  --chip-border: #cdb9a7;
  --button-primary-top: #ff8648;
  --button-primary-bottom: #c84f32;
  --button-secondary-top: #3a322f;
  --button-secondary-bottom: #221d1b;
  --button-neutral-bg: #fff7ed;
  --button-neutral-hover: #fffaf4;
  --ink: var(--ink-text);
  --muted: var(--muted-text);
  --line: var(--steel-border);
  --line-strong: #ad9785;
  --accent: var(--warm-ember);
  --accent-dark: #873421;
  --danger: #a23535;
  --green: #526f48;
  --blue: var(--smart-teal);
  --shadow: 0 20px 48px rgba(43, 37, 35, 0.16);
  --soft-shadow: 0 12px 28px rgba(43, 37, 35, 0.11);
  --hairline-highlight: rgba(255, 255, 255, 0.62);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(240, 122, 61, 0.12), transparent 280px),
    radial-gradient(circle at bottom right, rgba(58, 143, 138, 0.1), transparent 340px),
    linear-gradient(180deg, rgba(200, 79, 50, 0.06), transparent 250px),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16.5px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 16px 14px 36px;
}

.app-shell.workbench-active > *:not(.fifteen-minute-session) {
  opacity: 0.78;
  filter: saturate(0.86);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.app-shell.workbench-active > .fifteen-minute-session {
  opacity: 1;
  filter: none;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(43, 37, 35, 0.98), rgba(64, 50, 43, 0.94)),
    var(--forge-charcoal);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 260px;
}

.hf-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  color: currentColor;
  vertical-align: -0.18em;
}

.hf-icon * {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.logo-mark {
  flex: 0 0 auto;
  width: clamp(58px, 6vw, 64px);
  height: clamp(58px, 6vw, 64px);
  overflow: visible;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.24);
}

.logo-app-tile {
  stroke: rgba(247, 240, 230, 0.25);
  stroke-width: 1.5;
}

.logo-anvil-top,
.logo-anvil-base {
  fill: #242120;
  stroke: rgba(247, 240, 230, 0.24);
  stroke-width: 1.5;
}

.logo-anvil-foot {
  fill: none;
  stroke: rgba(247, 240, 230, 0.28);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.logo-anvil-highlight {
  fill: none;
  stroke: rgba(255, 246, 230, 0.7);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.logo-flame-outer {
  stroke: rgba(255, 246, 230, 0.38);
  stroke-linejoin: round;
  stroke-width: 1.1;
}

.logo-flame-inner {
  fill: #ffe6a8;
  opacity: 0.92;
}

.logo-ember-line {
  fill: none;
  stroke: rgba(255, 182, 103, 0.86);
  stroke-linecap: round;
  stroke-width: 2;
}

.logo-anvil-foot {
  filter: drop-shadow(0 1px 0 rgba(255, 246, 230, 0.14));
}

.logo-anvil-top,
.logo-anvil-base,
.logo-flame-outer {
  vector-effect: non-scaling-stroke;
}

.logo-spark,
.logo-paint-dot {
  display: none;
}

.logo-spark {
  fill: #ff6a3d;
  stroke: rgba(255, 246, 230, 0.45);
  stroke-width: 0.8;
}

.logo-paint-dot {
  fill: #ffd6bb;
  stroke: var(--parchment-card);
  stroke-width: 1;
}

.brand {
  margin: 0;
  color: var(--parchment-card);
  font-size: 2.08rem;
  line-height: 1;
}

.promise {
  margin: 7px 0 0;
  color: rgba(247, 240, 230, 0.84);
  line-height: 1.35;
}

.subtitle {
  margin: 5px 0 0;
  color: #f6b08a;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.nav-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-row {
  margin-bottom: 18px;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 250, 243, 0.78);
  box-shadow: var(--soft-shadow);
  margin-bottom: 18px;
  padding: 7px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 10px 8px;
  font-size: 0.92rem;
  font-weight: 850;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.nav-icon {
  width: 1.08rem;
  height: 1.08rem;
}

.nav-tab:hover {
  border-color: rgba(200, 79, 50, 0.28);
  background: rgba(255, 250, 243, 0.86);
  color: var(--forge-charcoal);
}

.nav-tab.active {
  border-color: rgba(200, 79, 50, 0.46);
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 18px rgba(200, 79, 50, 0.2);
}

.primary-btn,
.secondary-btn,
.quiet-btn,
.danger-btn {
  min-height: 44px;
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 820;
  line-height: 1.18;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.quiet-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  border: 1px solid rgba(135, 52, 33, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(180deg, var(--button-primary-top), var(--button-primary-bottom));
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 11px 22px rgba(200, 79, 50, 0.27);
}

.primary-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 28px rgba(200, 79, 50, 0.32);
}

.primary-btn:disabled,
.primary-btn[disabled] {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.secondary-btn {
  border: 1px solid rgba(43, 37, 35, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, var(--button-secondary-top), var(--button-secondary-bottom));
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 16px rgba(43, 37, 35, 0.16);
}

.secondary-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 11px 22px rgba(43, 37, 35, 0.2);
}

.quiet-btn {
  border: 1px solid rgba(173, 151, 133, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(247, 236, 223, 0.88)),
    var(--button-neutral-bg);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 5px 12px rgba(43, 37, 35, 0.06);
}

.quiet-btn:hover {
  border-color: rgba(200, 79, 50, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(250, 240, 228, 0.94)),
    var(--button-neutral-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 16px rgba(43, 37, 35, 0.09);
}

.screen-head > .quiet-btn:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  justify-self: stretch;
  width: 100%;
  max-width: 560px;
  border-color: rgba(75, 105, 122, 0.38);
  background:
    linear-gradient(180deg, rgba(236, 244, 247, 0.98), rgba(218, 232, 238, 0.94));
  color: var(--forge-charcoal);
  box-shadow: 0 8px 18px rgba(43, 37, 35, 0.1);
  text-align: left;
}

.screen-head > .quiet-btn:first-child::before {
  content: "\2190";
  font-weight: 900;
}

.screen-head > .quiet-btn:first-child:hover {
  border-color: rgba(58, 143, 138, 0.44);
  background:
    linear-gradient(180deg, rgba(241, 249, 251, 1), rgba(223, 237, 243, 0.98));
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiet-link:hover,
.quiet-link:focus-visible {
  color: var(--warm-ember);
}

.danger-btn {
  border: 1px solid rgba(162, 53, 53, 0.34);
  background: #fff1ec;
  color: var(--danger);
}

.danger-btn:disabled,
.danger-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.project-primary-action {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 13px 25px rgba(200, 79, 50, 0.31);
}

.pin-action-btn {
  border-color: rgba(196, 144, 48, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #886a22, #5f4719);
  color: #fff9ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 9px 18px rgba(99, 71, 25, 0.22);
}

.pin-action-btn:hover {
  border-color: rgba(224, 171, 65, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 22px rgba(99, 71, 25, 0.26);
}

.utility-action-btn {
  border-color: rgba(43, 37, 35, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(236, 228, 217, 0.94));
  color: var(--forge-charcoal);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 14px rgba(43, 37, 35, 0.08);
}

.report-action-btn {
  border-color: rgba(84, 105, 119, 0.32);
  background:
    linear-gradient(180deg, rgba(246, 250, 251, 0.96), rgba(226, 237, 242, 0.86));
  color: #344957;
}

.photo-primary-btn {
  border-color: rgba(31, 118, 134, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #2b8da3, #23697b);
  color: #f6fdff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(35, 105, 123, 0.24);
}

.photo-primary-btn:hover {
  border-color: rgba(31, 118, 134, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 13px 24px rgba(35, 105, 123, 0.28);
}

.photo-secondary-btn,
.photo-role-btn {
  border-color: rgba(31, 118, 134, 0.34);
  background:
    linear-gradient(180deg, rgba(248, 253, 254, 0.98), rgba(228, 244, 247, 0.9));
  color: #245867;
}

.cover-action-btn {
  border-color: rgba(31, 118, 134, 0.38);
}

.final-action-btn {
  border-color: rgba(200, 79, 50, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 249, 244, 0.98), rgba(252, 233, 219, 0.9));
  color: var(--accent-dark);
}

.remove-photo-role-btn,
.project-danger-action {
  border-color: rgba(162, 53, 53, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 248, 245, 0.98), rgba(255, 238, 232, 0.9));
  color: var(--danger);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.coming-btn {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(247, 240, 230, 0.82);
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 700;
}

.project-list {
  display: grid;
  gap: 14px;
}

.notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #b8d3be;
  border-radius: 10px;
  background: #f0fbf2;
  color: var(--green);
  margin-bottom: 12px;
  padding: 11px 12px;
  font-weight: 750;
  line-height: 1.35;
}

.notice.info-notice {
  border-color: rgba(58, 143, 138, 0.28);
  background: rgba(58, 143, 138, 0.08);
  color: #246764;
}

.notice.success-notice,
.notice.pin-notice {
  border-color: #b8d3be;
  background: #f0fbf2;
  color: var(--green);
}

.notice.warning-notice {
  border-color: rgba(200, 79, 50, 0.32);
  background: #fff1ec;
  color: var(--accent-dark);
}

.notice.error-notice {
  border-color: rgba(162, 53, 53, 0.38);
  background: rgba(162, 53, 53, 0.08);
  color: var(--danger);
}

.notice-dismiss {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.62);
  color: inherit;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
}

.bottom-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid #b8d3be;
  border-radius: 12px;
  background: #f0fbf2;
  color: var(--green);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-weight: 850;
  line-height: 1.35;
}

.photoforge-floating-confirmation {
  z-index: 60;
}

.beta-gate-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(240, 122, 61, 0.15), transparent 32rem),
    linear-gradient(180deg, #fffaf2 0%, var(--soft-background) 100%);
}

.beta-gate-card {
  display: grid;
  gap: 16px;
  width: min(100%, 460px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fffbf5;
  color: var(--text);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(43, 37, 35, 0.18);
}

.beta-gate-logo {
  width: clamp(58px, 10vw, 72px);
  height: clamp(58px, 10vw, 72px);
}

.beta-gate-card h1 {
  margin: 0;
  color: var(--forge-charcoal);
  font-size: clamp(1.55rem, 5vw, 2rem);
  letter-spacing: 0;
}

.beta-gate-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.beta-gate-form {
  display: grid;
  gap: 12px;
}

.beta-gate-error {
  border: 1px solid rgba(162, 53, 53, 0.38);
  border-radius: 10px;
  background: rgba(162, 53, 53, 0.08);
  color: var(--danger);
  margin: 0;
  padding: 10px 12px;
  font-weight: 850;
}

.beta-request-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 16px;
}

.beta-request-panel h2 {
  margin: 0;
  color: var(--forge-charcoal);
  font-size: 1.15rem;
}

.beta-request-panel p {
  margin: 0;
}

.beta-request-message {
  border: 1px solid #b8d3be;
  border-radius: 10px;
  background: #f0fbf2;
  color: var(--green);
  padding: 10px 12px;
  font-weight: 850;
}

.beta-request-message.error {
  border-color: rgba(162, 53, 53, 0.38);
  background: rgba(162, 53, 53, 0.08);
  color: var(--danger);
}

.inline-link {
  display: inline;
  min-height: 0;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(43, 37, 35, 0.58);
  padding: 18px;
}

.welcome-modal {
  display: grid;
  gap: 16px;
  width: min(100%, 480px);
  border: 1px solid rgba(247, 240, 230, 0.42);
  border-radius: 16px;
  background: #fffbf5;
  color: var(--text);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(43, 37, 35, 0.32);
}

.welcome-modal .welcome-logo {
  width: 72px;
  height: 72px;
}

.welcome-modal h2 {
  margin: 0;
  color: var(--forge-charcoal);
  font-size: 1.55rem;
}

.welcome-modal p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.feedback-inline-status {
  border: 1px solid #b8d3be;
  border-radius: 10px;
  background: #f0fbf2;
  color: var(--green);
  padding: 12px 14px;
  font-weight: 850;
  line-height: 1.35;
}

.feedback-inline-status.error {
  border-color: rgba(162, 53, 53, 0.38);
  background: rgba(162, 53, 53, 0.08);
  color: var(--danger);
}

.project-card,
.pinned-project-card,
.panel,
.timeline-item,
.data-safety {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 248, 239, 0.18)),
    var(--card-surface);
  box-shadow: var(--soft-shadow);
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px;
  color: inherit;
  text-align: left;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
  transform 140ms ease;
}

.supply-card {
  padding-right: 78px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 247, 237, 0.2)),
    var(--card-surface);
}

.supply-card.has-swatch-stripe {
  overflow: hidden;
  padding-left: 22px;
}

.supply-card.has-swatch-stripe::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--supply-accent, transparent);
  opacity: 0.86;
}

.supply-card.has-swatch-stripe::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--supply-accent, transparent) 9%, transparent), transparent 118px);
  opacity: 0.34;
}

.supply-card.has-swatch-stripe .card-title,
.supply-card.has-swatch-stripe .meta-line,
.supply-card.has-swatch-stripe .info-grid,
.supply-card.has-swatch-stripe .supply-context-summary,
.supply-card.has-swatch-stripe .supply-card-action {
  position: relative;
  z-index: 2;
}

.supply-card .supply-swatch.card-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}

.supply-context-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.supply-context-summary span {
  border: 1px solid rgba(84, 59, 44, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.74);
  color: #554a45;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
}

.supply-context-summary strong {
  color: var(--ink);
  margin-right: 4px;
}

.supply-card-action {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(58, 143, 138, 0.32);
  border-radius: 999px;
  background: rgba(58, 143, 138, 0.1);
  color: #315c5a;
  margin-top: 12px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.project-cover-photo,
.resume-cover-photo,
.project-detail-cover-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 14px;
}

.project-cover-photo {
  aspect-ratio: 16 / 10;
}

.project-cover-photo.compact {
  aspect-ratio: 16 / 9;
}

.resume-cover-photo,
.project-detail-cover-photo {
  aspect-ratio: 16 / 8;
}

.project-cover-photo img,
.resume-cover-photo img,
.project-detail-cover-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover-photo .cover-pill,
.resume-cover-photo .cover-pill,
.project-detail-cover-photo .cover-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  box-shadow: 0 8px 18px rgba(43, 37, 35, 0.16);
}

.cover-photo-controls {
  display: grid;
  gap: 10px;
  margin: -2px 0 16px;
}

.project-detail-cover-photo + .cover-photo-controls {
  margin-top: -4px;
}

.photoforge-actions-panel,
.photoforge-role-guide {
  border: 1px solid rgba(58, 143, 138, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(58, 143, 138, 0.08)),
    rgba(255, 250, 243, 0.78);
  padding: 12px;
}

.photoforge-actions-copy {
  display: grid;
  gap: 4px;
}

.photoforge-actions-copy .section-title {
  margin-bottom: 2px;
}

.photoforge-actions-copy .helper-text {
  margin: 0;
}

.photoforge-empty-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photoforge-empty-hints span {
  border: 1px dashed rgba(173, 151, 133, 0.6);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 6px 9px;
}

.photo-rotation-controls {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(58, 143, 138, 0.28);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.68);
  padding: 10px;
}

.photo-rotation-preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  overflow: hidden;
  border: 1px solid rgba(74, 64, 57, 0.12);
  border-radius: 8px;
  background: rgba(53, 42, 37, 0.05);
}

.photo-rotation-preview img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  transition: transform 0.16s ease;
}

.photo-rotation-action-row {
  gap: 8px;
}

.photoforge-action-row {
  align-items: center;
}

.final-showcase-panel {
  display: grid;
  gap: 12px;
  border-color: rgba(58, 143, 138, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(58, 143, 138, 0.08)),
    rgba(255, 250, 243, 0.86);
}

.final-showcase-empty {
  border-style: dashed;
}

.final-showcase-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
  text-align: left;
}

.final-showcase-photo img {
  display: block;
  width: 100%;
  max-height: 520px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.final-showcase-photo .pill {
  position: absolute;
  bottom: 10px;
  box-shadow: 0 8px 18px rgba(43, 37, 35, 0.16);
}

.final-showcase-photo .final-pill {
  left: 10px;
}

.final-showcase-photo .cover-pill {
  left: 78px;
}

.final-showcase-photo .cover-pill,
.final-showcase-photo .final-pill,
.photo-timeline-item .cover-pill,
.photo-timeline-item .final-pill,
.entry-photo-button .photo-type-label {
  border-color: rgba(255, 250, 242, 0.84);
  background: rgba(31, 28, 26, 0.9);
  color: #fffaf2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  box-shadow: 0 8px 20px rgba(31, 28, 26, 0.24);
}

.project-card:hover {
  border-color: rgba(200, 79, 50, 0.34);
  box-shadow:
    0 18px 42px rgba(43, 37, 35, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.38) inset;
  transform: translateY(-1px);
}

.recipe-card {
  padding-left: 22px;
  overflow: hidden;
  border-color: rgba(167, 154, 143, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 247, 237, 0.2)),
    var(--card-surface);
}

.recipe-card::before,
.recipe-detail-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--recipe-accent, #a79a8f);
  opacity: 0.9;
}

.recipe-card::after,
.recipe-detail-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--recipe-accent, #a79a8f) 10%, transparent), transparent 120px);
  opacity: 0.36;
}

.recipe-card .card-title,
.recipe-card .meta-line,
.recipe-card .info-grid,
.recipe-card .recipe-palette-strip,
.recipe-card .recipe-card-summary,
.recipe-card .recipe-card-action {
  position: relative;
  z-index: 2;
}

.recipe-card-summary,
.recipe-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.recipe-card-summary span,
.recipe-detail-summary span {
  border: 1px solid rgba(84, 59, 44, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.74);
  color: #554a45;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
}

.recipe-card-summary strong,
.recipe-detail-summary strong {
  color: var(--ink);
  margin-right: 4px;
}

.linked-project-context-card {
  gap: 10px;
}

.linked-project-context-card .project-card-head {
  align-items: center;
}

.recipe-card-action {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(58, 143, 138, 0.32);
  border-radius: 999px;
  background: rgba(58, 143, 138, 0.1);
  color: #315c5a;
  margin-top: 12px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.recipe-card:hover {
  border-color: var(--recipe-accent, rgba(200, 79, 50, 0.34));
  box-shadow: 0 18px 36px rgba(43, 37, 35, 0.13);
}

.recipe-card:focus-visible {
  border-color: var(--recipe-accent, rgba(58, 143, 138, 0.34));
}

.recipe-detail-panel {
  position: relative;
  overflow: hidden;
}

.recipe-detail-panel .detail-title,
.recipe-detail-panel .meta-line,
.recipe-detail-panel .recipe-palette-strip,
.recipe-detail-panel .info-grid,
.recipe-detail-panel .recipe-detail-summary {
  position: relative;
  z-index: 2;
}

.pinned-project-card {
  padding: 16px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.pinned-project-card:hover,
.photo-card:hover,
.technique-guide-card:hover {
  border-color: rgba(200, 79, 50, 0.28);
  box-shadow: var(--shadow);
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.project-card:focus-visible,
.nav-tab:focus-visible,
.quiet-link:focus-visible,
.notice-dismiss:focus-visible,
.entry-photo-button:focus-visible,
.photo-timeline-item:focus-visible,
.recipe-supply-option:focus-visible,
.recipe-supply-toggle:focus-visible,
.used-in-recipe-row:focus-visible,
.project-optional-details summary:focus-visible,
.beta-test-checklist summary:focus-visible,
details summary:focus-visible,
a:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.quiet-btn:focus-visible,
.danger-btn:focus-visible,
.coming-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 103, 100, 0.72);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 250, 243, 0.86);
}

.card-title,
.detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--forge-charcoal);
  font-size: 1.26rem;
  font-weight: 900;
  line-height: 1.22;
}

.title-icon {
  color: var(--accent);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(247, 234, 219, 0.86)),
    var(--chip-bg);
  color: #4d3b33;
  padding: 5px 11px;
  font-size: 0.84rem;
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 2px 5px rgba(43, 37, 35, 0.05);
}

.pill-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.pill.stage {
  border-color: rgba(58, 143, 138, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(58, 143, 138, 0.13));
  color: #246764;
}

.pill.status {
  border-color: rgba(82, 111, 72, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(82, 111, 72, 0.12));
  color: var(--green);
}

.pill.low {
  border-color: rgba(200, 79, 50, 0.28);
  background: #fff1ec;
  color: var(--accent-dark);
}

.pill.pinned {
  border-color: rgba(240, 122, 61, 0.36);
  background: rgba(240, 122, 61, 0.14);
  color: var(--accent-dark);
}

.pill.material {
  border-color: rgba(43, 37, 35, 0.22);
  background: rgba(43, 37, 35, 0.08);
  color: var(--ink);
}

.pill.reminder {
  border-color: rgba(200, 79, 50, 0.34);
  background: #fff1ec;
  color: var(--accent-dark);
}

.pill.deadline-pill {
  border-color: rgba(58, 143, 138, 0.3);
  background: rgba(58, 143, 138, 0.1);
  color: #246764;
}

.pill.deadline-pill.close,
.pill.deadline-pill.due-today {
  border-color: rgba(240, 122, 61, 0.36);
  background: rgba(240, 122, 61, 0.14);
  color: var(--accent-dark);
}

.pill.deadline-pill.overdue {
  border-color: rgba(162, 53, 53, 0.36);
  background: rgba(162, 53, 53, 0.08);
  color: var(--danger);
}

.deadline-card {
  border-color: rgba(58, 143, 138, 0.24);
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(236, 246, 242, 0.72));
}

.pill.cover-pill {
  border-color: rgba(240, 122, 61, 0.42);
  background: rgba(240, 122, 61, 0.16);
  color: var(--accent-dark);
}

.pill.effect-cue-pill {
  --effect-cue-color: var(--smart-teal);
  border-color: color-mix(in srgb, var(--effect-cue-color) 36%, rgba(43, 37, 35, 0.18));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), color-mix(in srgb, var(--effect-cue-color) 13%, #f7f0e6));
  color: var(--forge-charcoal);
  font-style: italic;
}

.effect-cue-prefix {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: color-mix(in srgb, var(--effect-cue-color) 60%, var(--muted));
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.effect-cue-mark {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
}

.effect-cue-mark::before,
.effect-cue-mark::after {
  content: "";
  position: absolute;
  display: block;
}

.effect-cue-mark::before {
  inset: 0.2rem;
  border-radius: 999px;
  background: var(--effect-cue-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--effect-cue-color) 14%, transparent);
}

.effect-blood {
  --effect-cue-color: #b82024;
}

.effect-blood .effect-cue-mark::before {
  inset: 0.1rem 0.24rem 0.18rem;
  border-radius: 60% 60% 70% 70%;
  background: var(--effect-cue-color);
  transform: rotate(45deg);
}

.effect-glow {
  --effect-cue-color: #31b8b8;
}

.effect-glow .effect-cue-mark::before {
  inset: 0.18rem;
  border: 2px solid var(--effect-cue-color);
  border-radius: 999px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--effect-cue-color) 18%, transparent);
}

.effect-glow .effect-cue-mark::after {
  top: 0;
  left: 0.42rem;
  width: 0.08rem;
  height: 100%;
  background: var(--effect-cue-color);
  transform: rotate(45deg);
  opacity: 0.75;
}

.effect-gem {
  --effect-cue-color: #d8374f;
}

.effect-gem .effect-cue-mark::before {
  inset: 0.16rem 0.18rem;
  border: 2px solid var(--effect-cue-color);
  transform: rotate(45deg);
}

.effect-oxide {
  --effect-cue-color: #2da6a2;
}

.effect-rust {
  --effect-cue-color: #b65b28;
}

.effect-wash {
  --effect-cue-color: #5d4b41;
}

.effect-oxide .effect-cue-mark::before,
.effect-rust .effect-cue-mark::before,
.effect-wash .effect-cue-mark::before,
.effect-mud .effect-cue-mark::before {
  inset: 0.15rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 38%, var(--effect-cue-color) 0 18%, transparent 20%),
    radial-gradient(circle at 60% 30%, var(--effect-cue-color) 0 13%, transparent 15%),
    radial-gradient(circle at 48% 68%, var(--effect-cue-color) 0 20%, transparent 22%);
}

.effect-snow {
  --effect-cue-color: #9fc8df;
}

.effect-snow .effect-cue-mark::before {
  inset: 0.08rem 0.42rem;
  border-radius: 2px;
  background: var(--effect-cue-color);
}

.effect-snow .effect-cue-mark::after {
  inset: 0.42rem 0.08rem;
  border-radius: 2px;
  background: var(--effect-cue-color);
}

.effect-crackle {
  --effect-cue-color: #8f5a33;
}

.effect-crackle .effect-cue-mark::before {
  inset: 0.12rem;
  border-left: 2px solid var(--effect-cue-color);
  border-bottom: 2px solid var(--effect-cue-color);
  transform: skew(-18deg) rotate(-12deg);
}

.effect-mud {
  --effect-cue-color: #6b4428;
}

.effect-medium {
  --effect-cue-color: #8ab8c6;
}

.effect-medium .effect-cue-mark::before {
  inset: 0.12rem 0.27rem 0.18rem;
  border: 2px solid var(--effect-cue-color);
  border-radius: 60% 60% 70% 70%;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(45deg);
}

.effect-texture {
  --effect-cue-color: #8a6b3d;
}

.effect-texture .effect-cue-mark::before {
  inset: 0.1rem;
  border-radius: 4px;
  background:
    radial-gradient(circle at 25% 30%, var(--effect-cue-color) 0 10%, transparent 12%),
    radial-gradient(circle at 60% 38%, var(--effect-cue-color) 0 12%, transparent 14%),
    radial-gradient(circle at 45% 75%, var(--effect-cue-color) 0 10%, transparent 12%);
}

.effect-metallic {
  --effect-cue-color: #8a9297;
}

.effect-metallic .effect-cue-mark::before {
  inset: 0.13rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), transparent 42%),
    linear-gradient(135deg, #6f777d, #d5dde1 48%, #7a8288);
}

.effect-varnish {
  --effect-cue-color: #6f9ea7;
}

.effect-varnish .effect-cue-mark::before {
  inset: 0.13rem 0.24rem 0.18rem;
  border: 2px solid var(--effect-cue-color);
  border-radius: 60% 60% 70% 70%;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}

.pill.final-pill {
  border-color: rgba(58, 143, 138, 0.36);
  background: rgba(58, 143, 138, 0.14);
  color: #246764;
}

.recipe-badge-row {
  align-items: center;
}

.clone-recipe-helper {
  margin: 8px 0 0;
}

.pill.recipe-category-pill {
  border-color: color-mix(in srgb, var(--recipe-accent, #a79a8f) 42%, rgba(43, 37, 35, 0.18));
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.96), color-mix(in srgb, var(--recipe-accent, #a79a8f) 14%, #f7f0e6));
  color: var(--forge-charcoal);
}

.pill.recipe-category-pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(43, 37, 35, 0.16);
  border-radius: 999px;
  background: var(--recipe-accent, #a79a8f);
  box-shadow: 0 1px 3px rgba(43, 37, 35, 0.14);
}

.pill.recipe-step-pill {
  border-color: rgba(58, 143, 138, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(58, 143, 138, 0.12));
  color: #246764;
}

.pill.recipe-status-pill {
  border-color: rgba(240, 122, 61, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(240, 122, 61, 0.13));
  color: var(--accent-dark);
}

.pill.recipe-linked-pill {
  border-color: rgba(43, 37, 35, 0.18);
  background: rgba(43, 37, 35, 0.06);
  color: var(--muted);
}

.pill.supply-usage-pill {
  border-color: rgba(58, 143, 138, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(58, 143, 138, 0.11));
  color: #246764;
}

.pill.supply-usage-pill.muted {
  border-color: rgba(43, 37, 35, 0.14);
  background: rgba(43, 37, 35, 0.05);
  color: var(--muted);
}

.pill.supply-role-pill {
  color: #4d4038;
  border-color: rgba(97, 77, 62, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 246, 232, 0.95), rgba(235, 223, 207, 0.88));
}

.supply-setup-note {
  padding: 14px 18px;
}

.supply-setup-note .helper-text {
  margin: 0;
}

.supply-scan-panel {
  display: grid;
  gap: 12px;
}

.supply-scan-tips,
.supply-scan-photo-tip,
.supply-scan-status,
.supply-scan-review-summary,
.supply-scan-candidates,
.supply-scan-matches {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(92, 73, 58, 0.18);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.72);
}

.supply-scan-tips strong,
.supply-scan-photo-tip strong,
.supply-scan-status strong,
.supply-scan-review-summary h3,
.supply-scan-candidates h3,
.supply-scan-matches h3 {
  margin: 0;
  color: var(--forge-charcoal);
  font-size: 1rem;
}

.supply-scan-tips ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.supply-scan-photo-tip {
  border-left: 4px solid rgba(58, 143, 138, 0.74);
  background: rgba(236, 247, 244, 0.58);
}

.supply-scan-photo-tip p {
  margin: 0;
}

.supply-scan-status {
  border-left: 4px solid rgba(58, 143, 138, 0.7);
}

.supply-scan-status.reading {
  border-left-color: rgba(61, 91, 96, 0.72);
}

.supply-scan-status.success {
  border-left-color: rgba(82, 111, 72, 0.74);
}

.supply-scan-status.warning {
  border-left-color: rgba(240, 122, 61, 0.82);
}

.supply-scan-status.error {
  border-left-color: rgba(162, 53, 53, 0.82);
}

.supply-scan-status p,
.supply-scan-review-summary .helper-text,
.supply-scan-candidates .helper-text,
.supply-scan-matches .helper-text {
  margin: 0;
}

.supply-scan-barcode-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(58, 143, 138, 0.24);
  border-left: 4px solid rgba(82, 111, 72, 0.74);
  border-radius: 10px;
  background: rgba(244, 250, 239, 0.76);
}

.supply-scan-barcode-summary.match {
  border-left-color: rgba(240, 122, 61, 0.86);
  background: rgba(255, 242, 226, 0.82);
}

.supply-scan-barcode-summary strong,
.supply-scan-match-name {
  color: var(--forge-charcoal);
  font-weight: 900;
}

.supply-scan-barcode-summary p {
  margin: 3px 0 0;
}

.supply-scan-barcode-value {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(61, 91, 96, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.supply-scan-barcode-summary button {
  justify-self: start;
}

.supply-scan-preview {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.supply-scan-preview img {
  width: min(100%, 420px);
  max-height: min(320px, 46vh);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--soft-shadow);
}

.supply-scan-crop-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(92, 73, 58, 0.18);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.72);
  padding: 12px;
}

.supply-scan-crop-card h3 {
  margin: 0 0 4px;
  color: var(--forge-charcoal);
  font-size: 1rem;
}

.supply-scan-crop-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: min(100%, 520px);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(43, 37, 35, 0.08);
}

.supply-scan-crop-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 160ms ease;
}

.supply-scan-crop-box {
  position: absolute;
  border: 2px dashed rgba(200, 79, 50, 0.82);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(43, 37, 35, 0.22);
  pointer-events: none;
}

.supply-scan-crop-actions {
  gap: 8px;
}

.supply-scan-clean-suggestion {
  display: grid;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(61, 91, 96, 0.22);
  border-radius: 10px;
  background: rgba(236, 247, 244, 0.68);
}

.supply-scan-clean-suggestion strong {
  color: var(--forge-charcoal);
}

.supply-scan-clean-suggestion .helper-text,
.supply-scan-clean-text {
  margin: 0;
}

.supply-scan-clean-text {
  padding: 8px 10px;
  border: 1px solid rgba(92, 73, 58, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.86);
  color: var(--text);
}

.supply-scan-candidate-list {
  display: grid;
  gap: 8px;
}

.supply-scan-candidate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(92, 73, 58, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.82);
}

.supply-scan-candidate-row > div {
  min-width: 0;
}

.supply-scan-candidate-row .action-row {
  flex-wrap: wrap;
}

.supply-scan-candidate-row p {
  margin: 0;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.supply-scan-candidate-row .helper-text,
.supply-scan-match-name {
  overflow-wrap: anywhere;
}

.supply-scan-candidate-row.barcode-match {
  border-color: rgba(240, 122, 61, 0.38);
  background: rgba(255, 246, 235, 0.92);
}

.supply-scan-candidate-row.barcode-match .meta-line {
  margin-top: 6px;
}

.supply-scan-candidate-source {
  display: inline-flex;
  margin-bottom: 5px;
  background: rgba(58, 143, 138, 0.12);
  color: var(--forge-charcoal);
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .supply-scan-panel {
    gap: 10px;
  }

  [data-form="supply-scan"] > .action-row {
    align-items: stretch;
  }

  [data-form="supply-scan"] > .action-row button {
    flex: 1 1 100%;
  }

  .supply-scan-preview {
    justify-items: stretch;
  }

  .supply-scan-preview img {
    width: 100%;
    max-height: 34vh;
  }

  .supply-scan-crop-frame {
    width: min(100%, 520px);
  }

  .supply-scan-crop-actions button {
    flex: 1 1 140px;
  }

  .supply-scan-barcode-summary {
    grid-template-columns: 1fr;
  }

  .supply-scan-barcode-value {
    width: fit-content;
  }

  .supply-scan-barcode-summary button {
    width: 100%;
  }

  .supply-scan-candidate-row {
    align-items: stretch;
    flex-direction: column;
  }

  .supply-scan-candidate-row .action-row {
    align-items: stretch;
  }

  .supply-scan-candidate-row .action-row button {
    flex: 1 1 100%;
  }
}

.workbench-supply-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed rgba(61, 91, 96, 0.24);
  border-radius: 8px;
  background: rgba(243, 237, 225, 0.58);
}

.next-step-stage-warning,
.stage-review-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}

.next-step-stage-warning[hidden],
.stage-review-prompt[hidden] {
  display: none;
}

.recipe-palette-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 2px;
}

.recipe-palette-strip.detail {
  margin: 14px 0 4px;
}

.recipe-palette-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(43, 37, 35, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 48%),
    var(--recipe-swatch-color, #d8cbbd);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.42),
    0 3px 8px rgba(43, 37, 35, 0.12);
}

.recipe-palette-strip.detail .recipe-palette-swatch {
  width: 23px;
  height: 23px;
}

.recipe-supply-picker {
  display: grid;
  gap: 6px;
}

.recipe-supply-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  border-color: rgba(43, 37, 35, 0.34);
  background:
    linear-gradient(180deg, rgba(70, 60, 55, 0.98), rgba(43, 37, 35, 0.96)),
    var(--forge-charcoal);
  color: #fffaf2;
  box-shadow:
    0 7px 16px rgba(43, 37, 35, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.recipe-supply-toggle:hover,
.recipe-supply-toggle:focus-visible {
  border-color: rgba(240, 122, 61, 0.72);
  background:
    linear-gradient(180deg, rgba(90, 76, 69, 0.98), rgba(52, 45, 41, 0.98)),
    var(--forge-charcoal);
  box-shadow:
    0 9px 20px rgba(43, 37, 35, 0.2),
    0 0 0 3px rgba(240, 122, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.recipe-supply-toggle.is-open {
  border-color: rgba(58, 143, 138, 0.68);
  background:
    linear-gradient(180deg, rgba(58, 143, 138, 0.96), rgba(38, 113, 109, 0.96)),
    var(--smart-teal);
  color: #fffdf8;
}

.recipe-supply-picker-helper {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.recipe-supply-picker-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(58, 143, 138, 0.24);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.8);
  padding: 11px;
}

.recipe-supply-picker-panel[hidden] {
  display: none;
}

.recipe-supply-current {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(58, 143, 138, 0.24);
  border-radius: 10px;
  background: rgba(58, 143, 138, 0.08);
  padding: 10px;
}

.recipe-supply-current .label {
  color: var(--smart-teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.recipe-supply-current-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.recipe-supply-current-text {
  color: var(--muted);
  font-weight: 800;
}

.recipe-supply-replace-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.recipe-supply-picker-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
}

.recipe-supply-picker-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.recipe-supply-clear.is-hidden {
  display: none;
}

.recipe-supply-picker-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.recipe-supply-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 250, 243, 0.9);
  color: var(--ink);
  padding: 9px;
  text-align: left;
}

.recipe-supply-option.is-filtered-out {
  display: none;
}

.recipe-supply-option.is-current {
  border-color: rgba(58, 143, 138, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(58, 143, 138, 0.12)),
    rgba(255, 250, 243, 0.92);
}

.recipe-supply-option:hover,
.recipe-supply-option:focus-visible {
  border-color: rgba(58, 143, 138, 0.42);
  box-shadow: 0 8px 18px rgba(43, 37, 35, 0.08);
}

.recipe-supply-option-swatch,
.recipe-step-supply-swatch {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(43, 37, 35, 0.28);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 48%),
    var(--swatch-color, #d8cbbd);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.42);
}

.recipe-supply-option-swatch.placeholder {
  background: linear-gradient(135deg, #fffaf2, #ded2c2);
}

.recipe-supply-option-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.recipe-supply-option-main strong,
.recipe-supply-option-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-supply-option-main span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.recipe-supply-picker-empty {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.recipe-supply-picker-empty[hidden] {
  display: none;
}

.recipe-supply-picker-empty strong {
  color: var(--ink);
}

.recipe-supply-picker-empty span {
  color: var(--muted);
  font-size: 0.92rem;
}

.recipe-step-supply-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.recipe-step-supply-swatch {
  width: 20px;
  height: 20px;
  border-radius: 999px;
}

.info-grid {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.linked-recipe-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.linked-recipes-actions {
  margin-top: 13px;
}

.supply-used-in-panel {
  display: grid;
  gap: 14px;
}

.used-in-section {
  display: grid;
  gap: 10px;
}

.used-in-section h4 {
  margin: 0;
  color: var(--forge-charcoal);
  font-size: 0.98rem;
}

.used-in-recipe-row {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(200, 184, 170, 0.58);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.72);
  padding: 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.used-in-recipe-row:hover,
.used-in-recipe-row:focus-visible {
  border-color: rgba(58, 143, 138, 0.34);
  box-shadow: 0 8px 18px rgba(43, 37, 35, 0.08);
}

.used-in-recipe-title {
  color: var(--forge-charcoal);
  font-weight: 900;
}

.supply-dedupe-panel {
  display: block;
}

.supply-dedupe-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  cursor: pointer;
  list-style-position: inside;
}

.supply-dedupe-summary .helper-text {
  display: block;
  margin: 4px 0 0;
}

.supply-dedupe-body {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.supply-dedupe-list {
  display: grid;
  gap: 14px;
}

.supply-dedupe-pair {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(154, 96, 64, 0.24);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.76);
  padding: 14px;
  min-width: 0;
}

.supply-dedupe-comparison {
  display: grid;
  gap: 12px;
}

.supply-dedupe-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(200, 184, 170, 0.6);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  padding: 12px;
  min-width: 0;
}

.supply-dedupe-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.supply-dedupe-card-head h3 {
  margin: 0 0 6px;
  color: var(--forge-charcoal);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.supply-dedupe-pair-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.supply-dedupe-pair .meta-line,
.supply-dedupe-card .meta-line,
.supply-merge-final-summary .info-grid,
.supply-merge-impact .helper-text {
  overflow-wrap: anywhere;
}

.supply-merge-panel,
.supply-merge-form,
.supply-merge-differences,
.supply-merge-undo-panel {
  display: grid;
  gap: 14px;
}

.supply-merge-choice-card.is-selected {
  border-color: rgba(58, 143, 138, 0.58);
  box-shadow: 0 10px 24px rgba(58, 143, 138, 0.12);
}

.supply-merge-originals,
.supply-merge-impact,
.supply-merge-final-summary,
.supply-merge-backup-gate {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(200, 184, 170, 0.58);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.7);
  padding: 12px;
}

.supply-merge-originals p,
.supply-merge-backup-gate p {
  margin: 0;
}

.supply-merge-impact h3,
.supply-merge-final-summary h3,
.supply-merge-backup-gate h3 {
  margin: 0;
  color: var(--forge-charcoal);
  font-size: 1rem;
}

.info-row {
  display: grid;
  gap: 4px;
}

.important-reminder-box {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(200, 79, 50, 0.38);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: #fff1ec;
  margin-top: 15px;
  padding: 12px 14px;
}

.important-reminder-box .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.important-reminder-box .value {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
}

.project-card .info-row,
.pinned-project-card .info-row,
.photo-card .info-row,
.timeline-item .info-row {
  border-top: 1px solid rgba(200, 184, 170, 0.42);
  padding-top: 10px;
}

.project-card .info-row:first-child,
.pinned-project-card .info-row:first-child,
.photo-card .info-row:first-child,
.timeline-item .info-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.label {
  color: #554a45;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.value {
  color: var(--ink);
  line-height: 1.52;
}

.mistake-row {
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  background: rgba(162, 53, 53, 0.07);
  padding: 8px 10px;
}

.mistake-row .label,
.mistake-row .value {
  color: var(--danger);
}

.next-step-highlight {
  border: 1px solid rgba(200, 79, 50, 0.2);
  border-left: 5px solid var(--accent);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(200, 79, 50, 0.12), rgba(255, 250, 243, 0.72));
  padding: 10px 12px;
}

.next-step-highlight .label {
  color: var(--accent-dark);
}

.next-step-highlight .value {
  font-weight: 760;
}

.supply-card-title-row,
.supply-detail-head,
.swatch-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.supply-card-title-row {
  margin-bottom: 8px;
}

.supply-card-title-row .card-title,
.supply-detail-head .detail-title {
  margin: 0;
}

.effect-cue-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.supply-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(43, 37, 35, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 48%),
    var(--swatch-color, #d8cbbd);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 10px rgba(43, 37, 35, 0.12);
}

.supply-swatch.card-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-color: rgba(43, 37, 35, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(43, 37, 35, 0.16);
}

.supply-swatch.large {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.supply-swatch.placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(200, 184, 170, 0.34) 0 5px,
      rgba(247, 240, 230, 0.7) 5px 10px
    );
}

.swatch-field {
  gap: 8px;
}

.swatch-input-row input[type="color"] {
  width: 52px;
  min-height: 44px;
  padding: 3px;
}

.swatch-input-row input[type="text"] {
  flex: 1;
  min-width: 0;
}

.screen-head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.screen-head > .detail-title {
  color: var(--canvas-heading);
  text-shadow: none;
}

.screen-head > .detail-title .title-icon {
  color: var(--accent);
  filter: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.resume-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(84, 59, 44, 0.5);
  background:
    radial-gradient(circle at top left, rgba(43, 37, 35, 0.16), transparent 240px),
    radial-gradient(circle at bottom right, rgba(200, 79, 50, 0.16), transparent 260px),
    linear-gradient(135deg, rgba(116, 79, 53, 0.2), rgba(255, 244, 226, 0.88) 44%, rgba(232, 209, 183, 0.82)),
    #ead2b5;
  box-shadow:
    0 22px 52px rgba(43, 37, 35, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 12px 28px rgba(255, 255, 255, 0.22);
  margin-bottom: 14px;
}

.resume-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 28px rgba(43, 37, 35, 0.14),
    inset 8px 0 18px rgba(84, 59, 44, 0.1),
    inset -8px 0 18px rgba(84, 59, 44, 0.08);
}

.resume-card > * {
  position: relative;
  z-index: 1;
}

.resume-command-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 12px;
}

.resume-command-summary {
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid rgba(84, 59, 44, 0.22);
  border-radius: 12px;
  background: rgba(255, 250, 243, 0.58);
  padding: 13px;
}

.resume-command-head .resume-command-summary:only-child {
  grid-column: 1 / -1;
}

.resume-project-link {
  justify-content: flex-start;
  color: var(--forge-charcoal);
  font-size: 1.36rem;
  font-weight: 950;
  line-height: 1.12;
  text-align: left;
}

.resume-primary-actions {
  margin-top: 4px;
}

.resume-next-step {
  margin-top: 14px;
}

.resume-card .aurora-advisory,
.resume-card .fifteen-minute-session.compact {
  background: rgba(255, 253, 249, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(43, 37, 35, 0.08);
}

.clickable-cover {
  cursor: pointer;
  padding: 0;
  width: 100%;
}

.clickable-cover:focus-visible {
  outline: 3px solid rgba(58, 143, 138, 0.34);
  outline-offset: 3px;
}

.smart-suggestions {
  border-color: rgba(58, 143, 138, 0.42);
  background:
    linear-gradient(135deg, rgba(58, 143, 138, 0.13), rgba(255, 250, 243, 0.94)),
    var(--surface);
  box-shadow: 0 14px 30px rgba(58, 143, 138, 0.13);
}

.smart-suggestions .section-icon {
  color: var(--smart-teal);
}

.forge-briefing {
  border-color: rgba(58, 143, 138, 0.42);
  background:
    linear-gradient(135deg, rgba(58, 143, 138, 0.16), rgba(255, 250, 243, 0.96)),
    var(--surface);
  box-shadow: 0 16px 34px rgba(43, 37, 35, 0.12);
}

.forge-briefing .section-title {
  margin-top: 0;
}

.forge-briefing .section-icon {
  color: var(--smart-teal);
}

.forge-briefing .info-row:nth-child(2) {
  border: 1px solid rgba(58, 143, 138, 0.22);
  border-left: 5px solid var(--smart-teal);
  border-radius: 9px;
  background: rgba(58, 143, 138, 0.12);
  padding: 10px 12px;
}

.forge-reminders {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(200, 79, 50, 0.22);
  border-radius: 10px;
  background: rgba(255, 248, 245, 0.86);
  margin-top: 12px;
  padding: 12px 14px;
}

.forge-reminders .label {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.forge-reminders ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.forge-reminders li {
  color: #554a45;
  line-height: 1.42;
}

.aurora-advisory {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(58, 143, 138, 0.24);
  border-radius: 10px;
  background: rgba(244, 251, 249, 0.78);
  margin-top: 12px;
  padding: 12px 14px;
}

.aurora-advisory.compact {
  margin-top: 12px;
}

.aurora-advisory-head .label {
  color: var(--smart-teal);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.aurora-advisory-list {
  display: grid;
  gap: 10px;
}

.aurora-advisory-item {
  display: grid;
  gap: 6px;
}

.aurora-advisory-item .meta-line {
  margin: 0;
}

.pill.aurora-urgency {
  border-color: rgba(58, 143, 138, 0.26);
  background: rgba(58, 143, 138, 0.1);
  color: #246764;
}

.aurora-line {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
}

.aurora-action {
  color: #554a45;
  line-height: 1.42;
  margin: 0;
}

.fifteen-minute-session {
  display: grid;
  gap: 10px;
  scroll-margin-top: 18px;
  border-color: rgba(200, 79, 50, 0.24);
  background:
    linear-gradient(135deg, rgba(240, 122, 61, 0.09), rgba(255, 250, 243, 0.96)),
    var(--surface);
}

.fifteen-minute-session:focus {
  outline: none;
}

.fifteen-minute-session.focus-pulse {
  animation: forge-session-focus-pulse 1.45s ease-out;
}

.forge-workbench-panel.focus-pulse {
  animation: forge-session-focus-pulse 1.45s ease-out;
}

.fifteen-minute-session.compact {
  border: 1px solid rgba(200, 79, 50, 0.22);
  border-radius: 10px;
  margin-top: 12px;
  padding: 12px 14px;
}

.fifteen-minute-session.workbench-open {
  position: relative;
  z-index: 5;
  border-color: rgba(200, 79, 50, 0.44);
  background:
    radial-gradient(circle at top left, rgba(240, 122, 61, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(255, 244, 235, 0.98), rgba(255, 250, 243, 0.98)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(240, 122, 61, 0.22),
    0 24px 54px rgba(43, 37, 35, 0.24);
  transform: translateY(-3px) scale(1.01);
}

.fifteen-minute-session .section-title {
  margin-top: 0;
}

.fifteen-minute-session h3 {
  color: var(--forge-charcoal);
  font-size: 1rem;
  margin: 0;
}

@keyframes forge-session-focus-pulse {
  0% {
    border-color: rgba(240, 122, 61, 0.92);
    box-shadow:
      0 0 0 0 rgba(240, 122, 61, 0.34),
      0 16px 34px rgba(43, 37, 35, 0.12);
  }

  60% {
    border-color: rgba(240, 122, 61, 0.48);
    box-shadow:
      0 0 0 8px rgba(240, 122, 61, 0.04),
      0 16px 34px rgba(43, 37, 35, 0.12);
  }

  100% {
    border-color: rgba(200, 79, 50, 0.24);
    box-shadow: 0 16px 34px rgba(43, 37, 35, 0.08);
  }
}

.session-task {
  border: 1px solid rgba(200, 79, 50, 0.2);
  border-left: 5px solid var(--warm-ember);
  border-radius: 9px;
  background: rgba(255, 241, 236, 0.78);
  color: var(--ink);
  font-weight: 850;
  line-height: 1.4;
  margin: 0;
  padding: 10px 12px;
}

.forge-session-length-control {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(84, 59, 44, 0.14);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.58);
  padding: 10px;
}

.forge-session-length-options {
  gap: 8px;
}

.forge-session-length-options button {
  min-width: 72px;
}

.forge-session-plan {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(58, 143, 138, 0.22);
  border-radius: 10px;
  background: rgba(236, 247, 244, 0.54);
  padding: 10px;
}

.forge-session-plan-row {
  display: grid;
  gap: 3px;
}

.forge-session-plan-row p {
  margin: 0;
  color: var(--ink);
  line-height: 1.42;
}

.focus-session-wrap-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(196, 144, 48, 0.3);
  border-left: 4px solid rgba(196, 144, 48, 0.68);
  border-radius: 10px;
  background: rgba(255, 250, 237, 0.8);
  padding: 11px 12px;
}

.focus-session-wrap-panel:focus {
  outline: none;
}

.focus-session-wrap-panel.focus-pulse {
  animation: forge-session-focus-pulse 1.45s ease-out;
}

.focus-session-wrap-panel .helper-text {
  margin: 4px 0 0;
}

.forge-workbench-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.forge-workbench-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: center;
  justify-items: center;
  background:
    radial-gradient(circle at 50% 26%, rgba(240, 122, 61, 0.14), transparent 34%),
    rgba(43, 37, 35, 0.42);
  padding: 18px;
}

.forge-workbench-panel {
  display: grid;
  gap: 12px;
  width: min(100%, 760px);
  max-height: min(88vh, 820px);
  overflow: auto;
  border: 1px solid rgba(200, 79, 50, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(240, 122, 61, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 246, 237, 0.99), rgba(255, 252, 247, 0.99)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 28px 70px rgba(43, 37, 35, 0.34);
  padding: 16px;
}

.forge-workbench-panel:focus {
  outline: none;
}

.forge-workbench-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.forge-workbench-head h2 {
  color: var(--forge-charcoal);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.08;
  margin: 2px 0 0;
}

.workbench-context-line {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(58, 143, 138, 0.26);
  border-radius: 999px;
  background: rgba(58, 143, 138, 0.1);
  color: #315c5a;
  margin: 8px 0 0;
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.forge-workbench-action-row {
  border-top: 1px solid rgba(84, 59, 44, 0.16);
  padding-top: 10px;
}

.forge-workbench-note {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(84, 59, 44, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.68);
  padding: 11px;
}

.forge-workbench-note p {
  margin: 0;
  color: var(--ink);
  line-height: 1.42;
}

.forge-workbench-note.compact {
  background: rgba(255, 250, 243, 0.5);
}

.forge-workbench-note.compact .workbench-chip {
  font-size: 0.76rem;
  opacity: 0.92;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill.workbench-chip {
  border-color: rgba(200, 79, 50, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 234, 220, 0.78));
  color: #5b3d31;
  font-size: 0.8rem;
}

.session-note-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(200, 79, 50, 0.18);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.72);
  padding: 12px;
}

.smart-suggestions .next-step-highlight,
.smart-suggestions .info-row:first-child {
  border: 1px solid rgba(58, 143, 138, 0.2);
  border-left: 5px solid var(--smart-teal);
  border-radius: 9px;
  background: rgba(58, 143, 138, 0.12);
  padding: 10px 12px;
}

.quick-start-tip {
  display: grid;
  gap: 12px;
  border-color: rgba(58, 143, 138, 0.24);
  background:
    linear-gradient(135deg, rgba(58, 143, 138, 0.1), rgba(255, 250, 243, 0.94)),
    var(--surface);
  margin-bottom: 14px;
}

.settings-reminder {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.quick-start-tip .section-title {
  margin-top: 0;
}

.quick-start-tip .section-icon {
  color: var(--smart-teal);
}

.help-jump-links {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(173, 151, 133, 0.58);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(250, 240, 228, 0.76)),
    var(--surface-warm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 8px 18px rgba(43, 37, 35, 0.07);
  margin: 12px 0 18px;
  padding: 12px;
}

.help-jump-group {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(200, 184, 170, 0.36);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.66);
  padding: 10px;
}

.help-jump-group-title {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.help-jump-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-jump-links .small-btn {
  min-height: 38px;
  border-color: rgba(173, 151, 133, 0.64);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(247, 236, 223, 0.82)),
    #fff8ee;
}

.help-return-bar {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid rgba(115, 142, 168, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 249, 0.94)),
    #eef6f8;
  box-shadow: 0 10px 24px rgba(43, 37, 35, 0.12);
}

.help-return-btn {
  flex: 1 1 190px;
  justify-content: center;
}

.help-return-context {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.beta-notice {
  border-color: rgba(58, 143, 138, 0.32);
  background:
    linear-gradient(135deg, rgba(58, 143, 138, 0.1), rgba(255, 250, 243, 0.96)),
    var(--surface);
}

.beta-notice .section-title {
  margin-top: 0;
}

.beta-notice .section-icon {
  color: var(--smart-teal);
}

.beta-notice p {
  color: #554a45;
  line-height: 1.45;
  margin: 8px 0 0;
}

.beta-test-checklist {
  display: grid;
  gap: 12px;
  border-color: rgba(58, 143, 138, 0.18);
  background:
    linear-gradient(135deg, rgba(58, 143, 138, 0.045), rgba(255, 250, 243, 0.98)),
    var(--surface);
  margin-bottom: 14px;
}

.beta-test-checklist .section-title {
  margin-top: 0;
}

.beta-checklist-sections {
  display: grid;
  gap: 14px;
}

.beta-checklist-section {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(200, 184, 170, 0.6);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.72);
  padding: 12px;
}

.beta-checklist-section[open] {
  gap: 10px;
}

.beta-checklist-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.beta-checklist-section-head::-webkit-details-marker {
  display: none;
}

.beta-checklist-section-head::after {
  content: "Show";
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.beta-checklist-section[open] .beta-checklist-section-head::after {
  content: "Hide";
}

.beta-checklist-section-head h3 {
  margin: 0;
  color: var(--forge-charcoal);
  font-size: 1rem;
}

.beta-checklist-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.beta-checklist-items {
  display: grid;
  gap: 8px;
}

.beta-checklist-item {
  align-items: flex-start;
  border-color: rgba(200, 184, 170, 0.5);
  background: rgba(255, 250, 243, 0.64);
}

.beta-checklist-notes {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.resume-card .action-row {
  margin-top: 13px;
}

.resume-card .dashboard-continue-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 24px rgba(200, 79, 50, 0.28);
}

.resume-card .dashboard-workbench-btn {
  border-color: rgba(73, 59, 50, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(180deg, #5f5349, #3f3732);
  color: #fff8ef;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 17px rgba(43, 37, 35, 0.16);
}

.resume-card .dashboard-progress-btn,
.dashboard-card-main-btn {
  border-color: rgba(84, 59, 44, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(239, 225, 208, 0.94));
  color: var(--forge-charcoal);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 13px rgba(43, 37, 35, 0.08);
}

.resume-card .dashboard-photo-btn {
  border-color: rgba(31, 118, 134, 0.38);
  background:
    linear-gradient(180deg, rgba(249, 253, 254, 0.98), rgba(226, 244, 247, 0.92));
  color: #245867;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 14px rgba(35, 105, 123, 0.12);
}

.dashboard-pin-btn {
  border-color: rgba(196, 144, 48, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 250, 237, 0.98), rgba(244, 230, 193, 0.88));
  color: #654913;
}

.dashboard-section {
  margin-bottom: 22px;
}

.dashboard-intro-panel {
  padding-block: 14px;
}

.dashboard-intro-panel .lead-text {
  font-size: 1rem;
}

.dashboard-intro-panel .helper-text {
  max-width: 62ch;
}

.quick-start-tip .action-row,
.resume-primary-actions {
  align-items: stretch;
}

.quick-start-tip .action-row button,
.resume-primary-actions button {
  flex: 1 1 150px;
}

.dashboard-resume-card .card-title,
.backlog-focus-card .card-title,
.resume-project-link {
  overflow-wrap: anywhere;
}

.today-focus-card {
  display: grid;
  gap: 12px;
  border-color: rgba(196, 144, 48, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 250, 237, 0.96), rgba(236, 247, 244, 0.58)),
    var(--surface);
}

.today-focus-card .card-title {
  margin: 0;
}

.today-focus-card .helper-text {
  margin: 4px 0 0;
}

.today-focus-card .card-actions {
  margin-top: 4px;
}

.today-focus-card .dashboard-focus-session-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 20px rgba(200, 79, 50, 0.2);
}

.today-focus-card .dashboard-workbench-btn {
  border-color: rgba(73, 59, 50, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(180deg, #675a50, #4a403a);
  color: #fff8ef;
}

.dashboard-focus-btn {
  border-color: rgba(196, 144, 48, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 250, 237, 0.98), rgba(244, 230, 193, 0.82));
  color: #654913;
}

.focus-session-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border-color: rgba(196, 144, 48, 0.34);
  background: rgba(255, 250, 237, 0.9);
  color: #654913;
}

.pinned-project-list {
  display: grid;
  gap: 10px;
}

.backlog-focus-board {
  display: grid;
  gap: 12px;
}

.backlog-focus-board .section-title {
  margin-top: 0;
}

.backlog-focus-nudge {
  border-left: 4px solid rgba(58, 143, 138, 0.56);
  background: rgba(236, 247, 244, 0.46);
  border-radius: 8px;
  padding: 8px 10px;
}

.backlog-focus-lanes {
  display: grid;
  gap: 12px;
}

.backlog-focus-lane {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(92, 73, 58, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(236, 224, 207, 0.86), rgba(226, 213, 195, 0.72)),
    rgba(232, 220, 202, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 10px 22px rgba(43, 37, 35, 0.08);
  padding: 14px;
}

.backlog-focus-lane-head,
.backlog-focus-card-badges {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.backlog-focus-card-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.backlog-focus-lane h3 {
  margin: 0 0 3px;
  color: var(--forge-charcoal);
  font-size: 1rem;
}

.backlog-focus-count {
  background: rgba(58, 143, 138, 0.1);
  color: #246764;
  white-space: nowrap;
}

.backlog-top-pick {
  border-color: rgba(196, 144, 48, 0.3);
  background: rgba(255, 250, 237, 0.86);
  color: #654913;
}

.backlog-focus-lane .helper-text {
  margin: 0;
}

.backlog-focus-card-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(92, 73, 58, 0.12);
  padding-top: 10px;
}

.backlog-focus-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 253, 249, 0.9);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 248, 240, 0.94)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(43, 37, 35, 0.1);
  padding: 9px 10px;
}

.backlog-focus-card.focused {
  border-color: rgba(196, 144, 48, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 9px 20px rgba(196, 144, 48, 0.14);
}

.backlog-focused-badge {
  border-color: rgba(196, 144, 48, 0.34);
  background: rgba(255, 250, 237, 0.9);
  color: #654913;
}

.backlog-focus-card .card-title {
  font-size: 1rem;
}

.backlog-focus-card .info-grid {
  gap: 6px;
}

.backlog-focus-card .card-actions {
  gap: 6px;
  margin-top: 9px;
}

.backlog-focus-card .card-actions button {
  flex: 1 1 auto;
}

.backlog-focus-card .dashboard-workbench-btn {
  border-color: rgba(73, 59, 50, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(180deg, #675a50, #4a403a);
  color: #fff8ef;
}

.backlog-focus-card .dashboard-progress-btn {
  border-color: rgba(84, 59, 44, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(239, 225, 208, 0.9));
  color: var(--forge-charcoal);
}

.backlog-focus-card .dashboard-photo-btn {
  border-color: rgba(31, 118, 134, 0.34);
  background:
    linear-gradient(180deg, rgba(249, 253, 254, 0.98), rgba(226, 244, 247, 0.88));
  color: #245867;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(200, 184, 170, 0.64);
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.section-heading .section-title {
  color: var(--canvas-heading);
  text-shadow: none;
}

.section-heading .section-icon {
  color: var(--accent);
  filter: none;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-controls,
.library-controls {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 250, 243, 0.84);
  box-shadow: var(--soft-shadow);
  margin-bottom: 16px;
  padding: 16px;
}

.control-grid {
  display: grid;
  gap: 12px;
}

.project-control-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.result-count {
  color: #554a45;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.3;
}

.card-actions {
  margin-top: 13px;
}

.summary-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fffbf5;
  box-shadow: var(--soft-shadow);
  padding: 16px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.summary-card:hover {
  border-color: rgba(200, 79, 50, 0.28);
  box-shadow: var(--shadow);
}

.summary-value {
  display: block;
  color: var(--ink);
  font-size: 1.68rem;
  font-weight: 900;
  line-height: 1;
}

.summary-label {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.resume-card .section-title,
.smart-suggestions .section-title {
  margin-top: 0;
}

.resume-card .section-icon {
  color: var(--smart-teal);
}

.helper-text {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.helper-text.warning {
  color: var(--accent-dark);
  font-weight: 750;
}

.helper-text.success-text {
  color: #2d6f58;
  font-weight: 750;
}

.workbench-save-confirmation {
  border: 1px solid rgba(58, 143, 138, 0.28);
  border-radius: 10px;
  background: rgba(232, 247, 238, 0.78);
  margin-top: 10px;
  padding: 9px 11px;
}

.workbench-save-confirmation:focus {
  outline: none;
}

.workbench-save-confirmation.focus-pulse {
  animation: forge-session-focus-pulse 1.45s ease-out;
}

.bulk-format {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(247, 240, 230, 0.72);
  color: #554a45;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
  padding: 12px;
}

.bulk-preview-section {
  margin-top: 16px;
}

.backup-import-preview,
.storage-health-panel {
  border: 1px solid rgba(58, 143, 138, 0.22);
  border-radius: 10px;
  background: rgba(236, 247, 244, 0.52);
  margin-top: 14px;
  padding: 12px;
}

.backup-import-preview h3 {
  margin: 0;
  color: var(--forge-charcoal);
  font-size: 1rem;
}

.backup-import-preview .info-grid {
  margin-top: 10px;
}

.backup-import-preview .action-row {
  margin-top: 12px;
}

.bulk-preview-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.bulk-preview-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fffbf5;
  box-shadow: var(--soft-shadow);
  padding: 14px;
}

.bulk-preview-card.invalid {
  border-color: rgba(180, 62, 50, 0.38);
  background: rgba(255, 245, 241, 0.92);
}

.smart-suggestion-actions {
  margin-top: 13px;
}

.forge-briefing-actions {
  align-items: center;
  border-top: 1px solid rgba(58, 143, 138, 0.2);
  padding-top: 12px;
}

.suggestion-inline {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(58, 143, 138, 0.26);
  border-radius: 10px;
  background: rgba(58, 143, 138, 0.08);
  padding: 11px;
}

.suggestion-inline span {
  color: var(--muted);
  line-height: 1.4;
}

.panel {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 12px;
  color: var(--forge-charcoal);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
}

.panel .section-title,
.project-card .section-title,
.pinned-project-card .section-title,
.photo-card .section-title,
.recipe-card .section-title {
  color: var(--forge-charcoal);
  text-shadow: none;
}

.panel .section-icon,
.project-card .section-icon,
.pinned-project-card .section-icon,
.photo-card .section-icon,
.recipe-card .section-icon {
  color: var(--accent);
  filter: none;
}

.section-icon {
  color: var(--accent);
  width: 1.18rem;
  height: 1.18rem;
}

.section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 21px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ember-highlight), var(--warm-ember));
}

.screen-head .section-title::before,
.quick-start-tip .section-title::before,
.resume-card .section-title::before,
.smart-suggestions .section-title::before,
.data-safety .section-title::before,
.danger-zone .section-title::before {
  display: none;
}

.data-safety {
  margin-top: 18px;
  padding: 15px;
}

.data-safety .section-title {
  margin-top: 0;
}

.data-safety .section-icon {
  color: var(--smart-teal);
}

.danger-zone {
  border: 1px solid rgba(162, 53, 53, 0.28);
  border-radius: 12px;
  background: rgba(255, 241, 236, 0.72);
  margin-top: 18px;
  padding: 15px;
}

.danger-zone-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.danger-zone .section-title {
  margin: 0;
}

.danger-zone .section-icon {
  color: var(--danger);
}

.danger-zone-body,
.reset-confirm-panel {
  display: grid;
  gap: 12px;
  margin-top: 13px;
}

.danger-warning {
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  background: rgba(162, 53, 53, 0.07);
  color: var(--danger);
  margin: 0;
  padding: 10px 12px;
  line-height: 1.45;
}

.danger-warning.strong {
  font-weight: 850;
}

.settings-page {
  display: grid;
  gap: 20px;
}

.settings-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(200, 184, 170, 0.62);
  padding-top: 18px;
}

.settings-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.settings-section .section-title {
  margin: 0;
}

.settings-section p,
.settings-section li {
  color: #554a45;
  line-height: 1.55;
}

.settings-section p {
  margin: 0;
}

.settings-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.feedback-form {
  max-width: 820px;
  margin: 0 auto;
}

.feedback-fallback {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 16px auto 0;
  border-color: rgba(162, 53, 53, 0.24);
  background: #fff8f5;
}

.feedback-fallback textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffbf5;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  line-height: 1.45;
}

.inventory-alerts {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(200, 79, 50, 0.24);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: #fff8f5;
  margin-top: 12px;
  padding: 12px;
}

.inventory-alerts-panel {
  border-color: rgba(200, 79, 50, 0.24);
  background: #fff8f5;
  margin-top: 18px;
}

.inventory-alerts .section-title {
  margin: 0;
}

.roadmap-grid {
  display: grid;
  gap: 12px;
}

.roadmap-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 243, 0.72);
  padding: 14px;
}

.roadmap-card h4 {
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 1rem;
}

.backup-reminder {
  border: 1px solid rgba(58, 143, 138, 0.22);
  border-radius: 10px;
  background: rgba(58, 143, 138, 0.08);
  color: #246764;
  padding: 12px 14px;
  font-weight: 850;
}

.backup-reminder.warning {
  border-color: rgba(200, 79, 50, 0.28);
  background: #fff1ec;
  color: var(--accent-dark);
}

.quick-start-page {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.lead-text {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

.help-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.help-section .section-title {
  margin-top: 0;
}

.help-section p,
.help-section li,
.workflow-list span {
  color: #554a45;
  line-height: 1.55;
}

.workflow-list,
.help-section ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.workflow-list {
  list-style-position: inside;
  padding-left: 0;
}

.workflow-list li {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fffbf5;
  box-shadow: 0 6px 14px rgba(43, 37, 35, 0.07);
  padding: 12px 14px;
}

.workflow-list strong,
.help-section h4 {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.help-grid {
  display: grid;
  gap: 16px;
}

.help-section h4 {
  margin: 0 0 8px;
}

.example-callout {
  border: 1px solid rgba(58, 143, 138, 0.28);
  border-radius: 10px;
  background: rgba(58, 143, 138, 0.09);
  margin: 16px 0 0;
  padding: 14px;
}

.technique-jump-list,
.technique-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.technique-guide-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.technique-guide-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fffbf5;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.technique-guide-card.focus-pulse {
  animation: forge-session-focus-pulse 1.45s ease-out;
}

.technique-guide-card summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  padding: 16px;
}

.technique-summary-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.technique-icon {
  color: var(--smart-teal);
  width: 1.15rem;
  height: 1.15rem;
}

.technique-guide-card[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(58, 143, 138, 0.08);
}

.technique-guide-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.warning-text {
  margin: 0 0 13px;
  color: var(--muted);
  line-height: 1.45;
}

.safety-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
}

.safety-copy .warning-text {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 14px;
  box-shadow: none;
}

.entry-actions {
  margin-top: 12px;
}

.small-btn {
  min-height: 42px;
  padding: 9px 12px;
  font-size: 0.92rem;
}

.entry-photo-button,
.photo-timeline-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}

.entry-photo-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
}

.entry-photo-button img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.photo-type-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border: 1px solid rgba(247, 240, 230, 0.82);
  border-radius: 999px;
  background: rgba(43, 37, 35, 0.82);
  color: #fffaf2;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

.aurora-desk-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  border-color: rgba(58, 143, 138, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(244, 232, 213, 0.7)),
    linear-gradient(180deg, rgba(58, 143, 138, 0.08), rgba(255, 250, 243, 0.74)),
    var(--panel-surface);
  box-shadow:
    0 13px 30px rgba(43, 37, 35, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
  margin-bottom: 14px;
  padding: 14px 16px;
}

.aurora-desk-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(58, 143, 138, 0.26);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.62), transparent 34px),
    linear-gradient(145deg, rgba(58, 143, 138, 0.18), rgba(200, 79, 50, 0.1));
  color: var(--smart-teal);
}

.aurora-desk-icon {
  width: 1.28rem;
  height: 1.28rem;
}

.aurora-desk-copy {
  display: grid;
  gap: 7px;
}

.aurora-desk-copy h3 {
  margin: 0;
  color: var(--forge-charcoal);
  font-size: 1rem;
  font-weight: 900;
}

.aurora-desk-copy ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #5a4f49;
  line-height: 1.4;
}

.reference-portrait-block,
.reference-notes-block,
.compact-help-panel {
  display: grid;
  gap: 12px;
}

.compact-tip-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #554a45;
  font-size: 0.92rem;
  line-height: 1.42;
}

.reference-portrait-card {
  width: min(220px, 100%);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 0;
}

.reference-portrait-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brush-guide-list .help-card {
  cursor: default;
}

.photo-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-timeline .empty-state {
  grid-column: 1 / -1;
}

.photo-timeline-card {
  display: grid;
  gap: 8px;
}

.project-photo-gallery-panel {
  display: grid;
  gap: 12px;
}

.photoforge-confirmation {
  border: 1px solid rgba(58, 143, 138, 0.3);
  border-radius: 10px;
  background: rgba(232, 247, 238, 0.86);
  margin: 0;
  padding: 9px 11px;
}

.needs-review-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(184, 83, 55, 0.32);
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(250, 236, 222, 0.9));
}

.needs-review-callout h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.needs-review-callout .helper-text {
  margin-top: 6px;
}

.photoforge-role-guide {
  display: grid;
  gap: 6px;
}

.photoforge-role-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.photoforge-role-guide strong {
  color: var(--ink);
}

.project-gallery-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.92);
  box-shadow: var(--soft-shadow);
  padding: 10px;
}

.project-gallery-card .info-grid {
  gap: 6px;
}

.project-gallery-card .info-row {
  padding: 6px 0;
}

.problem-photo-note {
  border-left: 4px solid var(--warm-ember);
  margin: 0;
  padding-left: 9px;
}

.photo-gallery {
  display: grid;
  gap: 14px;
}

.photo-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fffbf5;
  box-shadow: var(--soft-shadow);
  padding: 16px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.photo-card .entry-photo-button {
  margin-top: 0;
  border-color: var(--line-strong);
}

.photo-card .entry-photo-button img {
  aspect-ratio: 4 / 3;
  max-height: none;
}

.photo-card .action-row {
  margin-top: 14px;
}

.photo-timeline-item {
  display: grid;
  gap: 8px;
  border-color: var(--line-strong);
  padding: 10px;
  text-align: left;
}

.photo-timeline-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.photo-timeline-item span {
  color: #554a45;
  font-size: 0.86rem;
  font-weight: 850;
}

.photo-cover-actions {
  margin-top: 0;
}

@media (max-width: 680px) {
  .needs-review-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .needs-review-callout .small-btn {
    width: 100%;
    justify-content: center;
  }

  .screen-head,
  .action-row,
  .photoforge-action-row,
  .photo-rotation-action-row,
  .forge-workbench-action-row {
    align-items: stretch;
  }

  .screen-head > .action-row button,
  .action-row > button,
  .action-row > .primary-btn,
  .action-row > .secondary-btn,
  .action-row > .quiet-btn,
  .action-row > .danger-btn {
    flex: 1 1 150px;
  }
}

.photo-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(43, 37, 35, 0.76);
  padding: 16px;
}

.photo-preview-panel {
  display: grid;
  gap: 12px;
  width: min(100%, 760px);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
}

.photo-preview-panel img {
  display: block;
  width: 100%;
  max-height: 76vh;
  border-radius: 6px;
  object-fit: contain;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.72);
  color: #554a45;
  padding: 20px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--forge-charcoal);
}

.empty-state p {
  margin: 0 auto 14px;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.45;
}

.empty-state-cta {
  display: grid;
  justify-items: center;
}

.form {
  display: grid;
  gap: 16px;
  max-width: 820px;
}

.progress-project-context-card {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.progress-project-context-card .eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.progress-project-context-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
}

.progress-project-context-card .info-grid {
  margin-top: 0;
}

.project-form-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(58, 143, 138, 0.22);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.72);
  padding: 10px;
}

.project-form-top-actions .helper-text {
  margin: 0;
  flex: 1 1 220px;
}

.project-size-fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(58, 143, 138, 0.22);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.68);
  margin: 0;
  padding: 12px;
}

.project-size-fieldset legend {
  color: #554a45;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 0 5px;
}

.project-size-fieldset .field-help {
  margin: 0;
}

.project-size-grid {
  display: grid;
  gap: 12px;
}

.project-size-custom-field[hidden] {
  display: none;
}

.project-optional-details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.62);
  margin-top: 2px;
  padding: 0;
}

.project-optional-details summary {
  display: grid;
  gap: 3px;
  cursor: pointer;
  border-radius: 10px;
  color: var(--forge-charcoal);
  font-weight: 850;
  list-style-position: inside;
  padding: 13px 14px;
}

.project-optional-details summary small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.project-optional-details[open] {
  padding: 0 12px 12px;
}

.project-optional-details[open] summary {
  margin: 0 -12px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: rgba(255, 253, 249, 0.7);
}

.link-form {
  display: grid;
  gap: 14px;
  margin-top: 15px;
}

.checkbox-list,
.recipe-step-list {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px;
}

.checkbox-row input {
  width: auto;
}

.checkbox-row span {
  line-height: 1.35;
}

.recipe-step-fields {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(58, 143, 138, 0.07);
  margin: 0;
  padding: 14px;
}

.recipe-step-fields legend {
  color: var(--smart-teal);
  font-size: 0.86rem;
  font-weight: 850;
  padding: 0 5px;
}

.recipe-step-card {
  border-left: 4px solid rgba(58, 143, 138, 0.42);
}

.recipe-step-card .technique-help-actions {
  margin-top: 10px;
}

.form-subsection {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 16px;
}

.detail-field-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 680px) {
  .project-size-grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #554a45;
  font-size: 0.9rem;
  font-weight: 850;
}

.field-help {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdf9;
  color: var(--ink);
  min-height: 46px;
  padding: 13px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.placeholder-field {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(247, 240, 230, 0.55);
  color: var(--muted);
  padding: 11px 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 679px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(240, 122, 61, 0.1), transparent 230px),
      radial-gradient(circle at bottom right, rgba(58, 143, 138, 0.08), transparent 260px),
      linear-gradient(180deg, rgba(200, 79, 50, 0.05), transparent 220px),
      var(--bg);
    background-attachment: scroll;
  }

  .logo-mark {
    width: clamp(56px, 17vw, 68px);
    height: clamp(56px, 17vw, 68px);
  }

  .resume-command-head {
    grid-template-columns: 1fr;
  }

  .quick-start-tip .action-row button,
  .resume-primary-actions button,
  .empty-state-cta .action-row button {
    flex: 1 1 100%;
  }

  .aurora-desk-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }

  .aurora-desk-mark {
    width: 38px;
    height: 38px;
  }
}

@media (min-width: 680px) {
  .app-shell {
    padding: 28px 22px 52px;
  }

  .dashboard-intro-panel,
  .quick-start-tip,
  .resume-card,
  .dashboard-resume-next,
  .beta-test-checklist {
    max-width: 980px;
  }

  .forge-workbench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    font-size: 2.35rem;
  }

  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pinned-project-list,
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .backlog-focus-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 100%;
  }

  .info-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supply-dedupe-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .app-shell {
    width: min(100%, 1120px);
    padding: 32px 28px 58px;
  }

  .topbar {
    align-items: center;
    padding: 18px 20px;
  }

  .brand {
    font-size: 2.45rem;
  }

  .dashboard-section {
    margin-bottom: 24px;
  }

  .project-controls,
  .library-controls {
    padding: 16px;
  }
}

@media (min-width: 1080px) {
  .project-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pinned-project-list,
  .photo-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .backlog-focus-lanes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
