﻿:root {
  --brand: #7a2428;
  --brand-hover: #612326;
  --brand-tint: #f3eceb;
  --brand-soft: #ded0ce;
  --brand-muted: #b78284;
  --olive: #6f725f;
  --blue-gray: #6a7378;
  --ochre: #95774c;
  --taupe: #8b7a71;
  --page: #f2f0ed;
  --surface: #fffdfa;
  --surface-muted: #f7f5f2;
  --text: #1c1b19;
  --text-2: #5a5650;
  --text-3: #8f8a82;
  --line: #ddd9d2;
  --line-strong: #bdb7ad;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 4px rgba(28, 27, 25, .06), 0 1px 2px rgba(28, 27, 25, .04);
  --shadow-md: 0 8px 24px rgba(28, 27, 25, .08), 0 2px 6px rgba(28, 27, 25, .04);
  --shadow-lg: 0 18px 50px rgba(28, 27, 25, .11);

  /* Legacy aliases keep existing screen rules connected to the new system. */
  --ink: var(--text);
  --muted: var(--text-3);
  --paper: var(--page);
  --white: var(--surface);
  --sage: var(--brand);
  --sage-dark: var(--brand-hover);
  --sand: #d4d0c8;
  --warm: var(--ochre);
  --radius: var(--radius-lg);
  --shadow: var(--shadow-md);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #e9e9e4; color: var(--ink); font-family: "Noto Sans KR", Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.sr-only { width: 1px; height: 1px; padding: 0; margin: -1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { width: min(100%, 1180px); min-height: 100vh; margin: 0 auto; background: var(--paper); position: relative; box-shadow: 0 0 60px rgba(0,0,0,.08); }
.topbar { height: 72px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: rgba(246,246,242,.92); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(231,232,226,.8); }
.brand { border: 0; background: transparent; display: flex; align-items: center; gap: 11px; padding: 0; text-align: left; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--ink); font-family: Georgia, serif; font-size: 20px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .1em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.desktop-nav { height: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; position: absolute; left: 50%; transform: translateX(-50%); }
.desktop-nav button { width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--radius-md); padding: 0; position: relative; display: grid; place-items: center; background: transparent; color: var(--muted); }
.desktop-nav button svg { width: 20px; height: 20px; }
.desktop-nav button::after { content: ""; height: 2px; position: absolute; left: 50%; right: 50%; bottom: -1px; background: var(--ink); transition: left .2s ease, right .2s ease; }
.desktop-nav button:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.desktop-nav button:focus-visible, .desktop-nav button.active { color: var(--ink); }
.desktop-nav button.active::after { left: 0; right: 0; }
.desktop-nav button:focus-visible { outline: 2px solid var(--sage); outline-offset: -5px; border-radius: 5px; }
.desktop-nav button::before { content: attr(data-tooltip); padding: 6px 8px; position: absolute; top: calc(100% + 8px); left: 50%; z-index: 40; transform: translate(-50%, -4px); border-radius: var(--radius-sm); background: var(--text); color: var(--surface); font-size: 10px; font-weight: 600; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.desktop-nav button:hover::before, .desktop-nav button:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: var(--white); position: relative; }
.notification-dot { width: 7px; height: 7px; background: var(--warm); border: 2px solid white; border-radius: 50%; position: absolute; right: 8px; top: 7px; }
main { padding-bottom: 100px; }
.view { display: none; padding: 0 32px 48px; animation: fade .22s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.hero { margin: 0 -32px; padding: 76px 64px 92px; color: white; background: linear-gradient(125deg, rgba(32,35,31,.97), rgba(83,96,77,.88)), radial-gradient(circle at 80% 20%, #baa98e, transparent 35%); position: relative; overflow: hidden; }
.hero::after { content: ""; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; position: absolute; right: -60px; top: -100px; box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.018); }
.eyebrow { margin: 0 0 10px; color: var(--sage); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.hero .eyebrow { color: #c4cebf; }
.hero h1 { margin: 0; max-width: 680px; font-size: clamp(32px, 5vw, 54px); line-height: 1.25; letter-spacing: -.045em; position: relative; z-index: 1; }
.hero > p:last-child { max-width: 470px; margin: 20px 0 0; color: rgba(255,255,255,.68); line-height: 1.7; font-size: 14px; }
.search-entry { width: calc(100% - 64px); max-width: 720px; height: 64px; padding: 0 20px; margin: -32px auto 0; border: 0; border-radius: 16px; background: white; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; text-align: left; }
.search-entry span { flex: 1; color: #858980; }
kbd { border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; background: var(--paper); color: var(--muted); font-family: inherit; font-size: 10px; }
.summary-grid { max-width: 720px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.summary-grid article { min-width: 0; padding: 22px 24px; border-right: 1px solid var(--line); }
.summary-grid article:last-child { border-right: 0; }
.summary-grid span, .summary-grid small { color: var(--muted); font-size: 11px; }
.summary-grid strong { display: block; margin: 4px 0 2px; font-size: 27px; letter-spacing: -.04em; }
.content-section { margin-top: 52px; }
.section-heading, .result-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.text-button { border: 0; background: transparent; color: var(--sage-dark); font-size: 12px; font-weight: 700; }
.tag-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.tag-row::-webkit-scrollbar { display: none; }
.tag { flex: 0 0 auto; border: 1px solid #dfe2da; border-radius: 999px; padding: 10px 14px; background: #fafbf8; color: var(--sage-dark); font-size: 12px; }
.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-image { height: 190px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: white; position: relative; overflow: hidden; }
.project-image::before, .project-image::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.25); }
.project-image::before { width: 55%; height: 65%; right: -5%; bottom: -20%; transform: rotate(-8deg); }
.project-image::after { width: 38%; height: 45%; right: 25%; bottom: -15%; transform: rotate(12deg); }
.tone-1 { background: linear-gradient(135deg, #8c8175, #c1b29e); }
.tone-2 { background: linear-gradient(135deg, #5f675a, #9eaa91); }
.tone-3 { background: linear-gradient(135deg, #6d7377, #aab0b2); }
.tone-4 { background: linear-gradient(135deg, #8a705f, #c8a988); }
.tone-5 { background: linear-gradient(135deg, #6d625e, #a99d96); }
.tone-6 { background: linear-gradient(135deg, #71715f, #b0ae8e); }
.project-image .status { align-self: flex-start; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.17); backdrop-filter: blur(8px); font-size: 10px; position: relative; z-index: 1; }
.project-image .image-label { font-family: Georgia, serif; font-size: 34px; opacity: .5; align-self: flex-end; position: relative; z-index: 1; }
.project-card-body { padding: 18px; }
.project-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.project-card h3 { margin: 9px 0 14px; font-size: 16px; line-height: 1.45; letter-spacing: -.025em; }
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.material-label { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sage-dark); font-size: 11px; }
.score { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.score::before { content: "\\2605"; color: #b68a56; }
.page-heading { padding: 44px 0 28px; }
.page-heading h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.page-heading > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.search-toolbar { display: flex; gap: 10px; position: sticky; top: 72px; z-index: 20; padding: 12px 0; background: var(--paper); }
.search-field { height: 52px; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.filter-button { min-width: 100px; border: 0; border-radius: 14px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 700; }
.filter-button span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); }
.active-filters { min-height: 8px; display: flex; gap: 7px; overflow-x: auto; padding: 4px 0 12px; }
.active-filter { flex: 0 0 auto; padding: 7px 10px; border: 0; border-radius: 999px; background: #e5e9e1; color: var(--sage-dark); font-size: 11px; }
.result-heading { margin: 18px 0; align-items: center; }
.result-heading select { border: 0; background: transparent; color: var(--muted); font-size: 12px; outline: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-grid .project-image { height: 160px; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed #d5d8d0; border-radius: var(--radius); color: var(--muted); }
.empty-state strong { color: var(--ink); }
.empty-state p { font-size: 12px; }
.empty-state button { border: 0; border-radius: 10px; background: var(--ink); color: white; padding: 10px 15px; }
.back-button { margin-top: 28px; border: 0; background: transparent; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.detail-hero { margin-top: 18px; min-height: 320px; border-radius: 24px; padding: 36px; color: white; display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; }
.detail-hero::after { content: "ADELA"; position: absolute; right: -12px; top: 5px; font: 700 90px/1 Georgia, serif; color: rgba(255,255,255,.08); }
.detail-hero h1 { margin: 8px 0 12px; max-width: 640px; font-size: clamp(28px, 5vw, 48px); line-height: 1.25; letter-spacing: -.045em; }
.detail-hero p { margin: 0; color: rgba(255,255,255,.75); }
.detail-tabs { display: flex; gap: 4px; margin: 28px 0 22px; padding: 4px; border-radius: 13px; background: #e9eae5; }
.detail-tabs button { flex: 1; border: 0; border-radius: 10px; padding: 12px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.detail-tabs button.active { background: white; color: var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.detail-panel { display: none; }
.detail-panel.active { display: block; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.info-box { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.info-box span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.info-box strong { font-size: 13px; }
.detail-section { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.detail-section h2 { margin: 0 0 16px; font-size: 17px; }
.material-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.material-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.material-table tr:last-child td { border: 0; }
.material-table td:first-child { width: 80px; color: var(--muted); }
.plan-placeholder { min-height: 180px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 20px; border: 1px dashed #cbd0c5; border-radius: 14px; background: linear-gradient(90deg, #f5f5f1 50%, #eceee8 50%); color: var(--muted); text-align: center; font-size: 11px; }
.plan-placeholder span:first-child, .plan-placeholder span:last-child { color: var(--sage-dark); font: 700 16px/1 Georgia, serif; letter-spacing: .12em; }
.rating-summary { display: grid; grid-template-columns: 160px 1fr; gap: 30px; align-items: center; }
.big-score { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, white 58%, transparent 60%), conic-gradient(var(--sage) var(--score-angle), #e9eae5 0); }
.big-score strong { font-size: 30px; }
.rating-bars { display: grid; gap: 12px; }
.rating-bar { display: grid; grid-template-columns: 70px 1fr 28px; align-items: center; gap: 9px; font-size: 11px; }
.rating-bar i { height: 7px; border-radius: 999px; background: #e6e8e2; overflow: hidden; }
.rating-bar i::after { content: ""; display: block; width: var(--width); height: 100%; border-radius: inherit; background: var(--sage); }
.feedback-card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feedback-card:last-child { border-bottom: 0; }
.feedback-card strong { display: block; margin-bottom: 7px; font-size: 13px; }
.feedback-card p { margin: 0; color: #62675f; font-size: 12px; line-height: 1.8; }
.form-progress { height: 4px; border-radius: 99px; background: #e1e3dc; margin-bottom: 26px; overflow: hidden; }
.form-progress div { width: 20%; height: 100%; background: var(--sage); transition: width .25s; }
#projectForm { max-width: 760px; margin: 0 auto; }
.form-step { display: none; }
.form-step.active { display: block; animation: fade .2s ease; }
.form-section-title { display: flex; gap: 13px; align-items: center; margin-bottom: 28px; }
.form-section-title > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 13px; }
.form-section-title h2, .form-section-title p { margin: 0; }
.form-section-title h2 { font-size: 20px; }
.form-section-title p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.field { display: block; margin-bottom: 20px; position: relative; }
.field > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.field em { color: var(--warm); font-style: normal; font-size: 9px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: white; outline: 0; resize: vertical; transition: border .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage); }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.money small { position: absolute; right: 15px; bottom: 15px; color: var(--muted); }
.money input { padding-right: 48px; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-grid button, .filter-options button { border: 1px solid var(--line); border-radius: 11px; padding: 12px 8px; background: white; color: var(--muted); font-size: 11px; }
.choice-grid button.selected, .filter-options button.selected { border-color: var(--sage); background: #eef1eb; color: var(--sage-dark); font-weight: 700; }
.material-row { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; display: grid; grid-template-columns: 110px 1fr 1.4fr 34px; gap: 8px; align-items: center; }
.material-row select, .material-row input { min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: var(--paper); font-size: 11px; }
.remove-row { width: 32px; height: 32px; border: 0; background: transparent; color: #a0a39c; font-size: 18px; }
.add-row-button { width: 100%; border: 1px dashed #cbd0c5; border-radius: 12px; padding: 14px; background: transparent; color: var(--sage-dark); font-size: 12px; }
.plan-upload-section { margin-bottom: 28px; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.plan-upload-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.plan-upload-heading span { color: var(--sage-dark); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.plan-upload-heading h3 { margin: 5px 0 0; font-size: 21px; }
.plan-upload-heading p { max-width: 360px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; text-align: right; }
.plan-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-upload-card { min-height: 260px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px dashed #aeb5a9; background: #f3f4f0; cursor: pointer; }
.plan-upload-card.after { background: #edf1eb; }
.plan-upload-card input { display: none; }
.plan-upload-placeholder { display: flex; flex-direction: column; align-items: center; text-align: center; }
.plan-upload-placeholder b { margin-bottom: 18px; color: var(--sage-dark); font: 500 24px/1 Georgia,serif; letter-spacing: .1em; }
.plan-upload-placeholder strong { font-size: 13px; }
.plan-upload-placeholder span { margin-top: 6px; color: var(--muted); font-size: 9px; }
.plan-upload-preview { position: absolute; inset: 0; display: none; background: #e7e9e3; }
.plan-upload-preview img { width: 100%; height: 100%; object-fit: contain; }
.plan-upload-preview span { position: absolute; left: 10px; right: 10px; bottom: 10px; overflow: hidden; padding: 8px 10px; background: rgba(20,22,19,.78); color: white; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.plan-upload-card.has-image { border-style: solid; border-color: var(--sage-dark); }
.plan-upload-card.has-image .plan-upload-placeholder { display: none; }
.plan-upload-card.has-image .plan-upload-preview { display: block; }
.plan-upload-help { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.upload-zone { min-height: 210px; border: 1px dashed #bdc5b7; border-radius: var(--radius); background: #f9faf7; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; }
.upload-zone input { display: none; }
.upload-zone svg { width: 34px; height: 34px; margin-bottom: 12px; color: var(--sage); }
.upload-zone strong { font-size: 14px; }
.upload-zone span { margin-top: 6px; color: var(--muted); font-size: 10px; }
.media-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 20px; }
.media-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.rating-list { display: grid; gap: 10px; margin-bottom: 24px; }
.rating-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.rating-input strong { font-size: 12px; }
.stars { display: flex; gap: 3px; }
.stars button { border: 0; background: transparent; padding: 2px; color: #d8d9d4; font-size: 20px; }
.stars button.active { color: #b68a56; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.primary-button, .secondary-button { border: 0; border-radius: 12px; padding: 13px 22px; font-size: 12px; font-weight: 700; }
.primary-button { background: var(--ink); color: white; }
.secondary-button { background: #e7e8e2; color: var(--muted); }
.bottom-nav { display: none; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(20,22,19,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.filter-sheet { width: min(480px, 100%); height: 100vh; padding: 18px 24px 100px; position: fixed; z-index: 90; top: 0; right: 0; background: var(--paper); transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; }
.filter-sheet.open { transform: translateX(0); }
.sheet-handle { display: none; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 0 24px; }
.sheet-header h2 { margin: 0; }
.sheet-header .icon-button { font-size: 24px; }
.filter-group { padding: 21px 0; border-top: 1px solid var(--line); }
.filter-group > strong { display: block; margin-bottom: 13px; font-size: 13px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 7px; }
.budget-range span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.budget-range input { width: 100%; accent-color: var(--sage); }
.sheet-actions { height: 80px; padding: 12px 24px; position: fixed; right: 0; bottom: 0; width: min(480px, 100%); display: grid; grid-template-columns: 1fr 2fr; gap: 8px; border-top: 1px solid var(--line); background: white; }
.sheet-actions > button:first-child { border: 0; border-radius: 12px; background: var(--paper); color: var(--muted); }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 110px; transform: translate(-50%, 30px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  body { background: var(--paper); }
  .app-shell { box-shadow: none; }
  .topbar { height: 64px; padding: 0 18px; }
  .desktop-nav { display: none; }
  .brand-mark { width: 33px; height: 33px; }
  .icon-button { width: 38px; height: 38px; }
  main { padding-bottom: 92px; }
  .view { padding: 0 18px 30px; }
  .hero { margin: 0 -18px; padding: 52px 24px 72px; }
  .hero h1 { font-size: 34px; }
  .hero > p:last-child { font-size: 12px; }
  .search-entry { width: calc(100% - 16px); height: 58px; margin-top: -29px; padding: 0 15px; }
  .search-entry span { font-size: 12px; }
  kbd { display: none; }
  .summary-grid { margin-top: 24px; }
  .summary-grid article { padding: 16px 12px; }
  .summary-grid strong { font-size: 22px; }
  .summary-grid small { display: none; }
  .content-section { margin-top: 38px; }
  .project-list { display: flex; overflow-x: auto; gap: 12px; margin: 0 -18px; padding: 0 18px 8px; scrollbar-width: none; }
  .project-list .project-card { flex: 0 0 82%; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid .project-image { height: 180px; }
  .page-heading { padding: 32px 0 20px; }
  .page-heading h1 { font-size: 29px; }
  .search-toolbar { top: 64px; }
  .filter-button { min-width: 88px; }
  .bottom-nav { height: calc(72px + env(safe-area-inset-bottom)); padding: 7px 9px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
  .bottom-nav button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #959991; font-size: 9px; }
  .bottom-nav button.active { color: var(--ink); }
  .bottom-nav svg { width: 21px; height: 21px; }
  .bottom-nav .create-nav { color: var(--ink); }
  .plus { width: 38px; height: 38px; margin-top: -23px; display: grid; place-items: center; border: 4px solid white; border-radius: 50%; background: var(--ink); color: white; font-size: 25px; line-height: 1; box-sizing: content-box; box-shadow: 0 5px 14px rgba(0,0,0,.18); }
  .detail-hero { min-height: 290px; margin: 16px -5px 0; padding: 24px; }
  .detail-hero h1 { font-size: 28px; }
  .detail-tabs { position: sticky; top: 68px; z-index: 10; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .detail-section { padding: 18px; }
  .plan-placeholder { min-height: 150px; padding: 14px; gap: 7px; }
  .rating-summary { grid-template-columns: 1fr; justify-items: center; }
  .rating-bars { width: 100%; }
  .two-columns { grid-template-columns: 1fr; gap: 0; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .material-row { grid-template-columns: 1fr 1fr 32px; }
  .material-row input { grid-column: 1 / 3; grid-row: 2; }
  .material-row .remove-row { grid-column: 3; grid-row: 1 / 3; }
  .media-preview { grid-template-columns: repeat(3, 1fr); }
  .filter-sheet { height: 88vh; top: auto; bottom: 0; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .filter-sheet.open { transform: translateY(0); }
  .sheet-handle { display: block; width: 42px; height: 4px; margin: -6px auto 6px; border-radius: 99px; background: #c9cbc5; }
  .sheet-actions { width: 100%; }
}

/* Detailed project registration */
.period-summary { margin: -5px 0 24px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); background: var(--white); }
.period-summary span { color: var(--muted); font-size: 10px; }
.period-summary strong { font-size: 11px; }
.multi-choice { display: flex; flex-wrap: wrap; gap: 7px; }
.multi-choice button { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: var(--white); color: var(--muted); font-size: 10px; }
.multi-choice button.selected { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.material-group { margin-bottom: 28px; border: 1px solid var(--line); background: var(--white); }
.material-group-title { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.material-group-title span { color: var(--sage); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.material-group-title h3 { margin: 4px 0 0; font-size: 16px; }
.structured-materials { display: grid; }
.structured-material { padding: 12px 16px; display: grid; grid-template-columns: 110px 1fr 1fr 1.35fr; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.structured-material:last-child { border-bottom: 0; }
.structured-material strong { font-size: 10px; }
.structured-material input, .structured-material select { min-width: 0; width: 100%; border: 1px solid var(--line); padding: 10px; background: var(--paper); outline: 0; font-size: 10px; }
.structured-material input:focus, .structured-material select:focus { border-color: var(--sage); }
.structured-material .material-link-input { grid-column: 2 / -1; }
.separation-notice { margin-bottom: 25px; padding: 18px; border-left: 3px solid var(--ink); background: #eef1eb; }
.separation-notice strong { font-size: 12px; }
.separation-notice p { margin: 7px 0 0; color: #5f645b; font-size: 10px; line-height: 1.75; }
.rating-group { margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); background: var(--white); }
.rating-group > div:first-child span, .overall-score > div:first-child > span { color: var(--sage); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.rating-group h3, .overall-score h3 { margin: 4px 0 16px; font-size: 16px; }
.satisfaction-row { padding: 12px 0; display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.satisfaction-row > strong { font-size: 10px; }
.satisfaction-row > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.satisfaction-row button { border: 1px solid var(--line); padding: 9px 5px; background: var(--paper); color: var(--muted); font-size: 9px; }
.satisfaction-row button.selected { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.overall-score { margin-bottom: 24px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); background: var(--white); }
.overall-score h3 { margin-bottom: 4px; }
.overall-score p { margin: 0; color: var(--muted); font-size: 9px; }
.overall-stars button { font-size: 27px; }
.team-feedback-after { padding: 20px; border: 1px solid var(--line); background: #eef1eb; }
.team-feedback-after strong { font-size: 12px; }
.team-feedback-after p { margin: 8px 0 0; color: #5f645b; font-size: 10px; line-height: 1.75; }
.visitor-assignment { margin-top: 22px; padding: 22px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.visitor-assignment h3 { margin: 4px 0 8px; font-size: 20px; }
.visitor-assignment p { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.visitor-member-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 16px; }
.visitor-member { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); background: var(--paper); font-size: 11px; font-weight: 700; }
.visitor-member input { accent-color: var(--brand); }
.compact-field { margin-top: 12px; }
.detail-tabs.four-tabs button { font-size: 10px; }
.separated-label { margin: 0 0 22px; padding: 13px 15px; background: var(--paper); color: var(--text-2); font-size: 11px; line-height: 1.7; }
.detail-satisfaction-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 20px; }
.detail-satisfaction { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); background: var(--white); }
.detail-satisfaction span { font-size: 9px; }
.detail-satisfaction strong { padding: 4px 7px; background: #e9eae5; color: var(--sage-dark); font-size: 8px; }
.embedded-rating { margin: 0; }
.designer-issue { margin-top: 20px; padding: 20px; border: 1px solid var(--line); background: var(--white); }
.designer-issue strong { font-size: 11px; }
.designer-issue p { margin: 9px 0 0; color: var(--muted); font-size: 10px; }

@media (max-width: 760px) {
  .period-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .structured-material { grid-template-columns: 1fr 1fr; }
  .structured-material strong { grid-column: 1 / -1; }
  .structured-material [data-material-part="product"] { grid-column: 1 / -1; }
  .structured-material .material-link-input { grid-column: 1 / -1; }
  .satisfaction-row { grid-template-columns: 1fr; }
  .overall-score { align-items: flex-start; flex-direction: column; }
  .detail-tabs.four-tabs button { font-size: 8px; }
  .detail-satisfaction-grid { grid-template-columns: 1fr 1fr; }
}

/* Editorial project archive */
.topbar-actions { display: flex; gap: 8px; }
mark { padding: 0 .12em; background: #f3df83; color: #222; border-radius: 2px; }
.project-list, .project-grid { align-items: start; }
.project-card { border: 0; border-radius: 0; background: transparent; overflow: visible; box-shadow: none; }
.project-card:hover { transform: translateY(-4px); box-shadow: none; }
.project-image { height: auto; aspect-ratio: 3 / 4; padding: 0; background: #ddd; display: block; overflow: hidden; position: relative; }
.project-image::before, .project-image::after { display: none; }
.project-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .65s cubic-bezier(.2,.75,.2,1), filter .3s; }
.project-card:hover .project-image img { transform: scale(1.025); }
.card-index, .card-score { position: absolute; z-index: 2; top: 12px; padding: 7px 9px; background: rgba(20,20,18,.72); color: white; backdrop-filter: blur(8px); font-size: 9px; letter-spacing: .08em; }
.card-index { left: 12px; }
.card-score { right: 12px; }
.project-card-body { padding: 14px 2px 8px; }
.project-kicker { margin: 0 0 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.project-card h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.38; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.project-tags span { color: var(--sage-dark); font-size: 10px; }
.project-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 38px 18px; }
.project-grid .project-image { height: auto; }

.magazine-detail { max-width: 980px; margin: 0 auto; }
.detail-hero { min-height: min(76vh, 720px); margin: 18px 0 0; padding: 0; border-radius: 0; display: block; background: #bbb; }
.detail-hero::after { display: none; }
.detail-hero > img { width: 100%; height: 100%; min-height: min(76vh, 720px); position: absolute; inset: 0; object-fit: cover; }
.hero-shade { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(10,10,9,.78)); }
.detail-title { position: absolute; z-index: 2; left: 42px; right: 42px; bottom: 38px; }
.detail-title > p { margin: 0 0 10px; color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.detail-title h1 { margin: 0 0 15px; color: white; font-size: clamp(34px,6vw,62px); font-weight: 500; letter-spacing: -.05em; }
.detail-title h1 small { font-size: .42em; font-weight: 400; opacity: .75; }
.detail-title > div { display: flex; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.8); font-size: 10px; }
.detail-edit-button { margin-top: 20px; min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.42); border-radius: var(--radius-md); background: rgba(28,27,25,.36); color: white; backdrop-filter: blur(10px); font-size: 10px; font-weight: 700; }
.detail-edit-button:hover { border-color: white; background: rgba(122,36,40,.82); }
.detail-edit-button svg { width: 15px; height: 15px; }
.detail-intro { max-width: 820px; padding: 52px 28px 48px; margin: 0 auto; text-align: center; }
.detail-intro > p { margin: 0 0 15px; color: var(--sage); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.detail-intro strong { display: block; font: 500 clamp(18px,2.15vw,26px)/1.62 "Noto Sans KR",sans-serif; letter-spacing: -.035em; }
.detail-intro span { display: block; max-width: 720px; margin: 16px auto 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.detail-tabs { margin: 0 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; background: var(--paper); }
.detail-tabs button { padding: 18px 8px; border-radius: 0; position: relative; background: transparent; }
.detail-tabs button.active { color: var(--ink); background: transparent; box-shadow: none; }
.detail-tabs button.active::after { content: ""; height: 2px; position: absolute; left: 24%; right: 24%; bottom: -1px; background: var(--ink); }
.detail-section { border: 0; border-radius: 0; padding: 34px; }
.detail-section p { line-height: 1.8; }
.info-grid { gap: 1px; background: var(--line); }
.info-box { border: 0; border-radius: 0; padding: 24px; }
.info-box span { letter-spacing: .13em; }
.plan-section { margin-top: 34px; padding-left: 0; padding-right: 0; background: transparent; }
.plan-section .section-heading { padding: 0 4px; }
.plan-section .section-heading > span { color: var(--muted); font-size: 10px; }
.mobile-guide { display: none; }
.plan-slider { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 0 12px; }
.plan-slider::-webkit-scrollbar { display: none; }
.plan-slide { min-width: 0; min-height: 360px; border: 0; padding: 30px; background: #ebece7; touch-action: pan-x pinch-zoom; }
.plan-slide:nth-child(2) { background: #e0e5dd; }
.plan-slide svg { width: 100%; height: 100%; }
.plan-slide { position: relative; }
.plan-slide > img { width: 100%; height: 360px; display: block; object-fit: contain; }
.plan-label { position: absolute; top: 12px; left: 12px; padding: 7px 9px; background: rgba(32,35,31,.82); color: white; font: 500 9px/1 Georgia,serif; letter-spacing: .12em; }
.material-editorial { max-width: 760px; margin: 0 auto; padding: 44px; }
.material-editorial > h2 { margin-bottom: 25px; font-size: 25px; }
.material-link-guide { margin: -14px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.material-table td { padding: 20px 8px; }
.material-table td:nth-child(2) strong, .material-table td:nth-child(2) small { display: block; }
.material-table td:nth-child(2) small { margin-top: 6px; color: var(--muted); }
.material-table td:last-child { width: 76px; color: var(--muted); text-align: right; }
.material-link { min-height: 32px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--text-2); font-size: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.material-link svg { width: 13px; height: 13px; }
.material-link:hover { border-color: var(--brand-soft); background: var(--brand-tint); color: var(--brand); }
.material-link.direct { color: var(--brand); }
.project-facts { margin-top: 24px; }
.project-fact-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.project-fact-group { padding: 24px; background: var(--white); border: 1px solid var(--line); }
.project-fact-group:last-child { grid-column: 1 / -1; }
.project-fact-group h3 { margin: 0 0 18px; color: var(--brand); font-size: 12px; letter-spacing: .08em; }
.project-fact-group dl { margin: 0; }
.project-fact-group dl div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.project-fact-group dt { color: var(--muted); font-size: 9px; }
.project-fact-group dd { margin: 0; font-size: 11px; font-weight: 650; }
.material-spaces { display: grid; gap: 14px; margin-top: 25px; }
.material-space { border: 1px solid var(--line); background: var(--white); }
.material-space > header { display: flex; align-items: center; gap: 10px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.material-space > header span { color: var(--brand); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.material-space > header h3 { margin: 0; font-size: 16px; }
.material-space > header b { margin-left: auto; color: var(--muted); font-size: 9px; }
.material-space-item { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.material-space-item:first-child { border-top: 0; }
.material-space-item > span { color: var(--muted); font-size: 9px; }
.material-space-item strong, .material-space-item small { display: block; }
.material-space-item strong { font-size: 11px; }
.material-space-item small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.material-empty { padding: 30px; border: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 10px; }
.feedback-section { max-width: 800px; margin: 0 auto; padding: 44px; }
.feedback-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.feedback-head h2 { margin: 0; font-size: 27px; }
.mini-score strong { font: 500 30px/1 Georgia,serif; }
.mini-score span { color: var(--muted); font-size: 10px; }
.search-context { margin: 0 0 15px; padding: 12px 14px; background: #fbf4cf; color: #665b2f; font-size: 10px; }
.feedback-accordions { border-top: 1px solid var(--ink); }
.feedback-accordion { border-bottom: 1px solid var(--line); }
.accordion-trigger { width: 100%; padding: 22px 2px; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.accordion-trigger span { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.accordion-trigger b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font: 500 12px/1 Georgia,serif; }
.accordion-trigger i { font-style: normal; color: var(--muted); font-size: 18px; }
.accordion-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.accordion-body > p { min-height: 0; overflow: hidden; margin: 0; padding: 0 38px; color: #555950; font-size: 12px; line-height: 1.95; }
.feedback-accordion.open .accordion-body { grid-template-rows: 1fr; }
.feedback-accordion.open .accordion-body > p { padding-bottom: 24px; }
.rating-editorial { max-width: 800px; margin: 20px auto 0; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 40px; background: #eceee8; }
.plan-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 60px 20px; background: rgba(12,13,11,.94); color: white; overflow: auto; }
.plan-modal .plan-zoom { width: min(1000px,92vw); transform: scale(var(--zoom)); transform-origin: center; transition: transform .2s; touch-action: pinch-zoom; }
.plan-modal svg { width: 100%; height: auto; padding: 20px; background: white; }
.plan-modal .plan-zoom > img { width: 100%; max-height: 78vh; display: block; object-fit: contain; background: white; }
.plan-modal .plan-label { display: none; }
.plan-modal > p { position: fixed; left: 20px; bottom: 20px; color: rgba(255,255,255,.55); font-size: 10px; }
.plan-close { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; position: fixed; z-index: 2; top: 18px; right: 18px; background: rgba(0,0,0,.3); color: white; font-size: 24px; }
.zoom-controls { position: fixed; right: 20px; bottom: 20px; display: flex; gap: 6px; }
.zoom-controls button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.35); color: white; font-size: 20px; }
.cover-help { margin: -8px 0 24px; color: var(--muted); font-size: 10px; }
.media-item { aspect-ratio: 1; position: relative; border: 2px solid transparent; border-radius: 12px; overflow: hidden; }
.media-item img { height: 100%; border-radius: 0; }
.cover-select { width: 30px; height: 30px; border: 0; border-radius: 50%; position: absolute; top: 6px; right: 6px; background: rgba(20,20,18,.75); color: rgba(255,255,255,.55); }
.media-item > span { display: none; position: absolute; left: 7px; bottom: 7px; padding: 4px 6px; background: var(--ink); color: white; font-size: 8px; }
.media-item.cover { border-color: var(--sage); }
.media-item.cover .cover-select { color: #f5d978; }
.media-item.cover > span { display: block; }

.draft-toolbar { margin-bottom: 10px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); background: var(--white); }
.draft-toolbar > div:first-child { min-width: 0; }
.draft-toolbar strong, .draft-toolbar small { display: block; }
.draft-toolbar strong { margin: 5px 0 3px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-toolbar small { color: var(--muted); font-size: 9px; }
.draft-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #eceee8; color: var(--sage-dark); font-size: 8px; font-weight: 700; }
.draft-status[data-state="?묒꽦 ?꾨즺"] { background: #dcebd8; color: #42633d; }
.draft-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.draft-actions button { border: 1px solid var(--line); padding: 9px 11px; background: var(--paper); color: var(--muted); font-size: 9px; }
.editing-project .draft-toolbar { border-color: var(--brand-soft); background: var(--brand-tint); }
.editing-project .draft-status { background: var(--brand); color: white; }
.editing-project .edit-cancel { margin-right: auto; }
.existing-cover { pointer-events: none; }
.existing-cover > span { display: block; }
.status-selector { margin-bottom: 20px; display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.status-selector button { border: 0; padding: 11px 5px; background: var(--white); color: var(--muted); font-size: 10px; }
.status-selector button.selected { background: var(--ink); color: var(--paper); font-weight: 700; }
.role-guide { margin-bottom: 22px; padding: 16px; border-left: 3px solid var(--sage); background: #eef1eb; }
.role-guide strong { font-size: 11px; }
.role-guide p { margin: 6px 0 0; color: #62675f; font-size: 10px; line-height: 1.7; }
.cover-fallback { margin: -6px 0 22px; padding: 12px; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 13px; border: 1px solid var(--line); background: var(--white); }
.cover-fallback img { width: 76px; height: 92px; object-fit: cover; }
.cover-fallback strong { font-size: 11px; }
.cover-fallback p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.feedback-author-tabs { margin-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #e9eae5; }
.feedback-author-tabs button { border: 0; padding: 12px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.feedback-author-tabs button.selected { background: var(--white); color: var(--ink); box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.author-panel { display: none; }
.author-panel.active { display: block; }
.author-note { margin: 0 0 18px; color: var(--muted); font-size: 10px; }
.prompt-field { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.prompt-field > small { display: block; margin: -3px 0 11px; color: var(--sage-dark); font-size: 9px; line-height: 1.6; }
.prompt-field textarea { background: var(--paper); }
.quick-phrases { margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.quick-phrases > strong { display: block; margin-bottom: 10px; font-size: 11px; }
.quick-phrases > div { display: flex; flex-wrap: wrap; gap: 7px; }
.quick-phrases button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: var(--white); color: var(--sage-dark); font-size: 9px; }
.completion-score { margin-bottom: 18px; padding: 20px; background: var(--ink); color: var(--paper); }
.completion-score > span { font-size: 10px; opacity: .7; }
.completion-score > strong { display: block; margin: 4px 0 15px; font: 500 32px/1 Georgia,serif; }
.completion-score > div { height: 4px; background: rgba(255,255,255,.18); }
.completion-score i { width: 0; height: 100%; display: block; background: #c6d3bf; transition: width .3s; }
.checklist { margin-bottom: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-item { min-height: 58px; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--white); }
.check-item > b { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #f1e5df; color: #9c6348; font-size: 10px; }
.check-item.done > b { background: #dde8d9; color: #50704a; }
.check-item > span { font-size: 10px; font-weight: 600; }
.check-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 400; }
.retrospective-card { padding: 27px; background: #e6e1d7; }
.retrospective-card h3 { margin: 0 0 22px; font-size: 23px; }
.retrospective-card label { display: block; padding: 16px 0; border-top: 1px solid rgba(32,35,31,.16); }
.retrospective-card label > span { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; }
.retrospective-card textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(32,35,31,.22); padding: 9px 0; background: transparent; outline: 0; resize: vertical; }
.change-log-section { margin-top: 24px; padding: 22px; border: 1px solid var(--line); background: var(--white); }
.change-log-section h3, .change-log-section p { margin: 0; }
.change-log-section h3 { font-size: 15px; }
.change-log-section p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.change-log-section ol { margin: 17px 0 0; padding: 0; list-style: none; }
.change-log-section li { padding: 10px 0; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); font-size: 9px; }
.change-log-section time { color: var(--muted); white-space: nowrap; }
.empty-log { color: var(--muted); }

.live-feedback-section { max-width: 860px; margin: 20px auto 0; }
.live-feedback-section .section-heading h2 { font-size: 28px; }
.live-feedback-section .section-heading > span { color: var(--brand); font-size: 12px; font-weight: 750; }
.team-comments { display: grid; gap: 9px; }
.feedback-topics { display: grid; gap: 22px; }
.feedback-topic { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.feedback-topic > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 24px 26px 18px; }
.feedback-topic > header span { display: block; margin-bottom: 5px; color: var(--brand); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.feedback-topic > header h3 { margin: 0; font-size: 20px; line-height: 1.35; }
.feedback-topic > header b { padding: 6px 9px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 10px; white-space: nowrap; }
.feedback-topic-prompt { margin: 0; padding: 0 26px 20px; color: var(--text-2); font-size: 11px; line-height: 1.7; }
.feedback-topic-responses { border-top: 1px solid var(--line); }
.topic-response { padding: 22px 26px; border-top: 1px solid var(--line); background: var(--surface); }
.topic-response:nth-child(even) { background: var(--surface-muted); }
.topic-response:first-child { border-top: 0; }
.topic-response.important { border-left: 3px solid #b68a56; }
.topic-response.adopted { background: var(--brand-tint); }
.response-body { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 14px; }
.response-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-size: 10px; font-weight: 800; }
.response-body > p { margin: 0; color: var(--text); font-size: 14px; font-weight: 450; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.topic-response footer { display: flex; align-items: center; gap: 9px; margin: 16px 0 0 48px; }
.topic-response footer small, .topic-response footer time { color: var(--muted); font-size: 9px; }
.topic-response footer time { margin-right: auto; }
.topic-response footer button { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 7px 9px; background: var(--surface); color: var(--muted); font-size: 9px; }
.topic-response.adopted footer button:last-child { background: var(--brand); color: white; }
.team-comment { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.team-comment.important { border-left: 3px solid #b68a56; }
.team-comment.adopted { background: #f0f3ed; }
.team-comment header, .team-comment footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team-comment header > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.team-comment header strong { font-size: 11px; }
.team-comment time { color: var(--muted); font-size: 8px; }
.role-badge { padding: 4px 6px; background: var(--ink); color: var(--paper); font-size: 8px; }
.comment-category { color: var(--sage-dark); font-size: 9px; }
.team-comment > p { margin: 14px 0; color: #555950; font-size: 11px; line-height: 1.85; }
.team-comment footer { justify-content: flex-end; }
.team-comment footer button { border: 0; padding: 6px 8px; background: var(--paper); color: var(--muted); font-size: 8px; }
.team-comment.adopted footer button:last-child { background: var(--sage); color: white; }
.team-feedback-form { margin-top: 28px; padding: 24px; background: var(--paper); }
.feedback-form-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.team-feedback-form label > span { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 700; }
.team-feedback-form select, .team-feedback-form textarea { width: 100%; border: 1px solid var(--line); padding: 11px; background: var(--white); outline: 0; }
.comment-input { display: block; margin: 12px 0; }
.feedback-form-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.feedback-form-intro h3 { margin: 3px 0 0; font-size: 23px; }
.feedback-form-intro > strong { font: 500 22px/1 Georgia,serif; color: var(--sage-dark); }
.feedback-form-help { margin: 14px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.feedback-identity { margin-bottom: 24px; padding: 16px; background: var(--white); }
.identity-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 14px; padding: 4px; background: var(--paper); }
.identity-choice button { border: 0; padding: 11px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; }
.identity-choice button.selected { background: var(--white); color: var(--ink); box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.identity-fixed strong, .identity-fixed span { display: block; }
.identity-fixed strong { font-size: 12px; }
.identity-fixed span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.feedback-author-field { display: block; }
.team-feedback-form.anonymous-selected .feedback-author-field { display: none; }
.feedback-questionnaire { display: grid; gap: 10px; }
.feedback-question { display: block; padding: 17px; border: 1px solid var(--line); background: var(--white); }
.feedback-question > span { display: flex !important; align-items: center; gap: 9px; margin-bottom: 12px !important; font-size: 13px !important; }
.feedback-question > span b { width: 24px; height: 24px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 8px; }
.feedback-question > span em { margin-left: auto; color: var(--sage-dark); font-size: 8px; font-style: normal; }
.feedback-question textarea { min-height: 112px; padding: 14px; resize: vertical; font-size: 13px; line-height: 1.75; }
.feedback-question textarea:focus { border-color: var(--sage-dark); box-shadow: 0 0 0 3px rgba(120,134,111,.09); }
.feedback-submit { width: 100%; margin-top: 16px; }
.team-feedback-locked { margin-top: 28px; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.team-feedback-locked strong { display: block; margin-bottom: 8px; color: var(--brand); font-size: 14px; }
.team-feedback-locked p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.feedback-work-toolbar { max-width: 860px; margin: 0 auto 28px; padding: 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.feedback-work-toolbar label { display: grid; gap: 7px; min-width: 240px; }
.feedback-work-toolbar span { font-size: 9px; font-weight: 800; color: var(--brand); letter-spacing: .08em; }
.feedback-work-toolbar select { min-height: 42px; border: 1px solid var(--line); padding: 0 12px; background: var(--paper); }
.feedback-work-toolbar p { max-width: 420px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; text-align: right; }
.feedback-work-section { max-width: 860px; margin: 0 auto 30px; }
.feedback-work-section .section-heading > span { color: var(--brand); font-size: 12px; font-weight: 800; }
.feedback-work-list { display: grid; gap: 10px; }
.feedback-work-card { min-height: 86px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; box-shadow: var(--shadow-sm); }
.feedback-work-card:hover { border-color: var(--brand-soft); transform: translateY(-1px); }
.feedback-work-card span { display: inline-flex; margin-bottom: 8px; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.feedback-work-card span.todo { background: var(--brand-tint); color: var(--brand); }
.feedback-work-card span.done { background: #e7ece3; color: var(--sage-dark); }
.feedback-work-card strong { display: block; font-size: 16px; }
.feedback-work-card p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.feedback-work-card b { white-space: nowrap; color: var(--brand); font-size: 11px; }
.feedback-work-empty { padding: 24px; border: 1px dashed var(--line-strong); background: var(--paper); }
.feedback-work-empty strong { display: block; margin-bottom: 6px; font-size: 13px; }
.feedback-work-empty p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.extra-material-group { margin-top: 20px; }
.material-group-title { align-items: center; }
.material-group-title .compact-button { width: auto; min-height: 34px; margin-left: auto; padding: 0 12px; font-size: 9px; }
.material-group-help { margin: -5px 0 14px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.extra-material-list { display: grid; gap: 8px; }
.extra-material-row { display: grid; grid-template-columns: .8fr .8fr .8fr 1fr 1.2fr 1.25fr 34px; gap: 6px; }
.extra-material-row input { min-width: 0; border: 1px solid var(--line); padding: 10px; background: var(--surface-muted); font-size: 9px; }
.extra-material-row button { border: 0; background: var(--brand-tint); color: var(--brand); font-size: 16px; }
.electric-material-list, .issue-comment-list { display: grid; gap: 8px; padding: 14px 16px 18px; }
.electric-material-row { display: grid; grid-template-columns: .85fr 1fr 1fr 1.3fr 1.35fr 34px; gap: 7px; }
.electric-material-row input, .electric-material-row select, .issue-comment-row select, .issue-comment-row textarea { min-width: 0; border: 1px solid var(--line); padding: 10px; background: var(--surface-muted); font: inherit; font-size: 10px; color: var(--ink); }
.electric-material-row button, .issue-comment-row button { border: 0; background: var(--brand-tint); color: var(--brand); font-size: 16px; }
.issue-comment-heading { margin-top: 22px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-bottom: 0; background: var(--white); }
.issue-comment-heading strong { font-size: 14px; }
.issue-comment-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.issue-comment-heading .compact-button { width: auto; flex: 0 0 auto; }
.issue-comment-list { border: 1px solid var(--line); background: var(--white); }
.issue-comment-row { display: grid; grid-template-columns: 145px 1fr 34px; gap: 8px; align-items: stretch; }
.issue-comment-row textarea { min-height: 104px; resize: vertical; line-height: 1.75; }
.issue-entry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.issue-entry-grid .field { margin: 0; }
.issue-entry-grid .issue-site { grid-column: 1 / -1; }
.feedback-import-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.feedback-import-field { margin: 0; padding: 16px; border: 1px solid var(--line); background: var(--white); }
.feedback-import-field small { display: block; margin: -2px 0 8px; color: var(--muted); font-size: 8px; }
.designer-issue-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.designer-issue-list article { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.designer-issue-list article:last-child:nth-child(odd) { grid-column: 1 / -1; }
.designer-issue-list strong { color: var(--brand); font-size: 10px; }
.designer-issue-list p { margin: 8px 0 0; color: var(--text-2); font-size: 10px; line-height: 1.8; white-space: pre-line; }
.retrospective-summary { max-width: 800px; margin: 20px auto 0; background: #e6e1d7; }
.retrospective-summary h2 { margin-bottom: 22px; font-size: 24px; }
.retrospective-summary > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(32,35,31,.15); }
.retrospective-summary article { padding: 18px; background: #e6e1d7; }
.retrospective-summary article span { display: block; margin-bottom: 12px; font-size: 9px; font-weight: 700; }
.retrospective-summary article p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.8; }

.admin-heading { padding-bottom: 22px; }
.admin-local-notice { margin-bottom: 18px; padding: 18px 20px; border-left: 3px solid var(--sage-dark); background: #eef1eb; }
.admin-local-notice strong { display: block; font-size: 12px; }
.admin-local-notice p { margin: 5px 0 0; color: #60665d; font-size: 9px; line-height: 1.7; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-card { padding: 26px; border: 1px solid var(--line); background: var(--white); }
.admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-card-head span { display: block; margin-bottom: 5px; color: var(--sage-dark); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.admin-card-head h2 { margin: 0; font-size: 22px; }
.admin-card-head > b { padding: 7px 9px; background: var(--paper); color: var(--muted); font-size: 9px; white-space: nowrap; }
.admin-card > p { margin: 12px 0 20px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.admin-add-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 8px; margin-bottom: 16px; }
.admin-add-form label span { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 700; }
.admin-add-form input { width: 100%; border: 1px solid var(--line); padding: 12px; background: var(--paper); outline: 0; }
.admin-add-form .primary-button { min-width: 68px; }
.admin-member-list { border-top: 1px solid var(--ink); }
.admin-member { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.admin-member span { font-size: 11px; font-weight: 600; }
.admin-member button { border: 0; padding: 7px 9px; background: var(--paper); color: var(--muted); font-size: 8px; }
.anonymity-card { margin-top: 14px; }
.admin-mode-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.admin-mode-options button { min-height: 104px; border: 1px solid var(--line); padding: 18px; background: var(--paper); color: var(--ink); text-align: left; }
.admin-mode-options button.selected { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.admin-mode-options strong, .admin-mode-options span { display: block; }
.admin-mode-options strong { margin-bottom: 7px; font-size: 11px; }
.admin-mode-options span { opacity: .68; font-size: 9px; line-height: 1.6; }

.editing-project .form-actions { position: sticky; z-index: 20; bottom: 12px; padding: 12px; border: 1px solid var(--line); background: rgba(255,253,250,.96); box-shadow: 0 12px 32px rgba(31,25,22,.12); backdrop-filter: blur(10px); }
.notification-panel { width: min(390px,calc(100vw - 24px)); max-height: min(620px,calc(100vh - 90px)); position: fixed; z-index: 160; top: 72px; right: 18px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 20px 50px rgba(31,25,22,.18); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .18s ease; }
.notification-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.notification-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.notification-panel-head h2 { margin: 2px 0 0; font-size: 22px; }
.notification-panel-head button { width: 34px; height: 34px; border: 0; background: var(--surface-muted); font-size: 20px; }
.notification-list { overflow: auto; }
.notification-item { width: 100%; display: grid; grid-template-columns: 7px 1fr; gap: 12px; padding: 17px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.notification-item:hover { background: var(--surface-muted); }
.notification-item > span { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--line-strong); }
.notification-item.unread > span { background: var(--brand); }
.notification-item strong, .notification-item p, .notification-item time { display: block; }
.notification-item strong { font-size: 11px; }
.notification-item p { margin: 5px 0; color: var(--text-2); font-size: 9px; line-height: 1.55; }
.notification-item time { color: var(--muted); font-size: 8px; }
.notification-empty { padding: 40px 24px; text-align: center; }
.notification-empty strong { font-size: 12px; }
.notification-empty p { color: var(--muted); font-size: 9px; }
.notification-read-all { border: 0; padding: 13px; background: var(--surface-muted); color: var(--brand); font-size: 9px; font-weight: 750; }

@media (max-width: 760px) {
  .topbar-actions { gap: 4px; }
  .topbar-actions .icon-button { width: 36px; height: 36px; }
  .project-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 10px; margin: 0; padding: 0; overflow: visible; }
  .project-list .project-card { min-width: 0; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 10px; }
  .project-card-body { padding-top: 10px; }
  .project-card h3 { font-size: 13px; }
  .project-kicker { font-size: 8px; letter-spacing: .06em; }
  .project-tags { gap: 4px; }
  .project-tags span { font-size: 8px; }
  .card-index { display: none; }
  .card-score { top: 8px; right: 8px; padding: 5px 7px; font-size: 8px; }
  .detail-hero { min-height: 68vh; margin: 12px -18px 0; }
  .detail-hero > img { min-height: 68vh; }
  .detail-title { left: 22px; right: 22px; bottom: 25px; }
  .detail-title h1 { font-size: 31px; }
  .detail-edit-button { margin-top: 16px; }
  .detail-intro { padding: 38px 8px; }
  .detail-intro strong { font-size: 18px; line-height: 1.65; }
  .detail-tabs { margin-left: -18px; margin-right: -18px; top: 64px; }
  .detail-tabs button { padding: 16px 4px; font-size: 10px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-box { padding: 17px; }
  .desktop-guide { display: none; }
  .mobile-guide { display: inline; }
  .plan-slider { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .plan-slide { min-height: 230px; padding: 12px; scroll-snap-align: start; }
  .material-editorial, .feedback-section { margin: 0 -5px; padding: 27px 18px; }
  .feedback-head h2 { font-size: 23px; }
  .accordion-trigger { padding: 19px 0; }
  .accordion-body > p { padding-left: 36px; padding-right: 4px; }
  .rating-editorial { grid-template-columns: 1fr; gap: 22px; justify-items: center; padding: 28px 20px; }
  .rating-editorial .rating-bars { width: 100%; }
  .media-preview { grid-template-columns: repeat(3,1fr); }
  .plan-upload-section { padding: 18px; }
  .plan-upload-heading { display: block; }
  .plan-upload-heading p { margin-top: 9px; text-align: left; }
  .plan-upload-grid { grid-template-columns: 1fr; }
  .plan-upload-card { min-height: 210px; }
  .plan-slide > img { height: 230px; }
  .draft-toolbar { align-items: flex-start; padding: 14px; }
  .draft-actions { flex-direction: column; }
  .checklist { grid-template-columns: 1fr; }
  .retrospective-card { padding: 20px; }
  .feedback-form-grid { grid-template-columns: 1fr; }
  .retrospective-summary > div { grid-template-columns: 1fr; }
  .live-feedback-section { margin-left: -5px; margin-right: -5px; padding: 22px 14px; }
  .live-feedback-section .section-heading h2 { font-size: 23px; }
  .feedback-topic > header { padding: 20px 18px 15px; }
  .feedback-topic > header h3 { font-size: 18px; }
  .feedback-topic-prompt { padding: 0 18px 17px; }
  .topic-response { padding: 19px 18px; }
  .response-body { grid-template-columns: 29px 1fr; gap: 11px; }
  .response-number { width: 29px; height: 29px; }
  .response-body > p { font-size: 13px; line-height: 1.8; word-break: normal; }
  .topic-response footer { margin-left: 40px; flex-wrap: wrap; }
  .topic-response footer time { margin-right: 0; }
  .topic-response footer button:first-of-type { margin-left: auto; }
  .feedback-form-intro h3 { font-size: 19px; }
  .admin-grid, .admin-mode-options { grid-template-columns: 1fr; }
  .admin-card { padding: 20px; }
  .admin-add-form { grid-template-columns: 1fr; }
  .admin-add-form .primary-button { width: 100%; }
  .admin-mode-options button { min-height: 86px; }
  .extra-material-row { grid-template-columns: 1fr 1fr; padding: 12px; border: 1px solid var(--line); }
  .extra-material-row button { min-height: 36px; }
  .electric-material-row { grid-template-columns: 1fr 1fr; padding: 12px; border: 1px solid var(--line); }
  .electric-material-row [data-electric-part="product"], .electric-material-row [data-electric-part="link"] { grid-column: 1 / -1; }
  .electric-material-row button { min-height: 36px; }
  .issue-comment-heading { align-items: flex-start; }
  .issue-comment-row { grid-template-columns: 1fr 36px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .issue-comment-row textarea { grid-column: 1 / -1; grid-row: 2; }
  .issue-entry-grid, .feedback-import-grid, .designer-issue-list { grid-template-columns: 1fr; }
  .issue-entry-grid .issue-site, .designer-issue-list article:last-child:nth-child(odd) { grid-column: auto; }
  .project-fact-groups { grid-template-columns: 1fr; }
  .project-fact-group:last-child { grid-column: auto; }
  .material-space-item { grid-template-columns: 65px 1fr; }
  .material-space-item .material-link { grid-column: 2; justify-self: start; }
  .notification-panel { top: 64px; right: 12px; }
}

/* ADELA Design System v2.2 application layer */
body {
  background: #e6e3de;
  font-family: "Segoe UI", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

svg { stroke-width: 1.5; }

.app-shell { box-shadow: 0 0 42px rgba(28, 27, 25, .07); }
.topbar { background: rgba(242, 240, 237, .94); border-bottom-color: rgba(212, 208, 200, .86); }
.brand-mark { width: 34px; height: 34px; border-radius: 0; object-fit: contain; background: transparent; }
.brand strong { color: var(--brand); letter-spacing: .08em; }
.desktop-nav button::after { background: var(--brand); }
.desktop-nav button:hover,
.desktop-nav button:focus-visible,
.desktop-nav button.active { color: var(--brand); }
.desktop-nav button.active { border-color: var(--brand-soft); background: var(--brand-tint); }

.icon-button { border-radius: var(--radius-md); }
.notification-dot { background: var(--brand); border-color: var(--surface); }

.hero {
  background:
    linear-gradient(125deg, rgba(28, 27, 25, .98), rgba(68, 65, 61, .94)),
    radial-gradient(circle at 82% 18%, rgba(122, 36, 40, .9), transparent 38%);
}
.hero .eyebrow { color: var(--brand-soft); }
.eyebrow,
.text-button,
.material-label,
.project-tags span,
.detail-intro > p,
.material-group-title span,
.rating-group > div:first-child span,
.overall-score > div:first-child > span,
.admin-card-head span { color: var(--brand); }

.search-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.summary-grid { border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.summary-grid article:first-child { background: var(--brand); border-color: var(--brand); }
.summary-grid article:first-child span,
.summary-grid article:first-child strong,
.summary-grid article:first-child small { color: var(--surface); }

.tag,
.active-filter {
  border-color: var(--brand-soft);
  background: var(--brand-tint);
  color: var(--brand);
}

.filter-button,
.primary-button,
.empty-state button { background: var(--brand); color: #fff; }
.filter-button:hover,
.primary-button:hover,
.empty-state button:hover { background: var(--brand-hover); }
.filter-button span { background: rgba(255, 255, 255, .18); }
.secondary-button { background: var(--brand-tint); color: var(--brand); }

.search-field,
.field input,
.field select,
.field textarea,
.material-row select,
.material-row input,
.structured-material input,
.structured-material select,
.team-feedback-form select,
.team-feedback-form textarea,
.admin-add-form input {
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--text);
}

.search-field input,
.material-row select,
.material-row input,
.structured-material input,
.structured-material select,
.team-feedback-form select,
.team-feedback-form textarea,
.admin-add-form input { color: var(--text); }

input::placeholder,
textarea::placeholder { color: var(--text-3); opacity: 1; }

.search-field:focus-within,
.field input:focus,
.field select:focus,
.field textarea:focus,
.structured-material input:focus,
.structured-material select:focus,
.team-feedback-form select:focus,
.team-feedback-form textarea:focus,
.admin-add-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
  outline: 0;
}

.choice-grid button,
.filter-options button { border-radius: var(--radius-md); background: var(--surface); }
.choice-grid button.selected,
.filter-options button.selected {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}

.multi-choice button.selected,
.satisfaction-row button.selected,
.status-selector button.selected,
.admin-mode-options button.selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.form-progress div,
.completion-score i,
.table-progress i { background: var(--brand); }
.form-section-title > span,
.feedback-question > span b { background: var(--brand); }
.completion-score { background: var(--brand); }
.budget-range input { accent-color: var(--brand); }

.detail-tabs button.active::after { background: var(--brand); }
.detail-tabs button.active { color: var(--brand); }
.separation-notice,
.admin-local-notice { border-left-color: var(--brand); background: var(--brand-tint); }
.separation-notice p,
.admin-local-notice p { color: var(--text-2); }

.info-box,
.detail-section,
.material-row,
.rating-input,
.admin-card,
.prompt-field,
.team-comment,
.feedback-question { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

.role-badge { background: var(--brand); }
.team-comment.adopted { background: #f1f2ed; }
.team-comment.adopted footer button:last-child { background: var(--olive); }
.check-item.done > b { background: #e5e7df; color: var(--olive); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.bottom-nav button.active { color: var(--brand); }
.bottom-nav .create-nav { color: var(--brand); }
.plus { background: var(--brand); box-shadow: 0 5px 14px rgba(122, 36, 40, .22); }

@media (max-width: 760px) {
  .brand-mark { width: 30px; height: 30px; }
  .bottom-nav { background: rgba(255, 253, 250, .96); }
}

.auth-chip { min-width: 120px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); color: var(--text-2); font-size: 10px; font-weight: 700; }
.auth-chip button { border: 0; border-left: 1px solid var(--line); padding: 0 0 0 8px; background: transparent; color: var(--brand); font-size: 9px; font-weight: 800; }
.auth-gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(28,27,25,.42); backdrop-filter: blur(14px); }
.auth-card { width: min(100%, 420px); padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); }
.auth-card h1 { margin: 0; font-size: 30px; letter-spacing: -.05em; }
.auth-card > p:not(.eyebrow):not(.auth-help) { margin: 12px 0 24px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.auth-form { display: grid; gap: 14px; }
.auth-form label span { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 800; }
.auth-form input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-muted); outline: 0; }
.auth-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.auth-form .primary-button { width: 100%; min-height: 48px; margin-top: 4px; }
.auth-help { margin: 16px 0 0; color: var(--text-3); font-size: 10px; line-height: 1.7; }
body.auth-required .app-shell { filter: blur(1px); pointer-events: none; user-select: none; }
body.auth-required .auth-gate { pointer-events: auto; }

@media (max-width: 760px) {
  .auth-chip { min-width: 0; max-width: 128px; }
  .auth-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .auth-card { padding: 28px; }
}
.auth-secondary { width: 100%; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); color: var(--text-2); font-size: 10px; font-weight: 800; }
.auth-secondary.compact { width: auto; min-height: 32px; margin-top: 10px; padding: 8px 11px; border-radius: var(--radius-md); background: transparent; }
.supabase-health { display: grid; gap: 8px; margin-top: 12px; }
.health-line { display: grid; grid-template-columns: 42px 1fr; gap: 4px 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.health-line b { display: inline-flex; justify-content: center; padding: 4px 6px; border-radius: 999px; font-size: 8px; color: #fff; background: var(--text-3); }
.health-line span { font-size: 10px; font-weight: 800; color: var(--text-1); }
.health-line small { grid-column: 2; color: var(--text-3); font-size: 9px; line-height: 1.5; }
.health-line.ok b { background: #5f7d4f; }
.health-line.warn b { background: #a06b1f; }
.health-line.fail b { background: var(--brand); }
.health-line.info b { background: var(--text-3); }



