:root{--bg:#fbf9f5;--brown:#9a6943;--ink:#302b27;--line:#ece5dc;--cream:#f4ebdf}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 'Malgun Gothic',sans-serif}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button{color:inherit}aside{position:fixed;width:218px;inset:0 auto 0 0;background:#f5eee5;border-right:1px solid var(--line)}.logo{width:196px;height:196px;object-fit:contain;margin:10px;background:white;border-radius:12px}nav button{display:block;width:100%;text-align:left;padding:16px 24px;background:transparent;border:0;font-size:16px}nav button.active{background:#eadbc8;color:#77421c;border-left:4px solid #a27149;font-weight:bold}main{margin-left:218px;padding:26px 22px}header{display:flex;align-items:center;justify-content:space-between;gap:16px}header input{width:50%;min-width:280px;padding:12px 18px;border:1px solid #ddd;border-radius:10px;background:#f6f6f6;box-shadow:0 2px 3px #00000008}header span{color:#735b48}.notice{color:#8b7b6c;font-size:12px;margin:12px 0}#summary{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:18px 0 24px}.summary{border:1px solid var(--line);border-radius:10px;background:white;padding:14px;box-shadow:0 3px 8px #60452e08;display:flex;align-items:center;gap:12px}.summary i{font-style:normal;background:var(--cream);border-radius:50%;padding:10px;font-size:21px;color:var(--brown)}.summary strong{display:block;font-size:22px}.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px}.filters button,.filters select,.filters label{padding:10px 14px;border:1px solid var(--line);background:#f6f3ef;border-radius:7px}.filters button.active{background:var(--brown);color:white}.filters label{font-size:12px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:16px;align-items:start}#content{min-width:0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:9px;box-shadow:0 2px 5px #61462e08;cursor:pointer}.photo{height:155px;border-radius:8px;background:linear-gradient(135deg,#eee9e0,#dfd1bf);position:relative;display:flex;align-items:center;justify-content:center;color:#816a55}.photo span.placeholder{font-size:13px;border:1px dashed #baa58c;border-radius:8px;padding:20px}.badge{display:inline-block;background:#e1efdf;color:#287049;padding:3px 12px;border-radius:15px;font-size:12px}.badge[data-state='조사중']{background:#e0eaff;color:#2860af}.badge[data-state='샘플주문'],.badge[data-state='테스트중']{background:#eee4f7;color:#795594}.badge[data-state='탈락']{background:#f9e3df;color:#b3483c}.photo .badge{position:absolute;top:7px;left:7px}.star{position:absolute;right:8px;top:8px;border:0;border-radius:50%;background:white;font-size:20px}.card h3{font-size:15px;margin:10px 4px 6px}.tags{display:flex;gap:4px;flex-wrap:wrap;margin:0 4px 10px}.tags span{background:#f1f0ee;border-radius:4px;padding:1px 6px;font-size:12px}.metrics{display:grid;grid-template-columns:1fr auto;gap:3px;padding:0 5px}.margin{color:#bd6445}.detail-button{width:100%;padding:8px;margin-top:10px;border:1px solid #ead8c4;background:#faf5ee;border-radius:7px;font-weight:bold}#detail{background:white;border:1px solid var(--line);border-radius:12px;padding:12px;position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}#detail:empty{display:none}.detail-head{display:flex;justify-content:space-between;align-items:center}.close{border:0;background:transparent;font-size:25px}.detail-photo{height:190px;margin:6px 0 12px}.tabs{display:flex;background:#f6f3ef;overflow:auto;white-space:nowrap;margin:14px 0}.tabs button{font-size:11px;padding:10px 8px;border:0;background:transparent}.tabs button.active{color:#87502e;border-bottom:2px solid #9a6943;font-weight:bold}.field{display:block;margin:9px 0;font-size:12px;color:#74685d}.field input,.field select,.field textarea{width:100%;padding:8px;border:1px solid #e4ded5;border-radius:6px;background:white;color:var(--ink);margin-top:3px}.field textarea{min-height:66px;resize:vertical}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.save{width:100%;background:var(--brown);color:white;border:0;padding:10px;border-radius:7px;margin-top:10px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:12px}.panel h2{margin-top:0;font-size:19px}.row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.row button{border:1px solid var(--line);background:#faf5ee;border-radius:6px;padding:5px 10px}.empty{padding:40px;text-align:center;color:#8d7b67}.bar{height:9px;background:#eee6dc;border-radius:8px;overflow:hidden}.bar div{height:100%;background:#b58a62}#toast{position:fixed;bottom:25px;left:50%;background:#493729;color:white;padding:10px 20px;border-radius:8px;display:none;z-index:30}h1,h2,h3{color:#2e2823}a{color:#8a5635}img.upload{width:100%;max-height:160px;object-fit:contain}.score{font-size:24px;color:var(--brown)}@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 390px}.photo{height:200px}}@media(max-width:1150px){aside{width:185px}.logo{width:165px;height:165px}main{margin-left:185px}.workspace{grid-template-columns:minmax(0,1fr) 310px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}#summary{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){aside{position:static;width:100%;border:0}.logo{width:80px;height:80px;margin:8px}nav{display:flex;overflow:auto}nav button{width:auto;white-space:nowrap;padding:12px;font-size:13px}main{margin-left:0;padding:14px}header{flex-wrap:wrap}header input{width:100%;min-width:0}header span{font-size:13px}#summary{gap:6px;margin:12px 0}.summary{padding:8px;gap:5px;font-size:11px}.summary i{font-size:14px;padding:5px}.summary strong{font-size:19px}.workspace{display:block}.cards{gap:8px}.photo{height:130px}.card h3{font-size:13px}.metrics{font-size:11px}#detail{position:fixed;inset:10px;max-height:calc(100dvh - 20px);z-index:20;box-shadow:0 0 0 20px #0007}.filters{gap:6px}.filters button,.filters select,.filters label{padding:7px;font-size:12px}}
.reference-photo{position:absolute;inset:0;background-image:none;background-size:643.14% 1016.1%;border-radius:8px}.workspace:has(#detail:empty){grid-template-columns:1fr}.summary{text-align:left;color:var(--ink)}.card:focus-visible,button:focus-visible{outline:2px solid #9a6943;outline-offset:3px}

.info{font-size:12px;margin:0}.info>div{display:grid;grid-template-columns:90px 1fr;padding:7px 0;border-bottom:1px solid var(--line)}.info dt{color:#75695d}.info dd{margin:0;overflow-wrap:anywhere}.detail-photo{height:210px}
/* Typography only: existing geometry, colors and interactions are retained. */
@font-face {
  font-family: 'Pretendard Variable';
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url('assets/fonts/PretendardVariable.woff2') format('woff2');
}
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
nav button { font-weight: 500; line-height: 24px; letter-spacing: -0.02em; }
nav button.active { font-weight: 600; }
header input, .filters button, .filters select { font-weight: 500; }
.summary { font-weight: 500; }
.summary strong { font-size: 24px; font-weight: 600; line-height: 33px; letter-spacing: -0.025em; }
.summary i { letter-spacing: normal; }
.card h3 { font-size: 16px; font-weight: 650; line-height: 22.5px; letter-spacing: -0.025em; }
.metrics { line-height: 21px; }
.metrics b { font-weight: 550; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.badge, .tags span, .field { font-weight: 500; line-height: 18px; letter-spacing: -0.015em; }
.tags span { font-weight: 400; }
.detail-button, .save { font-weight: 600; }
#detail h2 { font-size: 24px; font-weight: 700; line-height: 31.5px; letter-spacing: -0.03em; margin-top: 17.43px; margin-bottom: 17.43px; }
.tabs button { font-weight: 500; line-height: 16.5px; letter-spacing: -0.02em; }
.tabs button.active { font-weight: 600; }
.info { line-height: 18px; }
.info dt { font-weight: 500; }
.info dd { font-weight: 400; }
.panel h2 { font-weight: 650; letter-spacing: -0.025em; }
.score { font-weight: 600; }
@media (max-width:760px) {
  nav button { line-height: 19.5px; }
  .summary strong { font-size: 21px; line-height: 28.5px; }
  .card h3 { font-size: 14px; line-height: 19.5px; }
  .metrics { line-height: 16.5px; }
}
/* Gowun Dodum UI; digits deliberately fall through to Pretendard. */
@font-face {
  font-family: 'Gowun Dodum';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/GowunDodum-Regular.ttf') format('truetype');
  unicode-range: U+0000-002F, U+003A-10FFFF;
}
body {
  font-family: 'Gowun Dodum', 'Pretendard Variable', Pretendard,
    -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}
nav button, .summary, header input, .filters button, .filters select,
.tabs button, .badge, .tags span, .field, .info dt, .info dd,
.detail-button, .save { font-weight: 400; }
nav button.active, .tabs button.active { font-weight: 600; }
.card h3, #detail h2, .panel h2 { font-weight: 600; letter-spacing: -0.025em; }
.metrics b, .summary strong, .score, input[type='number'], input[type='date'] {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
.metrics b { font-weight: 550; }
.summary strong, .score { font-weight: 600; }
