/* MOORIM TEXTILE — paper / ink / indigo */
:root {
  --paper: #f4f1e9; --paper-2: #ece7da; --card: #faf8f3; --white: #fff;
  --ink: #14130f; --ink-2: #22241f; --ink-soft: #46443c; --mute: #6f6b5f; --line: #d9d3c4; --line-2: #e6e1d4;
  --accent: #27358c; --accent-deep: #1b2566; --accent-soft: #dfe2f1; --accent-light: #b9c2f0;
  --coral: #d9512f; --ok: #3f6d22; --ok-soft: #e1ebd2; --warn: #9a6400; --warn-soft: #f4e6c4;
  --font: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  --display: "Fraunces", "Pretendard Variable", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 14px; --r-sm: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--font); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.2; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
.page-pad { padding-top: 56px; padding-bottom: 96px; }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.page-h { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; margin-bottom: 16px; }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 640px; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.paper:hover { background: #fff; }
.btn.ghost-light { background: transparent; border-color: rgba(244, 241, 233, .4); color: var(--paper); }
.btn.ghost-light:hover { border-color: var(--paper); background: rgba(244, 241, 233, .08); }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; color: var(--coral); border-color: #e7b8aa; }
.btn.danger:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn .ic { width: 18px; height: 18px; }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline { display: inline; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 20; background: rgba(244, 241, 233, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1.05; margin: 0; text-decoration: none !important; }
.logo b { font-weight: 800; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.logo small { font: 500 8.5px/1.6 var(--mono); letter-spacing: .2em; color: var(--mute); margin-top: 3px; }
.gnb { display: flex; gap: 22px; margin-left: auto; }
.gnb a { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); padding: 6px 0; border-bottom: 1.5px solid transparent; text-decoration: none; white-space: nowrap; }
.gnb a:hover, .gnb a.on { color: var(--ink); border-color: var(--ink); }
.util { display: flex; align-items: center; gap: 14px; }
.gnb + .util { margin-left: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font: 600 11px/1 var(--mono); }
.lang a { padding: 5px 8px; border-radius: 999px; color: var(--mute); text-decoration: none; }
.lang a.on { background: var(--ink); color: var(--paper); }
.util-ic { position: relative; display: inline-flex; padding: 4px; }
.util-ic em { position: absolute; top: -4px; right: -7px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 10px/17px var(--font); text-align: center; font-style: normal; padding: 0 4px; }
.util-txt { font-size: 13px; font-weight: 600; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; padding: 4px; display: flex; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; right: -8px; top: 44px; width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; box-shadow: 0 18px 40px -20px rgba(20, 19, 15, .35); }
.mnav-panel a { padding: 11px 12px; font-size: 14px; font-weight: 600; border-radius: 8px; text-decoration: none; }
.mnav-panel a:hover { background: var(--paper-2); }
.flash { background: var(--ink); color: var(--paper); font-size: 14px; padding: 12px 0; }
.flash.in { border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
.flash.err { background: var(--coral); }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line); background: var(--paper-2); padding: 56px 0 40px; margin-top: 0; font-size: 13px; color: var(--ink-soft); }
.ft-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ft-name { font-weight: 600; color: var(--ink); margin: 18px 0 8px; }
.ft-info { margin: 0; display: grid; gap: 2px; }
.ft-info div { display: flex; gap: 10px; }
.ft-info dt { color: var(--mute); min-width: 92px; }
.ft-info dd { margin: 0; }
.ft-nav { display: flex; gap: 56px; }
.ft-nav div { display: grid; gap: 8px; align-content: start; }
.ft-nav b { font: 600 11px var(--mono); letter-spacing: .14em; color: var(--mute); margin-bottom: 4px; }
.ft-copy { margin: 40px 0 0; color: var(--mute); font-size: 12px; }

/* ---------- home ---------- */
.hero { background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero .eyebrow { color: var(--accent-light); }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.06; margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero p.lead { color: #d6d2c6; font-size: 17.5px; margin-bottom: 34px; }
.hero-note { margin-top: 16px; font-size: 13px; color: #a29e91; }
.loupe { position: relative; aspect-ratio: 1; max-width: 520px; margin-left: auto; width: 100%; }
.loupe-img { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; background: #2c2b26; }
.loupe-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.loupe svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loupe-cap { display: flex; justify-content: space-between; gap: 12px; font: 500 11px/1.5 var(--mono); letter-spacing: .1em; color: #a29e91; margin-top: 18px; text-transform: uppercase; }
.loupe-cap a { color: var(--paper); }
.band { background: var(--accent); color: #fff; }
.band-in { display: grid; grid-template-columns: auto 1fr; gap: 24px 72px; align-items: end; padding-top: 64px; padding-bottom: 64px; }
.band .eyebrow { color: var(--accent-light); }
.band-num { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 9vw, 128px); line-height: .9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.band-num small { font-family: var(--font); font-size: .28em; font-weight: 600; letter-spacing: -0.02em; margin-left: 6px; }
.band-split { display: flex; gap: 36px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 18px; font-size: 14px; }
.band-split b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.band-split a { color: #fff; }
.band-meta { font-size: 12px; color: var(--accent-light); margin-top: 14px; }
.sec { padding: 112px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-dark { background: var(--ink-2); color: var(--paper); border: 0 !important; }
.sec-dark .eyebrow { color: var(--accent-light); }
.sec-dark .lead { color: #c9c5b8; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.sec-head .lead { margin: 0; justify-self: end; }
.lib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lib-card { display: block; text-decoration: none !important; }
.lib-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--paper-2); }
.lib-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.lib-card h3 { font-size: 22px; font-weight: 700; margin: 20px 0 4px; display: flex; justify-content: space-between; align-items: baseline; }
.lib-card h3 span { font: 400 15px var(--display); color: var(--mute); }
.lib-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.lib-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.fit { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.fit h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 22px; }
.fit-panel { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 28px; }
.fit-panel .fp-title { display: flex; justify-content: space-between; font: 600 11px var(--mono); letter-spacing: .14em; color: var(--mute); margin-bottom: 16px; }
.fit-group { padding: 14px 0; border-top: 1px solid var(--line); }
.fit-group > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line); }
.steps li:not(:nth-child(4n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.steps b { display: block; font: 400 40px/1 var(--display); color: var(--accent); margin-bottom: 18px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.track { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.track-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line-2); font-size: 14px; }
.track-row:first-child { border-top: 0; }
.track-row .mono { color: var(--mute); font-size: 12px; }
.track-head { background: var(--paper-2); font: 600 11px var(--mono); letter-spacing: .1em; color: var(--mute); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 24px var(--font); color: var(--mute); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-right: 40px; margin: -6px 0 22px; }
.cta { background: var(--paper-2); }
.cta-in { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; padding-top: 88px; padding-bottom: 88px; }
.cta h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }

/* ---------- list / filter ---------- */
.list-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding: 48px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.list-head h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; letter-spacing: -0.04em; }
.list-head .lead { margin: 8px 0 0; font-size: 15px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; background: var(--card); }
.tabs a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.browse { display: grid; grid-template-columns: 240px 1fr; gap: 44px; padding-bottom: 96px; }
.filters { align-self: start; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.filters summary { display: none; }
.fgroup { border-top: 1px solid var(--line); padding: 14px 0 16px; }
.fgroup > b { display: block; font: 600 11px var(--mono); letter-spacing: .12em; color: var(--mute); text-transform: uppercase; margin-bottom: 10px; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 0 12px; height: 44px; margin-bottom: 18px; }
.search-box input, .search-box input[type=search] { border: 0; outline: 0; background: none; flex: 1; font: inherit; min-width: 0; height: 100%; min-height: 0; padding: 0; }
.search-box .ic { color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; background: var(--card); cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.range { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.range input { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; background: var(--white); min-width: 0; }
.filter-actions { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; font-size: 13.5px; color: var(--ink-soft); flex-wrap: wrap; }
.result-bar select { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 0 10px; font: inherit; font-size: 13px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.active-filters a { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 36px 20px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.item { position: relative; }
.item-img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px solid var(--line-2); }
.item-img.sq { aspect-ratio: 1; }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.item-img:hover img { transform: scale(1.035); }
.item-body { display: grid; gap: 2px; padding-top: 12px; text-decoration: none !important; }
.item-body:hover .item-name { text-decoration: underline; text-underline-offset: 3px; }
.code { font: 500 11px/1.5 var(--mono); color: var(--mute); letter-spacing: .02em; }
.item-name { font-size: 15.5px; font-weight: 650; letter-spacing: -0.02em; }
.item-comp { font-size: 13px; color: var(--ink-soft); }
.item-spec { font-size: 12px; color: var(--mute); }
.scrap { position: absolute; top: 10px; right: 10px; margin: 0; }
.scrap button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(250, 248, 243, .92); display: grid; place-items: center; color: var(--ink); }
.scrap button.on { color: var(--coral); }
.scrap button.on svg { fill: var(--coral); }
.wm { position: relative; }
.wm::after { content: "MOORIM TEXTILE · PREVIEW"; position: absolute; inset: auto 0 10px 0; text-align: center; font: 600 10px var(--mono); letter-spacing: .2em; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); pointer-events: none; }
.wm-big::after { inset: 50% 0 auto 0; transform: translateY(-50%) rotate(-18deg); font-size: clamp(14px, 2.4vw, 26px); color: rgba(255, 255, 255, .5); }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 56px 24px; text-align: center; color: var(--ink-soft); }
.empty p { margin-bottom: 16px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 56px; }
.pager a, .pager b { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; border: 1px solid var(--line); text-decoration: none; }
.pager b { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- detail ---------- */
.crumb { font-size: 12.5px; color: var(--mute); padding: 24px 0 0; }
.crumb a { color: var(--ink-soft); }
.detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 28px 0 88px; }
.gallery-main { border-radius: var(--r); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; border: 1px solid var(--line-2); }
.gallery-main.sq { aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; width: 92px; background: var(--paper-2); text-align: left; }
.thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs span { display: block; font-size: 11px; padding: 5px 7px; color: var(--ink-soft); }
.d-info h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.035em; margin: 6px 0 4px; }
.d-sub { color: var(--ink-soft); margin-bottom: 26px; }
.spec { margin: 0 0 28px; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec dt { color: var(--mute); font-size: 13px; }
.spec dd { margin: 0; }
.d-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.d-actions form { display: contents; }
.d-note { font-size: 12.5px; color: var(--mute); }
.related { padding: 64px 0 96px; border-top: 1px solid var(--line); }
.related h2 { font-size: 22px; margin-bottom: 26px; }

/* ---------- forms ---------- */
.f { display: grid; gap: 6px; margin-bottom: 16px; }
.f > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.f small { color: var(--mute); font-size: 12px; }
.req::after { content: " *"; color: var(--coral); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); padding: 0 12px; font: inherit; font-size: 14.5px; color: var(--ink); }
textarea { padding: 10px 12px; min-height: 120px; resize: vertical; line-height: 1.55; }
input[type=file] { font-size: 13px; padding: 8px 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 16px; height: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel h2, .panel h3 { font-size: 18px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.auth { max-width: 460px; margin: 0 auto; padding: 72px 0 112px; }
.auth h1 { font-size: 34px; font-weight: 700; margin-bottom: 8px; }
.auth .panel { margin-top: 28px; }
.err-box { background: #fbe9e3; color: #8c2c13; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.choice label { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--white); display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice small { display: block; color: var(--mute); font-size: 12px; }

/* ---------- tables / badges ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--mute); font-size: 12px; border-bottom: 1px solid var(--line); padding: 10px 12px; white-space: nowrap; }
.tbl td { border-bottom: 1px solid var(--line-2); padding: 12px; vertical-align: middle; }
.tbl tr:hover td { background: rgba(236, 231, 218, .35); }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .mono, .tbl td:first-child a { white-space: nowrap; }
.tbl .thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line-2); }
.tbl tfoot td { font-weight: 700; border-top: 1px solid var(--ink); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--accent-soft); color: var(--accent-deep); }
.b-done { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-mute { background: var(--paper-2); color: var(--mute); }
.dot-new { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-left: 6px; vertical-align: middle; }

/* ---------- project ---------- */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.stepper li { flex: 1 0 118px; padding: 14px 14px; font-size: 12.5px; color: var(--mute); border-left: 1px solid var(--line-2); display: flex; gap: 8px; align-items: center; }
.stepper li:first-child { border-left: 0; }
.stepper i { font: normal 600 11px/20px var(--mono); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.stepper li.done { color: var(--ink-soft); }
.stepper li.done i { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stepper li.now { color: var(--accent-deep); font-weight: 700; background: var(--accent-soft); }
.stepper li.now i { background: var(--accent); color: #fff; border-color: var(--accent); }
.proj-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding: 40px 0 24px; }
.proj-head h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.proj { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 24px 0 96px; align-items: start; }
.proj-side { display: grid; gap: 20px; position: sticky; top: 92px; }
.thread { display: grid; gap: 14px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--white); }
.msg.staff { border-left: 3px solid var(--accent); }
.msg.buyer { border-left: 3px solid var(--ink); }
.msg.internal { background: #fbf4dc; border-color: #ead9a2; border-left: 3px solid var(--warn); }
.msg-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--mute); margin-bottom: 6px; }
.msg-meta b { color: var(--ink); font-weight: 600; }
.msg-body { white-space: pre-wrap; font-size: 14.5px; }
.msg.event { background: transparent; border: 0; border-left: 1px dashed var(--line); padding: 2px 0 2px 14px; font-size: 12.5px; color: var(--mute); border-radius: 0; }
.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.files a { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; background: var(--card); }
.files .ic { width: 14px; height: 14px; }
.mini-items { display: grid; gap: 10px; }
.mini-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; font-size: 13.5px; }
.mini-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-2); }
.mini-item b { display: block; font-weight: 600; }
.kv { margin: 0; display: grid; gap: 8px; font-size: 13.5px; }
.kv div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; }
.box-list { display: grid; gap: 12px; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--white); }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.box-head b { font-size: 15px; }
.box .act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: flex-start; }
.box .act form { margin: 0; }
.bt-chip { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); float: right; margin-left: 12px; }
details.more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 12px; }

/* ---------- my page ---------- */
.my-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; }
.my-nav a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; text-decoration: none; background: var(--card); }
.my-nav a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; background: var(--card); text-decoration: none !important; display: block; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.stat b { display: block; font: 400 40px/1.1 var(--display); margin-top: 6px; }
.scrap-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; }
.folders { display: grid; gap: 4px; align-content: start; }
.folders a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-decoration: none; }
.folders a.on { background: var(--ink); color: var(--paper); }
.folders a:not(.on):hover { background: var(--paper-2); }
.folders a em { font-style: normal; color: var(--mute); font-size: 12px; }
.folders a.on em { color: #b9b5a8; }
.sortable [data-id] { cursor: grab; }
.sortable .dragging { opacity: .4; }
.scrap-tools { display: flex; gap: 6px; margin-top: 8px; }
.scrap-tools select { height: 32px; font-size: 12px; min-height: 0; padding: 0 6px; }

/* ---------- content pages ---------- */
.prose { font-size: 16px; color: var(--ink-soft); max-width: 720px; }
.prose p { white-space: pre-line; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.split h2 { font-size: 24px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--card); }
.cap b { font: 600 11px var(--mono); letter-spacing: .14em; color: var(--mute); }
.cap h3 { font-size: 19px; margin: 12px 0 8px; }
.cap p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- admin ---------- */
body.adm { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: #f1eee6; font-size: 14px; }
.adm-side { background: var(--ink); color: #d6d2c6; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; }
.adm-side .logo { color: var(--paper); padding: 0 10px 22px; }
.adm-side .logo small { color: #8c887b; }
.adm-side nav { display: grid; gap: 1px; }
.adm-side nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: 13.5px; }
.adm-side nav a:hover { background: #24231e; color: #fff; }
.adm-side nav a.on { background: var(--paper); color: var(--ink); font-weight: 600; }
.adm-side nav a em { font-style: normal; background: var(--coral); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; line-height: 18px; }
.adm-side hr { border-color: #2f2e28; margin: 10px 0; }
.adm-me { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid #2f2e28; display: grid; gap: 6px; font-size: 12.5px; }
.adm-me span { color: #fff; }
.adm-main { padding: 28px 36px 80px; min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.adm-top h1 { font-size: 24px; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm .panel { background: #fff; padding: 22px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-height: 38px; font-size: 13.5px; }
.toolbar input[type=search] { min-width: 240px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none !important; display: block; }
.kpi span { font-size: 12.5px; color: var(--ink-soft); }
.kpi b { display: block; font: 400 32px/1.15 var(--display); margin-top: 4px; }
.bar { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-form select[name=line_unit] { min-width: 72px; }
.margin-pos { color: var(--ok); font-weight: 600; }
.margin-neg { color: var(--coral); font-weight: 600; }
.admin-only { border: 1px solid #ead9a2; background: #fffaf0; border-radius: 12px; padding: 18px; }
.admin-only > b:first-child { display: inline-block; font: 600 11px var(--mono); letter-spacing: .1em; color: var(--warn); margin-bottom: 10px; }

/* ---------- glass ----------
   위쪽은 레이아웃, 여기서는 표면(반투명 유리·테두리 빛·그림자)만 덮어쓴다.
   backdrop-filter(흐림)는 뒤로 이미지·글자가 지나가는 면(헤더, 히어로, 검색 패널, 메뉴, 푸터, 관리자 사이드바)에만 쓴다.
   매끈한 배경 위 카드는 흐림 차이가 없으므로 성능을 위해 반투명 채움만 쓴다. */
:root {
  --g-fill: rgba(255, 255, 255, .5);
  --g-line: rgba(255, 255, 255, .78);
  --g-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(46, 40, 28, .07), 0 22px 46px -28px rgba(46, 40, 28, .45), 0 2px 8px -4px rgba(46, 40, 28, .12);
  --g-shadow-sm: inset 0 1px 0 rgba(255, 255, 255, .85), 0 0 0 1px rgba(46, 40, 28, .07), 0 6px 16px -10px rgba(46, 40, 28, .35);
  --g-lift: inset 0 1px 0 rgba(255, 255, 255, .95), 0 0 0 1px rgba(46, 40, 28, .07), 0 30px 54px -28px rgba(46, 40, 28, .55);
  --g-blur: blur(22px) saturate(1.7);
  --rr: 22px;
}
body, body.adm { background: #e8e4da; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58vw 52vh at 96% 2%, rgba(39, 53, 140, .26), transparent 72%),
    radial-gradient(48vw 56vh at -4% 34%, rgba(128, 150, 108, .32), transparent 72%),
    radial-gradient(62vw 58vh at 78% 104%, rgba(214, 156, 104, .36), transparent 72%),
    radial-gradient(42vw 40vh at 22% 96%, rgba(39, 53, 140, .14), transparent 72%),
    linear-gradient(180deg, #ece8df, #e6e1d6); }
/* 평직 결 — 아주 옅게 */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(70, 60, 40, .028) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 4px); }

/* 유리 카드 */
.panel, .lib-card, .steps li, .track, .cta-in, .d-info, .gallery, .stat, .cap, .kpi, .item, .filters {
  background: var(--g-fill); border: 1px solid var(--g-line); box-shadow: var(--g-shadow); }
.panel, .lib-card, .steps li, .track, .cta-in, .d-info, .gallery, .stat, .cap, .kpi, .item, .hero-glass, .fit-panel, .hd-in { position: relative; }
/* 가장자리 빛 */
:is(.panel, .lib-card, .steps li, .track, .cta-in, .d-info, .gallery, .stat, .cap, .kpi, .item, .hero-glass, .fit-panel, .hd-in)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .2) 28%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero-glass::before, .fit-panel::before { background: linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .2)); }
.panel { border-radius: var(--rr); }
.panel + .panel { margin-top: 16px; }

/* 헤더: 떠 있는 유리 캡슐 */
.hd { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 12px 20px 0; pointer-events: none; z-index: 30; }
.hd-in { pointer-events: auto; max-width: 1200px; height: 62px; padding: 0 12px 0 24px; border-radius: 20px; background: rgba(255, 255, 255, .56); border: 1px solid rgba(255, 255, 255, .62); box-shadow: var(--g-shadow); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); }
.gnb { gap: 2px; }
.gnb a { font-size: 12px; letter-spacing: .02em; padding: 8px 10px; border: 0; border-radius: 999px; transition: background .15s; }
.gnb a:hover, .gnb a.on { background: rgba(255, 255, 255, .78); box-shadow: var(--g-shadow-sm); text-decoration: none; }
.lang { background: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(46, 40, 28, .06); }
.mnav-panel { background: rgba(250, 248, 243, .96); border: 1px solid rgba(255, 255, 255, .9); border-radius: 20px; box-shadow: inset 0 1px 0 #fff, 0 30px 60px -24px rgba(20, 19, 15, .45); }
.mnav-panel a:hover { background: rgba(20, 19, 15, .05); }
.flash { background: none; padding: 12px 20px 0; }
.flash .wrap { max-width: 1200px; background: rgba(20, 19, 15, .84); border-radius: 16px; padding: 12px 20px; box-shadow: 0 12px 30px -16px rgba(20, 19, 15, .6); }
.flash.in { background: rgba(20, 19, 15, .84); border-radius: 14px; box-shadow: 0 12px 30px -16px rgba(20, 19, 15, .6); }
.flash.err .wrap, .flash.err.in { background: rgba(217, 81, 47, .92); }

/* 버튼·알약 */
.btn { border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 18px -10px rgba(20, 19, 15, .55); }
.btn.sm { border-radius: 10px; }
.btn.line { background: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: var(--g-shadow-sm); }
.btn.line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.paper { box-shadow: inset 0 1px 0 #fff, 0 10px 24px -12px rgba(0, 0, 0, .6); }
.btn.ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn.danger { background: rgba(255, 255, 255, .5); border-color: rgba(217, 81, 47, .35); box-shadow: var(--g-shadow-sm); }
.tabs a, .my-nav a, .pager a, .pager b, .chip span, .thumbs button, .choice label {
  background: rgba(255, 255, 255, .52); border-color: rgba(255, 255, 255, .82); box-shadow: var(--g-shadow-sm); }
.tabs a.on, .my-nav a.on, .pager b, .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 6px 16px -8px rgba(20, 19, 15, .6); }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--g-shadow-sm); }
.folders a.on { box-shadow: 0 6px 16px -8px rgba(20, 19, 15, .6); }
.folders a:not(.on):hover { background: rgba(255, 255, 255, .5); }

/* 입력 */
:is(input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea) {
  background: rgba(255, 255, 255, .72); border-color: rgba(70, 60, 40, .14); box-shadow: inset 0 1px 2px rgba(46, 40, 28, .05); }
:is(input, select, textarea):focus { background: #fff; }
.search-box { background: rgba(255, 255, 255, .66); border-color: rgba(255, 255, 255, .85); box-shadow: inset 0 1px 2px rgba(46, 40, 28, .06), 0 0 0 1px rgba(46, 40, 28, .07); border-radius: 12px; }
.range input, .result-bar select { background: rgba(255, 255, 255, .66); border-color: rgba(70, 60, 40, .14); }

/* 히어로: 흐린 원단 위 유리 카드 + 확대경 */
.hero { position: relative; isolation: isolate; background: #11110e; margin-top: -74px; }
.flash + main > .hero:first-child { margin-top: 0; }
.hero-in { grid-template-columns: 1.2fr .8fr; padding-top: 150px; padding-bottom: 104px; }
.hero-bg { position: absolute; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); max-width: none; object-fit: cover; z-index: -2; filter: blur(14px) brightness(.5) saturate(1.15); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 80% at 25% 45%, rgba(17, 17, 14, .1), rgba(17, 17, 14, .72)); }
.hero-glass { padding: 46px 46px 40px; border-radius: 30px; background: rgba(24, 23, 19, .36); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 40px 90px -40px rgba(0, 0, 0, .75); backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5); }
.hero h1 { font-size: clamp(38px, 4.8vw, 68px); }
.hero p.lead { margin-bottom: 30px; }
.loupe-img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 90px -30px rgba(0, 0, 0, .85); }
.loupe-img::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 60px rgba(0, 0, 0, .5);
  background: radial-gradient(70% 45% at 30% 12%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 62%), radial-gradient(60% 36% at 72% 100%, rgba(255, 255, 255, .12), transparent 62%); }
.loupe-cap { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* 등록 현황 */
.band { position: relative; overflow: hidden; background: linear-gradient(120deg, #1d2870 0%, #27358c 50%, #34449e 100%); }
.band-in { padding-top: 56px; padding-bottom: 56px; }
.band-split { border-top: 0; padding-top: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.band-split a { padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); text-decoration: none; transition: background .2s; }
.band-split a:hover { background: rgba(255, 255, 255, .16); }

/* 섹션 */
.sec { padding: 96px 0; }
.sec + .sec { border-top: 0; }
.lib-card { padding: 12px 12px 22px; border-radius: 28px; transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
.lib-card:hover { transform: translateY(-3px); box-shadow: var(--g-lift); }
.lib-mosaic { border-radius: 18px; gap: 4px; }
.lib-card h3 { margin: 18px 8px 4px; }
.lib-card p { margin: 0 8px; }
.sec-dark { position: relative; isolation: isolate; overflow: hidden; background: #171713; }
.sec-bg { position: absolute; inset: -80px; width: calc(100% + 160px); height: calc(100% + 160px); max-width: none; object-fit: cover; z-index: -2; filter: blur(50px) saturate(1.5) brightness(.75); }
.sec-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(23, 23, 19, .86) 22%, rgba(23, 23, 19, .28)); }
.fit-panel { background: rgba(255, 255, 255, .08); color: var(--paper); border: 1px solid rgba(255, 255, 255, .16); border-radius: 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 40px 90px -40px rgba(0, 0, 0, .7); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); }
.fit-panel .fp-title { color: #b9b5a8; }
.fit-group { border-top-color: rgba(255, 255, 255, .12); }
.fit-group > span { color: #d9d5c9; }
.fit-panel .search-box { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.fit-panel .search-box input { color: var(--paper); }
.fit-panel .search-box input::placeholder { color: #a9a597; }
.fit-panel .search-box .ic { color: #a9a597; }
.fit-panel .chip span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #ece8dd; box-shadow: none; }
.fit-panel .chip input:checked + span { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.fit-panel .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.steps { border-top: 0; gap: 14px; }
.steps li, .steps li:not(:nth-child(4n+1)) { padding: 26px 24px 28px; border: 1px solid var(--g-line); border-radius: var(--rr); }
.track { border-radius: var(--rr); }
.track-head { background: rgba(255, 255, 255, .38); }
.track-row { border-top-color: rgba(255, 255, 255, .7); }
.faq { display: grid; gap: 10px; }
.faq details, .faq details:last-child { border: 1px solid var(--g-line); border-radius: 18px; background: var(--g-fill); box-shadow: var(--g-shadow-sm); padding: 0 22px; }
.faq details p { padding-right: 0; }
.cta { background: none; padding: 16px 0 96px; }
.cta-in { padding: 64px 56px; border-radius: 32px; background: linear-gradient(135deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .3)); }

/* 목록·상세 */
.list-head { border-bottom-color: rgba(255, 255, 255, .75); }
.filters { padding: 18px 18px 20px; border-radius: var(--rr); }
.fgroup, .filter-actions { border-top-color: rgba(70, 60, 40, .1); }
.active-filters a { background: rgba(39, 53, 140, .12); }
.item { padding: 10px 10px 16px; border-radius: 20px; transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
.item:hover { transform: translateY(-3px); box-shadow: var(--g-lift); }
.item-img { border: 0; border-radius: 14px; }
.item-body { padding: 12px 6px 0; }
.scrap { top: 18px; right: 18px; }
.scrap button { background: rgba(255, 255, 255, .72); box-shadow: var(--g-shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.detail { gap: 28px; }
.gallery { padding: 12px; border-radius: 28px; align-self: start; }
.gallery-main { border: 0; border-radius: 18px; }
.thumbs { margin-top: 10px; }
.thumbs button { border-radius: 12px; }
.thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.d-info { padding: 34px; border-radius: 28px; align-self: start; }
.spec div { border-bottom-color: rgba(70, 60, 40, .1); }
.related { border-top-color: rgba(255, 255, 255, .75); }
.empty { background: rgba(255, 255, 255, .32); border-color: rgba(70, 60, 40, .22); border-radius: var(--rr); }

/* 프로젝트·마이페이지 */
.stepper { background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .82); border-radius: 18px; box-shadow: var(--g-shadow-sm); padding: 4px; gap: 4px; }
.stepper li { border-left: 0; border-radius: 14px; }
.stepper li.now { background: rgba(39, 53, 140, .12); box-shadow: inset 0 0 0 1px rgba(39, 53, 140, .18); }
.box { background: rgba(255, 255, 255, .58); border-color: rgba(255, 255, 255, .85); border-radius: 16px; box-shadow: var(--g-shadow-sm); }
.msg { background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: var(--g-shadow-sm); }
.msg.staff { background: rgba(225, 229, 246, .74); border-left: 1px solid rgba(255, 255, 255, .85); }
.msg.buyer { border-left: 1px solid rgba(255, 255, 255, .85); }
.msg.internal { background: rgba(251, 240, 205, .78); border-color: rgba(234, 214, 150, .9); }
.msg.event { background: none; border: 0; border-left: 1px dashed rgba(70, 60, 40, .22); box-shadow: none; border-radius: 0; }
.files a { background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .85); box-shadow: var(--g-shadow-sm); }
.stat, .cap, .kpi { border-radius: 20px; }
.tbl th { border-bottom-color: rgba(70, 60, 40, .14); }
.tbl td { border-bottom-color: rgba(70, 60, 40, .08); }
.tbl tr:hover td { background: rgba(255, 255, 255, .45); }
.admin-only { background: rgba(255, 246, 222, .62); border-color: rgba(234, 214, 150, .9); border-radius: 18px; box-shadow: var(--g-shadow-sm); }

/* 푸터·관리자 */
.ft { background: rgba(255, 255, 255, .34); border-top: 1px solid rgba(255, 255, 255, .78); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.adm-side { background: rgba(20, 19, 15, .86); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06); }
.adm .panel { background: rgba(255, 255, 255, .68); }

/* 흐림 미지원 브라우저·투명도 줄이기 설정 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hd-in { background: rgba(247, 245, 240, .96); }
  .hero-glass { background: rgba(24, 23, 19, .78); }
  .fit-panel { background: rgba(36, 35, 30, .92); }
  .ft { background: rgba(240, 237, 230, .95); }
}
@media (prefers-reduced-transparency: reduce) {
  .hd-in, .panel, .lib-card, .steps li, .track, .cta-in, .d-info, .gallery, .stat, .cap, .kpi, .item, .filters, .ft, .faq details { background: #f6f4ef; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-glass, .fit-panel { background: rgba(24, 23, 19, .9); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .item, .lib-card, .item-img img { transition: none; }
  .item:hover, .lib-card:hover { transform: none; }
}

/* 알림·확대 보기·법적 고지 */
.util-ic em.hot { background: var(--coral); }
.notes { display: grid; gap: 6px; }
.note { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .8); text-decoration: none !important; font-size: 14px; }
.note:hover { background: rgba(255, 255, 255, .75); }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.note.unread { background: rgba(255, 255, 255, .78); box-shadow: var(--g-shadow-sm); }
.note.unread .note-dot { background: var(--coral); }
.note.unread .note-text { font-weight: 600; }
.note-time { font-size: 12px; color: var(--mute); white-space: nowrap; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(17, 17, 14, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); cursor: zoom-out; }
.lightbox-x { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .85); font-size: 22px; line-height: 1; }
.legal p { white-space: pre-line; font-size: 14.5px; }
.ft-copy { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.ft-copy a { color: var(--ink-soft); }

/* 문장 검색 */
.ask { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.ask input[type=search] { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--paper); font-size: 15.5px; padding: 0 12px; box-shadow: none; }
.ask input[type=search]::placeholder { color: #a9a597; }
.ask input[type=search]:focus { outline: none; background: transparent; }
.ask:focus-within { border-color: rgba(185, 194, 240, .7); }
.ask .btn { min-height: 44px; }
.ask-box { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--g-shadow-sm); font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1220px) {
  .gnb { display: none; }
  .util { margin-left: auto; }
  .mnav { display: block; }
}
@media (max-width: 960px) {
  .hero-in, .fit, .two, .sec-head, .detail, .proj, .split { grid-template-columns: 1fr; }
  .sec-head .lead { justify-self: start; }
  .loupe { max-width: 420px; margin: 0 auto; }
  .lib { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .browse { grid-template-columns: 1fr; gap: 0; }
  .filters { position: static; max-height: none; overflow: visible; padding: 0 16px; margin-bottom: 24px; }
  .filters[open] { padding-bottom: 16px; }
  .filters summary { display: flex; justify-content: space-between; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
  .filters summary::-webkit-details-marker { display: none; }
  .proj-side { position: static; }
  .caps, .cards3 { grid-template-columns: 1fr; }
  .scrap-layout { grid-template-columns: 1fr; }
  body.adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; padding: 12px 12px 10px; }
  .adm-side .logo { padding: 0 6px 10px; }
  .adm-side nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .adm-side nav a { white-space: nowrap; flex: none; }
  .adm-side hr { display: none; }
  .adm-me { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; padding: 8px 6px 0; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hd { padding: 8px 10px 0; }
  .hd-in { height: 56px; gap: 10px; padding: 0 8px 0 16px; border-radius: 18px; }
  .hd .logo b { font-size: 14px; }
  .hd .logo small { display: none; }
  .util { gap: 8px; }
  .util-user { display: none; } /* 모바일 메뉴의 '마이페이지'로 대신 */
  .lang a { padding: 5px 6px; }
  .hero { margin-top: -64px; }
  .hero-in { padding-top: 96px; padding-bottom: 56px; gap: 32px; }
  .hero-glass { padding: 28px 22px 26px; border-radius: 24px; }
  .sec { padding: 64px 0; }
  .band-in { grid-template-columns: 1fr; }
  .band-split { gap: 8px; }
  .band-split a { padding: 14px 12px; font-size: 12px; border-radius: 14px; }
  .band-split b { font-size: 26px; }
  .lib { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .item { padding: 6px 6px 12px; border-radius: 16px; }
  .item-img { border-radius: 11px; }
  .item-body { padding: 10px 4px 0; }
  .scrap { top: 12px; right: 12px; }
  .scrap button { width: 32px; height: 32px; }
  .row2, .row3, .row4, .d-actions { grid-template-columns: 1fr; }
  .track-row { grid-template-columns: 1fr auto; }
  .track-row .mono { grid-column: 1 / -1; }
  .cta-in { padding: 40px 24px; border-radius: 24px; }
  .ft-nav { gap: 28px; flex-wrap: wrap; }
  .panel { padding: 20px; }
  .d-info { padding: 22px; border-radius: 22px; }
  .gallery { padding: 8px; border-radius: 22px; }
  .spec div { grid-template-columns: 96px 1fr; }
  .adm-main { padding: 20px 16px 64px; }
  .toolbar input[type=search] { min-width: 0; width: 100%; }
}

/* ---------- 발주 시트: 엑셀처럼 칸이 보이는 표 (고객사 양식) ---------- */
.xl { border-collapse: collapse; width: 100%; background: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.xl th, .xl td { border: 1px solid #c9c3b4; padding: 0; height: 32px; text-align: center; vertical-align: middle; white-space: nowrap; }
.xl th { background: #f2efe6; color: var(--ink-soft); font-size: 12px; font-weight: 600; padding: 4px 8px; }
.xl th.red { color: #c0352b; }
.xl th.cap { background: #e9e4d6; color: var(--ink); letter-spacing: .04em; }
.xl td.hl, .xl td.hl input, .xl td.hl select { background: #fff4b0; }
.xl td.l { text-align: left; padding: 4px 8px; }
.xl td.num { text-align: right; padding: 4px 8px; }
.xl input[type=text], .xl input[type=date], .xl select { width: 100%; min-width: 58px; height: 31px; min-height: 0; border: 0; border-radius: 0; background: transparent; padding: 0 6px; font-size: 13px; text-align: center; }
.xl input[type=date] { min-width: 116px; padding: 0 2px; }
.xl td.l input { text-align: left; }
.xl input:focus, .xl select:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: #fff; }
.xl tfoot th, .xl tfoot td { background: #f8f6f0; font-weight: 700; }
.xl-pair { display: flex; align-items: center; gap: 2px; padding-left: 6px; }
.xl-pair select { width: auto; min-width: 58px; }
.xl-pair small { color: var(--mute); white-space: nowrap; }
.xl-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.xl-block + .xl-block { margin-top: 20px; }
.xl-list td { padding: 6px 10px; }
.xl-list tr.tot td { background: #f8f6f0; font-weight: 700; }
.xl-list tbody tr:hover td { background: #fbfaf5; }
.settle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.settle div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.settle span { font-size: 12.5px; color: var(--ink-soft); }
.settle b { font-size: 20px; font-variant-numeric: tabular-nums; }
.settle b small { font-size: 12px; color: var(--mute); font-weight: 500; }
.settle small { font-size: 12px; color: var(--mute); }
.settle .m { background: #fff7c7; border-color: #e6d17a; }
.sheet-save { position: sticky; bottom: 0; z-index: 5; margin-top: 16px; padding: 12px 16px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 12px; align-items: center; }
@media (max-width: 960px) { .xl-split, .settle { grid-template-columns: 1fr; } }
.xl-list td.l { white-space: normal; min-width: 200px; max-width: 320px; }
.xl select[name$=_f_basis] { min-width: 96px; }
.xl td.num.small { line-height: 1.25; }
.xl input[name$=_f_name] { min-width: 130px; }
