/* O's GloTure 판매 플랫폼 — UI 스타일 */
:root {
  --ground: #F4F6F5;
  --surface: #FFFFFF;
  --surface-2: #EEF2F1;
  --ink: #16263F;
  --ink-2: #4A5A6E;
  --ink-3: #7A8797;
  --line: #DDE2E1;
  --line-2: #C9D1D0;
  --navy: #1B2F4E;
  --red: #D7261E;
  --red-ink: #B81F18;
  --red-soft: #FBE9E8;
  --mint: #5ED6C3;
  --mint-ink: #0F7A6B;
  --mint-soft: #E2F7F3;
  --amber: #A66300;
  --amber-soft: #FBF0DC;
  --focus: #2F6FDB;
  --shadow: 0 1px 2px rgba(22, 38, 63, .06), 0 4px 16px rgba(22, 38, 63, .05);
  --r: 10px;
  --sans: "IBM Plex Sans KR", system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1722; --surface: #172233; --surface-2: #1D2A3E; --ink: #E8EDF3; --ink-2: #B3BFCD; --ink-3: #8795A6;
    --line: #28374C; --line-2: #34465E; --navy: #0B1320; --red: #F0584F; --red-ink: #FF7A72; --red-soft: #3A1D22;
    --mint: #6FE0CE; --mint-ink: #6FE0CE; --mint-soft: #133B39; --amber: #F0B45A; --amber-soft: #3A2E17; --focus: #7FA8F0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0F1722; --surface: #172233; --surface-2: #1D2A3E; --ink: #E8EDF3; --ink-2: #B3BFCD; --ink-3: #8795A6;
  --line: #28374C; --line-2: #34465E; --navy: #0B1320; --red: #F0584F; --red-ink: #FF7A72; --red-soft: #3A1D22;
  --mint: #6FE0CE; --mint-ink: #6FE0CE; --mint-soft: #133B39; --amber: #F0B45A; --amber-soft: #3A2E17; --focus: #7FA8F0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.6 var(--sans); overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- demo ribbon ---- */
.demo-bar { background: var(--amber-soft); color: var(--amber); font-size: 13px; padding: 6px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.demo-bar b { font-weight: 600; }

/* ---- header ---- */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1160px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand svg { width: 28px; height: 28px; display: block; }
.brand b { font-weight: 600; letter-spacing: .01em; font-size: 16px; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; line-height: 1; margin-top: 2px; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { text-decoration: none; padding: 7px 11px; border-radius: 7px; font-size: 14px; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.on { color: #fff; background: rgba(255, 255, 255, .13); }
.top-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 7px; overflow: hidden; }
.lang button { background: none; border: 0; color: rgba(255, 255, 255, .7); padding: 4px 8px; font-size: 12px; cursor: pointer; font-family: var(--mono); }
.lang button.on { background: rgba(255, 255, 255, .16); color: #fff; }
.acct { background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 7px; padding: 5px 10px; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.acct:hover { background: rgba(255, 255, 255, .08); }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 8px 16px 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav.open { display: flex; }
  .brand small { display: none; }
}

/* ---- layout ---- */
main { max-width: 1160px; margin: 0 auto; padding: 28px 16px 64px; min-height: 60vh; }
h1 { font-size: 26px; line-height: 1.3; margin: 0 0 6px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 19px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--ink-2); }
.admin-page-head { align-items: center; }
.admin-global-search { position: relative; width: min(440px, 100%); }
.admin-global-search > svg { position: absolute; z-index: 1; left: 13px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2; pointer-events: none; }
.admin-global-search > input { width: 100%; height: 44px; padding: 9px 40px 9px 42px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); color: var(--ink); font: inherit; box-shadow: var(--shadow); }
.admin-global-search > input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.admin-global-search > input::-webkit-search-cancel-button { cursor: pointer; }
.admin-search-results { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; right: 0; max-height: 430px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 40px rgba(22,38,63,.18); }
.admin-search-results[hidden] { display: none; }
.admin-search-results a { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.admin-search-results a:hover, .admin-search-results a.active { background: var(--surface-2); }
.admin-search-results b, .admin-search-results small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-search-results b { font-size: 14px; }
.admin-search-results small { color: var(--ink-3); font-size: 12px; }
.admin-search-kind { color: var(--red-ink); font-size: 11px; font-weight: 600; }
.admin-search-state { padding: 18px 12px; color: var(--ink-3); text-align: center; font-size: 13px; }
@media (max-width: 700px) { .admin-global-search { width: 100%; } }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } h1 { font-size: 22px; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---- buttons & forms ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 8px 14px; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.3; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.f { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
label.f > span { display: block; margin-bottom: 4px; }
label.f em { color: var(--red); font-style: normal; }
.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 8px 10px; font-size: 14px; color: var(--ink); }
textarea.in { min-height: 78px; resize: vertical; }
.in:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 2px; margin: 0 0 14px; }
legend { font-size: 13px; font-weight: 600; padding: 0 6px; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--ink-3); margin: -6px 0 12px; }
.signup-docs { padding: 16px; background: var(--surface-2); }
.signup-docs > p { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; }
.signup-upload { position: relative; min-width: 0; padding: 14px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; }
.signup-upload:hover, .signup-upload:focus-within { border-color: var(--red); }
.signup-upload-icon { grid-row: 1 / span 2; width: 34px; height: 34px; display: grid; place-items: center; color: var(--mint-ink); background: var(--mint-soft); border-radius: 8px; }
.signup-upload-icon svg { width: 18px; height: 18px; }
.signup-upload b { font-size: 13.5px; }
.signup-upload em { color: var(--red); font-style: normal; }
.signup-upload small { color: var(--ink-3); line-height: 1.35; }
.signup-upload input { grid-column: 1 / -1; width: 100%; margin-top: 10px; font-size: 12px; }
.signup-doc-hint { margin: 10px 0 0 !important; }
.auth-wrap { max-width: 420px; margin: 10px auto 0; }
.auth-wrap.signup-mode { max-width: 680px; }
.auth-head { margin-bottom: 20px; text-align: center; }
.auth-head h1 { margin: 10px 0 5px; font-size: 29px; letter-spacing: -.025em; }
.auth-head p { max-width: 500px; margin: 0 auto; color: var(--ink-2); font-size: 14px; }
.auth-user-icon { width: 44px; height: 44px; margin: 0 auto; display: grid; place-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 0 0 5px rgba(22,38,63,.045); }
.auth-user-icon svg { width: 22px; height: 22px; }
.auth-card { padding: 24px; border-radius: 14px; box-shadow: 0 14px 38px rgba(22,38,63,.09); }
.auth-card .in { min-height: 44px; padding: 10px 12px; }
.auth-section-label, .auth-divider { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--ink); font-size: 13px; font-weight: 600; }
.auth-section-label span, .auth-divider span { width: 25px; height: 25px; display: inline-grid; place-items: center; color: var(--red-ink); background: var(--red-soft); border-radius: 50%; font: 600 11px/1 var(--mono); }
.auth-divider { margin-top: 5px; }
.auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-fields { gap: 0 12px; }
.auth-submit { width: 100%; min-height: 45px; margin-top: 2px; border-color: var(--navy) !important; background: var(--navy) !important; font-weight: 600; }
.auth-submit:hover { filter: brightness(1.12); }
.auth-review-note { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; text-align: center; }
.signup-avatar-upload { display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin: 0 auto 22px; cursor: pointer; }
.signup-avatar-preview { width: 66px; height: 66px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; color: var(--ink-2); background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 50%; }
.signup-avatar-preview svg { width: 27px; height: 27px; }
.signup-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.signup-avatar-upload > span:nth-child(2) { display: flex; flex-direction: column; }
.signup-avatar-upload b { font-size: 14px; }
.signup-avatar-upload small { color: var(--ink-3); font-size: 12px; }
.signup-avatar-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.signup-avatar-upload:hover .signup-avatar-preview, .signup-avatar-upload:focus-within .signup-avatar-preview { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.registration-review { display: grid; gap: 14px; margin-top: 16px; }
.registration-review article { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.registration-review img, .registration-review iframe { display: block; width: 100%; max-height: 360px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; object-fit: contain; }
.registration-review iframe { height: 360px; }
@media (max-width: 620px) {
  .auth-wrap { margin-top: 0; }
  .auth-card { padding: 18px; }
  .auth-head h1 { font-size: 25px; }
}

/* ---- chips & badges ---- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.count-chip { display: inline-flex; align-items: center; gap: 7px; }
.chip-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; line-height: 1; }
.count-chip.on .chip-count { background: rgba(255,255,255,.18); color: inherit; }
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cart-sex-choices { display: flex; gap: 6px; flex-wrap: wrap; min-width: 245px; }
.cart-sex-split { display: flex; align-items: end; gap: 7px; margin-top: 9px; }
.cart-sex-split label { display: grid; gap: 4px; }
.cart-sex-split .in { width: 92px; }
.cart-sex-split > span { padding-bottom: 10px; color: var(--ink-3); }
:root[data-theme="dark"] .chip.on { background: var(--mint); border-color: var(--mint); color: #0F1722; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { background: var(--mint); border-color: var(--mint); color: #0F1722; } }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.badge.red { background: var(--red-soft); color: var(--red-ink); }
.badge.mint { background: var(--mint-soft); color: var(--mint-ink); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.navy { background: var(--navy); color: #fff; }
.badge.line { background: none; border-color: var(--line-2); }
.tag { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ---- alerts & toast ---- */
.alert { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert.ok { background: var(--mint-soft); border-color: transparent; color: var(--mint-ink); }
.alert.err { background: var(--red-soft); border-color: transparent; color: var(--red-ink); }
.alert.info { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 60; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); max-width: calc(100% - 32px); }
.toast.err { background: var(--red); color: #fff; }

/* ---- home ---- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.hero h1 { font-size: 34px; line-height: 1.25; margin-bottom: 12px; }
.hero p { color: var(--ink-2); font-size: 16px; margin: 0 0 20px; max-width: 34em; }
.hero-art { background: var(--navy); border-radius: 14px; padding: 22px; color: #fff; position: relative; overflow: hidden; min-height: 250px; }
.hero-art .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; opacity: .6; text-transform: uppercase; }
.hero-art .v { font-family: var(--mono); font-size: 30px; margin: 2px 0 12px; }
.hero-art .mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: relative; z-index: 1; }
.hero-art .mini > div { background: rgba(255, 255, 255, .07); border-radius: 10px; padding: 10px 12px; }
.hero-art svg.mark { position: absolute; right: -40px; bottom: -40px; width: 200px; opacity: .1; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 27px; } }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.steps > div { padding: 14px; border-right: 1px solid var(--line); }
.steps > div:last-child { border-right: 0; }
.steps > div::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); color: var(--red); font-size: 12px; display: block; margin-bottom: 4px; }
.steps b { display: block; font-size: 14px; }
.steps span { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps > div { border-right: 0; border-bottom: 1px solid var(--line); } }
.species { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.species a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; }
.species a:hover { border-color: var(--red); }
.species a b { font-weight: 500; }
@media (max-width: 620px) { .species { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.section { margin-top: 36px; }
.home-species { padding-top: 12px; }
.hero-global { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 0; min-height: 780px; padding: 62px 32px 28px; margin: -28px -16px 40px; overflow: hidden; color: #eef4ff; background: radial-gradient(ellipse at 50% 48%, #122660 0, #060e2d 45%, #03091c 85%); }
.hero-global::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: radial-gradient(circle, #6082c8 1px, transparent 1px); background-size: 62px 62px; mask-image: radial-gradient(ellipse, #000, transparent 75%); }
.hero-global { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero-global-copy { position: relative; z-index: 2; width: 100%; max-width: 1040px; text-align: left; }
.hero-global { justify-content: center; min-height: 650px; padding-bottom: 80px; }
.hero-photo-controls { position: absolute; right: 32px; bottom: 28px; z-index: 2; }
.hero-animal-background { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #03091c; }
.hero-animal-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,9,28,.72), rgba(3,9,28,.4) 45%, rgba(3,9,28,.08) 75%), linear-gradient(180deg, rgba(3,9,28,.08), transparent 70%, rgba(3,9,28,.35)); }
.hero-animal-frame { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: translateY(36px) scale(1.05); transition: opacity 1.6s ease, transform 6s ease; }
.hero-animal-frame.is-active { opacity: 1; transform: translateY(0) scale(1); }
.hero-animal-credits { max-width: 900px; margin: -24px auto 32px; padding: 0 12px; }
.hero-animal-credits .credit { font-size: 10px; }
.hero-animal-credits summary { width: max-content; cursor: pointer; color: var(--ink-2); font-size: 12px; }
.hero-animal-credits[open] > div { padding: 12px 0; }
.hero-global { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 600px); justify-content: center; align-items: center; min-height: 680px; padding: 80px 48px; gap: 64px; }
.hero-global .show { position: relative; z-index: 2; width: 100%; margin-top: 70px; padding: 0; color: #fff; background: transparent; border: 0; border-radius: 0; backdrop-filter: none; box-shadow: none; }
.hero-global .show-tabs { width: max-content; max-width: 100%; gap: 24px; padding: 0; margin-bottom: 18px; background: transparent; border-radius: 0; }
.hero-global .show-tabs button { color: #eee; }
.hero-global .show-tabs button { flex: none; padding: 8px 0; border-radius: 0; opacity: .7; }
.hero-global .show-tabs button.on { color: #fff; background: transparent; border-bottom: 2px solid #fff; box-shadow: none; opacity: 1; }
.hero-model-strip { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.hero-model-strip::-webkit-scrollbar { display: none; }
.hero-model-strip .slide { flex: 0 0 164px; scroll-snap-align: start; border: 1px solid rgba(255,255,255,.25); }
.hero-model-strip .slide .ph { height: 250px; aspect-ratio: auto; object-fit: cover; }
.hero-model-strip .slide-cap { min-height: 90px; padding-top: 36px; }
.hero-model-strip .slide-cap b { font-size: 12px; }
.hero-model-strip .badge { width: max-content; margin-top: 5px; }
.hero-global .icon-btn { background: rgba(255,255,255,.08); color: #fff; border-color: #7183a7; }
.hero-global .news-mini { max-height: 214px; overflow-y: auto; }
.hero-global .nm-item { border-color: #536489; }
.home-models { display: block; }
.home-models .species { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-global-copy h1, .hero-global-copy p { text-shadow: 0 2px 12px rgba(0,0,0,.8); }
@media (prefers-reduced-motion: reduce) { .hero-animal-frame { transition: none; transform: none; } }
.hero-global .eyebrow { display: inline-block; color: #fff; border: 1px solid rgba(255,255,255,.3); background: rgba(20,24,30,.45); border-radius: 30px; padding: 5px 14px; font-size: 10px; margin-bottom: 22px; }
.hero-global h1 { color: #fff; max-width: 520px; font-size: clamp(32px, 3.1vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1.3; margin: 0 0 22px; text-wrap: balance; }
.hero-global h1 em { font-style: normal; color: inherit; text-shadow: inherit; }
.hero-global p { max-width: 540px; margin: 0 0 28px; font-size: 14px; color: #f2f2f2; line-height: 1.8; }
.hero-global .row { justify-content: flex-start; gap: 12px; }
.hero-global .btn { color: #fff; background: rgba(20,24,30,.5); border: 1px solid rgba(255,255,255,.55); border-radius: 8px; padding: 11px 22px; min-width: 168px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; box-shadow: none; }
.hero-global .btn.primary { color: #18212c; background: #fff; border-color: #fff; box-shadow: none; }
.hero-global .btn:hover { background: rgba(255,255,255,.2); }
.hero-global .btn.primary:hover { background: #eee; }
.hero-global .slide-cap .badge { color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.hero-global .dots button { background: rgba(255,255,255,.35); }
.hero-global .dots button.on { background: #fff; }
.hero-global .icon-btn { border-color: rgba(255,255,255,.35); }
.home-globe { position: relative; min-width: 0; overflow: hidden; border-radius: 22px; color: #d4f5f1; background: radial-gradient(ellipse at 50% 45%, #163c50, #081b2d 72%); border: 1px solid #254454; }
.home-globe canvas { display: block; width: 100%; height: 370px; pointer-events: none; }
.home-globe-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 20px 0; }
.home-globe-top > span { font: 10px/1.5 var(--mono); letter-spacing: .08em; color: #90b7c2; }
.home-globe-toggle { color: #c7eeea; background: transparent; border: 1px solid #416270; border-radius: 20px; padding: 6px 10px; font-size: 11px; cursor: pointer; flex-shrink: 0; }
.home-globe-toggle:hover { background: #244554; }
.home-globe-toggle:focus-visible { outline: 2px solid #ffce8a; outline-offset: 3px; }
.home-globe-caption { position: relative; padding: 0 24px 22px; display: grid; gap: 7px; }
.home-globe-caption b { font-size: 17px; font-weight: 500; }
.home-globe-caption span { color: #92b4c2; font-size: 11px; line-height: 1.5; }
.hero-global .home-globe { width: 100%; max-width: 740px; background: none; border: 0; border-radius: 0; overflow: visible; margin-top: -18px; }
.hero-global .home-globe canvas { height: 430px; }
.hero-global .home-globe-top { position: absolute; top: 45%; left: -140px; right: -140px; z-index: 3; }
.hero-global .home-globe-top > span { max-width: 95px; color: #8b9cc8; }
.hero-global .home-globe-toggle { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(20,24,30,.5); }
.hero-global .home-globe-caption { padding: 0; text-align: center; margin-top: -8px; }
.hero-global .home-globe-caption b { font-size: 14px; color: #b9c9ed; }
.hero-global .home-globe-caption span { color: #8391af; font-size: 10px; }
.home-models { display: block; }
.home-models .species { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .hero-global, .home-models { grid-template-columns: 1fr; gap: 24px; }
  .hero-global { gap: 24px; padding: 40px 18px 76px; min-height: 760px; }
  .hero-global .show { width: min(600px, 100%); margin: 0 auto; }
  .hero-global .show-tabs { margin-left: auto; margin-right: auto; }
  .hero-global-copy { text-align: center; }
  .hero-global h1 { margin-left: auto; margin-right: auto; }
  .hero-global p { margin-left: auto; margin-right: auto; }
  .hero-global .row { justify-content: center; }
  .hero-animal-background::after { background: radial-gradient(ellipse at 50% 35%, rgba(3,9,28,.58), rgba(3,9,28,.15) 75%), linear-gradient(180deg, rgba(3,9,28,.1), transparent 70%, rgba(3,9,28,.35)); }
  .home-models .species { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-global .home-globe-top { left: 0; right: 0; top: 18px; padding: 0; }
  .hero-global .home-globe-top > span { max-width: 120px; font-size: 8px; }
  .hero-global .home-globe { margin-top: 0; }
  .hero-global .home-globe canvas { height: 350px; }
  .hero-global p { font-size: 13px; }
  .home-globe canvas { height: 300px; }
  .home-globe-top { padding: 16px 16px 0; }
  .home-globe-top > span { font-size: 9px; }
  .home-globe-caption { padding: 0 18px 20px; }
}
.home-story { display: grid; grid-template-columns: .9fr 1.25fr; gap: 64px; align-items: start; margin-top: 88px; padding: 48px 0; border-top: 1px solid var(--line); }
.home-story-heading { position: sticky; top: 110px; }
.home-story-heading h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; max-width: 14em; word-break: keep-all; }
.home-story-heading p { line-height: 1.8; margin: 18px 0 24px; }
.home-story-panels { display: grid; gap: 24px; }
.home-story-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 270px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.home-story-panel:nth-child(2) { background: var(--surface-2); }
.home-story-number { font: 500 42px/1 var(--mono); color: var(--mint-ink); }
.home-story-panel h3 { font-size: 23px; margin: 32px 0 12px; word-break: keep-all; }
.home-story-panel p { color: var(--ink-2); line-height: 1.8; margin: 0; }
.home-order { padding: 32px; border-radius: 20px; background: var(--surface-2); }
.home-order-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 24px 0; gap: 24px; }
.home-order-steps li { border-top: 1px solid var(--line-2); padding-top: 14px; }
.home-order-steps span { display: block; font: 12px var(--mono); color: var(--ink-3); margin-bottom: 8px; }
.home-order-steps b { font-size: 15px; font-weight: 500; }
.home-order-link { color: var(--ink-2); font-size: 14px; text-underline-offset: 4px; }
.home-reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.home-reveal.is-visible, .home-reveal:focus-within { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .home-story { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; padding: 32px 0; }
  .home-story-heading { position: static; }
  .home-story-panel { min-height: 220px; padding: 24px; }
  .home-order { padding: 24px; }
  .home-order-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .home-reveal { opacity: 1; transform: none; transition: none; } }

/* ---- catalog ---- */
.filters { display: grid; gap: 10px; margin-bottom: 16px; }
.search { position: relative; }
.search input { padding-left: 34px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--ink-3); }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 230px 1fr auto; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: start; }
.spec-row:last-child { border-bottom: 0; }
.spec-row:hover { background: var(--surface-2); }
.spec-row .nm { font-family: var(--mono); font-weight: 500; font-size: 15px; text-decoration: none; display: block; }
.spec-row .nm:hover { color: var(--red); }
.spec-row .meta { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.spec-row p { margin: 0 0 4px; font-size: 14px; }
.spec-row .rs { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .spec-row { grid-template-columns: 1fr; gap: 8px; } }
.count { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }

/* ---- model detail ---- */
.detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
.model-primary { grid-column: 1; grid-row: 1; min-width: 0; }
#qbox { grid-column: 2; grid-row: 1 / span 2; scroll-margin-top: 84px; }
#mdocs { grid-column: 1; grid-row: 2; }
.model-order-cta { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--red); border-radius: var(--r); background: var(--red); color: #fff; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.model-order-cta:hover { background: var(--red-ink); border-color: var(--red-ink); }
.model-order-cta > svg { width: 25px; height: 25px; flex: 0 0 auto; }
.model-order-cta > span:not(.model-order-arrow) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.model-order-cta b { font-size: 16px; font-weight: 600; }
.model-order-cta small { margin-top: 1px; font-size: 12.5px; opacity: .86; }
.model-order-arrow { font-size: 21px; line-height: 1; }
.quote-request-card { border-color: var(--line-2); }
.quote-request-title { display: flex; align-items: center; gap: 8px; }
.quote-request-title svg { width: 21px; height: 21px; color: var(--red); }
@media (min-width: 901px) { #qbox { position: sticky; top: 80px; } }
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .model-primary, #qbox, #mdocs { grid-column: 1; }
  .model-primary { grid-row: 1; }
  #qbox { grid-row: 2; }
  #mdocs { grid-row: 3; }
}
dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--ink-3); font-size: 13px; }
dl.kv dd { margin: 0; }
.research-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.research-tag { text-decoration: none; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.research-tag:hover, .research-tag:focus-visible { color: var(--red-ink); border-color: var(--red); background: var(--red-soft); }
.research-tag span { font-size: 10px; opacity: .7; }
.research-tag-hint { display: block; margin-top: 7px; color: var(--ink-3); line-height: 1.45; }
.reg { background: var(--amber-soft); color: var(--amber); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin-top: 14px; }

/* ---- lists (quotes / orders) ---- */
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; }
.item-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.item-h .nm { font-family: var(--mono); font-weight: 500; }
.item .id { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 500; }
.price { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.timeline { display: flex; margin: 14px 0 10px; }
.timeline div { flex: 1; position: relative; padding-top: 16px; font-size: 12px; color: var(--ink-3); text-align: center; }
.timeline div::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline div::after { content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.timeline div.done { color: var(--ink); }
.timeline div.done::before { background: var(--mint); }
.timeline div.done::after { background: var(--mint); border-color: var(--mint); }
.timeline div.cur::after { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.timeline div:first-child::before { left: 50%; }
.timeline div:last-child::before { right: 50%; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* ---- modal ---- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 18, 30, .5); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal h2 { margin-bottom: 4px; }
.pay-methods { display: grid; gap: 8px; margin: 14px 0; }
.pay-methods label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: 14px; }
.pay-methods label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.sum { display: flex; justify-content: space-between; align-items: baseline; background: var(--surface-2); border-radius: 8px; padding: 12px 14px; }

/* ---- smartcage ---- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.metrics div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.metrics span { display: block; font-size: 11.5px; color: var(--ink-3); }
.metrics b { font-family: var(--mono); font-weight: 500; font-size: 16px; }
.metrics .warn b { color: var(--red-ink); }
.spark { width: 100%; height: 64px; display: block; }
.animals { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.animals td, .animals th { padding: 5px 6px; border-top: 1px solid var(--line); text-align: left; }
.animals th { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.animals td.n { font-family: var(--mono); text-align: right; }
.animals th.n { text-align: right; }

/* ---- plans ---- */
.plan { display: flex; flex-direction: column; }
.plan.hl { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow); }
.plan .pp { font-family: var(--mono); font-size: 30px; font-weight: 500; margin: 8px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0; font-size: 14px; flex: 1; }
.plan li { padding: 4px 0 4px 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--mint-ink); border-bottom: 2px solid var(--mint-ink); transform: rotate(-45deg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th, table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { background: var(--surface-2); font-weight: 500; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.c, table.t th.c { text-align: center; }
table.t td.r, table.t th.r { text-align: right; }
.yes { color: var(--mint-ink); font-weight: 600; }
.no { color: var(--ink-3); }

/* ---- admin ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; font-size: 14px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--red); font-weight: 500; }
.stat { padding: 14px 16px; }
.stat span { font-size: 12.5px; color: var(--ink-2); display: block; }
.stat b { font-family: var(--mono); font-size: 26px; font-weight: 500; }
.fx-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.fx-legend div { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.fx-legend b { display: block; font-size: 13.5px; margin-bottom: 2px; }
@media (max-width: 620px) { .fx-legend { grid-template-columns: 1fr; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.preview { background: var(--mint-soft); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 4px 0 12px; }
.preview b { font-family: var(--mono); }
details.respond { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
details.respond summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--red-ink); }
pre.json { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 0; color: var(--ink-2); max-width: 420px; }

/* ---- 정식 견적서·공급 확인증 ---- */
.doc-actions { max-width: 210mm; margin: 0 auto 12px; display: flex; }
.official-doc { width: min(210mm, 100%); min-height: 270mm; margin: 0 auto; padding: 18mm 16mm; background: #fff; color: #111827; border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc-head { position: relative; text-align: center; border-bottom: 3px double #1b2f4e; padding-bottom: 14px; }
.doc-head h1 { margin: 0; font-size: 30px; letter-spacing: .28em; }
.doc-brand { position: absolute; left: 0; top: 5px; font-weight: 700; color: #1b2f4e; }
.doc-no { position: absolute; right: 0; top: 5px; font: 12px var(--mono); }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 12px; }
.doc-meta section { border: 1px solid #cbd5e1; }
.doc-meta h2 { margin: 0; padding: 5px 9px; background: #eef2f1; font-size: 13px; }
.doc-meta dl { display: grid; grid-template-columns: 82px 1fr; margin: 0; font-size: 12px; }
.doc-meta dt,.doc-meta dd { margin: 0; padding: 4px 8px; border-top: 1px solid #e5e7eb; }
.doc-meta dt { color: #475569; background: #f8fafc; }
.doc-dates { display: flex; justify-content: flex-end; gap: 18px; margin: 8px 0; font-size: 12px; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.doc-table th,.doc-table td { border: 1px solid #94a3b8; padding: 7px; text-align: center; }
.doc-table th { background: #eef2f1; }
.doc-table td:first-child { text-align: left; }
.doc-table td.r { text-align: right; }
.doc-table small { display: block; color: #64748b; }
.doc-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 26px; padding: 14px 8px; border-bottom: 2px solid #1b2f4e; }
.doc-total b { font: 700 22px var(--mono); color: #b81f18; }
.doc-note { margin-top: 16px; padding: 12px; border: 1px solid #cbd5e1; white-space: pre-line; font-size: 12px; }
.doc-certify { margin: 42px 0 24px; text-align: center; font-size: 15px; font-weight: 600; }
.doc-sign { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 38px; text-align: right; }
.doc-sign span { display: block; color: #64748b; font-size: 11px; }
.doc-seal { width: 58px; height: 58px; border: 2px solid #b81f18; border-radius: 50%; display: grid; place-items: center; color: #b81f18; text-align: center; font-weight: 700; line-height: 1.2; transform: rotate(-8deg); }
@media (max-width:700px){.doc-meta{grid-template-columns:1fr}.doc-head h1{font-size:22px}.doc-brand,.doc-no{position:static;display:block}.doc-dates{flex-wrap:wrap}.official-doc{padding:18px}}
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  #top,#foot,#chat,.noprint { display: none !important; }
  main { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .official-doc { width: 210mm; min-height: 297mm; padding: 16mm; border: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

footer { border-top: 1px solid var(--line); padding: 0 16px 26px; color: var(--ink-2); font-size: 13px; background: var(--surface); margin-top: 48px; }
footer .foot-in { max-width: 1160px; margin: 0 auto; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer .foot-in.col { flex-direction: column; gap: 12px; }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--red-ink); }
footer h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; font-weight: 600; }
footer h4 { font-size: 14px; margin: 0 0 10px; color: var(--ink); }
.ft-partners { border-bottom: 1px solid var(--line); padding: 26px 0 22px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.ptn-group { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; }
.ptn-cat { font-size: 12.5px; color: var(--ink-3); padding-top: 10px; }
.ptn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ptn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--ground); text-decoration: none; color: var(--ink); min-height: 44px; }
a.ptn:hover { border-color: var(--line-2); color: var(--ink); }
.ptn img { height: 28px; max-width: 90px; object-fit: contain; }
.ptn span { display: flex; flex-direction: column; line-height: 1.3; }
.ptn b { font-size: 13.5px; font-weight: 600; }
.ptn small { font-size: 12px; color: var(--ink-3); }
.ptn em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.ft-grid { display: grid !important; grid-template-columns: 1.3fr 1.4fr 1fr .8fr; gap: 28px; padding: 28px 0 22px; }
.ft-brand p { margin: 10px 0 0; line-height: 1.6; }
.ft-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; }
.ft-logo svg { width: 30px; height: 30px; border-radius: 7px; background: var(--navy); padding: 3px; }
.ft-logo span, .ft-logo b, .ft-logo small { display: block !important; }
.ft-logo b { font-size: 15px; }
.ft-logo small { display: block; font-size: 11.5px; color: var(--ink-3); }
.ft-name { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.ft-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; }
.ft-dl dt { color: var(--ink-3); white-space: nowrap; }
.ft-dl dd { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft-bottom { border-top: 1px solid var(--line); padding-top: 16px; color: var(--ink-3); font-size: 12px; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-grid { grid-template-columns: 1fr; } .ptn-group { grid-template-columns: 1fr; gap: 6px; } .ptn-cat { padding-top: 0; } }
.loading { color: var(--ink-3); padding: 30px 0; font-size: 14px; }

/* ---- stock / sold out ---- */
.spec-row.soldout .nm, .spec-row.soldout p { color: var(--ink-3); }
.badge.sold { background: var(--red); color: #fff; font-family: var(--mono); letter-spacing: .06em; font-weight: 600; }
.soldout-box { border: 1px dashed var(--red); border-radius: var(--r); padding: 18px; text-align: center; background: var(--red-soft); color: var(--red-ink); }
.soldout-box b { font-family: var(--mono); letter-spacing: .1em; font-size: 18px; display: block; margin-bottom: 4px; }
.stock-in { width: 90px; text-align: right; font-family: var(--mono); }
.price-in { width: 118px; text-align: right; font-family: var(--mono); }
.upload-slot { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.upload-slot h3 { margin: 6px 0; }
.upload-slot p { min-height: 42px; margin: 0 0 12px; color: var(--ink-2); }
.drop.pending { cursor: default; border-style: dashed; background: var(--surface); color: var(--ink-2); opacity: .85; }
.model-price { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 8px 0; color: var(--ink); }
.model-price b { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.model-price small { color: var(--ink-3); }
.model-price-detail { background: var(--surface-2); border-radius: 8px; padding: 11px 13px; margin: 0 0 14px; }
.saved { color: var(--mint-ink); font-size: 12px; }
.geo { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); margin: -4px 0 12px; flex-wrap: wrap; }
.geo button { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; }
.geo svg { width: 13px; height: 13px; }

/* ---- order number ---- */
.ono { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--ink); }
.ono small { color: var(--ink-3); font-weight: 400; }
.nav .dot, .tabs .dot { display: inline-block; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; padding: 0 5px; margin-left: 5px; font-family: var(--mono); }

/* ---- chat widget ---- */
.chat-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 11px 16px; font-size: 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); display: flex; gap: 8px; align-items: center; }
.chat-fab svg { width: 18px; height: 18px; }
.chat-fab .dot { background: #fff; color: var(--red); border-radius: 9px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; font-family: var(--mono); padding: 0 5px; }
.chat-panel { position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 360px; max-width: calc(100vw - 32px); height: 500px; max-height: calc(100vh - 90px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 50px rgba(0, 0, 0, .25); display: flex; flex-direction: column; overflow: hidden; }
.chat-h { background: var(--navy); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 8px; }
.chat-h b { font-weight: 500; font-size: 14px; }
.chat-h small { display: block; opacity: .7; font-size: 11.5px; }
.chat-h button { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--ground); }
.msg { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

.chat-f { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-f textarea { flex: 1; resize: none; height: 40px; min-height: 40px; }
.admin-chat { display: grid; grid-template-columns: 290px 1fr; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); height: 560px; overflow: hidden; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; }
.threads button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 14px; cursor: pointer; }
.threads button.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--red); }
.threads b { font-weight: 500; font-size: 14px; }
.threads p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 760px) { .admin-chat { grid-template-columns: 1fr; height: auto; } .threads { max-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); } .conv { height: 440px; } }
.drop { display: block; border: 2px dashed var(--line-2); border-radius: var(--r); padding: 22px; text-align: center; color: var(--ink-2); background: var(--surface); cursor: pointer; }
.drop.over { border-color: var(--red); background: var(--red-soft); }
.theme-btn { background: none; border: 0; color: rgba(255, 255, 255, .75); cursor: pointer; padding: 6px; display: flex; }
.theme-btn svg { width: 18px; height: 18px; }
.demo-as { background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 1px 9px; font-size: 12px; cursor: pointer; margin: 2px 0; }
.demo-as.on { background: var(--amber); color: var(--surface); border-color: var(--amber); }
@media (max-width: 520px) {
  .brand > span { display: none; }
  .top-in { gap: 10px; }
  .lang button { padding: 4px 6px; }
  .acct { padding: 5px 8px; }
  .theme-btn { padding: 4px; }
}

/* ---- model photos ---- */
.ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); border-radius: 8px; }
.ph-empty { background: var(--pb); color: var(--pf); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 8px; }
.ph-empty svg { width: 34%; max-width: 64px; fill: currentColor; opacity: .55; }
.ph-empty b { font-size: 14px; font-weight: 600; }
.ph-empty small { font-size: 11.5px; opacity: .75; }
:root[data-theme="dark"] .ph-empty { filter: brightness(.55) saturate(1.2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph-empty { filter: brightness(.55) saturate(1.2); } }
.ph.sm { width: 72px; aspect-ratio: 1; flex-shrink: 0; }
.ph.sm.ph-empty svg { width: 42%; }
.ph.sm.ph-empty b { font-size: 11px; }
.ph.sm.ph-empty small { display: none; }
.thumb { flex-shrink: 0; text-decoration: none; }
.spec-row { grid-template-columns: 300px 1fr auto; }
@media (max-width: 760px) { .spec-row { grid-template-columns: 1fr; } }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .15s; }
.mcard:hover { border-color: var(--red); }
.mcard-ph { position: relative; display: block; }
.mcard-ph .ph { border-radius: 0; }
.mcard.soldout .mcard-ph .ph { filter: grayscale(1); opacity: .6; }
.mcard .ribbon { position: absolute; top: 10px; left: 10px; }
.mcard-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mcard-b .nm { font-family: var(--mono); font-weight: 500; text-decoration: none; font-size: 15px; }
.mcard-b .nm:hover { color: var(--red); }
.mcard-b .meta { display: flex; gap: 4px; flex-wrap: wrap; }
.mcard-b p { margin: 2px 0 8px; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard.soldout .nm { color: var(--ink-3); }
.sp-banner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; align-items: center; }
.sp-banner h2 { font-size: 22px; margin: 0 0 6px; }
.sp-banner p { margin: 0 0 10px; color: var(--ink-2); }
.sp-photos { display: grid; gap: 8px; }
.sp-photos.n2 { grid-template-columns: 1fr 1fr; }
.sp-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.sp-photos.n3 a:first-child { grid-row: span 2; }
.sp-photos.n3 a:first-child .ph { height: 100%; aspect-ratio: auto; }
.sp-photos a { display: block; }
@media (max-width: 700px) { .sp-banner { grid-template-columns: 1fr; } }
.detail-ph { margin: -18px -18px 16px; }
.detail-ph .ph { border-radius: var(--r) var(--r) 0 0; aspect-ratio: 16 / 9; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { background: var(--surface); border: 0; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--navy); color: #fff; }
.adm-thumb { width: 52px; cursor: pointer; border: 0; padding: 0; background: none; display: block; }
.adm-thumb .ph { width: 52px; aspect-ratio: 1; }
.adm-thumb .ph-empty b { font-size: 9px; } .adm-thumb .ph-empty small { display: none; }
.photo-edit { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 620px) { .photo-edit { grid-template-columns: 1fr; } }
.sp-photos a, .mcard-ph, .thumb { text-decoration: none; color: inherit; }
.sp-photos { height: 260px; }
.sp-photos.n1 a, .sp-photos.n2 a { height: 260px; }
.sp-photos .ph { height: 100%; aspect-ratio: auto; }
.sp-photos.n3 a { min-height: 0; }
@media (max-width: 700px) { .sp-photos, .sp-photos.n1 a, .sp-photos.n2 a { height: 200px; } }

/* ---- chat read receipts ---- */
.msg-row { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.msg-row.me { justify-content: flex-end; }
.msg-row .msg { max-width: 78%; }
.msg-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); flex-shrink: 0; }
.msg-row.them .msg-meta { align-items: flex-start; }
.rc { color: var(--red); font-weight: 700; font-size: 11px; }
.rc.read { color: var(--ink-3); font-weight: 400; font-family: var(--sans); }
.msg.me, .msg.them { align-self: auto; }

/* ---- order tracking (배송 조회) ---- */
.shipping-hero { display: grid; grid-template-columns: 1.45fr .8fr; gap: 28px; align-items: center; padding: 28px; color: #fff; background: var(--navy); border-radius: 16px; overflow: hidden; }
.shipping-hero h1 { margin-bottom: 10px; font-size: 32px; }
.shipping-hero p { max-width: 660px; margin: 0 0 20px; color: rgba(255,255,255,.78); font-size: 16px; }
.shipping-hero .eyebrow { color: var(--mint); }
.shipping-hero .btn:not(.primary) { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.shipping-hero-art { position: relative; min-height: 190px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: radial-gradient(circle at center, rgba(94,214,195,.2), transparent 62%); display: grid; place-items: center; }
.shipping-hero-art::before { content: ""; position: absolute; left: 13%; right: 13%; top: 50%; border-top: 2px dashed rgba(255,255,255,.3); }
.shipping-hero-art > svg { position: relative; z-index: 2; width: 76px; height: 76px; padding: 17px; color: #0F1722; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 10px rgba(94,214,195,.12); }
.ship-route-dot { position: absolute; top: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .7; }
.ship-route-dot.d1 { left: 13%; } .ship-route-dot.d2 { left: 31%; } .ship-route-dot.d3 { right: 13%; }
.shipping-active .page-head { margin-bottom: 12px; }
.shipping-active-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.ship-order { display: flex; flex-direction: column; gap: 7px; padding: 16px; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.ship-order:hover { border-color: var(--red); }
.ship-order > span { color: var(--ink-2); font-size: 13px; }
.ship-order .timeline { margin: 3px 0 0; }
.shipping-empty { padding: 24px 16px; }
.shipping-process { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 12px; }
.ship-step { position: relative; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.ship-step-no { position: absolute; top: 14px; right: 16px; color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.ship-step-icon { width: 44px; height: 44px; margin-bottom: 13px; display: grid; place-items: center; color: var(--mint-ink); background: var(--mint-soft); border-radius: 12px; }
.ship-step-icon svg { width: 24px; height: 24px; }
.ship-step h3 { margin-bottom: 5px; }
.ship-step p, .shipping-modes p, .shipping-docs p { margin: 0; color: var(--ink-2); font-size: 14px; }
.shipping-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ship-checks { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ship-checks li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 14px; }
.ship-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--mint-ink); font-weight: 700; }
.shipping-docs { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: center; }
.shipping-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shipping-doc-grid div { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: 13.5px; }
.shipping-doc-grid svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--mint-ink); }
.shipping-notice { margin-top: 16px; }
.admin-ship-grid { display: grid; gap: 14px; }
.admin-ship-card h3 { margin: 12px 0 8px; }
.admin-ship-customer { display: grid; grid-template-columns: minmax(120px,.55fr) minmax(180px,1fr); gap: 3px 16px; padding: 10px 12px; margin-bottom: 12px; background: var(--surface-2); border-radius: 8px; font-size: 13px; }
.admin-ship-customer span { color: var(--ink-2); overflow-wrap: anywhere; }
.admin-ship-kv { padding: 2px 0; }
.admin-ship-actions { justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .shipping-hero { grid-template-columns: 1fr; padding: 22px; }
  .shipping-hero h1 { font-size: 26px; }
  .shipping-hero-art { min-height: 130px; }
  .shipping-process, .shipping-modes, .shipping-docs { grid-template-columns: 1fr; }
  .admin-ship-customer { grid-template-columns: 1fr; }
}
@media (max-width: 460px) { .shipping-doc-grid { grid-template-columns: 1fr; } }
.tl-link { display: block; text-decoration: none; color: inherit; border-radius: 8px; }
.tl-link:hover .timeline div.done { color: var(--red-ink); }
.trk { display: grid; gap: 16px; }
.trk-head { padding: 22px; }
.trk-title h1 { font-size: 26px; margin: 2px 0 2px; }
.trk-eta { margin: 0; font-size: 17px; font-weight: 600; color: var(--mint-ink); }
.trk-eta.ok { color: var(--ink-2); font-weight: 400; font-size: 14px; }
.trk-item { display: flex; gap: 12px; align-items: center; margin: 16px 0 6px; padding: 12px; background: var(--surface-2); border-radius: 10px; }
.trk-thumb .ph.sm { width: 64px; }
.trk-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.trk-scroll { overflow-x: auto; padding: 0 4px 10px; }
.trk-steps.ten { grid-template-columns: repeat(10, minmax(112px, 1fr)); min-width: 1120px; }
.trk-steps.ten li { padding: 0 4px; }
.trk-steps.ten li b { font-size: 12.5px; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.trk-steps.ten li small { font-size: 11px; line-height: 1.3; }
.trk-steps.ten::before { left: 5%; right: 5%; }
.trk-steps.ten::after { left: 5%; width: calc(90% * var(--pct) / 100); }
.trk-steps::before, .trk-steps::after { content: ""; position: absolute; top: 23px; left: 10%; height: 4px; border-radius: 2px; }
.trk-steps::before { right: 10%; background: var(--line); }
.trk-steps::after { width: calc(80% * var(--pct) / 100); background: var(--mint); transition: width .6s ease; }
.trk-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--ink-3); }
.trk-ic { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; }
.trk-ic svg { width: 24px; height: 24px; }
.trk-steps li b { font-size: 13.5px; font-weight: 500; }
.trk-steps li small { font-size: 11.5px; font-family: var(--mono); min-height: 1em; }
.trk-steps li.done { color: var(--ink); }
.trk-steps li.done .trk-ic { background: var(--mint); border-color: var(--mint); color: #0F1722; }
.trk-steps li.cur { color: var(--ink); }
.trk-steps li.cur b { font-weight: 700; color: var(--red-ink); }
.trk-steps li.cur .trk-ic { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px var(--red-soft); animation: trkpulse 2s ease-in-out infinite; }
@keyframes trkpulse { 50% { box-shadow: 0 0 0 10px var(--red-soft); } }
@media (prefers-reduced-motion: reduce) { .trk-steps li.cur .trk-ic { animation: none; } .trk-steps::after { transition: none; } }
@media (max-width: 560px) {
  .trk-ic { width: 38px; height: 38px; } .trk-ic svg { width: 18px; height: 18px; }
  .trk-steps::before, .trk-steps::after { top: 17px; }
  .trk-steps li b { font-size: 11.5px; } .trk-steps li small { display: none; }
  .trk-title h1 { font-size: 22px; }
}
.trk-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 800px) { .trk-grid { grid-template-columns: 1fr; } }
.trk-hist { list-style: none; margin: 0; padding: 0; }
.trk-hist li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 0 0 18px 20px; position: relative; font-size: 14px; }
.trk-hist li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.trk-hist li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.trk-hist li:last-child::after { display: none; }
.trk-hist li.now::before { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.trk-hist li.now b { color: var(--red-ink); }
.trk-hist time { color: var(--ink-3); font-size: 12.5px; font-family: var(--mono); }
.trk-hist .loc { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.trk-hist .loc svg { width: 13px; height: 13px; }
.trk-hist p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
@media (max-width: 560px) { .trk-hist li { grid-template-columns: 1fr; gap: 2px; } }

/* ---- 개체 기록 ---- */
.rec-head h1 { font-size: 24px; margin: 2px 0 4px; }
.rec-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin: 16px 0 0; }
.rec-meta div { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; }
.rec-meta dt { font-size: 12px; color: var(--ink-3); }
.rec-meta dd { margin: 2px 0 0; font-size: 14px; }
@media (max-width: 700px) { .rec-meta { grid-template-columns: 1fr 1fr; } }
.trk .card, main > .card, .rec-animal { margin-bottom: 16px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li { padding: 8px 12px 8px 34px; border-radius: 8px; position: relative; font-size: 14px; background: var(--surface-2); }
.checks li::before { position: absolute; left: 12px; top: 8px; font-weight: 700; }
.checks li.ok::before { content: "✓"; color: var(--mint-ink); }
.checks li.warn { background: var(--amber-soft); color: var(--amber); }
.checks li.warn::before { content: "!"; }
.checks li.info::before { content: "i"; color: var(--ink-3); font-family: var(--mono); }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: var(--surface-2); }
.rec-a-head { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.rec-kv span { display: block; font-size: 11.5px; color: var(--ink-3); }
.rec-kv b { font-weight: 500; font-size: 15px; }
.rec-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin: 14px 0; max-width: 620px; }
.rec-photos figure { margin: 0; }
.rec-photos .ph { aspect-ratio: 16 / 10; height: 200px; width: 100%; object-fit: cover; }
.rec-photos .ph.front { object-fit: cover; }
.rec-photos figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .rec-photos .ph { height: 150px; } }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .rec-grid { grid-template-columns: 1fr; } }
.rec-t td { padding: 6px 8px; font-size: 13px; }
.nowrap { white-space: nowrap; }
.health { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.health div { border-radius: 8px; padding: 7px 10px; background: var(--mint-soft); font-size: 12.5px; display: flex; flex-direction: column; }
.health div b { color: var(--mint-ink); font-size: 13.5px; }
.health div.bad { background: var(--red-soft); } .health div.bad b { color: var(--red-ink); }
@media (max-width: 700px) { .health { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rec-link { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--red); border-radius: 10px; text-decoration: none; background: var(--red-soft); }
.rec-link b { color: var(--red-ink); }
.rec-link span { font-size: 13px; color: var(--ink-2); }
@media print {
  #top, #foot, #chat, .noprint, .toast { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .rec-animal { break-before: page; }
}
.tr-prev { font-size: 12px; color: var(--ink-2); margin: -6px 0 12px; display: grid; gap: 2px; }
.tr-prev .miss { color: var(--amber); }
/* ---- chat: 보낸 사람·경로·고객 정보 ---- */
.msg-who { font-size: 11.5px; color: var(--ink-3); margin: 6px 2px -4px; }
.msg-who.me { text-align: right; }
.msg-who.customer-who { display: flex; align-items: center; gap: 6px; }
.msg-who.customer-who.me { justify-content: flex-end; }
.msg-who.customer-who .mono { padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 10.5px; }
.msg-who.customer-who b { color: var(--ink-2); font-weight: 500; }
.msg-src { align-self: flex-start; font-size: 11px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin: -4px 0 2px; max-width: 90%; }
.day-sep { text-align: center; margin: 8px 0 2px; }
.day-sep span { font-size: 11px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.threads-col { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.threads-col .in { margin: 8px; width: auto; font-size: 13px; }
.threads-col .threads { border-right: 0; flex: 1; }
.cprof { padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.cprof-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 3px 12px; margin-top: 8px; font-size: 13px; }
.cprof-grid span { color: var(--ink-3); }
.cprof-grid b { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .threads-col { border-right: 0; border-bottom: 1px solid var(--line); max-height: 260px; } .cprof-grid { grid-template-columns: auto 1fr; } }
/* ---- 모델 서류·자료 ---- */
.doc-card { border-color: var(--mint); }
.doc-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--mint-soft); color: var(--mint-ink); display: grid; place-items: center; }
.doc-ic svg { width: 17px; height: 17px; }
.doc-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; margin-top: 8px; background: var(--surface); }
.doc-item:hover { border-color: var(--red); }
.doc-item > div { flex: 1; min-width: 0; }
.doc-facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.doc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.doc-tags span { font-size: 11.5px; background: var(--mint-soft); color: var(--mint-ink); border-radius: 999px; padding: 1px 8px; }
.doc-langs { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.badge.doc { background: var(--mint-soft); color: var(--mint-ink); }
.badge.doc svg { width: 11px; height: 11px; }
.threads .msg-src { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-h { font-size: 13px; color: var(--ink-2); text-transform: none; margin: 4px 0 6px; }
.dl-list { display: grid; gap: 6px; }
.dl-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.dl-ext { flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.dl-ext.pdf { background: var(--red-soft); color: var(--red-ink); }
.dl-ext.xls { background: var(--mint-soft); color: var(--mint-ink); }
.dl-ext.doc { background: #E6EEFB; color: #2F5DB0; }
.dl-ext.img { background: var(--amber-soft); color: var(--amber); }
.dl-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-meta b { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.dl-meta span { font-size: 12px; color: var(--ink-3); }
.files-adm { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 16px; background: var(--surface-2); }
.files-adm .table-wrap { background: var(--surface); }
.hero.hero-solo { grid-template-columns: 1fr; max-width: 760px; margin-bottom: 20px; }

/* ---- 홈: 판매 중인 동물 / 소식 ---- */
.show { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.show-tabs { display: flex; gap: 4px; margin-bottom: 10px; background: var(--surface-2); border-radius: 9px; padding: 3px; }
.show-tabs button { flex: 1; border: 0; background: none; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.show-tabs button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.slide { display: block; position: relative; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; }
.slide .ph { border-radius: 10px; aspect-ratio: 4 / 3; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 8px; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(10, 18, 30, .78)); color: #fff; }
.slide-cap > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.slide-cap b { font-size: 16px; font-weight: 600; }
.slide-cap span { font-size: 12.5px; opacity: .85; }
.slide-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; }
.dots button.on { background: var(--red); width: 20px; border-radius: 4px; }
.news-mini { display: grid; gap: 6px; }
.nm-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.nm-item:hover { border-color: var(--red); }
.nm-item .ph { width: 64px; aspect-ratio: 1; flex-shrink: 0; }
.nm-dot { width: 64px; height: 64px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); flex-shrink: 0; }
.nm-item > div { display: flex; flex-direction: column; min-width: 0; }
.nm-item b { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.nm-item span { font-size: 12px; color: var(--ink-3); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.news-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.news-card:hover { border-color: var(--red); }
.news-card .ph { border-radius: 8px; aspect-ratio: 16 / 9; }
.news-card h3 { margin: 0; }
.news-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.news-art { max-width: 760px; }
.news-art h1 { margin: 6px 0 12px; }
.news-hero { aspect-ratio: 16 / 9; margin-bottom: 14px; }
.news-body { line-height: 1.75; margin-bottom: 16px; }
.credit { font-size: 11.5px; color: var(--ink-3); padding: 6px 18px 0; line-height: 1.5; }
.credit b { font-weight: 500; color: var(--ink-2); }
.credit a { color: inherit; }
.footer-link, footer a { color: inherit; }
.od summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.od-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 10px; }
.od-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.od-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.od-grid figcaption { font-size: 11.5px; color: var(--ink-3); }
.od-grid > .alert, .od-grid > .faint { grid-column: 1 / -1; }

/* ---- 배송지 주소: GPS · 주소 검색 ---- */
.addr-assist { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px; }
.addr-assist .addr-gps { background: var(--navy); color: #fff; border-color: var(--navy); display: inline-flex; gap: 6px; align-items: center; }
.addr-assist .addr-gps svg { width: 15px; height: 15px; }
.addr-search { display: flex; gap: 6px; flex: 1; min-width: 220px; }
.addr-search .in { flex: 1; min-width: 0; }
.addr-ok { display: flex; gap: 10px; align-items: flex-start; background: var(--mint-soft); border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px; font-size: 13.5px; }
.addr-ok svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--mint, #1E7F74); }
.addr-ok b { display: block; font-weight: 600; color: var(--ink); }
.addr-ok span { color: var(--ink-2); }
.addr-list { display: grid; gap: 6px; margin-bottom: 6px; }
.addr-list button { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.addr-list button:hover { border-color: var(--line-2); background: var(--surface-2); }
.addr-list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--red); }
.addr-list span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.addr-list small { color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.addr-list em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.in.hl { box-shadow: 0 0 0 3px var(--amber-soft, #FFF2D6); border-color: var(--amber, #B7791F); }

/* ---- 내 연구실 ---- */
.lab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 22px; }
.lab-stats a, .lab-stats button { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r, 12px); padding: 14px 16px; text-decoration: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.lab-stats a:hover, .lab-stats button:hover { border-color: var(--line-2); }
.lab-stats b { font-family: var(--mono); font-size: 26px; line-height: 1.1; }
.lab-stats span { color: var(--ink-2); font-size: 13px; }
.prj-list { display: grid; gap: 10px; margin-bottom: 14px; }
.prj .item-h { gap: 8px; }
.prj-notes { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; white-space: pre-wrap; }
.cage-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cage-chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--ground); font-size: 13px; }
@media (max-width: 760px) { .lab-stats { grid-template-columns: 1fr 1fr; } }

/* 주문·결제 순서 안내 */
.payflow { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 6px 0 12px; background: color-mix(in srgb, var(--mint, #10b981) 6%, transparent); }
.payflow > b { display: block; font-size: 13px; margin-bottom: 8px; }
.payflow ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.payflow li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid var(--line); word-break: keep-all; }
.payflow li span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); font-size: 11px; font-family: var(--mono); }
.payflow li.cur { border-color: var(--navy, #3b82f6); font-weight: 700; }
.payflow li.cur span { background: var(--navy, #3b82f6); color: #fff; }
.payflow li.pay { border-color: var(--red); color: var(--red); font-weight: 700; }
.payflow li.pay span { background: var(--red); color: #fff; }
.payflow p { margin: 8px 0 0; font-size: 12.5px; }
.alert.pay-due { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.alert.pay-due > div { flex: 1 1 260px; }
.item.pay-due-item { border-color: var(--red); box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 40%, transparent); }

/* 비밀번호 보기 눈 아이콘 */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-3); border-radius: 8px; cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--ink); background: color-mix(in srgb, currentColor 10%, transparent); outline: none; }
.pw-eye svg { width: 20px; height: 20px; }
input::-ms-reveal { display: none; }

/* 가입: 이메일 바로 확인 */
.email-hint { display: block; min-height: 18px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.email-hint.ok { color: var(--mint-ink); }
.email-hint.err { color: var(--red); }
.email-hint a { color: inherit; font-weight: 600; }
