@charset "utf-8";

/* =========================================================
   Doctorpage — Interior Sourcing Platform
   Global Stylesheet  /  NCP-style theme  ·  Pretendard only
   1. Tokens         7. Forms / Tables
   2. Reset          8. Sections / Hero
   3. Typography     9. NCP components
   4. Layout        10. Footer
   5. Header / Nav  11. Motion / Responsive
   6. Cards / Badges
   ========================================================= */

/* ---------------------------------------------------------
   1. Tokens
   --------------------------------------------------------- */
:root {
  /* Surface */
  --bg:          #ffffff;
  --surface:     #ffffff;
  --sand:        #f4f6f9;   /* light gray band */
  --sand-deep:   #e5e8eb;
  --deep:        #0b0d13;   /* near-black hero / footer */
  --deep-2:      #14171f;

  /* Ink */
  --ink:         #16181d;
  --ink-2:       #4e5968;
  --muted:       #6b7684;
  --muted-2:     #8b95a1;
  --on-deep:     #ffffff;
  --on-deep-mut: #9aa4b2;

  /* Line */
  --line:        #e5e8eb;
  --line-2:      #f1f3f5;
  --line-deep:   #262b36;

  /* Accent — vivid blue (primary) */
  --brass:       #1f5eff;
  --brass-2:     #0b3fd4;
  --brass-soft:  #e9f0ff;
  --brass-3:     #4d82ff;

  /* State */
  --ok:          #00a05a;
  --ok-soft:     #e3f6ec;
  --warn:        #f59000;
  --warn-soft:   #fff2df;
  --danger:      #f04452;
  --danger-soft: #ffeaec;
  --info:        #1f5eff;
  --info-soft:   #e9f0ff;

  /* Radius */
  --r-xs: 3px;
  --r-s:  5px;
  --r:    8px;
  --r-l:  12px;
  --r-xl: 18px;

  /* Elevation */
  --sh-1: 0 1px 3px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
  --sh-2: 0 4px 12px rgba(0,0,0,.07), 0 14px 36px rgba(0,0,0,.09);
  --sh-3: 0 24px 60px rgba(0,0,0,.18);

  /* Motion */
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur:      .38s;

  /* Metrics */
  --header-h: 72px;
  --topbar-h: 34px;
  --wrap:     1200px;
  --wrap-nar: 940px;

  /* Type — Pretendard everywhere */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: var(--sans);
}

/* ---------------------------------------------------------
   2. Reset
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--brass); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ---------------------------------------------------------
   3. Typography — sans only, tight and bold
   --------------------------------------------------------- */
.display {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.035em;
}
.d-1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.24; }
.d-2 { font-size: clamp(24px, 2.9vw, 34px); }
.d-3 { font-size: clamp(18px, 1.9vw, 22px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brass);
}
.eyebrow::before { content: none; }

.lead   { font-size: 16px; color: var(--ink-2); line-height: 1.75; }
.muted  { color: var(--muted); }
.small  { font-size: 13.5px; }
.xsmall { font-size: 12px; }
.num    { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.strong { font-weight: 700; }
.center { text-align: center; }

/* ---------------------------------------------------------
   4. Layout
   --------------------------------------------------------- */
.wrap     { width: 100%; max-width: var(--wrap);     margin-inline: auto; padding-inline: 24px; }
.wrap-nar { width: 100%; max-width: var(--wrap-nar); margin-inline: auto; padding-inline: 24px; }

.section       { padding-block: clamp(56px, 6.5vw, 92px); }
.section-tight { padding-block: clamp(40px, 4.4vw, 60px); }
.section-dark  { background: var(--deep); color: var(--on-deep); }
.section-sand  { background: var(--sand); }
.section-line  { border-top: 1px solid var(--line); }

.sec-head { max-width: 760px; margin-bottom: 32px; }
.sec-head .display { margin-top: 10px; }
.sec-head p { margin-top: 12px; }
.sec-head.center { margin-inline: auto; text-align: center; }

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sec-head-row .sec-head { margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.g-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.flex   { display: flex; }
.row    { display: flex; align-items: center; gap: 12px; }
.row-sb { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrapf  { flex-wrap: wrap; }
.spacer { flex: 1; }

.stack > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0; }  .mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }

/* ---------------------------------------------------------
   5. Header / Nav
   --------------------------------------------------------- */
/* thin utility bar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 320;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255,255,255,.62);
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; }
.topbar a { transition: color .2s var(--ease); }
.topbar a:hover { color: #fff; }
.topbar .spacer { flex: 1; }
body.hdr-solid .topbar,
body:not(.has-hero) .topbar {
  background: var(--sand);
  color: var(--muted);
  border-bottom-color: var(--line);
}
body.hdr-solid .topbar a:hover,
body:not(.has-hero) .topbar a:hover { color: var(--ink); }

.site-header {
  position: fixed;
  inset: var(--topbar-h) 0 auto 0;
  z-index: 300;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.site-header.is-solid,
body:not(.has-hero) .site-header {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 30px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .2em;
  opacity: .55;
  margin-top: 4px;
}

.gnb { display: flex; align-items: center; gap: 2px; }
.gnb a {
  position: relative;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: currentColor;
  opacity: .82;
  border-radius: var(--r-s);
  transition: opacity .2s var(--ease);
}
.gnb a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.gnb a:hover { opacity: 1; }
.gnb a:hover::after,
.gnb a.is-active::after { transform: scaleX(1); }
.gnb a.is-active { opacity: 1; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--r-s);
  border: 1px solid currentColor;
  opacity: .5;
}
.nav-toggle span {
  display: block;
  width: 15px; height: 1.5px;
  margin: 3px auto;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* header search pill */
.hdr-search {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: .45;
  font-size: 12px;
  transition: opacity .2s var(--ease);
}
.hdr-search:hover { opacity: .9; }

/* ---------------------------------------------------------
   6. Buttons / Cards / Badges
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.03em;
  white-space: nowrap;
  transition: transform .16s var(--ease), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease), opacity .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-2); }

.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-2); }

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--muted-2); background: #fafbfc; }

.btn-quiet { color: currentColor; opacity: .8; padding-inline: 10px; }
.btn-quiet:hover { opacity: 1; }

.btn-on-deep { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-on-deep:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }

/* white pill outline — hero CTA in reference */
.btn-pill {
  border-radius: 999px;
  border-color: rgba(255,255,255,.85);
  color: #fff;
  background: transparent;
  padding-inline: 26px;
}
.btn-pill:hover { background: #fff; color: var(--ink); }

.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .38; pointer-events: none; }

.arrow { transition: transform .28s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brass);
  transition: color .2s var(--ease);
}
.link-arrow:hover { color: var(--brass-2); }

/* circular carousel arrows (reference: ‹ › at section headers) */
.arrows { display: flex; align-items: center; gap: 6px; flex: none; }
.arrow-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), opacity .2s var(--ease);
}
.arrow-btn:hover { border-color: var(--ink); }
.arrow-btn.is-filled { background: var(--ink); border-color: var(--ink); color: #fff; }
.arrow-btn.is-filled:hover { background: #000; }
.arrow-btn[disabled] { opacity: .32; pointer-events: none; }
.section-dark .arrow-btn { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.section-dark .arrow-btn.is-filled { background: #fff; border-color: #fff; color: var(--ink); }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 24px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
              border-color .25s var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--sand-deep); }
.card-flat { border-radius: var(--r); padding: 20px; }
.card-pad-lg { padding: 32px; }
.section-dark .card { background: var(--deep-2); border-color: var(--line-deep); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--sand);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge-line   { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge-brass  { background: var(--brass-soft); color: var(--brass-2); }
.badge-ok     { background: var(--ok-soft);    color: var(--ok); }
.badge-warn   { background: var(--warn-soft);  color: #b06d00; }
.badge-danger { background: var(--danger-soft);color: var(--danger); }
.badge-info   { background: var(--info-soft);  color: var(--info); }
.badge-dark   { background: var(--ink); color: #fff; }
.badge-dot::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.section-dark .badge-line { border-color: rgba(255,255,255,.24); color: var(--on-deep-mut); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--brass); }
.chip.is-on { background: var(--brass); border-color: var(--brass); color: #fff; }
.chip-count { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.chip.is-on .chip-count { color: rgba(255,255,255,.7); }

/* Meta list */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.meta > * { display: inline-flex; align-items: center; gap: 6px; }
.meta .sep { width: 1px; height: 11px; background: var(--line); }

/* Definition rows */
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px 20px; font-size: 14px; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; color: var(--ink); font-weight: 600; }

/* Stat */
.stat-n {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.stat-l { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Thumb — vivid blue/navy gradient placeholders */
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(140deg, #2f6bff 0%, #1746c9 52%, #0d2f96 100%);
}
.thumb::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(255,255,255,.34), rgba(255,255,255,0) 58%),
    radial-gradient(80% 70% at 12% 96%, rgba(0,0,0,.28), rgba(0,0,0,0) 60%);
}
.thumb-t2 { background: linear-gradient(140deg, #2b3444 0%, #1b2130 55%, #10141d 100%); }
.thumb-t3 { background: linear-gradient(140deg, #ff9e3d 0%, #f2701f 52%, #c2470b 100%); }
.thumb-t4 { background: linear-gradient(140deg, #3a4a66 0%, #26324a 55%, #161d2c 100%); }
.thumb-t5 { background: linear-gradient(140deg, #4d82ff 0%, #2455e6 52%, #12309e 100%); }
.thumb-t6 { background: linear-gradient(140deg, #5b6craa 0%, #39415a 55%, #222738 100%); }
.thumb-tall  { aspect-ratio: 3 / 4; }
.thumb-wide  { aspect-ratio: 16 / 9; }
.thumb-label {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(255,255,255,.9);
}
.thumb-zoom { overflow: hidden; }
.thumb-zoom .thumb-inner {
  position: absolute; inset: 0;
  transition: transform .7s var(--ease-out);
}
.card-hover:hover .thumb-inner,
a:hover > .thumb-zoom .thumb-inner { transform: scale(1.05); }

/* Avatar */
.avatar {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brass-soft);
  border: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--brass-2);
}
.avatar-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.avatar-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 19px; }

/* Progress */
.bar { height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--brass); }

/* ---------------------------------------------------------
   7. Forms / Tables
   --------------------------------------------------------- */
.field { display: block; }
.field + .field { margin-top: 20px; }

.label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.label .req { color: var(--danger); font-size: 11.5px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 0 13px;
  height: 44px;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.textarea { height: auto; padding: 12px 13px; line-height: 1.75; resize: vertical; min-height: 130px; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(31,94,255,.14);
}
.select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236b7684' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.input-group { display: flex; align-items: center; gap: 10px; }
.input-group .input { flex: 1; }
.unit { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row .field + .field { margin-top: 0; }

/* Choice */
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.choice:hover { border-color: var(--brass); }
.choice input { margin: 3px 0 0; accent-color: var(--brass); width: 15px; height: 15px; flex: none; }
.choice-t { font-size: 14px; font-weight: 700; }
.choice-d { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.6; }
.choice:has(input:checked) {
  border-color: var(--brass);
  background: #f7faff;
  box-shadow: 0 0 0 3px rgba(31,94,255,.1);
}
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--sand-deep);
  border-radius: var(--r);
  background: var(--sand);
  padding: 32px 24px;
  text-align: center;
  transition: border-color .22s var(--ease), background .22s var(--ease);
  cursor: pointer;
}
.dropzone:hover { border-color: var(--brass); background: #f7faff; }

/* Steps */
.steps { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; }
.step-n {
  width: 24px; height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all .28s var(--ease);
}
.step-t { font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .28s var(--ease); }
.step-line { width: 32px; height: 1px; background: var(--line); margin-inline: 13px; }
.step.is-on .step-n { background: var(--brass); border-color: var(--brass); color: #fff; }
.step.is-on .step-t { color: var(--ink); font-weight: 700; }
.step.is-done .step-n { background: var(--brass-soft); border-color: var(--brass-soft); color: var(--brass-2); }
.step.is-done .step-t { color: var(--ink-2); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table { min-width: 720px; font-size: 14px; }
.table thead th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--sand);
  padding: 12px 18px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .18s var(--ease); }
.table tbody tr:hover { background: #fafbfc; }
.table .ta-r { text-align: right; }
.table .ta-c { text-align: center; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  position: relative;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform .28s var(--ease);
}
.tab:hover { color: var(--ink-2); }
.tab.is-on { color: var(--brass); font-weight: 700; }
.tab.is-on::after { transform: scaleX(1); }

/* Accordion */
.acc { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.03em;
  transition: color .2s var(--ease);
}
.acc-q:hover { color: var(--brass); }
.acc-q i {
  flex: none;
  width: 20px; height: 20px;
  position: relative;
  transition: transform .32s var(--ease);
}
.acc-q i::before, .acc-q i::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.5px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: opacity .28s var(--ease);
}
.acc-q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc-q i { transform: rotate(180deg); }
.acc.is-open .acc-q i::after { opacity: 0; }
.acc-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .36s var(--ease);
}
.acc.is-open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 4px 22px; color: var(--ink-2); max-width: 820px; }

/* Breadcrumb */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.crumb a:hover { color: var(--brass); }
.crumb .sep { opacity: .5; }

/* Page head band */
.page-head {
  padding-top: calc(var(--header-h) + var(--topbar-h) + 40px);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}

/* Sidebar layout */
.layout-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}
.layout-side-l { grid-template-columns: 240px minmax(0, 1fr); }
.sticky { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 20px); }

/* ---------------------------------------------------------
   8. Hero — dark, centered, blue blobs
   --------------------------------------------------------- */
.hero {
  position: relative;
  background: #05060a;
  color: #fff;
  padding-top: calc(var(--header-h) + var(--topbar-h) + 78px);
  padding-bottom: 62px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
}
.blob-1 {
  width: 300px; height: 300px; left: -70px; top: 44px;
  background: radial-gradient(circle at 34% 30%, #3f7bff, #143bb0 62%, rgba(10,20,60,0) 74%);
  opacity: .85;
}
.blob-2 {
  width: 220px; height: 220px; right: -40px; top: 10px;
  background: radial-gradient(circle at 40% 34%, #2a5cff, #10267a 60%, rgba(8,14,40,0) 74%);
  opacity: .8;
}
.blob-3 {
  width: 150px; height: 150px; left: 52%; top: -34px;
  background: radial-gradient(circle at 38% 34%, #1b46e0, #0b1d6b 62%, rgba(6,10,30,0) 76%);
  opacity: .75;
}
.blob-4 {
  width: 420px; height: 420px; right: 6%; bottom: -190px;
  background: radial-gradient(circle at 42% 36%, rgba(50,110,255,.5), rgba(10,25,90,0) 66%);
  filter: blur(20px);
}
/* decorative chevron mark (left) + slider pills (right) */
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.deco-chevron {
  position: absolute; left: 5%; top: 44%;
  width: 118px; height: 92px;
  background: linear-gradient(135deg, #3f7bff, #1440c8);
  clip-path: polygon(0 0, 46% 0, 100% 50%, 46% 100%, 0 100%, 54% 50%);
  opacity: .95;
}
.deco-pill {
  position: absolute; right: 4%;
  height: 30px; border-radius: 999px;
  background: linear-gradient(90deg, #2a5cff, #0f2f9e);
}
.deco-pill.p1 { top: 45%; width: 128px; }
.deco-pill.p2 { top: 55%; width: 106px; }
.deco-dot {
  position: absolute; right: 4%;
  width: 44px; height: 44px; border-radius: 50%;
  background: #1e50f0;
  display: grid; place-items: center;
  color: #fff;
}
.deco-dot.d1 { top: 42.6%; transform: translateX(-96px); }
.deco-dot.d2 { top: 52.6%; transform: translateX(-14px); }

.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { margin-top: 0; }
.hero .lead { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 15px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

/* hero slide picker strip */
.hero-slides {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hero-slide {
  width: 152px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
  padding: 12px 14px;
  text-align: left;
  color: rgba(255,255,255,.66);
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.hero-slide b { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: -.03em; }
.hero-slide span { display: block; font-size: 10.5px; margin-top: 3px; opacity: .7; }
.hero-slide:hover { color: #fff; border-color: rgba(255,255,255,.34); }
.hero-slide.is-on {
  color: #fff;
  background: rgba(31,94,255,.24);
  border-color: var(--brass-3);
}
.hero-dots { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.hero-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background .25s var(--ease), width .25s var(--ease);
}
.hero-dots i.is-on { background: #fff; width: 18px; border-radius: 999px; }

/* legacy hero pieces kept for inner pages */
.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-art { position: relative; }
.float-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  padding: 14px 16px;
}

/* Search bar */
.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 7px 7px 7px 16px;
}
.searchbar input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: none;
  height: 38px; font-size: 15px;
}
.searchbar .divider { width: 1px; height: 20px; background: var(--line); }
.searchbar select { border: 0; outline: none; background: none; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }

/* ---------------------------------------------------------
   9. NCP-style components
   --------------------------------------------------------- */

/* --- news / promo gradient card (reference row 1) --- */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px 22px;
  border-radius: var(--r-l);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #2f6bff 0%, #1746c9 55%, #0d2f96 100%);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.news-card::after {
  content: "";
  position: absolute;
  right: -50px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, rgba(255,255,255,.3), rgba(255,255,255,0) 62%);
}
.news-card > * { position: relative; z-index: 1; }
.news-kind { font-size: 11.5px; font-weight: 700; opacity: .78; letter-spacing: -.02em; }
.news-t {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.04em;
}
.news-more { margin-top: auto; padding-top: 24px; font-size: 12.5px; font-weight: 700; opacity: .9; }
.nc-navy  { background: linear-gradient(150deg, #3b4358 0%, #232a3a 55%, #141926 100%); }
.nc-amber { background: linear-gradient(150deg, #2d3444 0%, #23293a 45%, #171c28 100%); }
.nc-amber::before {
  content: "";
  position: absolute; right: -20px; bottom: 40px;
  width: 190px; height: 130px;
  background: linear-gradient(120deg, #ffb03a, #f2701f);
  clip-path: polygon(0 62%, 40% 0, 100% 46%, 100% 100%, 44% 40%);
  opacity: .95;
}
.nc-slate { background: linear-gradient(150deg, #33405c 0%, #202940 55%, #131826 100%); }
.nc-deep  { background: linear-gradient(150deg, #2a3550 0%, #1b2338 55%, #101725 100%); }

/* --- horizontal scroller --- */
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(262px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* --- category tab row with icons (reference row 2) --- */
.cat-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 6px 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
  transition: color .2s var(--ease);
}
.cat-tab::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: -1px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform .28s var(--ease);
}
.cat-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--sand);
  color: var(--muted);
  font-size: 15px;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.cat-tab:hover { color: var(--ink-2); }
.cat-tab:hover .cat-ico { transform: translateY(-2px); }
.cat-tab.is-on { color: var(--brass); font-weight: 700; }
.cat-tab.is-on::after { transform: scaleX(1); }
.cat-tab.is-on .cat-ico { background: var(--brass-soft); color: var(--brass); }

/* --- featured split panel (reference: dark tile + service list) --- */
.feat {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.feat-tile {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  padding: 26px;
  color: #fff;
  background: linear-gradient(160deg, #16233f 0%, #0f1a30 46%, #0b1424 100%);
  min-height: 210px;
}
.feat-tile::after {
  content: "";
  position: absolute;
  left: -30px; bottom: -70px;
  width: 260px; height: 190px;
  border-radius: 50% 50% 46% 54% / 60% 56% 44% 40%;
  background: linear-gradient(120deg, #2f6bff, #17b3a3);
  opacity: .82;
  filter: blur(1px);
}
.feat-tile b { position: relative; z-index: 1; font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.feat-body {
  border-radius: var(--r-l);
  background: #f2f6fd;
  padding: 24px 26px;
}
.feat-body > h4 { font-size: 14.5px; font-weight: 700; letter-spacing: -.03em; }
.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 30px;
  margin-top: 18px;
}
.svc {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.svc-ico {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--brass);
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.svc-n { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; letter-spacing: -.03em; }
.svc-d { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 3px; }
.svc-tag {
  height: 16px; padding: 0 5px;
  border-radius: 3px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0;
  display: inline-flex; align-items: center;
  background: var(--ok-soft); color: var(--ok);
}
.svc-tag.t-new { background: var(--danger-soft); color: var(--danger); }

/* --- solution card (reference row 3) --- */
.sol-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--surface);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .25s var(--ease);
}
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--sand-deep); }
.sol-head { padding: 22px 20px 16px; }
.sol-t { font-size: 16px; font-weight: 700; letter-spacing: -.04em; }
.sol-d { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; min-height: 40px; }
.sol-art {
  aspect-ratio: 16 / 11;
  background: linear-gradient(150deg, #16233f, #0d1524);
  position: relative;
  overflow: hidden;
}
.sol-art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 30% 62%, rgba(47,107,255,.62), rgba(47,107,255,0) 66%),
    radial-gradient(48% 56% at 74% 36%, rgba(23,179,163,.5), rgba(23,179,163,0) 68%);
}
.sol-art.a2::after {
  background:
    radial-gradient(58% 66% at 68% 60%, rgba(90,140,255,.6), rgba(90,140,255,0) 68%),
    radial-gradient(46% 52% at 26% 34%, rgba(120,90,255,.42), rgba(120,90,255,0) 68%);
}
.sol-art.a3::after {
  background:
    radial-gradient(56% 64% at 40% 40%, rgba(255,150,60,.5), rgba(255,150,60,0) 68%),
    radial-gradient(50% 58% at 74% 70%, rgba(47,107,255,.5), rgba(47,107,255,0) 68%);
}
.sol-art.a4::after {
  background:
    radial-gradient(60% 68% at 60% 56%, rgba(23,179,163,.5), rgba(23,179,163,0) 68%),
    radial-gradient(48% 54% at 24% 30%, rgba(47,107,255,.5), rgba(47,107,255,0) 68%);
}
.sol-art.a5::after {
  background:
    radial-gradient(58% 66% at 34% 58%, rgba(255,196,80,.5), rgba(255,196,80,0) 68%),
    radial-gradient(50% 56% at 72% 34%, rgba(120,150,255,.44), rgba(120,150,255,0) 68%);
}

/* --- promo strip (reference row 4) --- */
.promo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promo-card {
  position: relative;
  border-radius: var(--r-l);
  padding: 22px 24px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.promo-k { font-size: 11.5px; font-weight: 700; opacity: .75; }
.promo-t { font-size: 15px; font-weight: 700; letter-spacing: -.035em; margin-top: 7px; line-height: 1.5; }
.promo-card .ico {
  position: absolute; top: 20px; right: 22px;
  font-size: 15px; opacity: .8;
}
.pc-navy  { background: #1b2540; color: #fff; }
.pc-blue  { background: var(--brass); color: #fff; }
.pc-plain { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pc-plain .promo-k { color: var(--muted); opacity: 1; }

/* --- customer logo grid --- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.logo-cell {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--muted);
  transition: border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.logo-cell:hover { border-color: var(--brass); color: var(--brass); transform: translateY(-2px); }

/* --- role / process / project list (kept, re-skinned) --- */
.role-card {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 26px;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.role-card .role-n {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--line-2);
  position: absolute;
  right: 22px; top: 20px;
  transition: color .3s var(--ease);
}
.role-card:hover .role-n { color: var(--brass-soft); }
.role-card ul { margin-top: 16px; display: grid; gap: 8px; }
.role-card li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.role-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brass);
}

.process { counter-reset: p; display: grid; gap: 0; }
.process-item {
  counter-increment: p;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.section-dark .process-item { border-top-color: rgba(255,255,255,.12); }
.process-item::before {
  content: "0" counter(p);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--brass);
  padding-top: 2px;
}
.section-dark .process-item::before { color: var(--brass-3); }
.process-item h4 { font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.process-item p { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.section-dark .process-item p { color: var(--on-deep-mut); }

.pj {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 22px 24px;
  transition: border-color .22s var(--ease), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.pj:hover { border-color: var(--brass); box-shadow: var(--sh-2); transform: translateY(-2px); }
.pj-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pj-t {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.04em;
  margin-top: 12px;
  line-height: 1.45;
  transition: color .2s var(--ease);
}
.pj:hover .pj-t { color: var(--brass); }
.pj-d {
  font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--sand);
  border-radius: var(--r-xs);
  padding: 3px 8px;
}
.pj-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 15px;
  border-top: 1px solid var(--line-2);
}
.pj-figs { display: flex; gap: 28px; flex-wrap: wrap; }
.pj-fig-l { font-size: 11.5px; color: var(--muted-2); font-weight: 600; }
.pj-fig-v { font-size: 15px; font-weight: 700; letter-spacing: -.035em; margin-top: 2px; }

/* Reference card */
.ref-card { display: block; }
.ref-card .thumb { border-radius: var(--r); }
.ref-body { padding-top: 16px; }
.ref-t { font-size: 16px; font-weight: 700; letter-spacing: -.04em; margin-top: 8px; transition: color .2s var(--ease); }
.ref-card:hover .ref-t { color: var(--brass); }
.ref-m { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* Quote */
.quote {
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 600;
  line-height: 1.62;
  letter-spacing: -.04em;
}

/* Logo strip */
.logo-strip { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; justify-content: center; }
.logo-strip span {
  font-size: 15px; font-weight: 700; letter-spacing: -.04em;
  color: var(--muted-2); white-space: nowrap;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, #0f1a33 0%, #14224a 45%, #0b142a 100%);
  color: #fff;
  padding: clamp(40px, 5.4vw, 64px);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%; top: -46%;
  width: 720px; height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47,107,255,.4), rgba(47,107,255,0) 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }

/* Notice */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-s);
  background: var(--warn-soft);
  border: 1px solid #f6e0b8;
  font-size: 13.5px;
  color: #7a5300;
  line-height: 1.7;
}
.notice-info { background: var(--info-soft); border-color: #cfdeff; color: #163f9e; }

/* ---------------------------------------------------------
   10. Footer
   --------------------------------------------------------- */
.site-footer { background: #101319; color: var(--on-deep-mut); padding-block: 58px 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.site-footer .brand-name { color: #fff; }
.site-footer h5 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer li + li { margin-top: 9px; }
.site-footer a { font-size: 13px; transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-bot {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}

/* ---------------------------------------------------------
   11. Motion
   --------------------------------------------------------- */
#page-curtain {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
#page-curtain.is-in { opacity: 1; }
body.is-loading #page-curtain { opacity: 1; }
body.has-hero #page-curtain { background: #05060a; }

#page-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 950;
  height: 2px;
  width: 0;
  background: var(--brass);
  opacity: 0;
  transition: width .45s var(--ease), opacity .3s var(--ease);
}
#page-progress.is-on { opacity: 1; width: 92%; }

.page-enter { animation: pageIn .55s var(--ease-out) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-vis { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="right"] { transform: translateX(-22px); }
[data-reveal="right"].is-vis { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1180px) {
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .layout-side, .layout-side-l { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat-tile { min-height: 132px; }
  .promo { grid-template-columns: minmax(0, 1fr); }
  .deco-chevron, .deco-pill, .deco-dot { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; --topbar-h: 0px; }
  .topbar { display: none; }
  .nav-toggle { display: block; order: 3; }
  .hdr-search { display: none; }
  .gnb {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    padding: 8px 16px 16px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  body.nav-open .gnb { opacity: 1; visibility: visible; transform: none; }
  .gnb a { padding: 13px 6px; font-size: 16px; opacity: 1; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .gnb a::after { display: none; }
  .header-actions .btn-quiet { display: none; }
  .g-3, .g-2 { grid-template-columns: minmax(0, 1fr); }
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .process-item { grid-template-columns: 42px minmax(0, 1fr); }
  .process-item p { grid-column: 2; }
  .field-row, .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: 92px 1fr; gap: 10px 14px; font-size: 13.5px; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 48px; }
}

@media (max-width: 560px) {
  .wrap, .wrap-nar { padding-inline: 18px; }
  .g-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card { padding: 20px; }
  .card-pad-lg { padding: 22px; }
  .cta-band { border-radius: var(--r-l); }
  .hero-trust { gap: 20px; }
  .steps { gap: 8px; }
  .step-line, .step-t { display: none; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scroller { grid-auto-columns: minmax(232px, 1fr); }
}

/* =========================================================
   12. Console / Document components
       페이지 헤더 · 서브내비 · 패널 · 필터 · 툴바 · 폼표 · 문서
   ========================================================= */

/* ---------- 12.1 Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #101b34 0%, #16233f 48%, #0d1526 100%);
  color: #fff;
  padding-top: calc(var(--header-h) + var(--topbar-h) + 44px);
  padding-bottom: 40px;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -140px; top: -180px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(47,107,255,.42), rgba(47,107,255,0) 64%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: -90px; bottom: -220px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 44%, rgba(23,179,163,.24), rgba(23,179,163,0) 66%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .crumb { color: rgba(255,255,255,.55); }
.page-hero .crumb a:hover { color: #fff; }
.page-hero h1 { margin-top: 14px; }
.page-hero .lead { color: rgba(255,255,255,.7); margin-top: 12px; max-width: 640px; }
.page-hero .eyebrow { color: var(--brass-3); }

.hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-head-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }

/* stat strip sitting on the hero edge */
.stat-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-l);
  overflow: hidden;
  margin-top: 30px;
}
.stat-strip > div { padding: 18px 22px; border-left: 1px solid rgba(255,255,255,.12); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip .sv { font-size: 22px; font-weight: 800; letter-spacing: -.045em; line-height: 1.2; }
.stat-strip .sl { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* light variant used on form pages */
.page-hero-light {
  background: var(--sand);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero-light::before,
.page-hero-light::after { display: none; }
.page-hero-light .crumb { color: var(--muted); }
.page-hero-light .lead { color: var(--ink-2); }
.page-hero-light .eyebrow { color: var(--brass); }
.page-hero-light .stat-strip {
  background: var(--surface);
  border-color: var(--line);
}
.page-hero-light .stat-strip > div { border-left-color: var(--line); }
.page-hero-light .stat-strip .sl { color: var(--muted); }

/* ---------- 12.2 Sub navigation ---------- */
.subnav {
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h));
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav-inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a, .subnav button {
  position: relative;
  padding: 15px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.subnav a::after, .subnav button::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform .26s var(--ease);
}
.subnav a:hover, .subnav button:hover { color: var(--ink-2); }
.subnav .is-on { color: var(--brass); font-weight: 700; }
.subnav .is-on::after { transform: scaleX(1); }
.subnav .spacer { flex: 1; }

/* ---------- 12.3 Panel ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
.panel + .panel { margin-top: 20px; }
.panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.panel-hd h2, .panel-hd h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-hd .cnt {
  font-size: 13px;
  font-weight: 700;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.panel-hd-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-weight: 400; letter-spacing: -.02em; }
.panel-bd { padding: 22px; }
.panel-bd-flush { padding: 0; }
.panel-ft {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.panel-tint { background: #fafbfc; }
.panel-accent { border-top: 3px solid var(--brass); }

/* ---------- 12.4 Custom check / radio ---------- */
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: var(--r-s);
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.check:hover { background: var(--sand); color: var(--ink); }
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 17px; height: 17px;
  margin: 0;
  border: 1.5px solid #c9cfd6;
  border-radius: 4px;
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.check input[type="radio"] { border-radius: 50%; }
.check input::after {
  content: "";
  position: absolute;
  left: 50%; top: 46%;
  width: 9px; height: 5px;
  border-left: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg) scale(.5);
  opacity: 0;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.check input[type="radio"]::after {
  width: 6px; height: 6px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%) scale(.4);
}
.check input:checked {
  background: var(--brass);
  border-color: var(--brass);
}
.check input:checked::after { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
.check input[type="radio"]:checked::after { transform: translate(-50%, -50%) scale(1); }
.check input:hover { border-color: var(--brass); }
.check:has(input:checked) { color: var(--ink); font-weight: 600; }
.check .c-n {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* ---------- 12.5 Filter sidebar ---------- */
.filter { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 76px); }
.filter-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.filter-hd h2 { font-size: 14.5px; font-weight: 700; letter-spacing: -.04em; }
.filter-reset {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .18s var(--ease);
}
.filter-reset:hover { color: var(--brass); }

.fgroup { border-bottom: 1px solid var(--line-2); padding: 6px 8px 12px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .24s var(--ease);
}
.fgroup[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.fgroup .flist { display: grid; gap: 1px; margin-top: 2px; }
.fgroup .fmore {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brass);
}
.fgroup .fmore:hover { text-decoration: underline; }

/* range inputs inside a filter group */
.frange { display: flex; align-items: center; gap: 6px; padding: 6px 9px 2px; }
.frange .input { height: 34px; font-size: 13px; padding-inline: 9px; }
.frange span { color: var(--muted-2); font-size: 12px; }

/* ---------- 12.6 Toolbar / applied filters / pager ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.toolbar-sum { font-size: 13.5px; color: var(--muted); }
.toolbar-sum b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.toolbar-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .select { height: 34px; width: auto; font-size: 13px; padding-inline: 11px 32px; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.seg button {
  padding: 0 12px;
  height: 32px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border-left: 1px solid var(--line);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--sand); color: var(--ink); }
.seg button.is-on { background: var(--ink); color: #fff; }

.applied {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 0;
}
.applied-l { font-size: 12.5px; font-weight: 700; color: var(--muted); flex: none; }
.atag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 6px 0 11px;
  border-radius: 999px;
  background: var(--brass-soft);
  color: var(--brass-2);
  font-size: 12.5px;
  font-weight: 600;
}
.atag button {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11,63,212,.14);
  color: var(--brass-2);
  font-size: 10px;
  line-height: 1;
  transition: background .16s var(--ease);
}
.atag button:hover { background: rgba(11,63,212,.28); }
.applied .clear { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.applied .clear:hover { color: var(--danger); }

.pager { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pager button, .pager a {
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border-radius: var(--r-s);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.pager button:hover, .pager a:hover { background: var(--sand); }
.pager .is-on { background: var(--brass); color: #fff; font-weight: 700; }
.pager .is-on:hover { background: var(--brass-2); }
.pager .gap { color: var(--muted-2); pointer-events: none; }
.pager [disabled] { opacity: .34; pointer-events: none; }

/* ---------- 12.7 Empty state ---------- */
.empty { padding: 64px 24px; text-align: center; }
.empty-ico {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand);
  color: var(--muted-2);
  font-size: 20px;
}
.empty h3 { font-size: 16px; font-weight: 700; letter-spacing: -.04em; }
.empty p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---------- 12.8 Spec table (key/value, formal) ---------- */
.spec {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  width: 100%;
  font-size: 14px;
}
.spec th, .spec td {
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
}
.spec th {
  width: 160px;
  background: #fafbfc;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.spec td { color: var(--ink); font-weight: 500; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 4px; }

/* two-column spec on wide screens */
.spec-2 th { width: 132px; }
@media (min-width: 861px) {
  .spec-2 { display: grid; grid-template-columns: 1fr 1fr; }
  .spec-2 tbody { display: contents; }
  .spec-2 tr { display: grid; grid-template-columns: 132px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .spec-2 tr:nth-child(odd) { border-right: 1px solid var(--line); }
  .spec-2 th, .spec-2 td { border-bottom: 0; }
}

/* ---------- 12.9 Form table (격식 있는 입력 폼) ---------- */
.ftable { border-top: 2px solid var(--ink); width: 100%; }
.ftable > tbody > tr { border-bottom: 1px solid var(--line); }
.ftable th {
  width: 176px;
  padding: 18px 20px;
  background: #fafbfc;
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
}
.ftable th .req { color: var(--danger); margin-left: 3px; }
.ftable th .th-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 5px; line-height: 1.55; }
.ftable td { padding: 14px 20px; vertical-align: top; }
.ftable td > .hint:first-child { margin-top: 0; }
.ftable .cellrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ftable .cellgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 860px) {
  .ftable, .ftable tbody, .ftable tr, .ftable th, .ftable td { display: block; width: auto; }
  .ftable th { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 14px 16px; }
  .ftable td { padding: 14px 16px; }
}

/* ---------- 12.10 Form section header ---------- */
.form-sec + .form-sec { margin-top: 40px; }
.form-sec-hd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 0;
}
.form-sec-n {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 5px;
  display: grid; place-items: center;
  background: var(--brass);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  align-self: center;
}
.form-sec-hd h3 { font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.form-sec-hd .d { font-size: 12.5px; color: var(--muted); }

/* required legend */
.req-note { font-size: 12.5px; color: var(--muted); }
.req-note b { color: var(--danger); }

/* ---------- 12.11 Document body (RFP 본문) ---------- */
.doc { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.doc > * + * { margin-top: 16px; }
.doc h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--ink);
  padding-left: 12px;
  border-left: 3px solid var(--brass);
  line-height: 1.4;
  margin-top: 36px;
}
.doc h3:first-child { margin-top: 0; }
.doc h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 24px; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc ul { display: grid; gap: 9px; }
.doc ul > li { position: relative; padding-left: 15px; }
.doc ul > li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted-2);
}
.doc ol { display: grid; gap: 9px; counter-reset: d; }
.doc ol > li { position: relative; padding-left: 26px; counter-increment: d; }
.doc ol > li::before {
  content: counter(d);
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
}

/* requirement rows (필수/권장) */
.reqs { display: grid; gap: 8px; }
.reqrow {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.reqrow.is-must { border-color: #ffd9dd; background: #fffbfb; }
.reqrow.is-rec  { border-color: #ffe6c2; background: #fffdf8; }

/* ---------- 12.12 Timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 20px 0;
}
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: "";
  position: absolute;
  left: 82px; top: 16px; bottom: -4px;
  width: 1px;
  background: var(--line);
}
.tl:last-child::before { display: none; }
.tl-d { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; text-align: right; }
.tl-b { position: relative; padding-left: 20px; }
.tl-b::before {
  content: "";
  position: absolute;
  left: -1px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
}
.tl-t { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tl.is-done .tl-b::before { border-color: var(--brass); background: var(--brass); }
.tl.is-done .tl-t { color: var(--ink); }
.tl.is-now .tl-b::before { border-color: var(--danger); background: #fff; box-shadow: 0 0 0 3px rgba(240,68,82,.16); }
.tl.is-now .tl-t { color: var(--danger); font-weight: 700; }

/* ---------- 12.13 Sticky action bar ---------- */
.actionbar {
  position: sticky;
  bottom: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  margin-top: 28px;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: 0 -2px 14px rgba(0,0,0,.05);
}
.actionbar-l { font-size: 13px; color: var(--muted); }
.actionbar-r { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* ---------- 12.14 File row / attachment ---------- */
.filerow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  transition: border-color .18s var(--ease);
}
.filerow:hover { border-color: var(--muted-2); }
.filerow + .filerow { margin-top: 8px; }
.file-ext {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--sand);
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.file-ext.e-pdf { background: #ffeaec; color: #c62b3a; }
.file-ext.e-dwg { background: #e9f0ff; color: var(--brass-2); }
.file-ext.e-zip { background: #fff2df; color: #b06d00; }
.file-ext.e-xls { background: #e3f6ec; color: #007a45; }
.file-n { font-size: 13.5px; font-weight: 600; letter-spacing: -.03em; }
.file-m { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 12.15 Q&A thread ---------- */
.qa { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qa + .qa { margin-top: 12px; }
.qa-q { padding: 16px 18px; }
.qa-a { padding: 16px 18px; background: #fafbfc; border-top: 1px dashed var(--line); }
.qa-who { display: flex; align-items: center; gap: 9px; }
.qa-who .n { font-size: 13px; font-weight: 700; }
.qa-who .t { font-size: 11.5px; color: var(--muted-2); }
.qa-tx { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin-top: 9px; }
.qa-a .qa-tx { color: var(--ink); }

/* ---------- 12.16 Compare / score bits ---------- */
.kpi {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.kpi > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.kpi > div:first-child { border-left: 0; }
.kpi .kl { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .kv { font-size: 19px; font-weight: 800; letter-spacing: -.045em; margin-top: 6px; }
.kpi .ks { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
@media (max-width: 860px) {
  .kpi { grid-auto-flow: row; }
  .kpi > div { border-left: 0; border-top: 1px solid var(--line); }
  .kpi > div:first-child { border-top: 0; }
  .stat-strip { grid-auto-flow: row; }
  .stat-strip > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .stat-strip > div:first-child { border-top: 0; }
  .page-hero-light .stat-strip > div { border-top-color: var(--line); }
}

/* ---------- 12.17 Layout tweak for list pages ---------- */
.layout-side-l { gap: 28px; }
@media (min-width: 1081px) {
  .layout-side-l { grid-template-columns: 264px minmax(0, 1fr); }
}

/* =========================================================
   13. Wizard — 단계형 등록 플로우 (좌측 레일 + 질문 카드)
   ========================================================= */
.wz-page {
  background: var(--sand);
  min-height: 100vh;
  padding-top: calc(var(--header-h) + var(--topbar-h) + 40px);
  padding-bottom: 90px;
}

.wizard {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* ---------- 좌측 레일 ---------- */
.wz-rail { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 32px); }
.wz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.wz-back:hover { color: var(--brass); }
.wz-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.05em;
  margin-top: 12px;
  line-height: 1.3;
}
.wz-nav { margin-top: 34px; }

.wz-phase {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--muted-2);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .22s var(--ease);
}
.wz-phase.is-active { color: var(--ink); }
.wz-phase .hint-i {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-grid; place-items: center;
  font-size: 9px;
  opacity: .55;
}

.wz-list { position: relative; padding: 4px 0 8px; }
.wz-list::before {
  content: "";
  position: absolute;
  left: 10px; top: 14px; bottom: 20px;
  width: 1px;
  background: var(--sand-deep);
}
.wz-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 8px 0;
}
.wz-step .n {
  width: 21px; height: 21px;
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: #dbe0e5;
  color: #fff;
  transition: background .22s var(--ease), box-shadow .22s var(--ease);
}
.wz-step .t {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--muted-2);
  transition: color .22s var(--ease);
}
.wz-step:hover .t { color: var(--ink-2); }
.wz-step.is-done .n { background: var(--brass-3); }
.wz-step.is-done .t { color: var(--ink-2); }
.wz-step.is-on .n { background: var(--brass); box-shadow: 0 0 0 4px rgba(31,94,255,.14); }
.wz-step.is-on .t { color: var(--ink); font-weight: 700; }

/* 진행률 */
.wz-progress { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--sand-deep); }
.wz-progress .bar { background: var(--sand-deep); }
.wz-progress p { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- 우측 카드 ---------- */
.wz-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
}
.wz-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 34px;
  border-bottom: 1px solid var(--line-2);
}
.wz-hd h2 { font-size: 21px; font-weight: 700; letter-spacing: -.05em; }
.wz-hd .sub { font-size: 13px; color: var(--muted); margin-top: 5px; font-weight: 400; letter-spacing: -.02em; }
.wz-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.wz-help:hover { border-color: var(--brass); color: var(--brass); }
.wz-help i {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-size: 10px;
  font-style: normal;
  opacity: .7;
}

.wz-bd { padding: 34px; }
.wz-ft {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 34px;
  border-top: 1px solid var(--line-2);
  background: var(--surface);
}
.wz-ft .left { margin-right: auto; }

/* ---------- 질문 블록 ---------- */
.q + .q { margin-top: 42px; padding-top: 42px; border-top: 1px solid var(--line-2); }
.q-l {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.045em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.q-l .req { color: var(--danger); }
.q-d { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.65; }
.q-c { margin-top: 20px; }
.q-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.6;
}

/* ---------- 큰 선택 타일 ---------- */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 14px;
}
.pick {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 30px 16px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.pick:hover { border-color: var(--brass-3); }
.pick input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  left: 14px; top: 14px;
  width: 18px; height: 18px;
  margin: 0;
  border: 1.5px solid #c9cfd6;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.pick input[type="radio"] { border-radius: 50%; }
.pick input::after {
  content: "";
  position: absolute;
  left: 50%; top: 45%;
  width: 9px; height: 5px;
  border-left: 1.9px solid #fff;
  border-bottom: 1.9px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg) scale(.5);
  opacity: 0;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.pick input[type="radio"]::after {
  width: 7px; height: 7px; border: 0; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%) scale(.4);
}
.pick input:checked { background: var(--brass); border-color: var(--brass); }
.pick input:checked::after { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
.pick input[type="radio"]:checked::after { transform: translate(-50%, -50%) scale(1); }
.pick:has(input:checked) {
  border-color: var(--brass);
  background: #f7faff;
  box-shadow: 0 0 0 3px rgba(31,94,255,.1);
}
.pick .ico {
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.pick:has(input:checked) .ico { color: var(--brass); }
.pick .nm { margin-top: 14px; font-size: 14.5px; font-weight: 700; letter-spacing: -.04em; }
.pick .ds { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.55; }

/* 가로형 선택 (설명이 긴 경우) */
.pick-row { text-align: left; padding: 18px 18px 18px 46px; }
.pick-row .ico { display: none; }
.pick-row .nm { margin-top: 0; }

/* ---------- 드롭다운형 칩 (카테고리 선택) ---------- */
.dchips { display: flex; flex-wrap: wrap; gap: 10px; }
.dchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f2f4f6;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.035em;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.dchip .ic { opacity: .55; display: grid; place-items: center; }
.dchip .cv {
  width: 7px; height: 7px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: .5;
}
.dchip:hover { background: #e8ebee; color: var(--ink); }
.dchip.is-on {
  background: var(--brass-soft);
  border-color: var(--brass);
  color: var(--brass-2);
  font-weight: 700;
}
.dchip.is-on .ic, .dchip.is-on .cv { opacity: .9; }

/* ---------- 완료 화면 ---------- */
.wz-done { text-align: center; padding: 66px 34px 60px; }
.wz-done .mark {
  width: 66px; height: 66px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brass-soft);
  color: var(--brass);
  font-size: 28px;
}
.wz-done h2 { font-size: 24px; font-weight: 800; letter-spacing: -.05em; }
.wz-done p { font-size: 14.5px; color: var(--muted); margin-top: 12px; line-height: 1.75; }
.wz-done .after {
  max-width: 460px;
  margin: 30px auto 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  background: #fafbfc;
}
.wz-done .after h4 { font-size: 13.5px; font-weight: 700; }
.wz-done .after ol { margin-top: 12px; display: grid; gap: 9px; counter-reset: w; }
.wz-done .after li {
  position: relative;
  counter-increment: w;
  padding-left: 26px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.wz-done .after li::before {
  content: counter(w);
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brass-soft);
  color: var(--brass-2);
  font-size: 10.5px;
  font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- 요약 확인 목록 ---------- */
.sumlist { border-top: 1px solid var(--line); }
.sumlist > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.sumlist dt { color: var(--muted); font-weight: 500; }
.sumlist dd { margin: 0; font-weight: 600; color: var(--ink); }
.sumlist .edit { font-size: 12.5px; font-weight: 600; color: var(--brass); }
.sumlist .edit:hover { text-decoration: underline; }

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .wizard { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .wz-rail { position: static; }
  .wz-nav { display: none; }
  .wz-progress { margin-top: 16px; }
  .wz-page { padding-top: calc(var(--header-h) + var(--topbar-h) + 24px); padding-bottom: 60px; }
}
@media (max-width: 560px) {
  .wz-hd, .wz-bd, .wz-ft { padding-inline: 20px; }
  .wz-bd { padding-block: 26px; }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sumlist > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .wz-ft { flex-wrap: wrap; }
  .wz-ft .btn { flex: 1; }
}

/* =========================================================
   14. 역할 구분 — 의뢰(의원) 플로우 vs 제안(시공사) 플로우
   ========================================================= */

/* 누가 쓰는 화면인지 알리는 상단 바 */
.rolebar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: linear-gradient(100deg, #edf3ff 0%, #f8fbff 100%);
  border: 1px solid #d6e3ff;
}
.rolebar .who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cfdeff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--brass-2);
}
.rolebar p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.rolebar p b { color: var(--ink); }
.rolebar .sw {
  margin-left: auto;
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brass);
}
.rolebar .sw:hover { text-decoration: underline; }

.rolebar-supplier {
  background: linear-gradient(100deg, #eef1f4 0%, #f8fafb 100%);
  border-color: #dbe1e8;
}
.rolebar-supplier .who { color: var(--ink); border-color: #d2d9e0; }
.rolebar-supplier .sw { color: var(--ink-2); }

/* 의뢰 플로우 = 블루 */
.wz-client .wz-card { border-top: 3px solid var(--brass); }

/* 제안 플로우 = 차콜 (의뢰 화면과 헷갈리지 않도록) */
.wz-supplier .wz-card { border-top: 3px solid var(--ink); }
.wz-supplier .wz-step.is-on .n { background: var(--ink); box-shadow: 0 0 0 4px rgba(22,24,29,.12); }
.wz-supplier .wz-step.is-done .n { background: #8b95a1; }
.wz-supplier .wz-progress .bar > i { background: var(--ink); }
.wz-supplier .pick input:checked { background: var(--ink); border-color: var(--ink); }
.wz-supplier .pick:has(input:checked) {
  border-color: var(--ink);
  background: #f7f8f9;
  box-shadow: 0 0 0 3px rgba(22,24,29,.07);
}
.wz-supplier .pick:has(input:checked) .ico { color: var(--ink); }
.wz-supplier .dchip.is-on { background: #eceff2; border-color: #c8cfd6; color: var(--ink); }
.wz-supplier .wz-help:hover { border-color: var(--ink); color: var(--ink); }

/* GNB 역할 표시 — 의원용/시공사용 메뉴 구분 */
.gnb a[data-role] { position: relative; }
.gnb a[data-role]::before {
  content: attr(data-label);
  position: absolute;
  left: 15px; top: -5px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  opacity: .9;
}
.gnb a[data-role="clinic"]::before { content: "의원"; background: var(--brass); color: #fff; }
.gnb a[data-role="vendor"]::before { content: "시공사"; background: #5b6673; color: #fff; }
.gnb a[data-role] { padding-top: 14px; }
@media (max-width: 860px) {
  .gnb a[data-role]::before { position: static; display: inline-block; margin-right: 6px; }
  .gnb a[data-role] { padding-top: 13px; }
}

/* =========================================================
   15. 디자인 언어 교체 — Rule & Plane (각진 편집형)
       · 라운드 + 테두리 박스 전면 제거
       · 떠 있는 그림자 / 리프트 호버 제거
       · 면(plane) + 괘선(rule) + 상단 액센트로 구조를 표현
   ========================================================= */

/* ---------- 15.1 남은 곡률 제거 ---------- */
.chip, .dchip, .rolebar .who, .atag, .bar, .bar > i,
.arrow-btn, .avatar, .avatar-sm, .avatar-lg,
.step-n, .wz-step .n, .empty-ico, .wz-done .mark,
.wz-help i, .wz-phase .hint-i, .atag button,
.file-ext, .cat-ico, .svc-ico, .form-sec-n,
.check input, .pick input, .hdr-search, .svc-tag,
.doc ol > li::before, .wz-done .after li::before,
.thumb, .thumb-zoom .thumb-inner, .news-card, .sol-card, .sol-art,
.feat-tile, .feat-body, .promo-card, .logo-cell, .wz-card,
.hero-slide, .deco-pill, .btn-pill { border-radius: 0 !important; }

/* 진짜 '점'과 라디오만 원형 유지 */
.badge-dot::before,
.check input[type="radio"], .check input[type="radio"]::after,
.pick  input[type="radio"], .pick  input[type="radio"]::after,
.hero-dots i, .tl-b::before,
.role-card li::before, .doc ul > li::before,
.hero-bg i, .deco-dot { border-radius: 50% !important; }
.hero-dots i.is-on { border-radius: 999px !important; }

/* ---------- 15.2 그림자 · 리프트 호버 제거 ---------- */
.card, .card-hover, .panel, .wz-card, .news-card,
.sol-card, .pj, .role-card, .promo-card, .float-card,
.searchbar, .toolbar, .filerow, .table-wrap, .qa {
  box-shadow: none;
}
.card-hover:hover, .news-card:hover, .sol-card:hover,
.pj:hover, .role-card:hover, .promo-card:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- 15.3 카드 = 상단 괘선 + 흰 면 ---------- */
.card {
  border: 0;
  border-top: 1px solid var(--ink);
  background: var(--surface);
  padding: 20px 0 0;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.card-flat { padding: 18px 0 0; }
.card-pad-lg { padding: 26px 0 0; }
.card-hover:hover { border-top-color: var(--brass); }
.section-dark .card { background: transparent; border-top-color: rgba(255,255,255,.4); }
.section-sand .card { background: transparent; }

/* 안쪽 여백이 필요한 카드는 면으로 */
.card.is-boxed {
  background: var(--surface);
  border-top: 2px solid var(--ink);
  padding: 24px;
}

/* ---------- 15.4 패널 = 2px 상단 룰 + 하단 헤어라인 ---------- */
.panel {
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.panel-accent { border-top-color: var(--brass); }
.panel-hd {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.panel-bd { padding: 22px 0; }
.panel-bd-flush { padding: 0; }
.panel-ft {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.panel-tint { background: transparent; border-top-color: var(--line); }
.panel + .panel { margin-top: 34px; }

/* 사이드바 안의 패널은 좌우 여백을 되살림 */
aside .panel, .filter .panel {
  background: var(--surface);
  padding-inline: 0;
}
aside .panel-hd, aside .panel-bd, aside .panel-ft { padding-inline: 0; }

/* ---------- 15.5 테이블 = 괘선만 ---------- */
.table-wrap { border: 0; border-radius: 0; background: transparent; }
.table thead th { background: transparent; border-bottom: 1.5px solid var(--ink); padding-inline: 0; }
.table tbody td { padding-inline: 0; }
.table tbody tr:hover { background: #fafbfc; }
.table thead th:not(:first-child),
.table tbody td:not(:first-child) { padding-left: 16px; }

/* ---------- 15.6 인풋 = 밑줄형 ---------- */
.input, .select, .textarea {
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  padding-inline: 2px;
  border-radius: 0;
}
.textarea { border: 1px solid var(--line); padding: 12px 13px; background: var(--surface); }
.input:hover, .select:hover { border-bottom-color: var(--muted-2); }
.input:focus, .select:focus {
  outline: none;
  border-bottom-color: var(--brass);
  border-bottom-width: 2px;
  box-shadow: none;
}
.textarea:focus { border-color: var(--brass); box-shadow: none; }
.select { background-position: right 2px center; padding-right: 26px; }

/* ---------- 15.7 칩 = 각진 라벨, 활성 = 잉크 채움 ---------- */
.chip {
  border: 1px solid var(--line);
  border-radius: 0;
  height: 32px;
  font-weight: 600;
}
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dchip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  height: 38px;
}
.dchip:hover { background: var(--sand); border-color: var(--muted-2); color: var(--ink); }
.dchip.is-on { background: var(--brass); border-color: var(--brass); color: #fff; }
.wz-supplier .dchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 15.8 뱃지 = 각진 라벨 ---------- */
.badge { border-radius: 0; }
.badge-line { border-color: var(--sand-deep); }

/* ---------- 15.9 버튼 = 각진 면 ---------- */
.btn { border-radius: 0; }
.btn-ghost { border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-pill { border-radius: 0; padding-inline: 26px; }
.arrow-btn { border-radius: 0; }

/* ---------- 15.10 목록 행 = 전폭 행 + 좌측 액센트 ---------- */
.pj {
  position: relative;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 24px 24px 24px 22px;
  background: var(--surface);
  transition: background .18s var(--ease);
}
.pj::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .24s var(--ease);
}
.pj:hover { background: #f7f9fc; }
.pj:hover::before { transform: scaleY(1); }
.pj-foot { border-top: 1px dashed var(--sand-deep); }

/* ---------- 15.11 썸네일 · 아바타 = 사각 ---------- */
.avatar, .avatar-sm, .avatar-lg { border-radius: 0; }
.thumb { border-radius: 0; }

/* ---------- 15.12 선택 타일 = 각진 면 ---------- */
.pick { border-radius: 0; }
.pick:has(input:checked) { box-shadow: inset 0 0 0 1px var(--brass); }
.wz-supplier .pick:has(input:checked) { box-shadow: inset 0 0 0 1px var(--ink); }
.choice { border-radius: 0; }
.choice:has(input:checked) { box-shadow: none; border-color: var(--brass); background: #f7faff; }
.dropzone { border-radius: 0; }

/* ---------- 15.13 위저드 카드 = 상단 굵은 룰 ---------- */
.wz-card {
  border-radius: 0;
  border-top: 3px solid var(--brass);
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.wz-supplier .wz-card { border-top-color: var(--ink); }
.wz-hd, .wz-bd, .wz-ft { padding-inline: 30px; }
.wz-ft { background: #fafbfc; }
.wz-step .n, .step-n { border-radius: 0; }

/* ---------- 15.14 역할 바 = 좌측 굵은 룰 ---------- */
.rolebar {
  border: 0;
  border-left: 3px solid var(--brass);
  border-radius: 0;
  background: #f4f8ff;
  padding: 14px 18px;
}
.rolebar-supplier { border-left-color: var(--ink); background: #f4f6f8; }
.rolebar .who { background: transparent; border: 0; padding: 0; height: auto; }

/* ---------- 15.15 알림 = 좌측 룰 ---------- */
.notice { border: 0; border-left: 3px solid var(--warn); border-radius: 0; background: #fffaf0; }
.notice-info { border-left-color: var(--brass); background: #f4f8ff; }

/* ---------- 15.16 통계 스트립 · KPI = 괘선 격자 ---------- */
.stat-strip { border: 0; border-radius: 0; background: transparent; border-top: 1px solid rgba(255,255,255,.24); }
.stat-strip > div { border-left: 1px solid rgba(255,255,255,.16); padding: 18px 22px 4px; }
.page-hero-light .stat-strip { border-top-color: var(--line); }
.page-hero-light .stat-strip > div { border-left-color: var(--line); }
.kpi { border: 0; border-radius: 0; border-top: 2px solid var(--ink); background: transparent; }
.kpi > div { border-left: 1px solid var(--line); padding: 16px 20px 8px; }
.kpi > div:first-child { padding-left: 0; }

/* ---------- 15.17 기타 컨테이너 ---------- */
.searchbar { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 6px 0; }
.toolbar { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
.filerow { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
.filerow + .filerow { margin-top: 0; }
.qa { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.qa + .qa { margin-top: 0; }
.qa-a { background: #fafbfc; border-top: 1px dashed var(--sand-deep); }
.cta-band { border-radius: 0; }
.news-card, .sol-card, .promo-card, .logo-cell, .feat-tile, .feat-body { border-radius: 0; }
.sol-card { border: 0; border-top: 1px solid var(--line); }
.sol-card:hover { border-top-color: var(--brass); background: #fafbfc; }
.logo-cell { border: 0; border-top: 1px solid var(--line); }
.logo-cell:hover { border-top-color: var(--brass); }
.role-card { border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 24px 0 0; }
.role-card:hover { border-top-color: var(--brass); }
.float-card { border-radius: 0; border: 0; border-top: 2px solid var(--brass); }
.pager button, .pager a { border-radius: 0; }
.seg, .seg button { border-radius: 0; }
.acc { border-bottom: 1px solid var(--line); }
.hero-slide { border-radius: 0; }
.wz-help { border-radius: 0; }
.filter-hd { padding-inline: 0; }
.fgroup { padding-inline: 0; }
.check { border-radius: 0; }
.check input { border-radius: 0; }
.check input[type="radio"] { border-radius: 50%; }

/* =========================================================
   16. 아이콘 — CSS mask 기반 인라인 SVG (이모지 대체)
       · currentColor 상속, font-size 에 비례해 확대/축소
       · <i class="ic ic-info"></i>
   ========================================================= */
.ic {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.ic-lg { width: 1.35em; height: 1.35em; }
.ic-xl { width: 2em;    height: 2em; }

/* --- 공통 UI --- */
.ic-search  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 4 4'/%3E%3C/svg%3E"); }
.ic-info    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.6v.6'/%3E%3C/svg%3E"); }
.ic-warn    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 2.6 20h18.8L12 4Z'/%3E%3Cpath d='M12 10v4.4M12 17.4v.4'/%3E%3C/svg%3E"); }
.ic-check   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E"); }
.ic-close   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.ic-reset   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5v5h5'/%3E%3Cpath d='M4.6 10.5a8 8 0 1 1 .6 5.4'/%3E%3C/svg%3E"); }
.ic-heart   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.6-4.9-7.6-10a4.3 4.3 0 0 1 7.6-2.7A4.3 4.3 0 0 1 19.6 10c0 5.1-7.6 10-7.6 10Z'/%3E%3C/svg%3E"); }
.ic-share   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='17.5' cy='5.5' r='2.6'/%3E%3Ccircle cx='6.5' cy='12' r='2.6'/%3E%3Ccircle cx='17.5' cy='18.5' r='2.6'/%3E%3Cpath d='m8.8 10.7 6.4-3.8M8.8 13.3l6.4 3.8'/%3E%3C/svg%3E"); }
.ic-star    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='m12 3.6 2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L3.5 9.8l5.9-.9L12 3.6Z'/%3E%3C/svg%3E"); }
.ic-star-o  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='m12 3.6 2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L3.5 9.8l5.9-.9L12 3.6Z'/%3E%3C/svg%3E"); }
.ic-ext     { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16.5 7.5M9.5 7.5h7v7'/%3E%3C/svg%3E"); }
.ic-right   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 5.5 7 6.5-7 6.5'/%3E%3C/svg%3E"); }
.ic-left    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 5.5 7.5 12l7 6.5'/%3E%3C/svg%3E"); }
.ic-plus    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ic-pause   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9.5 5.5v13M14.5 5.5v13'/%3E%3C/svg%3E"); }
.ic-play    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M8 4.8 19 12 8 19.2V4.8Z'/%3E%3C/svg%3E"); }

/* --- 역할 --- */
.ic-clinic  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M4 20V9.2L12 4l8 5.2V20H4Z'/%3E%3Cpath d='M12 10.4v5.2M9.4 13h5.2'/%3E%3C/svg%3E"); }
.ic-vendor  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.6 4.6a4.3 4.3 0 0 0 5.4 5.6L21 9l-6.2 6.2'/%3E%3Cpath d='m13.2 12.4-7 7a2 2 0 0 1-2.8-2.8l7-7'/%3E%3C/svg%3E"); }

/* --- 서비스 카테고리 --- */
.ic-feature { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3.4c.95 3.75 2 4.8 5.75 5.75-3.75.95-4.8 2-5.75 5.75-.95-3.75-2-4.8-5.75-5.75 3.75-.95 4.8-2 5.75-5.75Z'/%3E%3Cpath d='M18.1 14.6c.42 1.68.9 2.16 2.58 2.58-1.68.42-2.16.9-2.58 2.58-.42-1.68-.9-2.16-2.58-2.58 1.68-.42 2.16-.9 2.58-2.58Z'/%3E%3C/svg%3E"); }
.ic-design  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4.7' r='1.5'/%3E%3Cpath d='M12 6.2v2.1'/%3E%3Cpath d='M12 8.3 6.4 20.5M12 8.3l5.6 12.2'/%3E%3Cpath d='M9.2 14.4h5.6'/%3E%3C/svg%3E"); }
.ic-build   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3.3 8.5 4.25L12 11.8 3.5 7.55 12 3.3Z'/%3E%3Cpath d='m3.5 12 8.5 4.25L20.5 12'/%3E%3Cpath d='m3.5 16.45 8.5 4.25 8.5-4.25'/%3E%3C/svg%3E"); }
.ic-medical { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.6 3.9h4.8v5.7h5.7v4.8h-5.7v5.7H9.6v-5.7H3.9V9.6h5.7V3.9Z'/%3E%3C/svg%3E"); }
.ic-permit  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.2 3.6h7.2l4.4 4.4V20.4H6.2V3.6Z'/%3E%3Cpath d='M13.4 3.6V8h4.4'/%3E%3Ccircle cx='12' cy='14.5' r='2.9'/%3E%3Cpath d='m10.7 14.5 1 1.05 1.75-2'/%3E%3C/svg%3E"); }
.ic-finance { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.4'/%3E%3Cpath d='M8.7 8.5 12 14.1l3.3-5.6'/%3E%3Cpath d='M7.9 11.5h8.2M7.9 13.5h8.2'/%3E%3C/svg%3E"); }
.ic-after   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.3 12a8.3 8.3 0 1 1-2.55-5.95'/%3E%3Cpath d='M20.5 4.1v4.7h-4.7'/%3E%3Cpath d='M12 8.3v3.9l2.7 1.6'/%3E%3C/svg%3E"); }
.ic-ops     { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.8 7.4h8.4M16.6 7.4h3.6'/%3E%3Ccircle cx='14.4' cy='7.4' r='2.2'/%3E%3Cpath d='M3.8 16.6h3.6M11.8 16.6h8.4'/%3E%3Ccircle cx='9.6' cy='16.6' r='2.2'/%3E%3C/svg%3E"); }

/* --- 전문 공정 --- */
.ic-rad     { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Cpath d='M12 9.8V3.2a8.8 8.8 0 0 0-5 1.6l3.4 5.5M13.6 13.2l3.6 5.5a8.8 8.8 0 0 0 3-4.2l-6.2-2.1M10.4 13.2l-3.6 5.5a8.8 8.8 0 0 1-3-4.2l6.2-2.1'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E"); }
.ic-gas     { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 3.5c2.6 3 4.4 5.4 4.4 8.2a4.4 4.4 0 1 1-8.8 0c0-2.8 1.8-5.2 4.4-8.2Z'/%3E%3C/svg%3E"); }
.ic-vent    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 8h10.5a2.8 2.8 0 1 0-2.8-2.8M4 12h13.5a2.8 2.8 0 1 1-2.8 2.8M4 16h7'/%3E%3C/svg%3E"); }
.ic-clean   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 3v18M3.3 7.5l17.4 9M20.7 7.5l-17.4 9'/%3E%3C/svg%3E"); }
.ic-sound   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 9.5v5M8 6.5v11M12 4v16M16 7.5v9M20 10.5v3'/%3E%3C/svg%3E"); }
.ic-dark    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 3.5a8.5 8.5 0 0 1 0 17V3.5Z' fill='%23000'/%3E%3C/svg%3E"); }
.ic-drain   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 5v6a7 7 0 0 0 14 0V5'/%3E%3Cpath d='M12 18v3M9.5 21h5'/%3E%3C/svg%3E"); }
.ic-infect  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 4.5 6.6v5c0 4.3 3.1 7.9 7.5 8.9 4.4-1 7.5-4.6 7.5-8.9v-5L12 3.5Z'/%3E%3Cpath d='M12 9v5M9.5 11.5h5'/%3E%3C/svg%3E"); }
.ic-eco     { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4c0 9-5 13-11 13a5 5 0 0 1 0-10c4 0 6-1 11-3Z'/%3E%3Cpath d='M4 20c2-5 5-8 9-10'/%3E%3C/svg%3E"); }
.ic-night   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5Z'/%3E%3C/svg%3E"); }

/* --- 문서 · 데이터 --- */
.ic-doc     { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h8l4 4V20.5H6V3.5Z'/%3E%3Cpath d='M14 3.5v4h4M9 12h6M9 15.5h6'/%3E%3C/svg%3E"); }
.ic-table   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Crect x='3.5' y='4.5' width='17' height='15'/%3E%3Cpath d='M3.5 9.5h17M9.5 9.5v10'/%3E%3C/svg%3E"); }
.ic-shield  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 4.5 6.6v5c0 4.3 3.1 7.9 7.5 8.9 4.4-1 7.5-4.6 7.5-8.9v-5L12 3.5Z'/%3E%3Cpath d='m9 12 2.2 2.2L15.2 10'/%3E%3C/svg%3E"); }
.ic-escrow  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='3.5' y='9' width='17' height='11'/%3E%3Cpath d='M7.5 9V6.6a4.5 4.5 0 0 1 9 0V9'/%3E%3Cpath d='M12 13v3.4'/%3E%3C/svg%3E"); }
.ic-gallery { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15'/%3E%3Cpath d='m3.5 16 4.5-4.5 3.5 3.5 3-3 6 6'/%3E%3Ccircle cx='9' cy='9' r='1.4'/%3E%3C/svg%3E"); }
.ic-scale   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M6 8h12M4 20h16'/%3E%3Cpath d='m6 8-3 6h6L6 8ZM18 8l-3 6h6l-3-6Z'/%3E%3C/svg%3E"); }
.ic-team    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3.2'/%3E%3Cpath d='M3.5 19.5a5.5 5.5 0 0 1 11 0'/%3E%3Cpath d='M16 5.6a3.2 3.2 0 0 1 0 5.8M17.5 14.6a5.5 5.5 0 0 1 3 4.9'/%3E%3C/svg%3E"); }
.ic-layout  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Crect x='3.5' y='4.5' width='17' height='15'/%3E%3Cpath d='M3.5 9.5h17M12 9.5v10'/%3E%3C/svg%3E"); }
.ic-light   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.2 17.5h5.6M10 20.5h4'/%3E%3Cpath d='M12 3.5a5.5 5.5 0 0 1 3.2 10 2 2 0 0 0-.8 1.6v.4H9.6v-.4a2 2 0 0 0-.8-1.6A5.5 5.5 0 0 1 12 3.5Z'/%3E%3C/svg%3E"); }
.ic-furni   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='3.5' y='8.5' width='17' height='9'/%3E%3Cpath d='M7 8.5V6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2.5M3.5 13h17M6 17.5V20M18 17.5V20'/%3E%3C/svg%3E"); }
.ic-video   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='3' y='6.5' width='12.5' height='11'/%3E%3Cpath d='m15.5 11 5.5-3v8l-5.5-3v-2Z'/%3E%3C/svg%3E"); }
.ic-pin     { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.9 7-11a7 7 0 1 0-14 0c0 5.1 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E"); }
.ic-phone   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M7.5 3.5h3l1.6 4-2 1.3a11 11 0 0 0 5.1 5.1l1.3-2 4 1.6v3a1.4 1.4 0 0 1-1.5 1.4A16.5 16.5 0 0 1 6.1 5a1.4 1.4 0 0 1 1.4-1.5Z'/%3E%3C/svg%3E"); }
.ic-mail    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }

/* --- 별점 --- */
.rating { display: inline-flex; align-items: center; gap: 1px; color: var(--brass); }
.rating .ic { width: 13px; height: 13px; }
.rating .ic-star-o { opacity: .32; }
.rating b { margin-left: 6px; font-size: 13px; font-weight: 700; letter-spacing: -.03em; }

/* --- 아이콘 자리 조정 --- */
.notice .ic { margin-top: .18em; }
.rolebar .who .ic { width: 15px; height: 15px; }
.hdr-search .ic { width: 13px; height: 13px; }
.cat-ico .ic { width: 18px; height: 18px; }
.svc-ico .ic { width: 14px; height: 14px; }
.dchip .ic { width: 15px; height: 15px; opacity: .65; }
.dchip.is-on .ic { opacity: 1; }
.wz-done .mark .ic { width: 30px; height: 30px; }
.empty-ico .ic { width: 22px; height: 22px; }
.pager .ic, .arrow-btn .ic { width: 15px; height: 15px; }
.atag button .ic { width: 10px; height: 10px; }
.filter-reset .ic { width: 12px; height: 12px; }
.wz-back .ic { width: 12px; height: 12px; }
.promo-card .ic-ext { width: 15px; height: 15px; }

/* =========================================================
   17. 스마트 필터 — 전체 목록 우선 + 즉시 재정렬
   ========================================================= */
.smartbar {
  border-top: 2px solid var(--ink);
  background: var(--surface);
}
.sf-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px dashed var(--sand-deep);
}
.sf-row:last-of-type { border-bottom: 0; }
.sf-l {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--muted);
  padding-top: 8px;
}
.sf-c { display: flex; flex-wrap: wrap; gap: 6px; }

.sf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.sf:hover { border-color: var(--ink); color: var(--ink); }
.sf .n {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
  font-weight: 600;
}
.sf.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sf.is-on .n { color: rgba(255,255,255,.62); }
.sf.is-zero { opacity: .38; }
.sf[hidden] { display: none; }

.sf-more {
  height: 31px;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brass);
}
.sf-more:hover { text-decoration: underline; }

/* 정렬 + 결과 수 */
.sortbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1.5px solid var(--ink);
}
.sf-count { font-size: 13.5px; color: var(--muted); }
.sf-count b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.sorttabs { display: flex; align-items: center; }
.sorttab {
  position: relative;
  padding: 5px 13px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--muted);
  transition: color .16s var(--ease);
}
.sorttab + .sorttab::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  height: 11px; width: 1px;
  margin-top: -5.5px;
  background: var(--line);
}
.sorttab:hover { color: var(--ink-2); }
.sorttab.is-on { color: var(--ink); font-weight: 800; }

/* 적용 조건 요약 */
.sf-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  min-height: 20px;
}
.sf-applied .lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px 0 11px;
  background: var(--brass-soft);
  color: var(--brass-2);
  font-size: 12.5px;
  font-weight: 700;
}
.sf-tag button { display: grid; place-items: center; opacity: .6; }
.sf-tag button:hover { opacity: 1; }
.sf-tag .ic { width: 10px; height: 10px; }
.sf-clear { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sf-clear:hover { color: var(--danger); }

/* 목록 */
.sf-list { border-top: 0; }
.sf-list .pj[hidden] { display: none; }

@media (max-width: 700px) {
  .sf-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sf-l { padding-top: 0; }
  .sortbar { align-items: flex-start; }
  .sorttabs { overflow-x: auto; scrollbar-width: none; }
  .sorttabs::-webkit-scrollbar { display: none; }
}

/* =========================================================
   18. 컴팩트 스마트 필터 바 — 한 박스에 압축
   ========================================================= */
.fbar {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 0 12px;
}

/* 1행 : 검색 + 드롭다운들 */
.fbar-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  min-width: 220px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.fbar-search:focus-within { border-color: var(--ink); }
.fbar-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 14px; }
.fbar-search .ic { color: var(--muted); width: 15px; height: 15px; }

/* 드롭다운 */
.fdrop { position: relative; }
.fdrop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.fdrop-btn .cv {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: .5;
  transition: transform .22s var(--ease);
}
.fdrop-btn:hover { border-color: var(--ink); color: var(--ink); }
.fdrop.is-open .fdrop-btn { border-color: var(--ink); color: var(--ink); }
.fdrop.is-open .fdrop-btn .cv { transform: rotate(-135deg) translate(-1px, -1px); }
.fdrop-btn .cnt {
  display: none;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  background: var(--brass);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.fdrop.has-sel .fdrop-btn { border-color: var(--brass); color: var(--brass-2); background: #f6f9ff; }
.fdrop.has-sel .fdrop-btn .cnt { display: inline-flex; }

.fdrop-panel {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 60;
  min-width: 252px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.13);
  padding: 8px;
}
.fdrop-panel[hidden] { display: none; }
.fdrop-panel.is-right { left: auto; right: 0; }
.fdrop-panel .check { font-size: 13.5px; }
.fdrop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; min-width: 340px; }
.fdrop-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 9px 9px 3px;
  border-top: 1px solid var(--line);
}
.fdrop-ft button { font-size: 12.5px; font-weight: 700; }
.fdrop-ft .lnk { color: var(--muted); }
.fdrop-ft .lnk:hover { color: var(--danger); }

/* 금액 직접 입력 */
.fdrop-range { display: flex; align-items: center; gap: 6px; padding: 8px 9px 4px; }
.fdrop-range input {
  width: 96px; height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 9px;
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fdrop-range input:focus { outline: none; border-color: var(--brass); }
.fdrop-range span { font-size: 12.5px; color: var(--muted); }

/* 2행 : 빠른 필터 */
.fbar-quick {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--sand-deep);
}
.fbar-quick .ql {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 2px;
}
.qf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all .16s var(--ease);
}
.qf .ic { width: 13px; height: 13px; opacity: .55; }
.qf:hover { border-color: var(--ink); color: var(--ink); }
.qf.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.qf.is-on .ic { opacity: 1; }
.qf .n { font-size: 10.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.qf.is-on .n { color: rgba(255,255,255,.6); }
.fbar-quick .spacer { flex: 1; }
.fbar-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brass);
}
.fbar-more .cv {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .22s var(--ease);
}
.fbar.is-expanded .fbar-more .cv { transform: rotate(-135deg) translateY(-1px); }

/* 상세 영역 */
.fbar-adv {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.fbar.is-expanded .fbar-adv { grid-template-rows: 1fr; }
.fbar-adv > div { overflow: hidden; }
.fadv-in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 22px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--sand-deep);
}
.fadv-g > p {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--muted);
  padding: 4px 0 4px 9px;
}

@media (max-width: 700px) {
  .fbar-search { flex-basis: 100%; }
  .fdrop { flex: 1 1 auto; }
  .fdrop-btn { width: 100%; justify-content: space-between; }
  .fdrop-panel { min-width: 100%; }
  .fdrop-grid { min-width: 0; grid-template-columns: 1fr; }
}

/* =========================================================
   19. projects — 역할 스트립 · 필터 밴드 · 목록 호버 정교화
   ========================================================= */

/* ---------- 19.1 역할 스트립 : 1줄 (기존 대비 높이 1/3) ---------- */
.rolestrip {
  background: #eef1f5;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.rolestrip .wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding-block: 8px;
  flex-wrap: wrap;
}
.rolestrip .ic-vendor { width: 15px; height: 15px; color: var(--ink); }
.rolestrip b { font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.rolestrip b::after {
  content: "";
  display: inline-block;
  width: 1px; height: 11px;
  margin-left: 9px;
  background: var(--sand-deep);
  vertical-align: -1px;
}
.rolestrip .d { color: var(--muted); }
.rolestrip .spacer { flex: 1; }
.rolestrip a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--brass);
}
.rolestrip a .ic { width: 12px; height: 12px; transition: transform .24s var(--ease); }
.rolestrip a:hover .ic { transform: translateX(3px); }

/* ---------- 19.2 필터 밴드 : 전폭 배경으로 확실히 구분 ---------- */
.fbar-band {
  background: var(--sand);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--sand-deep);
  box-shadow: inset 0 -14px 22px -18px rgba(22,24,29,.16);
}
.fbar {
  border: 0;
  background: transparent;
  padding: 16px 0 14px;
  margin: 0;
}
/* 밴드 위에서는 컨트롤이 흰 면으로 떠 보이게 */
.fbar-band .fbar-search,
.fbar-band .fdrop-btn,
.fbar-band .qf { background: var(--surface); border-color: #dfe4e9; }
.fbar-band .fbar-search:focus-within,
.fbar-band .fdrop-btn:hover,
.fbar-band .qf:hover { border-color: var(--ink); }
.fbar-band .qf.is-on { background: var(--ink); border-color: var(--ink); }
.fbar-band .fbar-quick { border-top-color: #dee3e8; }
.fbar-band .fadv-in { border-top-color: #dee3e8; }
.fbar-band .fdrop.has-sel .fdrop-btn { background: #fff; border-color: var(--brass); }

/* 본문 시작 여백 */
.sf-body { padding-top: 22px; padding-bottom: clamp(48px, 5vw, 76px); }

/* ---------- 19.3 목록 호버 : 기하학적 강조 ---------- */
.pj {
  position: relative;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 24px 26px;
  background: var(--surface);
  transition: background .22s var(--ease), box-shadow .28s var(--ease);
}
/* 좌측 굵은 룰 + 얇은 전체 프레임을 inset 그림자로 (레이아웃 밀림 없음) */
.pj:hover {
  background: #fbfcfe;
  box-shadow:
    inset 0 0 0 1px #e3e9f2,
    inset 3px 0 0 0 var(--brass);
}
/* 대각 코너 브래킷 — 뷰파인더처럼 조여 들어옴 */
.pj::before,
.pj::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s var(--ease), transform .34s var(--ease-out);
}
.pj::before {
  top: 12px; left: 12px;
  border-top: 2px solid var(--brass);
  border-left: 2px solid var(--brass);
  transform: translate(7px, 7px);
}
.pj::after {
  bottom: 12px; right: 12px;
  border-bottom: 2px solid var(--brass);
  border-right: 2px solid var(--brass);
  transform: translate(-7px, -7px);
}
.pj:hover::before,
.pj:hover::after { opacity: 1; transform: none; }

/* 제목 · 화살표 · 코드 배지 반응 */
.pj-t { transition: color .2s var(--ease), transform .3s var(--ease-out); }
.pj:hover .pj-t { color: var(--brass-2); transform: translateX(2px); }
.pj .badge-dark { transition: background .22s var(--ease); }
.pj:hover .badge-dark { background: var(--brass); }
.pj .link-arrow { transition: gap .24s var(--ease); }
.pj:hover .link-arrow { gap: 10px; }
.pj:hover .pj-foot { border-top-color: #ccd9ee; }

/* 키보드 포커스도 동일 강조 */
.pj:focus-visible {
  outline: none;
  background: #fbfcfe;
  box-shadow: inset 0 0 0 2px var(--brass);
}
.pj:focus-visible::before,
.pj:focus-visible::after { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pj::before, .pj::after { transition: none; }
}

/* =========================================================
   20. 히어로 — 풀블리드 사진 크로스페이드
       · 잘라 넘기지 않고 겹쳐서 opacity 로 교차 (1.25s)
       · 느린 켄번즈(scale 1.06 → 1.0)로 정지화면 느낌 제거
       · 하단 중앙: 도트 + 진행 링 + 재생/일시정지
       · 주기는 --hero-dur 하나로 제어 (main.js 가 읽어 씀)
   ========================================================= */
.hero-shot {
  --hero-dur: 6500ms;
  --hero-fade: 1250ms;

  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: #0b0d13;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- 20.1 이미지 스테이지 ---------- */
.hero-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hshot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity var(--hero-fade) var(--ease);
  will-change: opacity;
}
.hshot.is-on { opacity: 1; }

.hshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.06);
  transform-origin: 50% 50%;
}
/* 활성 슬라이드만 아주 느리게 줌아웃. 교차 시간만큼 여유를 더 준다 */
.hshot.is-on img {
  animation: heroKen calc(var(--hero-dur) + var(--hero-fade) + 600ms) linear forwards;
}
@keyframes heroKen {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}

/* 상·하단을 눌러 헤더와 컨트롤 가독성 확보 */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(7,9,14,.62) 0%,
      rgba(7,9,14,.20) 28%,
      rgba(7,9,14,.26) 58%,
      rgba(7,9,14,.72) 100%);
}

/* ---------- 20.2 카피 ---------- */
.hero-shot-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: calc(var(--topbar-h) + var(--header-h));
  padding-bottom: 96px;
}

.hero-copy { display: grid; }
.hcopy {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .9s var(--ease-out);
  pointer-events: none;
}
.hcopy.is-on { opacity: 1; transform: none; pointer-events: auto; }

.hcopy-eb {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.72);
  margin-bottom: 18px;
}
.hcopy-t {
  font-family: var(--sans);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.04em;
  text-shadow: 0 2px 24px rgba(0,0,0,.32);
}
.hcopy-s {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
  letter-spacing: -.02em;
}

.hero-shot .hero-cta { margin-top: 34px; align-items: center; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  transition: color .22s var(--ease), gap .24s var(--ease);
}
.hero-link:hover { color: #fff; gap: 11px; }

/* ---------- 20.3 컨트롤 (도트 + 진행 링 + 재생/정지) ---------- */
.hero-ctrl {
  position: absolute;
  left: 0; right: 0;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-dotrow { display: flex; align-items: center; gap: 4px; }

.hdot {
  position: relative;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  flex: none;
}
.hdot-c {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.hdot:hover .hdot-c { background: rgba(255,255,255,.8); }
.hdot.is-on .hdot-c { background: #fff; transform: scale(1.18); }

.hdot-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity .3s var(--ease);
}
.hdot.is-on .hdot-ring { opacity: 1; }
.hdot-ring circle {
  fill: none;
  stroke: rgba(255,255,255,.9);
  stroke-width: 2;
  stroke-linecap: round;
  /* r=18 → 둘레 113.1 */
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
}
.hdot.is-on .hdot-ring circle {
  animation: heroRing var(--hero-dur) linear forwards;
}
@keyframes heroRing {
  from { stroke-dashoffset: 113.1; }
  to   { stroke-dashoffset: 0; }
}

.hero-play {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  transition: color .22s var(--ease);
}
.hero-play:hover { color: #fff; }

/* 일시정지 상태: 링과 켄번즈를 함께 멈춘다 */
.hero-shot.is-paused .hdot.is-on .hdot-ring circle,
.hero-shot.is-paused .hshot.is-on img { animation-play-state: paused; }

/* ---------- 20.4 반응형 / 모션 축소 ---------- */
@media (max-width: 760px) {
  .hero-shot { min-height: 88vh; min-height: 88svh; }
  .hero-shot-inner { padding-bottom: 110px; }
  .hcopy-eb { letter-spacing: .14em; margin-bottom: 14px; }
  .hcopy-s { font-size: 14px; }
  .hero-shot .hero-cta { margin-top: 26px; }
  .hero-ctrl { bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hshot { transition: none; }
  .hshot.is-on img,
  .hdot.is-on .hdot-ring circle { animation: none; }
  .hshot img { transform: none; }
  .hdot-ring { display: none; }
  .hcopy { transition: none; }
}

/* =========================================================
   21. 섹션 레일 — 좌측 세로 인디케이터
       · [data-rail="라벨"] 섹션을 main.js 가 읽어 자동 생성
       · 라벨은 현재/호버 항목만 노출
       · [data-rail-tone="light"] 구간에서는 흰색으로 반전
   ========================================================= */
.srail {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 280;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  color: var(--ink-2);
  pointer-events: none;
  transition: color .4s var(--ease), opacity .4s var(--ease);
}
.srail > * { pointer-events: auto; }
.srail.on-dark { color: rgba(255,255,255,.78); }

/* 항목 목록 + 세로 연결선 */
.srail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.srail-i {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
  color: inherit;
}

/* 막대 자체가 세로 라인을 이루므로 별도 연결선을 두지 않는다 */
.srail-bar {
  width: 2px;
  height: 16px;
  flex: none;
  background: currentColor;
  opacity: .2;
  transition: height .34s var(--ease-out), opacity .26s var(--ease),
              background .26s var(--ease);
}
.srail-i:hover .srail-bar { opacity: .5; height: 22px; }
.srail-i.is-on .srail-bar {
  height: 32px;
  opacity: 1;
  background: var(--brass);
}
.srail.on-dark .srail-i.is-on .srail-bar { background: var(--brass-3); }

.srail-lb {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .3s var(--ease), transform .34s var(--ease-out);
}
.srail-i:hover .srail-lb { opacity: .6; transform: none; }
.srail-i.is-on .srail-lb { opacity: 1; transform: none; }

/* 하단 세로쓰기 캡션 */
.srail-scroll {
  writing-mode: vertical-rl;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .22em;
  opacity: .45;
  margin-left: -5px;
  user-select: none;
  transition: opacity .4s var(--ease);
}
.srail.is-end .srail-scroll { opacity: 0; }

/* 좁은 화면: 라벨부터 접고, 더 좁아지면 레일 자체를 숨긴다 */
@media (max-width: 1359px) {
  .srail { left: 18px; }
  .srail-lb { display: none; }
}
@media (max-width: 1099px) {
  .srail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .srail, .srail-bar, .srail-lb { transition: none; }
}

/* =========================================================
   22. 메인 다듬기
       22.1 스크롤바        22.4 프로젝트 카드 가독성
       22.2 레일 간격        22.5 드래그 스크롤
       22.3 역할 카드 여백   22.6 카테고리 탭
   ========================================================= */

/* ---------- 22.1 스크롤바 — 얇고 각진 형태 ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: #c2cad6 var(--line-2);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--line-2); }
::-webkit-scrollbar-thumb {
  background: #c2cad6;
  background-clip: padding-box;      /* 투명 테두리로 여백을 만들어 얇게 보이게 */
  border: 3px solid transparent;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: var(--ink-2); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: var(--line-2); }

/* 어두운 면 안에서 스크롤되는 영역은 반전 */
.section-dark ::-webkit-scrollbar-track { background: var(--line-deep); }
.section-dark ::-webkit-scrollbar-thumb { background: #3a4252; }

/* ---------- 22.2 섹션 레일 — 막대 형태는 21 에 직접 반영 ---------- */
.srail { gap: 20px; }

/* ---------- 22.3 역할 카드 — 안쪽 여백 복원 ---------- */
/* 15.9 가 padding 을 24px 0 0 으로 눌러 글이 경계에 붙어 있었다 */
.role-card {
  padding: 28px 28px 30px;
  background: var(--surface);
}
.role-card .role-n { top: 24px; right: 26px; font-size: 38px; }
.role-card h3 { letter-spacing: -.04em; }
.role-card ul { margin-top: 18px; gap: 10px; }
.role-card li { padding-left: 17px; line-height: 1.6; }

/* ---------- 22.4 프로젝트 카드 — 계층 3단으로 압축 ---------- */
/* (상태) → (제목·설명) → (수치) 순으로 무게를 주고 태그는 뒤로 물린다 */
/* 15.10 이 아래 선만 남겨 흰 배경 위에서 카드 경계가 사라졌다 — 얇은 테두리 복원 */
.pj {
  padding: 28px 30px 26px;
  border: 1px solid var(--line);
}

.pj-top { gap: 7px; }
.pj-top .num { font-weight: 700; color: var(--ink-2); letter-spacing: -.02em; }

.pj-t {
  font-size: 19px;
  line-height: 1.42;
  letter-spacing: -.042em;
  margin-top: 15px;
  color: var(--ink);
}
.pj-d {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
  margin-top: 10px;
}

/* 태그는 면이 아니라 윤곽만 — 채워진 배지와 무게가 겹치지 않게 */
.pj-tags { gap: 7px; margin-top: 16px; }
.pj .tag {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
}

.pj-foot {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.pj-figs { gap: 34px; }
.pj-fig-l {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
}
.pj-fig-v {
  font-size: 17px;
  color: var(--ink);
  margin-top: 4px;
}
.pj .link-arrow { font-weight: 700; color: var(--brass-2); }

/* 좁은 폭에서는 수치가 겹치지 않게 간격만 줄인다 */
@media (max-width: 560px) {
  .pj { padding: 22px 20px; }
  .pj-figs { gap: 22px; }
  .pj-fig-v { font-size: 15px; }
}

/* ---------- 22.5 드래그 스크롤 ---------- */
.is-draggable { cursor: grab; }
.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;             /* smooth 면 드래그가 끌린다 */
  scroll-snap-type: none;
  user-select: none;
}
.is-dragging * { pointer-events: none; }

/* ---------- 22.6 카테고리 탭 ---------- */
.cat-tabs { scroll-behavior: smooth; }
.cat-ico {
  width: 38px; height: 38px;
  background: var(--sand);
  color: var(--ink-2);
  transition: background .24s var(--ease), color .24s var(--ease),
              transform .28s var(--ease-out);
}
.cat-ico .ic { width: 20px; height: 20px; }
.cat-tab { gap: 11px; padding: 10px 6px 17px; }
.cat-tab.is-on .cat-ico {
  background: var(--brass);
  color: #fff;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .srail-bar, .cat-ico { transition: none; }
}

/* =========================================================
   23. 카테고리 탭 — 하단 바를 자동 전환 게이지로
       탭이 자동으로 넘어가는 동안 밑줄이 왼쪽에서 차오른다.
       사용자가 직접 고르면(.is-stopped) 게이지를 멈추고 꽉 찬 상태로 둔다.
   ========================================================= */
.cat-tabs { --cat-dur: 4200ms; }

.cat-tab.is-on::after {
  transform-origin: left;
  animation: catGauge var(--cat-dur) linear forwards;
}
@keyframes catGauge {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* 마우스를 올리면 게이지도 같이 멈춘다 (JS 가 타이머를 멈추는 것과 맞춤) */
.cat-tabs:hover .cat-tab.is-on::after { animation-play-state: paused; }

/* 자동 전환이 끝난 뒤에는 밑줄만 남긴다 */
.cat-tabs.is-stopped .cat-tab.is-on::after {
  animation: none;
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .cat-tab.is-on::after { animation: none; transform: scaleX(1); }
}

/* =========================================================
   24. 메인 — 사진 + 둥근 모서리
       15장(Rule & Plane)이 모든 면을 각지게 깎아 차가운 인상을 만들었다.
       이미지가 들어가는 블록부터 모서리를 되살려 온기를 준다.
       15.1 이 !important 로 0 을 박아두어 같은 세기로 되돌린다.
   ========================================================= */

/* ---------- 24.1 사진 슬롯 ---------- */
.sol-art img,
.feat-tile img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 사진이 붙으면 기존 색면 그라디언트는 얇은 톤으로만 남긴다 */
.sol-art.has-photo::after { opacity: .3; z-index: 2; }
.feat-tile.has-photo::after { opacity: .5; z-index: 2; }
.feat-tile.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 16, 34, .34) 0%, rgba(8, 16, 34, .72) 100%);
}
.feat-tile b { position: relative; z-index: 3; }

.sol-card:hover .sol-art img,
.feat-tile img { transition: transform .5s var(--ease-out); }
.sol-card:hover .sol-art img { transform: scale(1.04); }

/* ---------- 24.2 모서리 되살리기 ---------- */
.news-card, .sol-card, .sol-art, .feat-tile, .feat-body,
.promo-card, .logo-cell, .thumb, .pj, .role-card, .float-card,
.card, .panel, .hero-slide, .cat-ico, .svc-ico, .avatar, .avatar-lg,
.badge, .tag, .chip, .btn, .arrow-btn, .table-wrap, .searchbar,
.toolbar, .filerow, .qa, .wz-card, .notice, .empty-ico,
.form-sec-n, .step-n, .wz-step .n, .file-ext, .pick, .choice,
.dropzone, .seg, .seg button, .pager button, .pager a {
  border-radius: var(--r) !important;
}
.news-card, .sol-card, .feat-tile, .feat-body, .promo-card,
.pj, .role-card, .card, .panel, .wz-card, .table-wrap {
  border-radius: var(--r-l) !important;
}
.btn-pill, .badge, .tag, .chip { border-radius: 999px !important; }
.avatar, .avatar-sm, .avatar-lg { border-radius: 50% !important; }
.sol-art { border-radius: var(--r-l) var(--r-l) 0 0 !important; }
.sol-card { overflow: hidden; }

/* 점과 라디오는 15.1 대로 계속 원형 */
.badge-dot::before,
.check input[type="radio"], .check input[type="radio"]::after,
.pick input[type="radio"], .pick input[type="radio"]::after,
.hero-dots i, .hdot-c, .srail-bar, .tl-b::before,
.role-card li::before, .doc ul > li::before,
.hero-bg i, .deco-dot { border-radius: 50% !important; }
.srail-bar { border-radius: 1px !important; }
.hero-dots i.is-on { border-radius: 999px !important; }

@media (prefers-reduced-motion: reduce) {
  .sol-card:hover .sol-art img { transform: none; }
}

/* =========================================================
   25. 큐레이션 3카드 + 진행중 표시
       25.1 카드: 상단 사진 + 배지 → 리드 문구 → 항목 목록
       25.2 OPEN REQUESTS 라이브 인디케이터
   ========================================================= */

/* ---------- 25.1 3카드 ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.trio-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: border-color .22s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease-out);
}
.trio-card:hover { border-color: #c9d9f0; box-shadow: var(--sh-2); transform: translateY(-3px); }

.trio-vis {
  position: relative;
  aspect-ratio: 16 / 7.4;
  background: linear-gradient(150deg, #16233f, #0d1524);
  overflow: hidden;
}
.trio-vis img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.trio-card:hover .trio-vis img { transform: scale(1.04); }

.trio-badge {
  position: absolute;
  left: 16px; top: 14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(12, 20, 38, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.trio-lead {
  padding: 20px 20px 16px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.035em;
  color: var(--brass-2);
  border-bottom: 1px solid var(--line-2);
}

.trio-list { padding: 8px 12px 14px; display: grid; gap: 2px; }
.trio-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--r);
  transition: background .18s var(--ease);
}
.trio-list a:hover { background: var(--sand); }

.tl-thumb {
  position: relative;
  flex: none;
  width: 54px; height: 54px;
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--sand-deep);
}
.tl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tl-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tl-t {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.03em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trio-list a:hover .tl-t { color: var(--brass-2); }
.tl-m {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
}
.tl-m .ic { font-size: 12px; opacity: .8; }

@media (max-width: 1000px) { .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .trio { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 25.2 진행중 인디케이터 ---------- */
.eyebrow.is-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--danger);
}
.eyebrow.is-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--danger);
  animation: livePulse 1.9s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 68, 82, .6); opacity: 1; }
  70%  { box-shadow: 0 0 0 9px rgba(240, 68, 82, 0); opacity: .75; }
  100% { box-shadow: 0 0 0 0 rgba(240, 68, 82, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow.is-live::before { animation: none; }
  .trio-card:hover .trio-vis img { transform: none; }
}

/* =========================================================
   26. 프로젝트 카드 hover — 확대해서 떠오르기
       15.10 과 19 가 같은 ::before 를 서로 다른 용도로 쓰던 충돌을
       여기서 정리한다. 모든 속성을 다시 적어 잔재를 남기지 않는다.
   ========================================================= */
.pj {
  position: relative;
  z-index: 0;
  transition: transform .34s var(--ease-out),
              box-shadow .34s var(--ease-out),
              background .22s var(--ease),
              border-color .22s var(--ease);
}

/* 이웃 카드를 덮으며 올라온다 */
.pj:hover,
.pj:focus-visible {
  z-index: 6;
  transform: scale(1.038);
  background: #fff;
  border-color: var(--brass);
  box-shadow:
    0 26px 58px rgba(14, 38, 88, .26),
    0 4px 12px rgba(14, 38, 88, .10);
  outline: none;
}

/* 좌측 컬러 바 — 위에서 아래로 그어진다 (코너 브래킷은 폐기) */
.pj::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  width: 4px;
  height: 100%;
  border: 0;
  background: linear-gradient(180deg, var(--brass), var(--brass-2));
  border-radius: var(--r-l) 0 0 var(--r-l);
  opacity: 1;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .38s var(--ease-out);
  pointer-events: none;
}
.pj:hover::before,
.pj:focus-visible::before { transform: scaleY(1); }
.pj::after { content: none; }

/* 안쪽 요소들도 같이 반응 */
.pj:hover .pj-t { color: var(--brass-2); transform: none; }
.pj:hover .badge-dark { background: var(--brass); }
.pj:hover .pj-foot { border-top-color: #d3e0f4; }
.pj:hover .pj-fig-v { color: var(--brass-2); }
.pj .pj-fig-v { transition: color .22s var(--ease); }
.pj:hover .link-arrow { gap: 11px; }

@media (prefers-reduced-motion: reduce) {
  .pj, .pj::before { transition: none; }
  .pj:hover, .pj:focus-visible { transform: none; }
}

/* =========================================================
   27. 프로젝트 카드 — AI 제안 분석 패널
       좌측 라인은 폐기. hover 하면 카드 아래로 분석 패널이 펼쳐지고
       스캔 라인이 한 번 훑은 뒤 항목이 하나씩 올라온다.
   ========================================================= */
.pj::before { content: none; }          /* 26 의 좌측 바 제거 */
.pj { overflow: visible; }

.pj-ai {
  position: absolute;
  left: -1px; right: -1px;
  top: calc(100% - 1px);
  z-index: 2;
  padding: 15px 22px 18px;
  border-radius: 0 0 var(--r-l) var(--r-l);
  background: linear-gradient(165deg, #16233f 0%, #0d1729 100%);
  color: #fff;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .26s var(--ease), transform .34s var(--ease-out);
  box-shadow: 0 22px 42px rgba(10, 26, 60, .3);
}
.pj:hover .pj-ai,
.pj:focus-visible .pj-ai { opacity: 1; transform: none; }

/* 훑고 지나가는 스캔 라인 */
.pj-ai::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-3) 45%, #7de3c8 70%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.pj:hover .pj-ai::before { animation: aiScan 1s var(--ease-out) .06s; }
@keyframes aiScan {
  0%   { transform: scaleX(0); opacity: 1; }
  55%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

.pj-ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 12px;
}
.ai-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ee3b0;
  box-shadow: 0 0 0 0 rgba(78, 227, 176, .7);
  animation: aiPulse 1.7s ease-out infinite;
}
@keyframes aiPulse {
  0%   { box-shadow: 0 0 0 0 rgba(78, 227, 176, .65); }
  70%  { box-shadow: 0 0 0 7px rgba(78, 227, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 227, 176, 0); }
}
.ai-meta {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .42);
}

.pj-ai-list { display: grid; gap: 9px; }
.pj-ai-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .82);
  opacity: 0;
  transform: translateY(7px);
}
.pj-ai-list .ic { flex: none; margin-top: 2px; font-size: 13px; }
.pj-ai-list .is-good .ic, .pj-ai-list li.is-good .ic { color: #4ee3b0; }
.pj-ai-list .is-warn .ic, .pj-ai-list li.is-warn .ic { color: #ffc65c; }

/* 한 줄씩 차례로 올라온다 — "지금 분석해서 뱉는" 인상 */
.pj:hover .pj-ai-list li { animation: aiLineIn .42s var(--ease-out) forwards; }
.pj:hover .pj-ai-list li:nth-child(1) { animation-delay: .16s; }
.pj:hover .pj-ai-list li:nth-child(2) { animation-delay: .30s; }
.pj:hover .pj-ai-list li:nth-child(3) { animation-delay: .44s; }
@keyframes aiLineIn { to { opacity: 1; transform: none; } }

/* 패널이 붙으면 카드 아래 모서리는 각지게 이어 붙는다 */
.pj:hover { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .pj-ai { transition: none; }
  .pj:hover .pj-ai::before { animation: none; }
  .pj:hover .pj-ai-list li { animation: none; opacity: 1; transform: none; }
  .ai-dot { animation: none; }
}

/* =========================================================
   28. 역할 카드 — 상단 굵은 선 대신 면이 차오른다
   ========================================================= */
.role-card {
  border: 1px solid var(--line) !important;
  border-top: 1px solid var(--line) !important;
  border-radius: var(--r-l) !important;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: border-color .3s var(--ease), box-shadow .36s var(--ease-out),
              transform .36s var(--ease-out), color .3s var(--ease);
}
.role-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(162deg, #1b2b4d 0%, #0d1729 100%);
  transform: translateY(101%);
  transition: transform .52s var(--ease-out);
}
.role-card:hover {
  border-color: transparent !important;
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(12, 30, 70, .26);
  color: #fff;
}
.role-card:hover::after { transform: none; }

/* 면이 차오르면 안쪽 글자도 같이 반전 */
.role-card .role-n,
.role-card h3,
.role-card p,
.role-card li { transition: color .3s var(--ease); }
.role-card:hover .role-n { color: rgba(255, 255, 255, .16); }
.role-card:hover h3 { color: #fff; }
.role-card:hover p { color: rgba(255, 255, 255, .6); }
.role-card:hover li { color: rgba(255, 255, 255, .82); }
.role-card li::before { transition: background .3s var(--ease); }
.role-card:hover li::before { background: #4ee3b0 !important; }
.role-card .badge { transition: background .3s var(--ease), color .3s var(--ease); }
.role-card:hover .badge { background: rgba(255, 255, 255, .14); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .role-card, .role-card::after { transition: none; }
  .role-card:hover { transform: none; }
}

/* =========================================================
   29. 상단 룰 hover 걷어내기
       15장이 카드류를 "상단 굵은 선 + hover 시 선 색 변경"으로 통일해
       놓았다. 24에서 모서리를 되살렸는데 선이 위에만 있어 어색하고,
       hover 반응도 약하다. 테두리를 온전히 두르고 효과를 바꾼다.
   ========================================================= */

/* ---------- 29.1 진료과목 카드 ---------- */
.sol-card {
  border: 1px solid var(--line) !important;
  background: var(--surface);
  transition: border-color .24s var(--ease), box-shadow .32s var(--ease-out),
              transform .32s var(--ease-out);
}
.sol-card:hover {
  border-color: #c9d9f0 !important;
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(14, 38, 88, .16);
}
.sol-head { padding: 18px 20px 20px; }
.sol-card .sol-t { transition: color .22s var(--ease); }
.sol-card:hover .sol-t { color: var(--brass-2); }

/* ---------- 29.2 고객사 셀 — 선 대신 면이 채워진다 ---------- */
.logo-cell {
  position: relative;
  border: 1px solid var(--line) !important;
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .26s var(--ease), color .26s var(--ease),
              transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.logo-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brass-soft);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .26s var(--ease), transform .36s var(--ease-out);
}
.logo-cell:hover {
  border-color: var(--brass) !important;
  color: var(--brass-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(14, 38, 88, .12);
}
.logo-cell:hover::after { opacity: 1; transform: none; }

/* ---------- 29.3 일반 카드 · 패널 ---------- */
.card, .card.is-boxed {
  border: 1px solid var(--line) !important;
  background: var(--surface);
}
.card-hover {
  transition: border-color .24s var(--ease), box-shadow .32s var(--ease-out),
              transform .32s var(--ease-out);
}
.card-hover:hover {
  border-color: #c9d9f0 !important;
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(14, 38, 88, .16);
}
.panel {
  border: 1px solid var(--line) !important;
  background: var(--surface);
  overflow: hidden;
}
.panel-accent { border-color: var(--brass) !important; }
.panel-hd { padding: 16px 20px; }
.panel-bd { padding: 22px 20px; }
.panel-bd-flush { padding: 0; }
.panel-ft { padding: 14px 20px; }
.section-dark .card,
.section-dark .panel {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .16) !important;
}

@media (prefers-reduced-motion: reduce) {
  .sol-card, .logo-cell, .card-hover, .logo-cell::after { transition: none; }
  .sol-card:hover, .logo-cell:hover, .card-hover:hover { transform: none; }
}

/* =========================================================
   30. 배지 색 복구 + 목록형 카드의 AI 패널
       22.4 의 `.pj-top .num` 이 특이성 0,2,0 으로 `.badge-dark`(0,1,0)를
       이겨 검은 배지 안 글자까지 회색으로 만들고 있었다.
   ========================================================= */
.pj-top .num:not(.badge) { color: var(--ink-2); }
.pj-top .badge-dark,
.badge-dark.num { color: #fff !important; }
.pj:hover .badge-dark { background: var(--brass); color: #fff !important; }

/* ---------- 30.1 세로 목록(projects)에서의 AI 패널 ---------- */
/* 카드가 1열로 붙어 있어 확대 배율을 낮추고 패널만 또렷하게 */
.sf-list .pj:hover,
.sf-list .pj:focus-visible { transform: scale(1.012); }
.sf-list .pj-ai { box-shadow: 0 26px 46px rgba(10, 26, 60, .34); }

@media (prefers-reduced-motion: reduce) {
  .sf-list .pj:hover { transform: none; }
}

/* =========================================================
   31. 진료과목 카드 — 사진 색이 윗면으로 번진다
       main.js 의 initSolTint 가 사진 평균색에서 뽑아 준
       --sol-tint / --sol-edge / --sol-ink 를 hover 때 입힌다.
   ========================================================= */
.sol-head {
  position: relative;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .42s var(--ease), border-color .42s var(--ease);
}
.sol-card.has-tint:hover .sol-head {
  background: var(--sol-tint);
  border-bottom-color: var(--sol-edge);
}
.sol-card.has-tint:hover .sol-t { color: var(--sol-ink); }
.sol-card.has-tint:hover .sol-d { color: var(--sol-ink); opacity: .72; }
.sol-card .sol-d { transition: color .42s var(--ease), opacity .42s var(--ease); }

/* 카드 테두리도 같은 색 계열로 */
.sol-card.has-tint:hover { border-color: var(--sol-edge) !important; }

/* 설명이 한 줄이냐 두 줄이냐에 따라 사진 높이가 어긋나던 것을 맞춘다 */
.sol-d {
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .sol-head, .sol-card .sol-d { transition: none; }
}

/* =========================================================
   32. 섹션 배경 사진 — 카드가 위에 놓이므로 옅게 깐다
   ========================================================= */
.sec-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sec-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.section.has-photo { position: relative; isolation: isolate; }
.section.has-photo > .wrap { position: relative; z-index: 2; }

/* 사진 위에 흰 베일 — 카드와 본문이 또렷하게 남도록 */
.section.has-photo .sec-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, .96) 0%, rgba(247, 249, 252, .82) 34%,
                    rgba(247, 249, 252, .86) 70%, rgba(247, 249, 252, .97) 100%);
}
/* 사진이 붙으면 sand 단색 배경은 비운다 */
.section-sand.has-photo { background: #fff; }

/* =========================================================
   33. 사이드바 패널 여백 복구
       15.4 가 aside 안의 패널을 "괘선만" 스타일로 만들며
       padding-inline 을 0 으로 죽였다. 29 에서 테두리를 두른 뒤로는
       글이 경계에 붙어 버리므로 안쪽 여백을 되살린다.
   ========================================================= */
aside .panel,
.filter .panel { padding-inline: 0; }

aside .panel-hd,
.filter .panel-hd { padding: 15px 18px; }
aside .panel-bd,
.filter .panel-bd { padding: 18px; }
aside .panel-bd-flush,
.filter .panel-bd-flush { padding: 0; }
aside .panel-ft,
.filter .panel-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: var(--sand);
  border-top: 1px solid var(--line);
}

/* 진행 바가 카드 폭에 꽉 차 보이던 것도 모서리에 맞춘다 */
aside .bar { border-radius: 999px; overflow: hidden; }
aside .bar > i { border-radius: 999px; }

/* sticky 열이 헤더에 붙지 않도록 */
.sticky { top: calc(var(--header-h) + 20px); }

/* =========================================================
   34. AI 오브 — "살아 있는" 상태를 나타내는 포인트
       단색 점을 무지개 conic 그라디언트로 바꾸고, 색이 천천히 돌면서
       숨쉬듯 크기가 변하고 바깥으로 halo 가 퍼지게 한다.
       진행중(badge-ok)과 AI 패널 헤더에만 쓴다 — 경고·위험 배지까지
       예쁘게 만들면 상태 전달이 흐려진다.
   ========================================================= */
.badge-ok.badge-dot::before,
.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    #5ee7c0 0%,
    #35c8f5 22%,
    #4f7dff 46%,
    #a86bff 68%,
    #ff8fd0 84%,
    #5ee7c0 100%);
  filter: drop-shadow(0 0 3px rgba(79, 125, 255, .55));
  animation: aiOrb 5.2s linear infinite,
             aiHalo 3.2s ease-out infinite;
}

/* 색이 돌면서 숨을 쉰다 — 회전만 있으면 기계적으로 보인다 */
@keyframes aiOrb {
  0%   { transform: rotate(0deg)   scale(1); }
  25%  { transform: rotate(90deg)  scale(1.16); }
  50%  { transform: rotate(180deg) scale(1); }
  75%  { transform: rotate(270deg) scale(1.16); }
  100% { transform: rotate(360deg) scale(1); }
}
/* 바깥으로 번지는 잔광 — transform 과 겹치지 않게 box-shadow 로만 */
@keyframes aiHalo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 125, 255, .40); }
  60%      { box-shadow: 0 0 0 6px rgba(79, 125, 255, 0); }
}

/* 배지 안에서는 글자와 간격을 조금 더 벌려 오브가 갇혀 보이지 않게 */
.badge-ok.badge-dot { gap: 6px; padding-left: 9px; }

/* 다크 패널 위에서는 잔광을 조금 더 살린다 */
.ai-dot { filter: drop-shadow(0 0 4px rgba(94, 231, 192, .6)); }

@media (prefers-reduced-motion: reduce) {
  .badge-ok.badge-dot::before,
  .ai-dot { animation: none; }
}

/* =========================================================
   35. AI 오브 확대 + 패널 배경이 천천히 흐르게
       34 는 7px 이라 눈에 띄지 않았다. 구슬처럼 입체를 주고 키운다.
   ========================================================= */
.badge-ok.badge-dot::before,
.ai-dot {
  width: 11px;
  height: 11px;
  /* 중앙 하이라이트를 얹어 평면 원이 아니라 구슬로 보이게 */
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 46%),
    conic-gradient(from 200deg,
      #5ee7c0 0%,
      #35c8f5 20%,
      #4f7dff 42%,
      #a86bff 64%,
      #ff8fd0 82%,
      #5ee7c0 100%);
  filter: drop-shadow(0 0 5px rgba(79, 125, 255, .6));
  animation: aiOrb 7.4s cubic-bezier(.45, 0, .55, 1) infinite,
             aiHalo 4.1s ease-out infinite;
}
@keyframes aiOrb {
  0%   { transform: rotate(0deg)   scale(1); }
  25%  { transform: rotate(90deg)  scale(1.2); }
  50%  { transform: rotate(180deg) scale(1); }
  75%  { transform: rotate(270deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes aiHalo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 125, 255, .45), 0 0 9px 1px rgba(94, 231, 192, .3); }
  60%      { box-shadow: 0 0 0 9px rgba(79, 125, 255, 0), 0 0 9px 1px rgba(94, 231, 192, .1); }
}

.badge-ok.badge-dot { gap: 7px; padding-left: 10px; height: 24px; }
.ai-dot { filter: drop-shadow(0 0 6px rgba(94, 231, 192, .7)); }

/* ---------- 35.1 분석 패널 배경이 천천히 흐른다 ---------- */
.pj-ai {
  background: linear-gradient(128deg,
    #16233f 0%,
    #143047 20%,
    #1b2547 40%,
    #102a44 58%,
    #1a2140 78%,
    #16233f 100%);
  background-size: 360% 360%;
  background-position: 0% 50%;
}
.pj:hover .pj-ai,
.pj:focus-visible .pj-ai { animation: aiBgDrift 16s ease-in-out infinite; }
@keyframes aiBgDrift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-ok.badge-dot::before,
  .ai-dot { animation: none; }
  .pj:hover .pj-ai, .pj:focus-visible .pj-ai { animation: none; }
}

/* =========================================================
   36. AI 패널 배경 — 오로라 메쉬
       단색 남색이 흐르던 것을 색 블롭 네 덩어리가 각각 다른 궤도로
       유영하는 형태로 바꾼다. 레이어마다 크기와 경로가 달라
       같은 그림이 되풀이되지 않는다.
   ========================================================= */
.pj-ai {
  background-color: #1c2c4a;
  background-image:
    radial-gradient(38% 52% at 18% 28%, rgba(94, 231, 192, .30) 0%, transparent 62%),
    radial-gradient(44% 58% at 78% 22%, rgba(79, 125, 255, .34) 0%, transparent 64%),
    radial-gradient(40% 50% at 52% 84%, rgba(168, 107, 255, .26) 0%, transparent 60%),
    radial-gradient(34% 46% at 90% 66%, rgba(53, 200, 245, .24) 0%, transparent 58%);
  background-size: 210% 210%, 185% 185%, 230% 230%, 195% 195%;
  background-position: 0% 0%, 100% 0%, 50% 100%, 100% 60%;
  background-repeat: no-repeat;
}

.pj:hover .pj-ai,
.pj:focus-visible .pj-ai { animation: aiAurora 22s ease-in-out infinite; }

@keyframes aiAurora {
  0%   { background-position:   0%  0%, 100%  0%,  50% 100%, 100%  60%; }
  25%  { background-position:  44% 34%,  58% 46%,  18%  62%,  46%  18%; }
  50%  { background-position:  76% 62%,  16% 82%,  84%  22%,   8%  88%; }
  75%  { background-position:  30% 86%,  74% 18%,  40%  46%,  70%  34%; }
  100% { background-position:   0%  0%, 100%  0%,  50% 100%, 100%  60%; }
}

/* 밝아진 만큼 글자는 조금 더 또렷하게 */
.pj-ai-list li { color: rgba(255, 255, 255, .88); }
.pj-ai-head { color: rgba(255, 255, 255, .94); }
.ai-meta { color: rgba(255, 255, 255, .5); }

@media (prefers-reduced-motion: reduce) {
  .pj:hover .pj-ai, .pj:focus-visible .pj-ai { animation: none; }
}

/* =========================================================
   37. 회원 — 가입 · 로그인 · 이메일 인증
       가입은 13의 단계형 카드(wz-*)를 그대로 쓰고,
       여기서는 인증 위젯 · 오류 문구 · 약관 상자 · 로그인 카드만 더한다.
   ========================================================= */
.form-err { font-size: 12.5px; color: var(--danger); margin-top: 6px; line-height: 1.6; }
.notice-err { background: var(--danger-soft); border-color: #ffd0d5; color: #b4232f; }
.notice-ok  { background: var(--ok-soft); border-color: #bfe8d1; color: #08643b; }

/* 이메일 인증 위젯 [data-email-verify] */
.ev-row { display: flex; gap: 8px; }
.ev-row[hidden] { display: none; }
.ev-row .input { flex: 1; min-width: 0; }
.ev-row .btn { flex: none; white-space: nowrap; }
.ev-code { margin-top: 10px; }
.ev-timer {
  align-self: center;
  min-width: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}
.ev-msg { font-size: 12.5px; margin-top: 8px; line-height: 1.6; color: var(--muted); }
.ev-msg:empty { display: none; }
.ev-msg.is-ok  { color: var(--ok); }
.ev-msg.is-err { color: var(--danger); }
.ev-dev {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: var(--warn-soft);
  color: #7a5300;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
[data-email-verify].is-verified .input[data-ev-email] { background: var(--sand); color: var(--ink-2); }

/* 가입 — 회원 유형별 입력 묶음, 아직 못 가는 단계 */
.su-group { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.su-group[hidden] { display: none; }
.su-group-t { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.wz-step[disabled] { cursor: default; opacity: .5; }

/* 약관 상자 */
.terms-box {
  max-height: 140px;
  overflow: auto;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--sand);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* 로그인 · 비밀번호 찾기 카드 */
.auth-card { max-width: 460px; margin-inline: auto; }
.auth-links { display: flex; justify-content: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-links a:hover { color: var(--brass); }

@media (max-width: 640px) {
  .ev-row { flex-wrap: wrap; }
  .ev-row .btn { flex: 1; }
}

/* =========================================================
   38. 카드 한쪽 색 띠 걷어내기 + 회원 유형 큰 선택 타일
       15.13 의 위저드 카드 상단 3px 색 띠(+ 24 의 둥근 모서리)를 없애고
       네 변 모두 같은 1px 선으로 둔다. 색 띠는 이후에도 쓰지 않는다.
   ========================================================= */
.wz-card,
.wz-client .wz-card,
.wz-supplier .wz-card {
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

/* 회원 유형 — 세로형 카드
   큰 듀오톤 아이콘(판 없음) · 영문 소제목 · 제목 · 설명 · 할 수 있는 일 · 하단 선택 막대
   (39절 .icon 보다 뒤에 오지 않으므로 크기는 .pick-lg .pick-icon 으로 특이성을 높여 지정) */
.pick-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pick-lg {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 34px 32px 0;
  text-align: left;
  overflow: hidden;
}
/* 선택 표시 — 아이콘 높이 중앙에 맞춘 원형 체크 */
.pick-lg input { left: auto; right: 28px; top: 54px; width: 26px; height: 26px; }
.pick-lg input[type="radio"]::after {
  width: 11px;
  height: 6px;
  border: 0;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 0;
  background: none;
  transform: translate(-50%, -62%) rotate(-45deg) scale(.4);
}
.pick-lg input[type="radio"]:checked::after { transform: translate(-50%, -62%) rotate(-45deg) scale(1); }

.pick-lg .pick-icon {
  width: 72px;
  height: 72px;
  margin-left: -6px;            /* 아이콘 안쪽 여백만큼 당겨 글자 왼쪽 선과 맞춤 */
  stroke-width: 1.15;
  color: var(--brass);
  --duo: var(--brass-soft);
  transition: transform var(--t-slow) var(--ease-out);
}
.pick-lg .pick-eb {
  margin-top: 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted-2);
  transition: color var(--t-base) var(--ease);
}
.pick-lg .nm { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.05em; }
.pick-lg .ds { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.pick-lg .pick-pts {
  display: grid;
  gap: 10px;
  margin: 24px 0 30px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.pick-lg .pick-pts span { display: flex; align-items: center; gap: 10px; }
.pick-lg .pick-pts .icon { width: 15px; height: 15px; color: var(--muted-2); stroke-width: 2.4; transition: color var(--t-base) var(--ease); }

.pick-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto -32px 0;
  min-height: 62px;
  padding: 0 32px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--ink-2);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.pick-go-t::before { content: "선택하기"; }
.pick-go > .icon { width: 22px; height: 22px; transition: transform var(--t-slow) var(--ease-out); }

.pick-lg:hover .pick-icon { transform: translateY(-4px); }
.pick-lg:hover .pick-go { color: var(--brass); }
.pick-lg:hover .pick-go > .icon { transform: translateX(4px); }
.pick-lg:has(input:checked) .pick-icon { --duo: #cddbff; }
.pick-lg:has(input:checked) .pick-eb { color: var(--brass); }
.pick-lg:has(input:checked) .pick-pts .icon { color: var(--brass); }
.pick-lg:has(input:checked) .pick-go { background: var(--brass); border-top-color: var(--brass); color: #fff; }
.pick-lg:has(input:checked) .pick-go-t::before { content: "선택됨"; }
/* 선택됨 — 화살표 대신 꺾쇠 네 개.
   자리는 고정하고 같은 간격(12px)으로 두며, 밝기만 왼쪽에서 오른쪽으로 차례로 켜져
   오른쪽으로 흐르는 것처럼 보인다 (겹침 · 위치 이동 없음) */
.pick-flow { display: none; align-items: center; }
.pick-go .pick-flow .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
  opacity: .2;
  animation: pickFlow 1.2s ease-in-out infinite;
}
.pick-go .pick-flow .icon + .icon { margin-left: -12px; }
.pick-go .pick-flow .icon:nth-child(2) { animation-delay: .15s; }
.pick-go .pick-flow .icon:nth-child(3) { animation-delay: .3s; }
.pick-go .pick-flow .icon:nth-child(4) { animation-delay: .45s; }
@keyframes pickFlow {
  0%, 100% { opacity: .2; }
  40%      { opacity: 1; }
}
.pick-lg:has(input:checked) .pick-go > .icon { display: none; }
.pick-lg:has(input:checked) .pick-flow { display: inline-flex; }

@media (max-width: 640px) {
  .pick-grid-2 { grid-template-columns: 1fr; }
  .pick-lg { min-height: 0; padding: 28px 24px 0; }
  .pick-lg input { right: 22px; top: 46px; }
  .pick-go { margin-inline: -24px; padding-inline: 24px; }
}

/* =========================================================
   39. 인터랙션 규격 — 사이트 전체 공통 상태 · 아이콘 · 모션
       조작 요소는 모두 같은 상태 규칙을 따른다.
         기본 → hover(가리킴) → active(누름) → focus-visible(키보드) → disabled(잠김)
         선택형(타일·선택지)은 + selected(:has(input:checked))
       시간: --t-fast 140ms(색) · --t-base 200ms(테두리·배경) · --t-slow 320ms(이동)
       색:   hover = --brass-3 테두리 + --tint 배경 / selected = --brass 테두리 + 1px 안쪽 링
       포커스: 1절 :focus-visible 의 2px 브라스 외곽선을 그대로 쓴다
       모션 라이브러리(GSAP)는 main.js 9. 에서 등장·전환·선택 피드백만 담당한다
   ========================================================= */
:root {
  --t-fast: .14s;
  --t-base: .2s;
  --t-slow: .32s;
  --tint: #f5f8ff;
}

/* 아이콘 — assets/icons/sprite.svg (Lucide) */
.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.22em;
}
.icon-duo { color: var(--brass); --duo: var(--brass-soft); }

/* 버튼 */
.btn {
  transition: transform var(--t-fast) var(--ease), background var(--t-base) var(--ease),
              color var(--t-base) var(--ease), border-color var(--t-base) var(--ease),
              opacity var(--t-base) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* 링크 */
a { transition: color var(--t-fast) var(--ease); }

/* 입력칸 — 15.6 의 밑줄형을 유지하고 상태만 통일 */
.input, .select, .textarea {
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.input[readonly] { color: var(--ink-2); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .55; cursor: not-allowed; }

/* 선택형 표면 — 타일 · 선택지 */
/* 표면 자체는 크기·위치를 바꾸지 않는다 — 글자가 다시 그려지며 떨려 보이기 때문 */
.pick, .choice {
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.pick:hover, .choice:hover { border-color: var(--brass-3); background: var(--tint); }
.pick:has(input:focus-visible), .choice:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.pick:has(input:checked), .choice:has(input:checked) {
  border-color: var(--brass);
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--brass);
}

/* 단계 레일 */
.wz-step .t { transition: color var(--t-fast) var(--ease); }
.wz-step:not([disabled]):hover .t { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .btn, .pick, .choice, .pick-icon, .pick-go > .icon { transition: none; }
  .pick-lg:hover .pick-icon, .pick-lg:hover .pick-go > .icon { transform: none; }
  .pick-go .pick-flow .icon { animation: none; opacity: 1; }
  .pick-go .pick-flow .icon:nth-child(1) { opacity: .25; }
  .pick-go .pick-flow .icon:nth-child(2) { opacity: .5; }
  .pick-go .pick-flow .icon:nth-child(3) { opacity: .75; }
}

/* =========================================================
   40. 폼 안내 규격 — 브라우저 말풍선 대신 구성 안에 들어가는 안내
       · 입력 묶음(.field · .q · [data-email-verify])에 .is-invalid → 라벨 · 밑줄이 붉게
       · 안내 문구는 묶음 맨 아래 .form-err (아이콘 + 문장), 선택지(.choice)는 상자 바로 아래
       · 오류가 나면 그 묶음만 짧게 흔들리고(main.js 9.), 고치는 즉시 사라진다
       · 인증 결과(.ev-msg)도 같은 모양: 성공 = 초록 체크, 실패 = 붉은 경고
   ========================================================= */
.form-err {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--danger);
}
.form-err .icon,
.ev-msg .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  stroke-width: 2;
}
.form-err .icon { --duo: var(--danger-soft); }
.choice + .form-err { margin-top: 8px; }

.is-invalid > .label,
.is-invalid .q-l { color: var(--danger); }
.is-invalid .input,
.is-invalid .select { border-bottom-color: var(--danger); }
.is-invalid .textarea { border-color: var(--danger); }
.q.is-invalid .pick { border-color: #ffc2c8; }
.choice.is-invalid { border-color: var(--danger); }

.ev-msg {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-weight: 600;
}
.ev-msg.is-ok .icon  { --duo: var(--ok-soft); }
.ev-msg.is-err .icon { --duo: var(--danger-soft); }
.ev-msg .ev-dev { flex-basis: 100%; width: max-content; max-width: 100%; margin-top: 2px; }

/* 선택지 안의 제목 · 설명은 각자 한 줄 (인라인으로 붙어 보이던 문제) */
.choice-t, .choice-d { display: block; }

/* =========================================================
   41. 완료 축하 — 은은하게 한 번
       원이 그려지고(0.6s) → 체크가 그려지고(0.35s) → 작은 입자 12개와 고리가 한 번 퍼진다.
       글자는 움직이지 않고 투명도만 바뀐다. 아이콘 판 없음. 동작 줄이기면 완성 상태로 바로 보인다.
   ========================================================= */
.done-mark {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto;
}
.done-svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.done-ring {
  fill: var(--brass-soft);
  stroke: var(--brass);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.done-check {
  fill: none;
  stroke: var(--brass);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
/* 퍼지는 고리 */
.done-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--brass-3);
  border-radius: 50%;
  opacity: 0;
}
/* 입자 — 점과 짧은 선을 번갈아, 브랜드 블루 계열 */
.done-burst { position: absolute; inset: 0; pointer-events: none; }
.done-burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0;
  transform: rotate(var(--a)) translateY(-44px);
}
.done-burst i:nth-child(even) { width: 2px; height: 9px; margin: -4.5px 0 0 -1px; border-radius: 2px; background: var(--brass-3); }
.done-burst i:nth-child(3n) { background: #9db8ff; }
.done-burst i:nth-child(4n) { background: var(--ok); }

.done-celebrate h2 { margin-top: 26px; }

@media (prefers-reduced-motion: no-preference) {
  .done-celebrate .done-ring  { stroke-dashoffset: 1; animation: doneDraw .6s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
  .done-celebrate .done-check { stroke-dashoffset: 1; animation: doneDraw .35s cubic-bezier(.65, 0, .35, 1) .7s forwards; }
  .done-celebrate .done-mark::before { animation: doneHalo 1s cubic-bezier(.16, 1, .3, 1) .95s; }
  .done-celebrate .done-burst i { animation: doneBurst .9s cubic-bezier(.16, 1, .3, 1) .95s; }
  .done-celebrate h2,
  .done-celebrate > p,
  .done-celebrate .after,
  .done-celebrate .row { opacity: 0; animation: doneFade .5s ease 1.05s forwards; }
}
@keyframes doneDraw  { to { stroke-dashoffset: 0; } }
@keyframes doneHalo  { 0% { opacity: .55; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.75); } }
@keyframes doneBurst {
  0%   { opacity: 0; transform: rotate(var(--a)) translateY(-40px) scale(1); }
  25%  { opacity: .9; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-70px) scale(.5); }
}
@keyframes doneFade  { to { opacity: 1; } }

/* =========================================================
   42. 관리자 화면(/site/dtadmin/) · 파일 등록 위젯
       스타일 가이드를 따른다 — 네 변 1px 선, 색 띠 없음, 상태는 39절 규칙
   ========================================================= */
/* ---------- 관리자 틀 ---------- */
body.adm { background: var(--sand); }
.adm-bar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.adm-bar-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.adm-brand { display: flex; align-items: center; gap: 10px; }
.adm-brand .brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.05em; }
.adm-brand-t { padding: 3px 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.adm-nav { display: flex; gap: 4px; }
.adm-nav a {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), background var(--t-base) var(--ease);
}
.adm-nav a:hover { color: var(--ink); background: var(--sand); }
.adm-nav a.is-on { color: var(--brass); background: var(--brass-soft); }
.adm-me { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 13.5px; }
.adm-noti { position: relative; display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink-2); }
.adm-noti .icon { width: 20px; height: 20px; }
.adm-noti:hover { color: var(--brass); }
.adm-noti-n {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
}
.adm-who { font-weight: 600; }
.adm-main { padding-block: 36px 80px; }
.adm-flash { margin-bottom: 20px; }

/* ---------- 로그인 · 설정 ---------- */
.adm-auth { max-width: 520px; margin: 40px auto 0; }

/* ---------- 머리 · 숫자 ---------- */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 18px 0 28px; }
.adm-status { font-size: 13px; padding: 6px 12px; }
.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.adm-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.adm-stat:hover { border-color: var(--brass-3); background: var(--tint); }
.adm-stat-l { font-size: 13px; font-weight: 600; color: var(--muted); }
.adm-stat-v { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.adm-stat.is-alert .adm-stat-v { color: var(--brass); }

/* ---------- 섹션 ---------- */
.adm-sec { padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); }
.adm-sec + .adm-sec { margin-top: 18px; }
.adm-sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.adm-sec-hd h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -.04em; }
.adm-empty { padding: 28px 0; text-align: center; font-size: 13.5px; color: var(--muted); }

.adm-noti-list { display: grid; }
.adm-noti-list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.adm-noti-list li:first-child { border-top: 0; }
.adm-noti-list li.is-new { font-weight: 700; }
.adm-noti-list li.is-new::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--brass); }
.adm-noti-list a:hover { color: var(--brass); }

/* ---------- 목록 ---------- */
.adm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.adm-tabs a {
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color var(--t-base) var(--ease), color var(--t-fast) var(--ease), background var(--t-base) var(--ease);
}
.adm-tabs a .num { margin-left: 4px; color: var(--muted-2); }
.adm-tabs a:hover { border-color: var(--brass-3); background: var(--tint); }
.adm-tabs a.is-on { border-color: var(--brass); background: var(--brass); color: #fff; }
.adm-tabs a.is-on .num { color: rgba(255, 255, 255, .75); }
.adm-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); }
.adm-filter .select { width: 150px; }
.adm-filter .input { flex: 1; }
.adm-pager { display: flex; justify-content: center; gap: 4px; margin-top: 22px; }
.adm-pager a { min-width: 36px; padding: 8px 10px; text-align: center; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.adm-pager a:hover { border-color: var(--brass-3); }
.adm-pager a.is-on { border-color: var(--brass); color: var(--brass); font-weight: 700; }

/* ---------- 상세 ---------- */
.adm-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.adm-detail-side { position: sticky; top: 84px; }
.adm-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.adm-dl div { display: grid; gap: 4px; }
.adm-dl .is-wide { grid-column: 1 / -1; }
.adm-dl dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.adm-dl dd { margin: 0; font-size: 14.5px; line-height: 1.6; }
.adm-cert { display: grid; gap: 14px; }
.adm-cert img { display: block; max-width: 100%; max-height: 520px; border: 1px solid var(--line); background: var(--sand); }
.adm-act .field + .field { margin-top: 14px; }
.adm-act-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.adm-act-btns .btn { flex: 1; }
.btn.adm-danger { color: var(--danger); border-color: #ffc2c8; }
.btn.adm-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.adm-suspend { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.adm-suspend summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.adm-suspend summary:hover { color: var(--danger); }
.adm-suspend[open] summary { margin-bottom: 12px; color: var(--danger); }
.adm-hist li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.adm-hist li:first-child { border-top: 0; padding-top: 0; }

@media (max-width: 960px) {
  .adm-bar-in { gap: 16px; overflow-x: auto; }
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-detail { grid-template-columns: 1fr; }
  .adm-detail-side { position: static; }
  .adm-dl { grid-template-columns: 1fr; }
}

/* ---------- 파일 등록 위젯 [data-upload] — 선택 → 확인 → 등록됨 ---------- */
.up-pick[hidden], .up-ask[hidden], .up-done[hidden], .up-bar[hidden] { display: none; }
.up-pick {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px dashed #c9cfd6;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.up-pick:hover { border-color: var(--brass); background: var(--tint); }
.up-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.up-pick:has(.up-file:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.up-pick .up-pick-icon { grid-row: 1 / 3; width: 36px; height: 36px; transition: transform var(--t-slow) var(--ease-out); }
.up-pick:hover .up-pick-icon { transform: translateY(-3px); }
.up-pick-t { font-size: 14.5px; font-weight: 700; }
.up-pick-d { font-size: 12.5px; color: var(--muted); }

.up-ask, .up-done { margin-top: 10px; padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.up-ask { border-color: var(--brass-3); background: var(--tint); }
.up-file-info { display: flex; align-items: center; gap: 12px; }
.up-file-info .icon { width: 32px; height: 32px; }
.up-name { font-size: 14px; font-weight: 700; word-break: break-all; }
.up-meta { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.up-q { margin-top: 14px; font-size: 14px; font-weight: 600; }
.up-btns { display: flex; gap: 8px; margin-top: 10px; }
.up-bar { height: 3px; margin-top: 14px; background: var(--sand-deep); overflow: hidden; }
.up-bar i { display: block; width: 0; height: 100%; background: var(--brass); transition: width .15s linear; }
.up-done { display: flex; align-items: center; gap: 12px; }
.up-done > div { flex: 1; min-width: 0; }
.up-done .up-done-icon { width: 28px; height: 28px; color: var(--ok); --duo: var(--ok-soft); stroke-width: 1.8; }
.up-done .up-meta { color: var(--ok); font-weight: 600; }

/* =========================================================
   43. 관리자 왼쪽 메뉴 · 글자 크기 · 표 정렬
       · 로그인 후 화면은 왼쪽 고정 메뉴(248px) + 오른쪽 본문 (42절 위쪽 메뉴 대체)
       · 현재 메뉴 = 연한 파랑 배경 전체 + 파랑 글자 · 아이콘 (왼쪽 색 띠 쓰지 않음)
       · 관리자 화면은 사이트보다 한 단계 큰 글자, 표 제목 · 칸은 가운데 정렬
   ========================================================= */
.adm-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.adm-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 16px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.adm-side .adm-brand { padding: 6px 12px 20px; }
.adm-menu { display: grid; gap: 2px; }
.adm-mg { margin: 22px 12px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted-2); }
.adm-mi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background var(--t-base) var(--ease), color var(--t-fast) var(--ease);
}
.adm-mi .icon { width: 20px; height: 20px; color: var(--muted); --duo: transparent; transition: color var(--t-fast) var(--ease); }
.adm-mi:hover { background: var(--sand); color: var(--ink); }
.adm-mi:hover .icon { color: var(--ink-2); }
.adm-mi.is-on { background: var(--brass-soft); color: var(--brass); }
.adm-mi.is-on .icon { color: var(--brass); --duo: #cddbff; }
.adm-mi-n {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 7px;
  background: var(--brass);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: 11px;
}
.adm-logout { margin-top: auto; }
.adm-logout:hover { color: var(--danger); background: var(--danger-soft); }
.adm-logout:hover .icon { color: var(--danger); }

.adm-body { min-width: 0; }
.adm-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 40px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.adm-top .spacer { flex: 1; }
.adm-burger { display: none; place-items: center; width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--line); }
.adm-burger .icon { width: 20px; height: 20px; }
.adm-noti .icon { width: 22px; height: 22px; color: var(--ink-2); --duo: transparent; }
.adm-noti:hover .icon { color: var(--brass); --duo: var(--brass-soft); }
.adm-who { font-size: 14.5px; }

.adm-wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
body.adm:not(.adm-shell) .adm-wrap { max-width: var(--wrap); }
.adm-shell .adm-main { padding-block: 28px 80px; }

/* ---------- 글자 크기 — 사이트보다 한 단계 크게 ---------- */
body.adm { font-size: 16px; }
.adm .label { font-size: 14px; }
.adm .input, .adm .select, .adm .textarea { font-size: 15.5px; }
.adm .small, .adm .hint { font-size: 14px; }
.adm .btn { font-size: 15px; }
.adm .btn-sm { height: 34px; font-size: 14px; }
.adm-sec-hd h2 { font-size: 18px; }
.adm-stat-l { font-size: 14px; }
.adm-stat-v { font-size: 34px; }
.adm-tabs a { font-size: 14.5px; }
.adm-dl dt { font-size: 13.5px; }
.adm-dl dd { font-size: 15.5px; }
.adm-noti-list li, .adm-hist li { font-size: 15px; }
.adm-empty { font-size: 14.5px; }

/* ---------- 표 — 제목 · 칸 가운데 정렬 ---------- */
.adm .table { font-size: 15px; }
.adm .table thead th { font-size: 13.5px; text-align: center; }
.adm .table tbody td { text-align: center; }

/* ---------- 모바일 — 메뉴는 왼쪽에서 열고 닫는다 ---------- */
@media (max-width: 960px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side {
    position: fixed;
    left: 0;
    z-index: 60;
    width: 264px;
    transform: translateX(-100%);
    transition: transform var(--t-slow) var(--ease-out);
  }
  body.adm-nav-open .adm-side { transform: none; }
  body.adm-nav-open::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(11, 13, 19, .35); }
  .adm-burger { display: grid; }
  .adm-top, .adm-wrap { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .adm-side { transition: none; }
}

/* =========================================================
   44. 드롭다운 — 디자인 시스템 컴포넌트 (main.js 13. initSelect)
       · select.select 는 자동으로 이 모양이 된다 (원래 select 는 숨긴 채 값 · 검사 담당)
       · 닫힌 모양은 입력칸과 같은 밑줄형 (높이 44px)
       · 쫀득함: 목록이 살짝 작게(.97) 위에서 내려오며 탄성 있게 제자리, 화살표는 탄성 회전,
         선택 체크는 튀어오르듯 등장. 항목 글자는 움직이지 않는다
       · 떠 있는 목록은 겹친 화면이라 예외적으로 옅은 그림자를 쓴다
   ========================================================= */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }

.dd { position: relative; }
.dd-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }

.dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease);
}
.dd-btn:hover { border-bottom-color: var(--muted-2); }
.dd-btn:focus-visible { outline: none; border-bottom: 2px solid var(--brass); }
.dd.is-open .dd-btn { border-bottom: 2px solid var(--brass); }
.dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd.is-placeholder .dd-val { color: var(--muted-2); }
.dd-btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--muted);
  transition: transform .45s var(--spring), color var(--t-fast) var(--ease);
}
.dd-btn:hover .icon { color: var(--ink-2); }
.dd.is-open .dd-btn .icon { transform: rotate(180deg); color: var(--brass); }

.dd-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 288px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px -14px rgba(17, 24, 39, .22), 0 2px 6px rgba(17, 24, 39, .05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: 50% 0;
  transition: opacity .16s ease, transform .44s var(--spring), visibility 0s linear .44s;
}
.dd.is-open .dd-list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .16s ease, transform .44s var(--spring), visibility 0s;
}
.dd.is-up .dd-list { top: auto; bottom: calc(100% + 8px); transform: translateY(8px) scale(.97); transform-origin: 50% 100%; }
.dd.is-up.is-open .dd-list { transform: none; }

.dd-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 7px;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.dd-opt + .dd-opt { margin-top: 2px; }
.dd-opt .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
  color: var(--brass);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .15s ease, transform .4s var(--spring);
}
.dd-opt.is-active { background: var(--tint); color: var(--ink); }
.dd-opt[aria-selected="true"] { color: var(--brass); font-weight: 700; }
.dd-opt[aria-selected="true"] .icon { opacity: 1; transform: none; }
.dd-opt[aria-disabled="true"] { color: var(--muted-2); cursor: not-allowed; }

.is-invalid .dd-btn { border-bottom-color: var(--danger); }
.adm .dd-btn, .adm .dd-opt { font-size: 15.5px; }
.adm-filter .dd { width: 160px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .dd-list, .dd.is-open .dd-list, .dd-btn .icon, .dd-opt .icon { transition: none; }
}

/* =========================================================
   45. 로그인 상태 헤더 · 상태 안내 띠 · 마이페이지
       · 헤더 오른쪽: 알림 종(안 읽은 수) + 유형 · 이름 칩 (시안의 가짜 배지 대체)
       · 상태 띠: 고정 헤더 바로 아래 40px, body.has-status 면 본문을 그만큼 내린다
       · 마이페이지: 왼쪽 앵커 메뉴(따라 내려옴) + 섹션(1px 선)
   ========================================================= */
/* ---------- 헤더 ---------- */
.hdr-noti { position: relative; display: grid; place-items: center; width: 38px; height: 38px; color: currentColor; }
.hdr-noti .icon { width: 21px; height: 21px; --duo: transparent; transition: color var(--t-fast) var(--ease); }
.hdr-noti:hover .icon { color: var(--brass); --duo: var(--brass-soft); }
.hdr-noti-n {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border-radius: 9px;
}
.hdr-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.hdr-user:hover { border-color: var(--brass-3); background: var(--tint); }
.hdr-user-t { padding: 2px 6px; background: var(--brass-soft); color: var(--brass); font-size: 11px; font-weight: 700; }
.hdr-user-n { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.site-header:not(.is-solid) .hdr-user { border-color: rgba(255, 255, 255, .35); color: #fff; }
.site-header:not(.is-solid) .hdr-user-t { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- 상태 안내 띠 ---------- */
.status-bar {
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h));
  left: 0;
  right: 0;
  z-index: 290;
  height: 40px;
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.status-bar .wrap { display: flex; align-items: center; gap: 10px; height: 100%; }
.status-bar .icon { width: 17px; height: 17px; stroke-width: 2; flex: none; }
.status-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-bar a { flex: none; margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }
.status-bar.is-info { background: var(--info-soft); color: #163f9e; border-color: #cfdeff; }
.status-bar.is-warn { background: var(--warn-soft); color: #7a5300; border-color: #f6e0b8; }
.status-bar.is-err  { background: var(--danger-soft); color: #b4232f; border-color: #ffd0d5; }
/* 띠 높이만큼 본문을 '더해서' 내린다 — padding 을 덮어쓰면 화면마다 정한 위 여백(.wz-page 등)이 사라진다 */
body.has-status { --status-h: 40px; }
body.has-status:not(.has-hero) main { margin-top: var(--status-h); }
body.has-status .wz-page { min-height: calc(100vh - var(--status-h)); }   /* 띠 높이만큼 더 길어져 생기는 쓸데없는 스크롤 방지 */
body.has-status .wz-rail,
body.has-status .mp-nav,
body.has-status .sticky { top: calc(var(--header-h) + var(--topbar-h) + var(--status-h) + 24px); }

/* ---------- 마이페이지 ---------- */
.mp-status { font-size: 13px; padding: 6px 12px; }
.mp { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.mp-nav { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 24px); display: grid; gap: 2px; }
.mp-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background var(--t-base) var(--ease), color var(--t-fast) var(--ease);
}
.mp-nav a:hover { background: var(--sand); color: var(--ink); }
.mp-nav-n { min-width: 20px; padding: 1px 6px; background: var(--brass); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; border-radius: 10px; }
.mp-body { display: grid; gap: 18px; }
.mp-flash { margin: 0; }
.mp-sec { padding: 28px 30px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 60px); }
.mp-sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.mp-sec-hd h2 { font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.mp-p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.mp-empty { padding: 26px 0; text-align: center; font-size: 14px; color: var(--muted); }
.mp-reason { padding: 16px 18px; background: var(--warn-soft); border: 1px solid #f6e0b8; font-size: 14.5px; line-height: 1.7; color: #7a5300; }
.mp-reason-t { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.mp-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.mp-dl div { display: grid; gap: 3px; }
.mp-dl dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mp-dl dd { margin: 0; font-size: 15px; }
.mp-noti li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.mp-noti li:first-child { border-top: 0; }
.mp-noti li.is-new { font-weight: 700; }
.mp-noti li.is-new::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--brass); }
.mp-noti a:hover { color: var(--brass); }

@media (max-width: 760px) {
  .mp { grid-template-columns: 1fr; }
  .mp-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .mp-dl { grid-template-columns: 1fr; }
  .hdr-user-n { max-width: 80px; }
  .status-bar span { white-space: normal; font-size: 12.5px; }
}

/* =========================================================
   46. 색 띠 제거 — 디자인 시스템 금지 패턴 정리
       15.14 · 15.15 등 시안이 남긴 "한쪽 변에만 색 선" 규칙을 모두 걷어낸다.
       안내 상자(.notice)는 네 변 1px 선 + 연한 면 + 아이콘의 한 형태만 쓴다.
       (표 · 패널의 검은 2px 윗선은 편집형 괘선이라 그대로 둔다)
   ========================================================= */
.notice {
  border: 1px solid #f6e0b8;
  background: var(--warn-soft);
  color: #7a5300;
  gap: 8px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.notice-info { border-color: #cfdeff; background: var(--info-soft); color: #163f9e; }
.notice-ok   { border-color: #bfe8d1; background: var(--ok-soft);   color: #08643b; }
.notice-err  { border-color: #ffd0d5; background: var(--danger-soft); color: #b4232f; }
.notice-warn { border-color: #f6e0b8; background: var(--warn-soft); color: #7a5300; }
.notice .icon { width: 17px; height: 17px; margin-top: 2px; stroke-width: 2; flex: none; --duo: transparent; }
.notice a { text-decoration: underline; text-underline-offset: 3px; }

.rolebar, .rolebar-supplier { border-left: 0; border: 1px solid var(--line); }
.panel-accent { border-top: 1px solid var(--line); }
.float-card { border: 1px solid var(--line); border-top-width: 1px; }
.doc h3 { border-left: 0; padding-left: 0; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.notice + .notice { margin-top: 8px; }

/* =========================================================
   47. 견적 요청 (5-1) — 작성 마법사 · 내 요청 · 제안요청 목록 · 상세 · 문의 · 관리자 검수
       · 색 띠 없음, 큰 듀오톤 아이콘(판 없음), 글자 표면은 움직이지 않는다 (STYLEGUIDE)
   ========================================================= */

/* ---------- 47.1 아이콘 선택 타일 (맡기는 방식 · 업무 범위 · 미팅 방식) ---------- */
.pick.pick-ico-tile { padding: 26px 18px 22px; }
.pick-ico-tile .icon.pick-ico {
  width: 44px; height: 44px; stroke-width: 1.3; color: var(--muted-2); --duo: var(--sand);
  transition: color var(--t-base) var(--ease), transform var(--t-slow) var(--spring);
}
.pick-ico-tile:hover .icon.pick-ico { color: var(--brass-3); transform: translateY(-3px); }
.pick-ico-tile:has(input:checked) .icon.pick-ico { color: var(--brass); --duo: #cddbff; }
.pick-ico-tile .nm { margin-top: 12px; }

/* ---------- 47.2 입력이 든 칩 (진료과목 · 전문 공정 · 시간대) — :has 로 선택 표시 ---------- */
.dchip-in { position: relative; cursor: pointer; }
.dchip-in input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dchip-in:has(input:checked) { background: var(--brass); border-color: var(--brass); color: #fff; }
.dchip-in:has(input:checked) .cv { opacity: .9; }
.dchip-in:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.q.is-invalid .dchip-in { border-color: #f3b5bc; }

/* ---------- 47.3 마법사 보조 ---------- */
.wz-saved { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.wz-saved.is-err { color: var(--danger); font-weight: 600; }
.wz-step:disabled { opacity: .45; cursor: default; }
.ta-r { text-align: right; }
.btn-add { display: inline-flex; align-items: center; gap: 6px; }
.btn-add .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.rooms-table .input { height: 40px; }
.rooms-table td { vertical-align: middle; }
.qlist { display: grid; gap: 8px; }
.qrow { display: flex; gap: 8px; align-items: center; }
.qrow .input { flex: 1; }
.files-list { margin-top: 12px; }
.files-list .up-bar { margin-top: 8px; }
.sumlist dd.is-empty { color: var(--muted-2); font-weight: 500; }

/* ---------- 47.4 빈 화면 (큰 듀오톤 아이콘 + 한 문장 + 버튼) ---------- */
.empty-state { padding: 72px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); }
.empty-state .icon.empty-state-icon { width: 72px; height: 72px; stroke-width: 1.15; color: var(--brass); --duo: var(--brass-soft); }
.empty-state h2 { margin-top: 18px; font-size: 21px; font-weight: 800; letter-spacing: -.05em; }
.empty-state p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 47.5 내 요청 카드 ---------- */
.req-list { display: grid; gap: 14px; }
/* 카드는 article.req 로만 — 입력 라벨의 필수 표시 <span class="req">*</span> 와 이름이 겹쳐 별표가 상자로 보이던 문제 (2026-10-25) */
article.req { padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + var(--status-h, 0px) + 24px); }
article.req:target { border-color: var(--brass-3); }
.req-top { display: flex; align-items: center; gap: 10px; }
.req-dday { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.req-dday.is-soon { color: var(--danger); }
.req-t { margin-top: 12px; font-size: 19px; font-weight: 800; letter-spacing: -.05em; line-height: 1.4; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.req-meta span + span::before { content: ''; display: inline-block; width: 1px; height: 10px; margin-right: 14px; background: var(--line); vertical-align: 0; }
.req-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.req-note { font-size: 13.5px; color: var(--muted); }
.req-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req-figs { display: flex; gap: 28px; margin: 0; }
.req-figs div { display: grid; gap: 2px; }
.req-figs dt { font-size: 12px; color: var(--muted); }
.req-figs dd { margin: 0; font-size: 15px; font-weight: 700; }
/* 화면 안 확인 — confirm() 팝업 대신 펼쳐서 한 번 더 누른다 */
.req-confirm { position: relative; }
.req-confirm summary { list-style: none; cursor: pointer; }
.req-confirm summary::-webkit-details-marker { display: none; }
.req-confirm[open] summary { color: var(--ink); opacity: 1; }
.req-confirm form {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 300px;
  display: grid; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(16, 24, 40, .1); line-height: 1.6;
  transform-origin: top right; animation: reqPop .32s var(--spring);
}
@keyframes reqPop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- 47.6 목록 · 상세 ---------- */
.pj-soon { color: var(--danger); font-weight: 700; }
.pj-ai-head { font-weight: 700; }
.stat-strip .sv.sv-soon { color: #ff8b95; }
.side-dday { font-size: 17px; color: var(--ink); }
.side-dday.is-soon { color: var(--danger); }
.doc-body { font-size: 15px; line-height: 1.85; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.ask-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.ask-list li::marker { color: var(--brass); font-weight: 700; }

/* ---------- 47.7 문의 (댓글) ---------- */
.qa-who .badge .icon { width: 12px; height: 12px; stroke-width: 2.2; vertical-align: -1px; }
.qa-reply { padding: 0 18px 16px; }
.qa-reply summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brass); }
.qa-reply summary::-webkit-details-marker { display: none; }
.qa-reply form { margin-top: 10px; }
.cmt-del { margin-top: 6px; }
.cmt-del .lnk { font-size: 12px; color: var(--muted-2); }
.cmt-del .lnk:hover { color: var(--danger); }
.cmt-vis { display: flex; gap: 18px; }
.cmt-new { padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- 47.8 관리자 검수 ---------- */
.adm-spec .panel { background: #fff; }
.adm-dl.adm-dl-1 { grid-template-columns: 1fr; gap: 12px; }
.diff-sec { border-color: #f6e0b8; }
.adm .table td.ta-l { text-align: left; }
.diff-table td { vertical-align: top; font-size: 14px; line-height: 1.65; }
.diff-old { color: var(--muted); }
.diff-new { background: #fbfdf7; color: var(--ink); font-weight: 500; }

@media (max-width: 760px) {
  article.req { padding: 20px 18px; }
  .req-foot { align-items: flex-start; }
  .req-confirm form { right: auto; left: 0; width: min(300px, calc(100vw - 48px)); }
  .rooms-table th:nth-child(3), .rooms-table td:nth-child(3) { min-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .req-confirm form { animation: none; }
  .pick-ico-tile .icon.pick-ico { transition: none; }
}
.lnk { font: inherit; color: var(--brass); background: none; border: 0; padding: 0; cursor: pointer; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   48. 제안서 (5-2) — 작성 마법사 · 제안서 상세 · 받은 제안 비교 · 내 제안 · 관리자
       · 금액은 의원 · 매니저만 본다. 선정된 카드는 파랑 선 + 안쪽 링(선택됨 규칙), 끝난 제안은 흐리게
       · 색 띠 없음, 글자 표면은 움직이지 않는다 (STYLEGUIDE)
   ========================================================= */

/* ---------- 48.1 작성 마법사 보조 (레일의 요청 요약 · 질문 답변) ---------- */
.wz-proj { margin-top: 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); }
.wz-proj .badge { font-size: 10.5px; }
.wz-proj-t { margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: -.03em; word-break: keep-all; }
.ans .label { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.ans-n { flex: none; padding: 1px 6px; background: var(--brass-soft); color: var(--brass); font-size: 11.5px; font-weight: 700; }

/* ---------- 48.2 제안서 본문 조각 (proposal-spec) ---------- */
.pr-amount { font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.vs { font-weight: 600; }
.vs-in    { color: var(--ok); }
.vs-over  { color: var(--danger); }
.vs-under { color: #7a5300; }
.vs-none  { color: var(--muted); }
.qa-list { margin: 0; padding: 0; list-style: none; counter-reset: qa; }
.qa-list li { padding: 16px 0; border-top: 1px solid var(--line-2); counter-increment: qa; }
.qa-list li:first-child { padding-top: 0; border-top: 0; }
.qa-list-q { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 700; line-height: 1.55; }
.qa-list-q::before { content: "Q" counter(qa); flex: none; padding: 1px 6px; background: var(--brass-soft); color: var(--brass); font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.qa-list-a { margin-top: 8px; padding-left: 34px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.lnk-ink { color: inherit; }
.lnk-ink:hover { color: var(--brass); }

/* ---------- 48.3 받은 제안 비교 (의원) ---------- */
.cmp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.cmp-stats { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.cmp-stats strong { color: var(--ink); font-weight: 800; }
.prop-list { display: grid; gap: 14px; }
.prop {
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + var(--status-h, 0px) + 24px);
}
.prop:target { border-color: var(--brass-3); }
.prop.is-selected { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); background: var(--tint); }
.prop.is-dead { opacity: .55; }
.prop.is-dead:hover { opacity: 1; }
.prop-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prop-who { display: grid; gap: 2px; min-width: 0; }
.prop-name { font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.prop-head .badge .icon { width: 12px; height: 12px; stroke-width: 2.2; vertical-align: -1px; }
.prop-figs { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prop-fig { padding: 14px 18px; border-left: 1px solid var(--line); }
.prop-fig:first-child { padding-left: 0; border-left: 0; }
.prop-fig .l { font-size: 12px; font-weight: 600; color: var(--muted); }
.prop-fig .v { margin-top: 4px; font-size: 18px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.prop-fig-main .v { font-size: 24px; }
.prop-fig .s { margin-top: 3px; font-size: 12px; color: var(--muted-2); }
.prop-excerpt { margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.prop-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.prop-foot form { margin: 0; }
.star-btn { display: inline-flex; align-items: center; gap: 6px; }
.star-btn .icon { width: 15px; height: 15px; stroke-width: 2; --duo: transparent; transition: color var(--t-fast) var(--ease); }
.star-btn:hover .icon { color: #c98f00; }
.star-btn.is-on .icon { color: #c98f00; --duo: #ffe9a8; }
.star-ico { width: 16px; height: 16px; color: #c98f00; --duo: #ffe9a8; stroke-width: 2; }
.sel-confirm form { width: 320px; }

/* 선정한 시공사 패널 */
.sel-panel { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.sel-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sel-head .icon.sel-ico { flex: none; width: 56px; height: 56px; stroke-width: 1.2; color: var(--brass); --duo: var(--brass-soft); }
.sel-name { font-size: 22px; font-weight: 800; letter-spacing: -.05em; }
.sel-figs { display: flex; gap: 28px; margin: 0 0 0 auto; }
.sel-figs div { display: grid; gap: 2px; }
.sel-figs dt { font-size: 12px; color: var(--muted); }
.sel-figs dd { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.sel-contact { grid-template-columns: 88px 1fr; font-size: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- 48.4 관리자 ---------- */
.adm .table tr.is-selected td { background: var(--tint); }
.adm-unselect form { position: static; width: auto; margin-top: 10px; padding: 0; border: 0; box-shadow: none; animation: none; }

@media (max-width: 760px) {
  .prop { padding: 20px 18px; }
  .prop-figs { grid-template-columns: 1fr 1fr; }
  .prop-fig { padding: 12px 14px; }
  .prop-fig:nth-child(odd) { padding-left: 0; border-left: 0; }
  .prop-fig:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sel-figs { margin-left: 0; gap: 18px; flex-wrap: wrap; }
  .sel-confirm form { width: min(320px, calc(100vw - 48px)); }
}

/* =========================================================
   49. UI 개선 1차 (2026-10-25) — 칩 · 드롭다운 잘림 · 헤더 칩 · 테스트 로그인 · 관심 · 알림
   ========================================================= */

/* ---------- 49.1 입력 칩 — 드롭다운처럼 보이던 꺾쇠를 없애고, 고르면 왼쪽에 체크가 그려진다 ---------- */
.dchip.dchip-in { gap: 0; padding: 0 16px; font-weight: 600; }
.dchip-in .dchip-ck {
  display: inline-block; flex: none; width: 0; height: 9px; margin-right: 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) scale(0); transform-origin: 50% 60%; opacity: 0;
  transition: width var(--t-base) var(--ease), margin var(--t-base) var(--ease), transform .32s var(--spring), opacity var(--t-fast) var(--ease);
}
.dchip-in:has(input:checked) .dchip-ck { width: 5px; margin: -3px 10px 0 2px; transform: rotate(45deg) scale(1); opacity: 1; }
.dchip-in:hover:not(:has(input:checked)) { border-color: var(--brass-3); background: var(--tint); color: var(--brass-2); }

/* ---------- 49.2 단계 카드 — 펼친 드롭다운이 카드에 잘리지 않게 (모서리는 머리 · 꼬리가 이어받는다) ---------- */
.wz-card { overflow: visible; }
.wz-card > .wz-hd { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.wz-card > .wz-ft { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.wz-card .dd.is-open { z-index: 30; }

/* ---------- 49.3 헤더 이름 칩 — 흰 헤더(메인 외 모든 화면)에서 글자가 흰색으로 사라지던 문제 ----------
   45절의 :not(.is-solid) 규칙은 사진 위 투명 헤더(메인 .has-hero)에서만 쓴다 */
body:not(.has-hero) .site-header .hdr-user { border-color: var(--line); color: var(--ink); }
body:not(.has-hero) .site-header .hdr-user-t { background: var(--brass-soft); color: var(--brass); }
body:not(.has-hero) .site-header .hdr-user:hover { border-color: var(--brass-3); background: var(--tint); }

/* ---------- 49.4 테스트 즉시 로그인 (임시) ---------- */
.quick-login { border-style: dashed; }
.quick-login-t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; }
.quick-login-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.quick-login-grid form { margin: 0; }
.quick-btn {
  display: grid; gap: 3px; width: 100%; padding: 12px 14px; text-align: left;
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.quick-btn:hover { border-color: var(--brass-3); background: var(--tint); }
.quick-type { justify-self: start; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.quick-type.is-clinic { background: var(--brass-soft); color: var(--brass); }
.quick-type.is-vendor { background: #eceff2; color: var(--ink); }
.quick-type.is-admin  { background: var(--ink); color: #fff; }
.quick-n { font-size: 14px; font-weight: 700; letter-spacing: -.03em; }
.quick-e { font-size: 12px; color: var(--muted); }

/* ---------- 49.5 관심 — 별만 쫀득하게 한 번 튄다 ---------- */
.star-btn.is-pop .icon { animation: starPop .5s var(--spring); }
@keyframes starPop {
  0% { transform: scale(.6) rotate(-18deg); }
  60% { transform: scale(1.25) rotate(6deg); }
  100% { transform: none; }
}

/* ---------- 49.6 알림 — 헤더 종 · 패널 · 알림 화면 공용 줄(.noti) ----------
   · 안 읽음: 연한 파랑 면 + 굵은 제목 + 아이콘 옆 파란 점(맥박처럼 퍼지는 고리)
   · 종류별 아이콘 색: brass 파랑 · ok 초록 · warn 노랑 · err 붉음 · mute 회색 (판 없이 듀오톤) */
.hdr-noti-wrap { position: relative; }
.hdr-noti.has-unread .hdr-bell { transform-origin: 50% 8%; animation: bellSwing 6s ease-in-out 1.2s infinite; }
@keyframes bellSwing {
  0%, 84%, 100% { transform: none; }
  87% { transform: rotate(14deg); }
  90% { transform: rotate(-11deg); }
  93% { transform: rotate(7deg); }
  96% { transform: rotate(-3deg); }
}
.hdr-noti-wrap.is-open .hdr-noti .icon { color: var(--brass); --duo: var(--brass-soft); }

.noti-pop {
  position: absolute; top: calc(100% + 10px); right: -8px; z-index: 320; width: 380px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, .12); overflow: hidden;
  transform-origin: top right; animation: notiPop .36s var(--spring);
}
@keyframes notiPop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.noti-pop-hd { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
.noti-pop-n { padding: 1px 7px; background: var(--brass); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 10px; }
.noti-pop-list { max-height: 420px; overflow-y: auto; }
.noti-pop-list .noti { padding: 13px 16px 13px 34px; }
.noti-pop-list .noti-dot { left: 14px; top: 20px; }
.noti-pop-list .noti-title { font-size: 14px; }
.noti-pop-empty { padding: 30px 16px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* 알림 목록 = 한 장의 판 + 줄 구분 (줄마다 상자를 따로 두지 않는다)
   줄: [안 읽음 점] [종류 아이콘 20] [제목 · 설명 · 종류 · 시각]  — 2026-10-25 다시 그림 */
.noti-list { background: #fff; border: 1px solid var(--line); }
.noti {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px 16px 38px; color: var(--ink); border-top: 1px solid var(--line-2);
  transition: background var(--t-base) var(--ease);
}
.noti:first-child { border-top: 0; }
.noti:hover { background: var(--sand); }
.noti.is-unread { background: #f6f9ff; }
.noti.is-unread:hover { background: #edf3ff; }
.noti-dot { position: absolute; left: 17px; top: 23px; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.noti-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brass);
  animation: notiPulse 2s ease-out infinite;
}
@keyframes notiPulse { from { transform: scale(1); opacity: .5; } to { transform: scale(2.8); opacity: 0; } }
.noti-ico { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; }
.noti-ico .icon { width: 20px; height: 20px; stroke-width: 1.8; --duo: transparent; transition: transform var(--t-slow) var(--spring); }
.noti:hover .noti-ico .icon { transform: translateY(-2px); }
.tone-brass .noti-ico .icon { color: var(--brass); }
.tone-ok    .noti-ico .icon { color: var(--ok); }
.tone-warn  .noti-ico .icon { color: #c98f00; }
.tone-err   .noti-ico .icon { color: var(--danger); }
.tone-mute  .noti-ico .icon { color: var(--muted-2); }
.noti-main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.noti-title { font-size: 14.5px; font-weight: 600; line-height: 1.45; letter-spacing: -.03em; color: var(--ink-2); }
.noti.is-unread .noti-title { font-weight: 800; color: var(--ink); }
.noti-body { font-size: 13.5px; line-height: 1.6; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.noti-body.is-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noti-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12px; color: var(--muted-2); }
.noti-meta > * + *::before { content: ""; display: inline-block; width: 2px; height: 2px; margin: 0 8px 3px 0; border-radius: 50%; background: currentColor; vertical-align: middle; }
.noti-kind { font-weight: 700; }
.tone-brass .noti-kind { color: var(--brass); }
.tone-ok .noti-kind { color: var(--ok); }
.tone-warn .noti-kind { color: #a87400; }
.tone-err .noti-kind { color: var(--danger); }

/* 알림 화면 */
.noti-wrap { max-width: 820px; }
.noti-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.noti-bar form { margin: 0; }
.noti-bar .btn .icon { width: 14px; height: 14px; stroke-width: 2.4; vertical-align: -2px; }
.noti-sum { font-size: 13.5px; color: var(--muted); }
.noti-sum strong { color: var(--ink); font-weight: 800; }
.noti-sum strong.is-on { color: var(--brass); }
.noti-group { margin-top: 26px; }
.noti-group-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 800; color: var(--ink-2); letter-spacing: -.02em; }
.noti-group-h .num { font-weight: 600; color: var(--muted-2); }

@media (max-width: 760px) {
  .noti-pop { position: fixed; top: calc(var(--topbar-h) + var(--header-h) + 6px); left: 12px; right: 12px; width: auto; }
  .noti { padding: 14px 14px 14px 32px; gap: 10px; }
  .noti-dot { left: 13px; top: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .hdr-noti.has-unread .hdr-bell, .noti-dot::after, .noti-pop, .star-btn.is-pop .icon { animation: none; }
  .dchip-in .dchip-ck { transition: none; }
}

/* ---------- 49.7 아이콘 선택 타일 다시 그리기 (47.1 대체) ----------
   아이콘이 글자와 한 줄에 붙고 라디오 원이 왼쪽 위에 떠 있던 배치를 세로 정렬로:
   [아이콘 44] → [이름] → [설명], 선택 표시는 오른쪽 위 원형 체크(고르면 파랑 채움 + 흰 체크, 탄성 등장) */
.pick.pick-ico-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 18px 24px; }
.pick-ico-tile .icon.pick-ico { display: block; flex: none; margin: 0 0 14px; }
.pick-ico-tile .nm { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.04em; }
.pick-ico-tile .ds { margin-top: 6px; max-width: 200px; font-size: 12.5px; line-height: 1.55; word-break: keep-all; }
.pick-ico-tile input { left: auto; right: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50% !important; border-color: #d5dae0; }
.pick-ico-tile input::after,
.pick-ico-tile input[type="radio"]::after {
  left: 50%; top: 45%; width: 9px; height: 5px; background: none; border-radius: 0 !important;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg) scale(.4); opacity: 0;
  transition: opacity var(--t-fast) var(--ease), transform .32s var(--spring);
}
.pick-ico-tile input:checked::after,
.pick-ico-tile input[type="radio"]:checked::after { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
.pick-ico-tile:not(:has(input:checked)) input { opacity: 0; }
.pick-ico-tile:hover input, .pick-ico-tile input:focus-visible { opacity: 1; }

/* =========================================================
   50. 디자인 시스템 화면 (design.php) 전용 배치 — .ds-*
       견본 부품 자체는 위 절들의 실제 클래스를 그대로 쓴다. 여기는 늘어놓는 틀만
   ========================================================= */
/* 배치 이름은 .ds-layout — .ds 는 선택지 설명 글(.pick .ds)이 쓰는 이름이라 겹치면 안 된다 (2026-10-25) */
.ds-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; align-items: start; }
.ds-nav { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + var(--status-h, 0px) + 24px); display: grid; gap: 2px; }
.ds-nav a { padding: 9px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background var(--t-base) var(--ease), color var(--t-fast) var(--ease); }
.ds-nav a:hover { background: var(--sand); color: var(--ink); }
.ds-body { display: grid; gap: 22px; min-width: 0; }
.ds-sec { padding: 32px 34px; background: #fff; border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 24px); }
.ds-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; font-size: 22px; font-weight: 800; letter-spacing: -.05em; }
.ds-sub { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: -.02em; }
.ds-h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 12px; font-size: 14.5px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.ds-h3 code, .ds-h code, .ds-body p code, .ds-body li code, .ds-body .label code { padding: 1px 6px; background: var(--sand); color: var(--ink-2); font-size: 12px; font-weight: 600; font-family: ui-monospace, Consolas, monospace; letter-spacing: 0; }
.ds-flag { padding: 2px 8px; background: var(--danger-soft); color: var(--danger); font-size: 11.5px; font-weight: 700; }
.ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ds-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.ds-box { padding: 18px 20px; border: 1px solid var(--line); }
.ds-box-t { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 800; }
.ds-box-t .icon { width: 18px; height: 18px; stroke-width: 2; --duo: transparent; }
.ds-ok { color: var(--ok); } .ds-no { color: var(--danger); }
.ds-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 7px; font-size: 14px; line-height: 1.6; color: var(--ink-2); list-style: disc; }
.ds-deep { padding: 16px; background: var(--deep); }

/* 토큰 */
.ds-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ds-sw { display: grid; gap: 3px; font-size: 12px; }
.ds-sw-c { height: 52px; border: 1px solid var(--line); margin-bottom: 4px; }
.ds-sw code { font-size: 12px; font-weight: 700; color: var(--ink); font-family: ui-monospace, Consolas, monospace; }
.ds-sw-v { color: var(--muted); text-transform: uppercase; }
.ds-sw-u { color: var(--muted-2); line-height: 1.4; }
.ds-radius { display: flex; flex-wrap: wrap; gap: 18px; }
.ds-radius > div { display: grid; justify-items: center; gap: 4px; }
.ds-radius code { font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
.ds-rbox { width: 64px; height: 64px; background: var(--brass-soft); border: 1.5px solid var(--brass); }
.ds-shadows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ds-shd { display: grid; gap: 4px; padding: 22px; background: #fff; font-size: 13px; }
.ds-shd span { color: var(--muted); }
.ds-motion { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ds-mo { position: relative; display: grid; gap: 4px; padding: 14px 16px 14px 16px; border: 1px solid var(--line); cursor: default; }
.ds-mo code { font-size: 12px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.ds-mo-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--brass); margin-bottom: 6px; }
.ds-mo[data-mo="t-fast"] .ds-mo-dot { transition: transform var(--t-fast) var(--ease); }
.ds-mo[data-mo="t-base"] .ds-mo-dot { transition: transform var(--t-base) var(--ease); }
.ds-mo[data-mo="t-slow"] .ds-mo-dot { transition: transform var(--t-slow) var(--ease); }
.ds-mo[data-mo="spring"] .ds-mo-dot { transition: transform .44s var(--spring); }
.ds-mo:hover .ds-mo-dot { transform: translateX(120px); }

/* 타이포 · 아이콘 */
.ds-type { display: grid; gap: 14px; }
.ds-type > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.ds-type .display { margin: 0; }
.ds-tl { font-size: 12px; font-weight: 600; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.ds-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.ds-ic { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 12px; border: 1px solid var(--line); }
.ds-ic .icon { width: 30px; height: 30px; stroke-width: 1.4; color: var(--brass); --duo: var(--brass-soft); }
.ds-ic code { font-size: 11px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.ds-icsize { gap: 28px; align-items: flex-end; }
.ds-icsize > div { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ds-icsize .icon { color: var(--brass); --duo: var(--brass-soft); }
.ds-icsize .icon.ds-i72 { width: 72px; height: 72px; stroke-width: 1.15; }
.ds-icsize .icon.ds-i44 { width: 44px; height: 44px; stroke-width: 1.3; }
.ds-icsize .icon.ds-i26 { width: 26px; height: 26px; stroke-width: 1.5; }
.ds-done-box { overflow: hidden; }

/* 패턴 도식 */
.ds-patterns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ds-pat { display: grid; gap: 6px; align-content: start; }
.ds-pat-fig { position: relative; height: 120px; margin-bottom: 6px; background: var(--sand); border: 1px solid var(--line); overflow: hidden; }
.ds-pat-fig i { position: absolute; background: #fff; border: 1px solid var(--line); }
.ds-pat-hero i:nth-child(1) { left: 8%; top: 18%; width: 30%; height: 8px; background: var(--muted-2); border: 0; }
.ds-pat-hero i:nth-child(2) { left: 8%; top: 34%; width: 55%; height: 16px; background: var(--ink); border: 0; }
.ds-pat-hero i:nth-child(3) { right: 8%; top: 34%; width: 18%; height: 22px; background: var(--brass); border: 0; }
.ds-pat-wz i:nth-child(1) { left: 6%; top: 12%; width: 22%; height: 76%; }
.ds-pat-wz i:nth-child(2) { left: 32%; top: 12%; width: 62%; height: 76%; }
.ds-pat-side i:nth-child(1) { left: 6%; top: 12%; width: 60%; height: 76%; }
.ds-pat-side i:nth-child(2) { left: 70%; top: 12%; width: 24%; height: 44%; }
.ds-pat-list i { left: 6%; width: 88%; height: 22%; }
.ds-pat-list i:nth-child(1) { top: 10%; } .ds-pat-list i:nth-child(2) { top: 39%; } .ds-pat-list i:nth-child(3) { top: 68%; }

/* 점검표 */
.ds-audit { margin: 0; padding-left: 22px; display: grid; gap: 18px; }
.ds-audit li { padding-left: 4px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.ds-audit li::marker { font-weight: 800; color: var(--ink); }
.ds-audit-t { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.ds-rchoice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ds-rc-t { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.ds-rc-card { padding: 16px; background: #fff; border: 1px solid var(--line); }
.ds-rc-card .input { height: 38px; font-size: 13.5px; }
/* 비교용 — 24장의 !important 를 같은 세기로 덮는다 */
.ds-r0 .ds-rc-card, .ds-r0 .ds-rc-card .btn, .ds-r0 .ds-rc-card .input, .ds-r0 .ds-rc-card .badge { border-radius: 0 !important; }
.ds-r6 .ds-rc-card { border-radius: 10px !important; }
.ds-r6 .ds-rc-card .btn, .ds-r6 .ds-rc-card .input { border-radius: 6px !important; }
.ds-r6 .ds-rc-card .badge { border-radius: 4px !important; }
.ds-r12 .ds-rc-card { border-radius: 16px !important; }
.ds-r12 .ds-rc-card .btn, .ds-r12 .ds-rc-card .input { border-radius: 10px !important; }
.ds-r12 .ds-rc-card .badge { border-radius: 999px !important; }

@media (max-width: 960px) {
  .ds-layout { grid-template-columns: 1fr; }
  .ds-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .ds-rchoice { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ds-sec { padding: 22px 18px; }
  .ds-grid-2, .ds-shadows, .ds-patterns { grid-template-columns: 1fr; }
  .ds-type > div { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================
   51. 디자인 시스템 v2 (2026-10-25) — 위시켓형 구조 · 작은 곡률(B안)
       · 지금은 body.ui2 인 화면(design.php)에만 적용된다. 확정되면 레이아웃 body 에 ui2 를 붙여 사이트 전체로 켠다
       · 15장(각짐 · 괘선) · 24장(곡률 되살리기) · 15.6(밑줄 입력)을 이 층에서 한 번에 정리한다
       · 원칙: 옅은 회색 바탕 + 흰 카드(1px 선, 10px) · 버튼 · 입력 6px · 배지 · 태그 4px · 떠 있는 패널만 그림자
   ========================================================= */
:root {
  /* 면 */
  --page: #f5f6f8;
  --line-strong: #d0d5dd;
  /* 모서리 */
  --r-tag: 4px; --r-btn: 6px; --r-card: 10px; --r-pop: 12px;
  /* 글자 척도 9단계 */
  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-15: 15px;
  --fs-17: 17px; --fs-20: 20px; --fs-24: 24px; --fs-30: 30px;
  /* 상태 — 면(soft) · 글자(ink) 짝 */
  --ok-bg: #ecfdf3;     --ok-ink: #067647;
  --warn-bg: #fffaeb;   --warn-ink: #8a5a00;
  --danger-bg: #fef3f2; --danger-ink: #c01f2f;
  --info-bg: #eff4ff;   --info-ink: #163f9e;
  --mute-bg: #f2f4f7;   --mute-ink: #4e5968;
  /* 그림자 · 초점 */
  --sh-pop: 0 12px 32px rgba(16, 24, 40, .12);
  --focus: 0 0 0 3px rgba(31, 94, 255, .18);
}

/* ---------- 51.1 바탕 · 머리 ---------- */
body.ui2 { background: var(--page); }
.ui2 .page-hero-light { background: transparent; border-bottom: 0; padding-bottom: 8px; }
.ui2 .page-hero-light .display.d-2 { font-size: var(--fs-24); }

/* ---------- 51.2 버튼 — 주(파랑) · 보조(흰 바탕 회색 선) · 조용한(글자만) · 위험 ---------- */
.ui2 .btn { height: 40px; padding: 0 16px; border-radius: var(--r-btn) !important; font-size: var(--fs-14); font-weight: 700; border: 1px solid transparent; }
.ui2 .btn-sm { height: 32px; padding: 0 12px; font-size: var(--fs-13); }
.ui2 .btn-lg { height: 48px; padding: 0 22px; font-size: var(--fs-15); }
.ui2 .btn-primary, .ui2 .btn-brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.ui2 .btn-primary:hover, .ui2 .btn-brass:hover { background: var(--brass-2); border-color: var(--brass-2); color: #fff; }
.ui2 .btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.ui2 .btn-ghost:hover { background: var(--page); border-color: #98a2b3; color: var(--ink); }
.ui2 .btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.ui2 .btn-quiet:hover { background: var(--mute-bg); color: var(--ink); }
.ui2 .btn.adm-danger, .ui2 .btn-danger { background: #fff; border-color: #fecdca; color: var(--danger-ink); }
.ui2 .btn.adm-danger:hover, .ui2 .btn-danger:hover { background: var(--danger-bg); border-color: #fda29b; }
.ui2 .btn:focus-visible { outline: none; box-shadow: var(--focus); }
.ui2 .btn .icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------- 51.3 배지 · 태그 — 작은 사각(4px), 면 + 글자 짝 ---------- */
.ui2 .badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-tag) !important; font-size: var(--fs-12); font-weight: 700; letter-spacing: -.01em; background: var(--mute-bg); color: var(--mute-ink); }
.ui2 .badge-ok     { background: var(--ok-bg); color: var(--ok-ink); border-color: #abefc6; }
.ui2 .badge-warn   { background: var(--warn-bg); color: var(--warn-ink); border-color: #fedf89; }
.ui2 .badge-danger { background: var(--danger-bg); color: var(--danger-ink); border-color: #fecdca; }
.ui2 .badge-brass, .ui2 .badge-info { background: var(--info-bg); color: var(--brass-2); border-color: #c7d7fe; }
.ui2 .badge-line   { background: #fff; color: var(--ink-2); border-color: var(--line-strong); }
.ui2 .badge-dark   { background: var(--ink); color: #fff; }
.ui2 .tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-tag) !important; background: var(--mute-bg); color: var(--ink-2); font-size: var(--fs-12); font-weight: 600; }

/* ---------- 51.4 입력 — 상자형(밑줄형 폐기), 초점은 파랑 선 + 옅은 고리 ---------- */
.ui2 .input, .ui2 .select, .ui2 .textarea {
  height: 44px; padding: 0 12px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn) !important;
  font-size: var(--fs-15);
}
.ui2 .textarea { height: auto; padding: 12px; line-height: 1.7; }
.ui2 .input:hover, .ui2 .select:hover, .ui2 .textarea:hover { border-color: #98a2b3; }
.ui2 .input:focus, .ui2 .select:focus, .ui2 .textarea:focus { outline: none; border-color: var(--brass); border-width: 1px; box-shadow: var(--focus); }
.ui2 .is-invalid .input, .ui2 .is-invalid .textarea, .ui2 .is-invalid .dd-btn { border-color: var(--danger); }
.ui2 .dd-btn { height: 44px; padding: 0 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-btn); }
.ui2 .dd-btn:hover { border-color: #98a2b3; }
.ui2 .dd-btn:focus-visible, .ui2 .dd.is-open .dd-btn { border: 1px solid var(--brass); box-shadow: var(--focus); }
.ui2 .label { font-size: var(--fs-14); }

/* ---------- 51.5 카드 · 패널 · 표 — 흰 면 + 1px 선 + 10px ---------- */
.ui2 .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card) !important; }
.ui2 .panel-hd { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ui2 .panel-bd { padding: 20px 22px; }
.ui2 .panel-bd-flush { padding: 0; }
.ui2 .panel + .panel { margin-top: 16px; }
.ui2 .table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card) !important; }
.ui2 .table thead th { background: #f9fafb; border-bottom: 1px solid var(--line); padding: 12px 16px; font-size: var(--fs-13); color: var(--ink-2); }
.ui2 .table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.ui2 .table tbody tr:last-child td { border-bottom: 0; }
.ui2 article.req, .ui2 .prop, .ui2 .empty-state, .ui2 .mp-sec, .ui2 .wz-card, .ui2 .noti-list { border-radius: var(--r-card) !important; overflow: hidden; }
.ui2 .wz-card { overflow: visible; }
.ui2 .notice { border-radius: var(--r-btn) !important; }
.ui2 .pick, .ui2 .choice { border-radius: var(--r-card) !important; }
.ui2 .dchip, .ui2 .dchip-in { border-radius: var(--r-btn) !important; }
.ui2 .req-confirm form, .ui2 .noti-pop, .ui2 .dd-list { border-radius: var(--r-pop) !important; box-shadow: var(--sh-pop); }

/* ---------- 51.6 목록 카드 .pcard (위시켓형) ----------
   왼쪽: 상태 배지 → 제목 → 숫자 한 줄 → 분류 → 태그 · 지역 · 등록일 / 오른쪽 칸: 마감 · 제안 · 문의 + 의원 요약(회색 면) */
.pcard { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 24px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink); transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.pcard + .pcard { margin-top: 12px; }
.pcard:hover { border-color: var(--brass-3); box-shadow: 0 2px 10px rgba(16, 24, 40, .05); }
.pcard-main { min-width: 0; display: grid; gap: 9px; align-content: start; }
.pcard-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-t { font-size: var(--fs-17); font-weight: 800; letter-spacing: -.04em; line-height: 1.45; }
.pcard:hover .pcard-t { color: var(--brass-2); }
.pcard-figs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: var(--fs-14); color: var(--muted); }
.pcard-figs span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: var(--line-strong); vertical-align: -1px; }
.pcard-figs b { margin-left: 6px; font-weight: 700; color: var(--ink); }
.pcard-cat { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-13); color: var(--ink-2); }
.pcard-cat span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-cat .icon { width: 14px; height: 14px; stroke-width: 2; color: var(--muted-2); }
.pcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: var(--fs-12); color: var(--muted-2); }
.pcard-foot .icon { width: 13px; height: 13px; stroke-width: 2; vertical-align: -2px; }
.pcard-side { display: grid; gap: 8px; align-content: start; padding-left: 24px; border-left: 1px solid var(--line-2); font-size: var(--fs-13); color: var(--ink-2); }
.pcard-side p { display: flex; align-items: center; gap: 7px; }
.pcard-side .icon { width: 15px; height: 15px; stroke-width: 2; color: var(--muted); }
.pcard-side strong { color: var(--ink); font-weight: 800; }
.pcard-side .is-soon, .pcard-side .is-soon .icon { color: var(--danger); }
.pcard-who { display: grid; gap: 4px; margin-top: 6px; padding: 12px; background: var(--page); border-radius: 8px; font-size: var(--fs-12); color: var(--muted); }
.pcard-who b { font-size: var(--fs-13); color: var(--ink); }

/* 목록 위 도구줄 · 칩 필터 */
.ltool { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; }
.ltool-n { font-size: var(--fs-15); font-weight: 800; color: var(--ink); }
.ltool-n span { color: var(--brass); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease), color var(--t-fast) var(--ease); }
.fchip:hover { border-color: #98a2b3; color: var(--ink); }
.fchip.is-on { background: var(--info-bg); border-color: var(--brass); color: var(--brass-2); }
.fchip .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.fchip-n { min-width: 18px; padding: 0 5px; background: var(--brass); color: #fff; font-size: var(--fs-11); font-weight: 700; line-height: 18px; text-align: center; border-radius: 9px; }

/* ---------- 51.7 상세 — 핵심 숫자 상자 · 조건 표 · 오른쪽 행동 카드 · 팁 카드 ---------- */
.kboxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kbox { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-btn); }
.kbox .icon { flex: none; width: 18px; height: 18px; stroke-width: 1.9; color: var(--muted); }
.kbox-l { font-size: var(--fs-13); color: var(--muted); }
.kbox-v { margin-left: auto; font-size: var(--fs-17); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: var(--fs-14); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.kv dd em { font-style: normal; color: var(--danger); font-weight: 700; }
.act-card { display: grid; gap: 8px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.act-card .btn { width: 100%; }
.act-stats { display: flex; justify-content: center; gap: 14px; margin-top: 4px; font-size: var(--fs-12); color: var(--muted); }
.act-stats span { display: inline-flex; align-items: center; gap: 4px; }
.act-stats .icon { width: 13px; height: 13px; stroke-width: 2; }
.who-card { display: grid; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.who-head { display: flex; align-items: center; gap: 10px; }
.who-head b { font-size: var(--fs-15); }
.who-card .kv { grid-template-columns: 1fr auto; gap: 8px; font-size: var(--fs-13); }
.who-card .kv dd { text-align: right; font-weight: 700; }
.tip-card { display: grid; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.tip { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.tip:first-child { padding-top: 0; border-top: 0; }
.tip-t { display: flex; align-items: center; gap: 6px; font-size: var(--fs-14); font-weight: 800; color: var(--ink); }
.tip-t .icon { width: 16px; height: 16px; stroke-width: 2; color: #c98f00; --duo: #fff1c9; }
.tip p { font-size: var(--fs-13); line-height: 1.65; color: var(--muted); }

/* ---------- 51.8 한 페이지 폼 블록 .fblock (위시켓 제안서 작성형) ----------
   제목(*) → 설명 1~2줄 → [주의 상자] → 입력 → 도움말 · 글자 수. 블록 사이 36px, 선 없음 */
.fblock { display: grid; gap: 10px; }
.fblock + .fblock { margin-top: 36px; }
.fblock-t { font-size: var(--fs-17); font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.fblock-t .req { color: var(--danger); margin-left: 2px; }
.fblock-d { margin-top: -4px; font-size: var(--fs-14); line-height: 1.65; color: var(--muted); }
.fblock-help { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-12); color: var(--muted-2); }
.fblock .input.w-s { max-width: 240px; }
.fsum { display: grid; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.fsum-t { font-size: var(--fs-20); font-weight: 800; letter-spacing: -.05em; }
.fsum-figs { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 14px; background: var(--page); border-radius: var(--r-btn); font-size: var(--fs-13); color: var(--muted); }
.fsum-figs b { margin-left: 6px; color: var(--ink); }
.fsum-body { font-size: var(--fs-14); line-height: 1.75; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fsum-more .icon { width: 13px; height: 13px; stroke-width: 2.2; vertical-align: -2px; }
.fsum-more { justify-self: start; font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 51.9 디자인 시스템 화면 v2 배치 ---------- */
.ui2 .ds-sec { border-radius: var(--r-card); }
.ui2 .ds-nav a { border-radius: var(--r-btn); }
.ui2 .ds-nav a:hover { background: #fff; }
.ds-scale { display: grid; gap: 10px; }
.ds-scale > div { display: grid; grid-template-columns: 90px 60px minmax(0, 1fr); align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.ds-scale code { font-size: var(--fs-12); font-family: ui-monospace, Consolas, monospace; color: var(--ink-2); }
.ds-pair { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ds-pair > div { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-btn); font-size: var(--fs-13); font-weight: 700; }
.ds-pair code { font-size: 11px; font-weight: 600; opacity: .8; font-family: ui-monospace, Consolas, monospace; }
.ds-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.ds-decide { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.ds-decide th, .ds-decide td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; line-height: 1.6; }
.ds-decide th { width: 150px; color: var(--ink); font-weight: 800; background: #f9fafb; }
.ds-decide td.was { color: var(--muted); width: 32%; }
.ds-decide td.now { color: var(--ink); font-weight: 600; }

@media (max-width: 960px) {
  .pcard { grid-template-columns: 1fr; }
  .pcard-side { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line-2); grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 18px; }
  .pcard-who { grid-column: 1 / -1; }
  .ds-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .kboxes { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 96px minmax(0, 1fr); }
  .pcard { padding: 18px; }
}

/* =========================================================
   52. v2 시안 2차 (2026-10-25) — 닥터페이지 시그니처 · Phosphor 아이콘 비교 · 알림 개선안
       · 지금은 design.php 견본에서만 쓴다. 확정되면 각 화면에 적용
   ========================================================= */

/* ---------- 52.1 Phosphor 아이콘 (채움형 경로) — 우리 .icon 은 선 기준이라 채움으로 바꿔 쓴다 ---------- */
.icon.icon-ph { fill: currentColor; stroke: none; }

/* ---------- 52.2 시그니처 ① 도면 격자 — 인테리어 도면 모눈. 어두운 머리 띠 · 요약 카드 바탕 ---------- */
.bp-grid {
  background-color: #0e1a33;
  background-image:
    linear-gradient(rgba(120, 160, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .09) 1px, transparent 1px),
    linear-gradient(rgba(120, 160, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .045) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  color: #fff;
}
.bp-grid-light {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(31, 94, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 94, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bp-hero { padding: 30px 32px; border-radius: var(--r-card); }
.bp-hero .eb { font-size: var(--fs-12); font-weight: 700; letter-spacing: .14em; color: #8fb0ff; }
.bp-hero h3 { margin-top: 8px; font-size: var(--fs-24); font-weight: 800; letter-spacing: -.05em; }
.bp-hero p { margin-top: 6px; font-size: var(--fs-14); color: rgba(255, 255, 255, .66); }
.bp-hero .bp-figs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.bp-hero .bp-figs > div { padding: 14px 26px 0 0; margin-right: 26px; border-right: 1px solid rgba(255, 255, 255, .12); }
.bp-hero .bp-figs > div:last-child { border-right: 0; }
.bp-hero .bp-figs b { display: block; font-size: var(--fs-20); font-weight: 800; letter-spacing: -.04em; }
.bp-hero .bp-figs span { font-size: var(--fs-12); color: rgba(255, 255, 255, .55); }

/* ---------- 52.3 시그니처 ② 치수선 숫자 — 도면의 치수 표기처럼 숫자 아래 양 끝 눈금이 있는 선 ---------- */
.dim { display: inline-grid; justify-items: center; gap: 6px; }
.dim-v { font-size: var(--fs-20); font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.dim-v small { margin-left: 2px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
.dim-line { position: relative; width: 100%; min-width: 80px; height: 9px; }
.dim-line::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--brass-3); }
.dim-line::after { content: ""; position: absolute; inset: 0; border-left: 1px solid var(--brass-3); border-right: 1px solid var(--brass-3); }
.dim-l { font-size: var(--fs-12); color: var(--muted); }

/* ---------- 52.4 시그니처 ③ 모집 링 — 모집 기간 중 남은 몫을 원으로 (D-7 / 14일) ---------- */
.ring { --p: 50; --c: var(--brass); position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e8edf7 0); }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-size: var(--fs-14); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.ring.is-soon { --c: var(--danger); }
.ring-sm { width: 44px; height: 44px; }
.ring-sm::before { inset: 4px; }
.ring-sm b { font-size: var(--fs-12); }

/* ---------- 52.5 시그니처 ④ 예산 막대 — 의원 예산 범위 위에 제안 금액 위치 (받은 제안 비교) ---------- */
.bbar { display: grid; gap: 6px; }
.bbar-track { position: relative; height: 8px; border-radius: 4px; background: #eef1f5; }
.bbar-range { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #cddbff; }
.bbar-mark { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(16, 24, 40, .25); }
.bbar-mark.is-over { background: var(--danger); }
.bbar-lbl { display: flex; justify-content: space-between; font-size: var(--fs-12); color: var(--muted); }

/* ---------- 52.6 알림 확정안 — 굵은 듀오톤 아이콘 30 · 할 일 버튼 · 중요한 알림 강조 (49.6 을 덮는다) ---------- */
.noti { align-items: center; padding-top: 18px; padding-bottom: 18px; }
.noti-dot { top: 50%; margin-top: -4px; }
.noti-ico { width: 40px; height: 40px; margin-top: 0; }
.noti-ico .icon { width: 30px; height: 30px; }
.noti-act { flex: none; margin-left: 12px; }
.noti.is-hl-ok { background: linear-gradient(90deg, var(--ok-bg), #f6fef9 60%, #fff); }
.noti.is-hl-ok:hover { background: linear-gradient(90deg, #dcfae6, #f0fdf4 60%, #fff); }
.noti.is-hl-ok .noti-title { color: var(--ok-ink); font-size: var(--fs-15); }
.noti.is-hl-ok .noti-ico .icon { width: 34px; height: 34px; animation: hlPop 4.6s var(--spring) 1s infinite; }
@keyframes hlPop { 0%, 86%, 100% { transform: none; } 90% { transform: translateY(-5px) scale(1.06); } 94% { transform: translateY(0) scale(.97); } }
.noti.is-hl-warn { background: linear-gradient(90deg, var(--warn-bg), #fffdf5 60%, #fff); }
.noti.is-hl-warn:hover { background: linear-gradient(90deg, #fef0c7, #fffaeb 60%, #fff); }
/* 헤더 패널은 좁으니 작게, 버튼 없음 */
.noti-pop-list .noti { padding-top: 13px; padding-bottom: 13px; }
.noti-pop-list .noti-ico { width: 30px; height: 30px; }
.noti-pop-list .noti-ico .icon, .noti-pop-list .noti.is-hl-ok .noti-ico .icon { width: 24px; height: 24px; }

/* 비교 표 */
.ic-compare { width: 100%; border-collapse: collapse; }
.ic-compare th { padding: 10px 8px; font-size: var(--fs-12); font-weight: 700; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.ic-compare th:first-child { text-align: left; }
.ic-compare td { padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--line-2); }
.ic-compare td:first-child { text-align: left; font-size: var(--fs-13); color: var(--ink-2); }
.ic-compare .icon { width: 30px; height: 30px; color: var(--brass); }
.ic-compare .icon:not(.icon-ph) { stroke-width: 1.6; --duo: var(--brass-soft); }
.ic-compare tr.is-ok .icon { color: var(--ok); }
.ic-compare tr.is-warn .icon { color: #c98f00; }
.ic-compare tr.is-err .icon { color: var(--danger); }
.ic-compare th.is-pick, .ic-compare td.is-pick { background: var(--info-bg); }

@media (prefers-reduced-motion: reduce) { .noti.is-hl-ok .noti-ico .icon { animation: none; } }

/* =========================================================
   53. 아이콘 = Phosphor (2026-10-25 확정) — 채움형 경로라 선 대신 면을 칠한다
       굵기: 기본 Bold · .icon-duo Duotone · .icon-fill Fill (lib/view.php icon() 이 고른다)
       예전 Lucide 용 stroke-width · --duo 지정은 남아 있어도 영향 없음
   ========================================================= */
.icon { fill: currentColor; stroke: none; }

/* 표 — 제목 · 내용 모두 가운데(v2). 긴 글이 들어가는 칸만 .ta-l 로 왼쪽 */
.ui2 .table thead th, .ui2 .table tbody td, .ui2 .ds-decide th { text-align: center; }
.ui2 .table .ta-l { text-align: left; }

/* ---------- 53.1 머리 띠 배경 3안 (도면 모눈 대체 검토) ---------- */
.hb { padding: 30px 32px; border-radius: var(--r-card); }
.hb .eb { font-size: var(--fs-12); font-weight: 700; letter-spacing: .14em; }
.hb h3 { margin-top: 8px; font-size: var(--fs-24); font-weight: 800; letter-spacing: -.05em; }
.hb .hb-sub { margin-top: 6px; font-size: var(--fs-14); }
.hb-figs { display: flex; flex-wrap: wrap; margin-top: 22px; padding-top: 2px; }
.hb-figs > div { padding: 14px 26px 0 0; margin-right: 26px; border-right: 1px solid; }
.hb-figs > div:last-child { border-right: 0; }
.hb-figs b { display: block; font-size: var(--fs-20); font-weight: 800; letter-spacing: -.04em; }
.hb-figs span { font-size: var(--fs-12); }
/* A. 단색 남색 — 무늬 없음, 숫자 줄 위 얇은 선 하나 */
.hb-navy { background: #13213f; color: #fff; }
.hb-navy .eb { color: #8fb0ff; } .hb-navy .hb-sub, .hb-navy .hb-figs span { color: rgba(255, 255, 255, .62); }
.hb-navy .hb-figs { border-top: 1px solid rgba(255, 255, 255, .16); }
.hb-navy .hb-figs > div { border-color: rgba(255, 255, 255, .14); }
/* B. 흰 카드 + 옅은 회청 띠 — 정보 중심, 가장 차분 */
.hb-calm { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.hb-calm .eb { color: var(--brass); } .hb-calm .hb-sub, .hb-calm .hb-figs span { color: var(--muted); }
.hb-calm .hb-figs { margin: 22px -32px -30px; padding: 4px 32px 18px; background: #f4f7fb; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); }
.hb-calm .hb-figs > div { border-color: var(--line-strong); }
/* C. 의원 인테리어 사진 + 어둡게 — 메인 · 완료 화면 같은 감성 구간 */
.hb-photo { position: relative; overflow: hidden; color: #fff; background: #1b2232 center / cover no-repeat; }
.hb-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 30, .86) 0%, rgba(10, 16, 30, .62) 55%, rgba(10, 16, 30, .35) 100%); }
.hb-photo > * { position: relative; }
.hb-photo .eb { color: #a9c1ff; } .hb-photo .hb-sub, .hb-photo .hb-figs span { color: rgba(255, 255, 255, .7); }
.hb-photo .hb-figs { border-top: 1px solid rgba(255, 255, 255, .2); }
.hb-photo .hb-figs > div { border-color: rgba(255, 255, 255, .16); }

/* =========================================================
   54. 2026-10-25 정리 — 여백이 사라진 카드 · 사이드 패널, 모집 링 다시 그리기
   ========================================================= */

/* ---------- 54.1 카드 · 사이드 패널 안쪽 여백 (사이트 전체) ----------
   원인: 15.3 이 카드를 "윗선 + 위쪽 여백만"(좌우 · 아래 0)으로 바꿨는데, 29.3 이 네 변 테두리를 되살리면서
   여백은 그대로 남아 글 · 버튼이 테두리에 붙어 보였다 (레퍼런스 대표 사례 · 로그인 · 파트너 · 이용안내 등).
   15.4 의 aside 패널 좌우 0 도 같은 이유로 사이드 패널(요청서 상세 오른쪽 등) 글이 테두리에 붙었다 */
.card { padding: 24px; }
.card.card-pad-lg { padding: 32px; }
.card.card-flat { padding: 18px 20px; }
aside .panel-hd, aside .panel-ft { padding-inline: 20px; }
aside .panel-bd { padding-inline: 20px; }
aside .panel-bd-flush { padding: 0; }
@media (max-width: 760px) {
  .card, .card.card-pad-lg { padding: 20px; }
}

/* ---------- 54.2 모집 링 .ring2 (ring_html()) — 52.4 .ring 대체 ----------
   둥근 끝의 두꺼운 호 + 가운데 D-n(굵게) · 아래 작은 설명. 3일 이하는 붉게, 마감은 회색 */
.ring2 { --p: 50; position: relative; display: inline-grid; flex: none; width: 76px; height: 76px; }
.ring2 svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring2 .trk { fill: none; stroke: #e8eef8; stroke-width: 6; }
.ring2 .bar { fill: none; stroke: var(--brass); stroke-width: 6; stroke-linecap: round; stroke-dasharray: var(--p) 100; transition: stroke-dasharray .8s var(--ease-out); }
.ring2.is-soon .trk { stroke: #fde3e3; }
.ring2.is-soon .bar { stroke: var(--danger); }
.ring2.is-end .bar { stroke: transparent; }
.ring2 .in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring2 .in b { font-size: var(--fs-17); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); }
.ring2.is-soon .in b { color: var(--danger); }
.ring2.is-end .in b { color: var(--muted); }
.ring2 .in span { margin-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.ring2-lg { width: 96px; height: 96px; }
.ring2-lg .in b { font-size: var(--fs-20); }
.ring2-lg .in span { font-size: var(--fs-11); }
.ring2-sm { width: 60px; height: 60px; }
.ring2-sm .in b { font-size: var(--fs-14); }
.ring2-sm .in span { font-size: 10px; }
/* ---------- 54.3 선택 표시 위치 · 모양 통일 ----------
   글자 선택지(.pick-row)의 라디오가 왼쪽 위 모서리(14px)에 떠 있던 것 → 세로 가운데.
   확인 선택(.choice)은 브라우저 기본 체크박스였던 것 → 선택지와 같은 18px 사용자 정의 상자(제목 줄에 맞춤) */
.pick-row input { top: 50%; margin-top: -9px; left: 16px; }
.choice { align-items: flex-start; gap: 12px; }
.choice input {
  appearance: none; -webkit-appearance: none; position: relative; flex: none;
  width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid #c9cfd6; border-radius: 4px; background: #fff; cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.choice input::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg) scale(.4); opacity: 0;
  transition: opacity var(--t-fast) var(--ease), transform .32s var(--spring);
}
.choice input:checked { background: var(--brass); border-color: var(--brass); }
.choice input:checked::after { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
.choice input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.choice-t { line-height: 1.45; }
.is-invalid .choice input, .choice.is-invalid input { border-color: var(--danger); }

/* 디자인 시스템 화면의 클래스 이름 표기도 Pretendard (고정폭 글꼴 쓰지 않음) */
.ds-body code { font-family: var(--sans) !important; letter-spacing: -.01em; }

/* =========================================================
   55. 마감 표시 .ddl (deadline_html) · 정렬 방향 버튼 — 2026-10-25
       (54.2 모집 링은 폐기 — 완성도 문제. 남은 기간이 '줄어드는' 막대로 대체)
   ========================================================= */
.ddl { display: grid; gap: 7px; }
.ddl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ddl-d { font-size: var(--fs-20); font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.ddl-at { font-size: var(--fs-12); color: var(--muted); white-space: nowrap; }
.ddl-bar { height: 4px; border-radius: 2px; background: #e9edf3; overflow: hidden; }
.ddl-bar i { display: block; height: 100%; border-radius: 2px; background: var(--brass); transform-origin: left center; transform: scaleX(var(--s, 1)); animation: ddlShrink 1.1s var(--ease-out) .15s both; }
@keyframes ddlShrink { from { transform: scaleX(1); } }   /* 처음엔 가득 → 지금 남은 몫까지 줄어든다 */
.ddl-left { display: flex; align-items: center; gap: 5px; font-size: var(--fs-12); font-weight: 600; color: var(--ink-2); }
.ddl-left .icon { width: 13px; height: 13px; color: var(--muted); }
.ddl.is-soon .ddl-d, .ddl.is-urgent .ddl-d { color: var(--danger); }
.ddl.is-soon .ddl-bar i, .ddl.is-urgent .ddl-bar i { background: var(--danger); }
.ddl.is-urgent .ddl-left, .ddl.is-urgent .ddl-left .icon { color: var(--danger); }
.ddl.is-urgent .ddl-left .icon { animation: ddlTick 1s steps(2, jump-none) infinite; }
@keyframes ddlTick { 50% { transform: rotate(14deg); } }
.ddl.is-end .ddl-d { color: var(--muted); }
.ddl.is-end .ddl-bar i { background: transparent; }
.ddl.is-end .ddl-left { color: var(--muted); }
/* 목록 카드 오른쪽 칸 맨 위 */
.pcard-side .ddl { padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line-2); }
.pcard-side .ddl-left { display: flex; }

/* 정렬 버튼 — 선택된 정렬에 방향 화살표, 한 번 더 누르면 반대로 (main.js 20. [data-sort-dir]) */
.sorttab { display: inline-flex; align-items: center; gap: 4px; }
.sorttab .sort-ic { width: 13px; height: 13px; opacity: 0; transform: translateY(1px); transition: opacity var(--t-fast) var(--ease), transform .32s var(--spring); }
.sorttab:hover .sort-ic { opacity: .4; }
.sorttab.is-on .sort-ic { opacity: 1; color: var(--brass); }
.sorttab.is-on[data-dir="asc"] .sort-ic { transform: translateY(1px) rotate(180deg); }
.sorttab.is-on { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .ddl-bar i, .ddl.is-urgent .ddl-left .icon { animation: none; } }

/* =========================================================
   56. v2 사이트 전체 적용 (2026-10-25, 1단계) — 레이아웃 body 에 ui2 를 붙이면서 어긋나는 곳 정리
   ========================================================= */
/* 메인(사진 머리 · 시안 화면)은 흰 바탕 유지 — 구조 개편은 5-4 */
body.ui2.has-hero { background: var(--bg); }
/* 마법사 화면은 자체 회색 대신 공통 바탕 */
.ui2 .wz-page { background: transparent; }
/* 어두운 머리 위 버튼 — .ui2 .btn 의 투명 테두리가 덮던 것 되살림 */
.ui2 .btn-on-deep { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.ui2 .btn-on-deep:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff; }
/* 카드 · 관리자 섹션 모서리 */
.ui2 .card { border-radius: var(--r-card) !important; }
body.adm.ui2 { background: var(--page); }
.ui2 .adm-sec, .ui2 .adm-stat { border-radius: var(--r-card); }
.ui2 .adm-tabs a { border-radius: var(--r-btn); }
/* 관리자 표는 원래 가운데 — 긴 글 칸은 .ta-l 그대로 */
.adm .table thead th { text-align: center; }

/* =========================================================
   57. 제안요청 찾기 v2 (2026-10-25, 2단계) — main.sfv2
       18 · 19절(시안 필터 바 · 역할 띠 · .pj 카드)을 이 화면에서 v2 로 덮는다. 스마트 필터 훅(data-sf-*)은 그대로
   ========================================================= */
/* 머리 오른쪽: 숫자 3개 + (비회원) 로그인 · 가입 */
.lh-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.lh-stats { display: flex; gap: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.lh-stats > div { display: grid; gap: 2px; padding: 12px 20px; border-left: 1px solid var(--line-2); text-align: center; }
.lh-stats > div:first-child { border-left: 0; }
.lh-stats dt { font-size: var(--fs-12); color: var(--muted); }
.lh-stats dd { margin: 0; font-size: var(--fs-20); font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.lh-acts { display: flex; gap: 8px; }

.sf-sec { padding-top: 12px; }
/* 필터 카드 */
.sfv2 .fbar { padding: 16px 20px 14px; background: #fff; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--r-card); }
.sfv2 .fbar-main { gap: 8px; }
.sfv2 .fbar-search { flex: 1 1 300px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: #fff; transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.sfv2 .fbar-search:focus-within { border-color: var(--brass); box-shadow: var(--focus); }
.sfv2 .fbar-search .icon { width: 17px; height: 17px; color: var(--muted); flex: none; }
.sfv2 .fbar-search input { font-size: var(--fs-15); }
.sfv2 .fdrop-btn { height: 44px; padding: 0 12px 0 14px; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: #fff; font-size: var(--fs-14); color: var(--ink-2); }
.sfv2 .fdrop-btn:hover { border-color: #98a2b3; color: var(--ink); }
.sfv2 .fdrop-cv { width: 14px; height: 14px; color: var(--muted); transition: transform .4s var(--spring); }
.sfv2 .fdrop.is-open .fdrop-btn { border-color: var(--brass); box-shadow: var(--focus); color: var(--ink); }
.sfv2 .fdrop.is-open .fdrop-cv { transform: rotate(180deg); color: var(--brass); }
.sfv2 .fdrop-btn .cnt { min-width: 18px; height: 18px; border-radius: 9px; font-size: var(--fs-11); }
.sfv2 .fdrop.has-sel .fdrop-btn { border-color: var(--brass); background: var(--info-bg); color: var(--brass-2); }
.sfv2 .fdrop-panel { top: calc(100% + 8px); padding: 10px; border: 1px solid var(--line); border-radius: var(--r-pop); box-shadow: var(--sh-pop); animation: reqPop .32s var(--spring); }
.sfv2 .fdrop-range input { height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); }
.sfv2 .fdrop-range input:focus { border-color: var(--brass); box-shadow: var(--focus); }
.sfv2 .fdrop-panel hr { border: 0; border-top: 1px solid var(--line-2); }
/* 빠른 필터 = 필터 칩 */
.sfv2 .fbar-quick { gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.sfv2 .qf { height: 34px; padding: 0 14px; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: var(--fs-13); color: var(--ink-2); }
.sfv2 .qf .icon { width: 14px; height: 14px; color: var(--muted); }
.sfv2 .qf:hover { border-color: #98a2b3; color: var(--ink); }
.sfv2 .qf.is-on { background: var(--info-bg); border-color: var(--brass); color: var(--brass-2); }
.sfv2 .qf.is-on .icon { color: var(--brass); }
.sfv2 .qf .n { font-size: var(--fs-11); color: var(--muted-2); }
.sfv2 .qf.is-on .n { color: var(--brass); }
.sfv2 .qf.is-zero { opacity: .45; }
.sfv2 .fbar-more { height: 34px; gap: 6px; font-size: var(--fs-13); color: var(--brass-2); }
.sfv2 .fbar-more .icon { width: 15px; height: 15px; }
.sfv2 .fadv-in { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.sfv2 .fadv-g > p { font-size: var(--fs-12); color: var(--ink-2); }

/* 적용된 조건 */
.sfv2 .sf-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.sfv2 .sf-applied:empty { display: none; }
.sfv2 .sf-applied .lbl { margin-right: 4px; font-size: var(--fs-12); font-weight: 700; color: var(--muted); }
.sfv2 .sf-tag { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px 0 11px; border: 1px solid #c7d7fe; border-radius: 999px; background: var(--info-bg); color: var(--brass-2); font-size: var(--fs-12); font-weight: 700; }
.sfv2 .sf-tag button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; opacity: .7; }
.sfv2 .sf-tag button:hover { opacity: 1; background: rgba(31, 94, 255, .12); }
.sfv2 .sf-tag .icon { width: 11px; height: 11px; }
.sfv2 .sf-clear { margin-left: 6px; font-size: var(--fs-12); font-weight: 600; color: var(--muted); }

/* 도구줄 · 목록 */
.sfv2 .ltool { margin: 22px 0 12px; }
.sfv2 .ltool-n { font-size: var(--fs-15); font-weight: 600; color: var(--ink-2); }
.sfv2 .ltool-n b { font-size: var(--fs-17); font-weight: 800; color: var(--ink); }
.sfv2 .ltool-all { font-size: var(--fs-13); color: var(--muted); font-weight: 500; }
.sfv2 .sf-list .pcard[hidden] { display: none; }
.sfv2 .sf-list { display: grid; gap: 12px; }
.sfv2 .sf-list .pcard + .pcard { margin-top: 0; }
.sf-clinic { display: flex; align-items: center; gap: 6px; margin-top: 22px; font-size: var(--fs-13); color: var(--muted); }
.sf-clinic .icon { width: 16px; height: 16px; color: var(--brass); }
.sf-clinic a { color: var(--brass-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 57.1 필터 한 줄 (검색창 폐지) — 드롭다운 6 | 켜고 끄는 조건 4 ---------- */
.sfv2 .fbar.fbar-line { padding: 12px 14px; }
/* 1200 폭에서 한 줄에 들어간다. 좁은 화면에서는 자연스럽게 다음 줄로 (가로 스크롤은 펼친 목록을 잘라서 쓰지 않음) */
.sfv2 .fbar-line .fbar-main { flex-wrap: wrap; gap: 6px; }
.sfv2 .fbar-line .fdrop { flex: none; }
.sfv2 .fbar-line .fdrop-btn { height: 38px; padding: 0 10px 0 13px; border-radius: 999px; font-size: var(--fs-13); }
.sfv2 .fbar-line .qf { flex: none; height: 38px; }
.sfv2 .fbar-sep { flex: none; width: 1px; height: 22px; margin: 0 6px; background: var(--line); }
.sfv2 .fbar-line .fbar-main > .fdrop:nth-child(n+5) .fdrop-panel { left: auto; right: 0; }

/* ---------- 57.2 카드 왼쪽 요구사항 2줄 · 오른쪽 숫자 한 줄 ---------- */
.pcard-d { font-size: var(--fs-14); line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.pcard-side .pcard-stats { display: flex; gap: 16px; }
.pcard-stats span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 960px) {
  .lh-side { align-items: stretch; width: 100%; }
  .lh-stats > div { flex: 1; }
}
@media (max-width: 700px) {
  .sfv2 .fbar { padding: 12px; }
  .sfv2 .fbar-sep { display: none; }
  .sfv2 .fbar-line .fdrop { flex: 1 1 auto; }
  .sfv2 .fbar-line .fdrop-btn { width: 100%; justify-content: space-between; }
  .sfv2 .ltool { flex-direction: column; align-items: flex-start; }
  .sfv2 .sorttabs { overflow-x: auto; max-width: 100%; }
}

/* =========================================================
   58. v2 화면 개편 3~6단계 (2026-10-25) — 요청서 상세 · 제안서 작성(한 페이지) · 받은 제안 · 내 요청 · 내 제안 · 제안서 상세
   ========================================================= */
/* 머리 띠가 없는 화면은 고정 헤더 아래에서 시작 */
.hb-wrap, .pwv2 .pw-sec, .done-wrap { padding-top: calc(var(--header-h) + var(--topbar-h) + 26px); }
.done-wrap { max-width: 780px; margin: 0 auto; padding-bottom: 60px; }

/* ---------- 58.1 머리 띠 조각 (hb-head) ---------- */
.hb-wrap { padding-bottom: 18px; }
.hb-wrap .crumb { color: var(--muted); }
.hb-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hb-main { min-width: 0; flex: 1; }
.hb-title { margin-top: 6px; font-size: var(--fs-24); font-weight: 800; letter-spacing: -.05em; line-height: 1.35; color: var(--ink); }
.hb-aside { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-calm .hb-figs > div.is-soon b { color: var(--danger); }
.hb-calm .hb-figs b { font-size: var(--fs-20); }

/* 목차 막대 · 오른쪽 쌓기 */
.ui2 .subnav { border-top: 1px solid var(--line); }
.ui2 .subnav a .icon { width: 14px; height: 14px; vertical-align: -2px; }
.side-stack { display: grid; gap: 12px; }
.side-t { font-size: var(--fs-15); font-weight: 800; color: var(--ink); }
.act-card .ddl { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.act-mine { display: grid; gap: 6px; padding: 12px; background: var(--page); border-radius: var(--r-btn); }
.act-mine p { font-size: var(--fs-13); color: var(--muted); }
.act-mine b { font-size: var(--fs-17); color: var(--ink); }
.who-card .notice { font-size: var(--fs-13); }
.who-card .kv dd { word-break: break-all; }
.ui2 .actionbar { border-radius: var(--r-card); }

/* ---------- 58.2 제안서 작성 — 한 페이지 폼 ---------- */
.pw-title { margin: 6px 0 18px; font-size: var(--fs-24); font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
.pw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.pw-form { padding: 28px 32px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.pw-form .fsum { margin-bottom: 36px; background: var(--page); border-color: var(--line); }
.pw-form .fsum .fsum-figs { background: #fff; }
.fsum-note { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--muted); }
.fsum-note .icon { width: 15px; height: 15px; color: var(--brass); }
label.fblock-t { display: block; cursor: pointer; }
.fblock-n { margin-left: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
.fblock .field { margin: 0; }
.pw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.pw-co { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--page); border-radius: var(--r-btn); }
.pw-co > div { flex: 1; min-width: 0; }
.pw-co b { font-size: var(--fs-15); }
.pw-foot { display: flex; justify-content: flex-end; gap: 8px; margin: 36px -32px 0; padding: 18px 32px; background: #f9fafb; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); }
.pw-side .act-card p { line-height: 1.6; }

/* ---------- 58.3 받은 제안 비교 카드 (.pcard.prop2) ---------- */
.prop2-list, .mlist { display: grid; gap: 12px; }
.pcard.is-selected { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); background: #fbfcff; }
.pcard.is-dead { opacity: .55; }
.pcard.is-dead:hover { opacity: 1; }
.prop2-who { display: flex; align-items: center; gap: 12px; }
.prop2-who .pcard-t { font-size: var(--fs-17); }
.prop2 .pcard-badges .icon { width: 12px; height: 12px; }
.prop2 .bbar { margin-top: 2px; max-width: 520px; }
.prop2-side { gap: 10px; }
.prop2-amt { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.prop2-amt .l { font-size: var(--fs-12); color: var(--muted); }
.prop2-amt .l span { color: var(--muted-2); }
.prop2-amt .v { font-size: var(--fs-24); font-weight: 800; letter-spacing: -.05em; color: var(--ink); line-height: 1.2; }
.prop2-amt .vs { font-size: var(--fs-12); }
.prop2-side .btn { width: 100%; }
.prop2-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.prop2-acts form, .prop2-acts details { margin: 0; }
.prop2-acts .btn, .prop2-acts summary.btn { width: 100%; }
.prop2-acts .sel-confirm form { right: 0; width: 300px; }

/* 선정한 시공사 */
.sel2 { padding: 22px 24px; background: #fff; border: 1px solid var(--brass); box-shadow: inset 0 0 0 1px var(--brass); border-radius: var(--r-card); }
.sel2-main { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sel2-ico { width: 48px; height: 48px; color: var(--ok); flex: none; }
.sel2-eb { font-size: var(--fs-12); font-weight: 700; color: var(--ok-ink); }
.sel2-name { font-size: var(--fs-20); font-weight: 800; letter-spacing: -.05em; }
.sel2-figs { display: flex; gap: 28px; margin: 0 0 0 auto; }
.sel2-figs div { display: grid; gap: 2px; }
.sel2-figs dt { font-size: var(--fs-12); color: var(--muted); }
.sel2-figs dd { margin: 0; font-size: var(--fs-17); font-weight: 800; }
.sel2-contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 20px; margin: 18px 0 0; padding: 14px 16px; background: var(--page); border-radius: var(--r-btn); }
.sel2-contact dt { font-size: var(--fs-12); color: var(--muted); }
.sel2-contact dd { margin: 2px 0 0; font-size: var(--fs-14); font-weight: 700; word-break: break-all; }
.sel2-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- 58.4 내 요청 · 내 제안 카드 (.pcard.mcard) ---------- */
.mcard .notice { margin-top: 4px; font-size: var(--fs-13); }
.mcard-note { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--muted); }
.mcard-note .icon { width: 15px; height: 15px; }
.mcard-side { gap: 8px; }
.mcard-side .btn, .mcard-side summary.btn { width: 100%; }
.mcard-side details { position: relative; }
.mcard-side .req-confirm form { right: 0; }
.mcard .pcard-t a:hover { color: var(--brass-2); }

/* ---------- 58.4+ 오른쪽 칸 따라 내려오기 ----------
   그리드가 align-items: start 라 aside 높이가 내용만큼이어서 sticky 가 움직일 공간이 없었다 → aside 를 행 높이만큼 늘린다 */
.layout-side > aside, .pw-grid > .pw-side { align-self: stretch; }
/* 목차 막대(subnav)가 있는 화면은 막대도 따라 내려오므로, 오른쪽 칸은 그 아래에 붙는다
   (요청서 상세 · 레퍼런스 상세 · 이용안내 — 목차 막대 높이 약 50px + 여유) */
.pdv2 .layout-side .sticky,
.subnav ~ section .sticky { top: calc(var(--header-h) + var(--topbar-h) + var(--status-h, 0px) + 72px); }

/* ---------- 58.4++ 토글 스위치 .switch (문의 공개 · 비공개) ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: #d0d5dd; transition: background var(--t-base) var(--ease); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transition: transform .32s var(--spring); }
.switch input:checked + .switch-track { background: var(--brass); }
.switch input:checked + .switch-track .switch-knob { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--focus); }
.switch-t { font-size: var(--fs-14); font-weight: 700; color: var(--ink); }
.switch-d { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); color: var(--muted); }
.switch-d .icon { width: 13px; height: 13px; }
.switch .switch-d.is-on { display: none; color: var(--brass-2); font-weight: 600; }
.switch:has(input:checked) .switch-d.is-on { display: inline-flex; }
.switch:has(input:checked) .switch-d.is-off { display: none; }

/* ---------- 58.4+++ 가로 체크 항목 .pick-mini (업무 범위 · 미팅 방식, 여러 개 선택) ----------
   1단계의 큰 아이콘 타일(맡기는 방식, 1개 선택)과 헷갈리지 않게: 작은 아이콘 + 글자 + 오른쪽 네모 체크, 한 줄에 4개 */
.pick-minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pick-mini {
  position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-btn); cursor: pointer;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.pick-mini input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-mini .icon.pick-mini-ic { width: 20px; height: 20px; color: var(--muted); flex: none; transition: color var(--t-fast) var(--ease); }
.pick-mini-t { flex: 1; min-width: 0; font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); }
.pick-mini-ck { position: relative; flex: none; width: 18px; height: 18px; border: 1.5px solid #c9cfd6; border-radius: 4px; background: #fff; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.pick-mini-ck::after { content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -50%) rotate(-45deg) scale(.4); opacity: 0; transition: opacity var(--t-fast) var(--ease), transform .32s var(--spring); }
.pick-mini:hover { border-color: var(--brass-3); background: var(--tint); }
.pick-mini:has(input:checked) { border-color: var(--brass); background: var(--info-bg); box-shadow: inset 0 0 0 1px var(--brass); }
.pick-mini:has(input:checked) .pick-mini-ic { color: var(--brass); }
.pick-mini:has(input:checked) .pick-mini-t { color: var(--brass-2); font-weight: 700; }
.pick-mini:has(input:checked) .pick-mini-ck { background: var(--brass); border-color: var(--brass); }
.pick-mini:has(input:checked) .pick-mini-ck::after { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
.pick-mini:has(input:focus-visible) { box-shadow: var(--focus); }
.q.is-invalid .pick-mini { border-color: #f3b5bc; }

/* 질문 옆 '1개 선택 · 여러 개 선택' */
.q-tag { margin-left: 4px; padding: 2px 7px; border-radius: var(--r-tag); background: var(--mute-bg); color: var(--mute-ink); font-size: var(--fs-11); font-weight: 700; letter-spacing: -.01em; }
.q-tag.is-many { background: var(--info-bg); color: var(--brass-2); }

@media (max-width: 760px) { .pick-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 58.5 견적 요청 작성(마법사) 다듬기 ---------- */
.ui2 .wz-ft { background: #f9fafb; }
.ui2 .wz-rail .wz-back .icon, .ui2 .wz-back .icon { width: 15px; height: 15px; vertical-align: -2px; }
.ui2 .q-note .icon { width: 15px; height: 15px; color: var(--brass); vertical-align: -3px; }

@media (max-width: 960px) {
  .pw-grid { grid-template-columns: 1fr; }
  .pw-side { order: -1; }
  .sel2-figs { margin-left: 0; }
  .sel2-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pw-form { padding: 20px 18px 0; }
  .pw-foot { margin: 28px -18px 0; padding: 14px 18px; }
  .pw-two { grid-template-columns: 1fr; }
  .hb-aside { width: 100%; }
  .hb-aside .btn { width: 100%; }
}

/* =========================================================
   59. 로그인 v2 (2026-10-25) — 나눔 배치: 왼쪽 사진 + 소개 / 오른쪽 폼
   ========================================================= */
.auth2-sec { padding: calc(var(--header-h) + var(--topbar-h) + 36px) 0 40px; }
.auth2-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 620px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }

/* 왼쪽 사진 */
.auth2-art { position: relative; background: #1b2232 center / cover no-repeat; }
.auth2-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 30, .15) 0%, rgba(10, 16, 30, .55) 55%, rgba(10, 16, 30, .88) 100%); }
.auth2-art-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 40px; color: #fff; }
.auth2-brand { font-size: var(--fs-14); font-weight: 800; letter-spacing: -.02em; color: rgba(255, 255, 255, .8); }
.auth2-copy { margin-top: 10px; font-size: var(--fs-30); font-weight: 800; letter-spacing: -.05em; line-height: 1.3; }
.auth2-pts { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.auth2-pts li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14); color: rgba(255, 255, 255, .85); }
.auth2-pts .icon { width: 17px; height: 17px; color: #a9c1ff; flex: none; }

/* 오른쪽 폼 */
.auth2-form { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.auth2-in { width: 100%; max-width: 380px; }
.auth2-h { font-size: var(--fs-30); font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
.auth2-sub { margin-top: 8px; font-size: var(--fs-14); color: var(--muted); }
.auth2-notice { margin-top: 18px; }
.auth2-field { margin-top: 22px; }
.auth2-in .auth2-field + .auth2-field { margin-top: 16px; }
.auth2-lrow { display: flex; align-items: baseline; justify-content: space-between; }
.auth2-link { font-size: var(--fs-13); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.auth2-link:hover { color: var(--brass-2); }
.auth2-input { position: relative; }
.auth2-input > .icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted-2); pointer-events: none; transition: color var(--t-fast) var(--ease); }
.ui2 .auth2-input .input { height: 48px; padding-left: 42px; }
.auth2-input:focus-within > .icon { color: var(--brass); }
.auth2-submit { width: 100%; margin-top: 26px; }
.auth2-btns { display: grid; gap: 8px; margin-top: 26px; }
.auth2-foot { margin-top: 18px; text-align: center; font-size: var(--fs-14); color: var(--muted); }
.auth2-foot a { margin-left: 4px; font-weight: 700; color: var(--brass-2); }
.auth2-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth2-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); text-align: center; font-size: var(--fs-12); line-height: 1.6; color: var(--muted-2); }

/* ---------- 59.1 헤더 · 푸터 없는 전체 화면 (page.bare) ----------
   왼쪽 사진이 화면 높이 전체, 오른쪽 흰 면에 폼. 위에 작은 로고 · 홈으로, 아래에 저작권 한 줄 */
body.is-bare { background: #fff; }
body.is-bare main { margin-top: 0 !important; }
.is-bare .auth2-sec { padding: 0; }
.is-bare .auth2-card { min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); border: 0; border-radius: 0 !important; }
.is-bare .auth2-art-in { padding: 48px 56px; }
.is-bare .auth2-copy { font-size: 36px; }
.is-bare .auth2-form { position: relative; flex-direction: column; padding: 96px 48px 64px; }
.auth2-top { position: absolute; top: 28px; left: 40px; right: 40px; display: flex; align-items: center; justify-content: space-between; }
.auth2-logo { display: grid; gap: 4px; line-height: 1; color: var(--ink); }
.auth2-logo .brand-name { font-size: 18px; }
.auth2-home { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
.auth2-home .icon { width: 14px; height: 14px; }
.auth2-home:hover { color: var(--ink); }
.auth2-copyright { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: var(--fs-12); color: var(--muted-2); }
.auth2-copyright a:hover { color: var(--ink-2); text-decoration: underline; }
.is-bare .quick-sec { padding: 40px 0 60px; background: var(--page); border-top: 1px solid var(--line); }

/* ---------- 59.2 왼쪽 사진 슬라이드 · 바뀌는 문구 (main.js 21. [data-auth-slides]) ----------
   · 사진: 4장이 1.8초 동안 겹치며 교차. 보이는 동안에도 아주 천천히 확대 · 이동(켄 번스) — 사진마다 방향이 다르다
   · 문구: '○○○ 시공사와 함께' 의 ○○○ 만 아래에서 올라오고 위로 사라지며 사진과 같이 바뀐다. 폭은 낱말 길이에 맞춰 부드럽게 */
.auth2-art { overflow: hidden; background: #111a2c; }
.auth2-art::before { content: none; }
.auth2-slides, .auth2-slide, .auth2-shade { position: absolute; inset: 0; }
/* 보이는 동안 한쪽으로 천천히 흘러간다(확대 1.12 고정 + 가로 이동) — 화면에 나타날 때마다 처음부터.
   사라지는 중(.is-prev)에도 계속 흘러 끊기지 않는다. 홀수 장은 왼쪽으로, 짝수 장은 오른쪽으로 */
.auth2-slide {
  background: center / cover no-repeat; opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1);
  will-change: transform, opacity;
}
.auth2-slide.is-on { opacity: 1; }
.auth2-slide.is-on, .auth2-slide.is-prev { animation: authPanL 9s linear both; }
.auth2-slide:nth-child(even).is-on, .auth2-slide:nth-child(even).is-prev { animation-name: authPanR; }
@keyframes authPanL { from { transform: scale(1.12) translate3d(3%, 0, 0); } to { transform: scale(1.12) translate3d(-3%, -1%, 0); } }
@keyframes authPanR { from { transform: scale(1.12) translate3d(-3%, -1%, 0); } to { transform: scale(1.12) translate3d(3%, 0, 0); } }
.auth2-shade { background: linear-gradient(180deg, rgba(10, 16, 30, .1) 0%, rgba(10, 16, 30, .45) 50%, rgba(10, 16, 30, .9) 100%); }
.auth2-art-in { z-index: 2; }

.auth2-roll { position: relative; display: inline-block; vertical-align: bottom; height: 1.3em; overflow: hidden; color: var(--brass); transition: width .6s cubic-bezier(.22, .61, .36, 1); }
.auth2-word { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(105%); transition: transform .7s cubic-bezier(.22, .61, .36, 1), opacity .5s ease; }
.auth2-word.is-on { position: relative; opacity: 1; transform: none; }
.auth2-word.is-out { opacity: 0; transform: translateY(-105%); }

.auth2-dots { display: flex; gap: 6px; margin-top: 22px; }
.auth2-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: width .5s cubic-bezier(.22, .61, .36, 1), background .5s ease; }
.auth2-dots i.is-on { width: 22px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .auth2-slide.is-on, .auth2-slide.is-prev { animation: none; }
  .auth2-slide { transition: opacity .6s ease; }
  .auth2-word, .auth2-roll { transition: none; }
}

/* [임시] 테스트 즉시 로그인 — 위 구조와 분리 */
.quick-sec { padding-bottom: 60px; }
.quick-sec .quick-login { padding: 20px 24px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r-card); }
.quick-sec .quick-login-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.quick-sec .quick-btn { border-radius: var(--r-btn); }

@media (max-width: 960px) {
  .auth2-card { grid-template-columns: 1fr; min-height: 0; }
  .auth2-art { min-height: 220px; }
  .auth2-art-in { padding: 24px; }
  .auth2-copy { font-size: var(--fs-24); }
  .auth2-pts { display: none; }
  .quick-sec .quick-login-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .is-bare .auth2-card { min-height: 0; grid-template-columns: 1fr; }
  .is-bare .auth2-art { order: 2; min-height: 200px; }
  .is-bare .auth2-form { min-height: 100vh; min-height: 100dvh; padding: 88px 24px 64px; }
  .auth2-top { left: 20px; right: 20px; top: 20px; }
}
@media (max-width: 600px) {
  .auth2-form { padding: 32px 20px; }
}

/* ---------- 59.9 선정 띠 — 카드 왼쪽 위 모서리에 붙는 표시 (.pcard.is-won[data-ribbon]) ----------
   받은 제안(선정한 시공사) · 내 제안(선정된 제안) · 내 요청(선정 완료). 글자는 data-ribbon 에서 */
.pcard.is-won { position: relative; padding-top: 50px; border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); background: #fbfcff; }
.pcard.is-won::before {
  content: "✓  " attr(data-ribbon); position: absolute; top: -1px; left: -1px; z-index: 1;
  padding: 6px 14px 6px 12px; background: var(--brass); color: #fff;
  font-size: var(--fs-13); font-weight: 800; letter-spacing: -.02em; line-height: 1.4;
  border-radius: var(--r-card) 0 var(--r-card) 0;
}
.pcard.is-won .pcard-side { padding-top: 0; }

/* =========================================================
   60. 사진 자리(.thumb) · 시공 레퍼런스 v2 (2026-10-25)
   ========================================================= */

/* ---------- 60.1 사진이 없는 자리 — 원색 그라데이션 대신 옅은 회색 면 + 가운데 파랑 DOCTORPAGE ----------
   레퍼런스 · 레퍼런스 상세 · 파트너 등 시안 이미지 자리 전체. 실제 사진이 들어오면 사진이 덮는다 */
.ui2 .thumb, .ui2 .thumb[class*="thumb-t"] { background: linear-gradient(160deg, #f3f5f8 0%, #e9edf2 100%); }
.ui2 .thumb::after { background: none; }
.ui2 .thumb:not(.thumb-zoom)::before,
.ui2 .thumb-zoom .thumb-inner::before {
  content: "DOCTORPAGE"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(12px, 1.4vw, 15px); font-weight: 800; letter-spacing: .34em; padding-left: .34em; white-space: nowrap;
  color: #1d3f9e; opacity: .88;
}
.ui2 .thumb-zoom .thumb-inner { background: inherit; }
.ui2 .thumb-zoom.thumb::before { content: none; }
.ui2 .thumb-label { color: var(--muted); font-weight: 700; letter-spacing: .1em; }

/* ---------- 60.2 시공 레퍼런스 ---------- */
.refv2 .fchip .ref-n { font-size: var(--fs-11); color: var(--muted-2); font-weight: 600; }
.refv2 .fchip.chip { border-radius: 999px !important; height: 34px; }
.refv2 .fchip.chip.is-on { background: var(--info-bg); border-color: var(--brass); color: var(--brass-2); }
.refv2 .fchip.chip.is-on .ref-n { color: var(--brass); }
.refv2 .ltool { margin: 0 0 14px; }
.ref-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.ref-ctl .dd, .ref-ctl .select { min-width: 140px; }
.ui2 .ref-ctl .dd-btn { height: 38px; font-size: var(--fs-13); }

/* 대표 사례 */
.ref-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.ref-feature-art { aspect-ratio: 5 / 4; border-radius: 8px !important; }
.ref-feature-body { padding-right: 16px; }
.ref-feature-t { margin-top: 8px; font-size: var(--fs-30); font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
.ref-feature-d { margin-top: 12px; font-size: var(--fs-15); line-height: 1.75; color: var(--ink-2); word-break: keep-all; }
.ref-feature-kv { margin: 20px 0 24px; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ref-feature-body .btn .icon { width: 16px; height: 16px; }

/* 사례 카드 = 흰 카드 (사진 위 · 글 아래) */
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ref-card2 { display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink); transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.ref-card2:hover { border-color: var(--brass-3); box-shadow: 0 2px 10px rgba(16, 24, 40, .05); }
.ref-card2 .thumb { border-radius: 0 !important; }
.ref-card2-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.ref-card2-t { margin-top: 4px; font-size: var(--fs-17); font-weight: 800; letter-spacing: -.04em; transition: color var(--t-fast) var(--ease); }
.ref-card2:hover .ref-card2-t { color: var(--brass-2); }
.ref-card2-m { font-size: var(--fs-13); color: var(--muted); }
.ref-card2-p { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line-2); font-size: var(--fs-14); font-weight: 700; color: var(--ink); }

/* 페이지 넘김 (v2) */
.ui2 .pager button, .ui2 .pager a { min-width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--r-btn) !important; }
.ui2 .pager button:hover:not(:disabled), .ui2 .pager a:hover { background: #fff; border-color: var(--line-strong); }
.ui2 .pager .is-on { background: var(--brass); border-color: var(--brass); color: #fff; }
.ui2 .pager .icon { width: 16px; height: 16px; }
.ui2 .pager button:disabled { opacity: .35; }

/* 후기 */
.ref-reviews { padding-top: clamp(40px, 5vw, 64px); }
.ref-sec-head { margin-bottom: 22px; text-align: center; }
.ref-sec-t { margin-top: 6px; font-size: var(--fs-24); font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
.ref-sec-d { margin-top: 6px; font-size: var(--fs-14); color: var(--muted); }
.ref-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ref-review { display: grid; gap: 16px; align-content: start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.ref-stars { display: inline-flex; align-items: center; gap: 2px; }
.ref-stars .icon { width: 15px; height: 15px; color: #f5a524; }
.ref-stars .icon.is-off { color: #d0d5dd; }
.ref-stars b { margin-left: 6px; font-size: var(--fs-14); color: var(--ink); }
.ref-quote { font-size: var(--fs-15); line-height: 1.75; color: var(--ink); word-break: keep-all; }
.ref-review .who-head b { font-size: var(--fs-14); }

/* 안내 띠 — 흰 카드, 왼쪽 글 · 오른쪽 버튼 */
.ref-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.ref-cta-t { margin-top: 6px; font-size: var(--fs-24); font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
.ref-cta-d { margin-top: 6px; font-size: var(--fs-14); color: var(--muted); }
.ref-cta-acts { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .ref-feature { grid-template-columns: 1fr; gap: 20px; }
  .ref-feature-body { padding-right: 0; }
  .ref-grid, .ref-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ref-grid, .ref-review-grid { grid-template-columns: 1fr; }
  .ref-feature { padding: 16px; }
  .ref-cta { padding: 24px 20px; }
}

/* =========================================================
   61. 계약 · 진행 · 대금 (5-3, 2026-10-26)
   ========================================================= */

/* ---------- 61.1 진행 단계 .stepper2 (part stepper) — 동그라미 + 이어지는 선, 지난 단계는 체크 ---------- */
.stepper2 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.stepper2 li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.stepper2 li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line); }
.stepper2 li:first-child::before { content: none; }
.stepper2 li.is-done::before, .stepper2 li.is-now::before { background: var(--brass); }
.stepper2-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); color: var(--muted); font-size: var(--fs-13); font-weight: 800; }
.stepper2-dot .icon { width: 15px; height: 15px; }
.stepper2 li.is-done .stepper2-dot { background: var(--brass); border-color: var(--brass); color: #fff; }
.stepper2 li.is-now .stepper2-dot { border-color: var(--brass); color: var(--brass); box-shadow: 0 0 0 5px rgba(31, 94, 255, .14); }
.stepper2-t { font-size: var(--fs-14); font-weight: 700; color: var(--muted); }
.stepper2 li.is-done .stepper2-t, .stepper2 li.is-now .stepper2-t { color: var(--ink); }
.stepper2 li.is-now .stepper2-t { color: var(--brass-2); }
.stepper2-d { min-height: 1.4em; font-size: var(--fs-12); color: var(--muted-2); }
.stepper2.is-hold li.is-now .stepper2-dot { border-color: #f5a524; color: #c98f00; box-shadow: 0 0 0 5px rgba(245, 165, 36, .16); }
.stepper2.is-terminated li.is-now .stepper2-dot { border-color: var(--danger); color: var(--danger); box-shadow: none; }
@media (max-width: 700px) {
  .stepper2 { grid-auto-flow: row; gap: 10px; }
  .stepper2 li { grid-template-columns: 32px auto 1fr; justify-items: start; align-items: center; text-align: left; gap: 10px; }
  .stepper2 li::before { content: none; }
  .stepper2-d { justify-self: end; }
}

/* ---------- 61.2 회원 계약 · 진행 화면 ---------- */
.ct-step-card { padding: 26px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.ct-pay tr.is-later td { color: var(--muted-2); }
.ct-pay tr.is-later .badge { opacity: .7; }
.ui2 .ct-pay td .badge .icon { width: 12px; height: 12px; }

/* ---------- 61.3 관리자 계약 상세 ---------- */
.ct-terms { display: grid; grid-template-columns: 1.2fr .6fr 1.4fr auto; gap: 12px; align-items: end; }
.ct-terms .field { margin: 0; }
.ct-states { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-states details, .ct-pay details { position: relative; display: inline-block; }
.ct-pay .req-confirm form { right: auto; left: 50%; transform: translateX(-50%); width: 260px; text-align: left; z-index: 20; animation: none; }
.ct-done summary.badge { cursor: pointer; list-style: none; }
.ct-done summary::-webkit-details-marker { display: none; }
@media (max-width: 960px) { .ct-terms { grid-template-columns: 1fr 1fr; } }

/* 오른쪽 처리 칸: 입력 · 버튼을 같은 너비로 세로 정렬 (계약 체결 · 단계 넘기기 · 되돌리기 · 보류 · 해지 · 담당 매니저) */
.adm-detail-side .adm-act { display: grid; gap: 10px; }
.adm-detail-side .adm-act .field { margin: 0; }
.adm-detail-side .adm-act > .btn, .adm-detail-side .adm-act > button { width: 100%; }
.adm-detail-side .adm-act .hint { margin-top: 0; }
.adm-detail-side .adm-act > p.small { margin: 0; }
.adm-detail-side .req-confirm.adm-unselect { display: block; }
.adm-detail-side .req-confirm.adm-unselect > summary.btn { width: 100%; }
.adm-detail-side .ct-states { display: grid; gap: 8px; }

/* =========================================================
   62. 시공 레퍼런스 등록 · 공개 (5-4, 2026-10-26)
   ========================================================= */

/* ---------- 62.1 사진이 들어간 .thumb — 사진이 DOCTORPAGE 글씨 · 빛 효과를 덮는다 ---------- */
.pf-thumb { display: block; }
.pf-thumb img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ref-card2:hover .pf-thumb img { transform: scale(1.03); }
.pf-count { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(16, 24, 40, .62); color: #fff; font-size: var(--fs-12); font-weight: 700; }
.pf-count .icon { width: 13px; height: 13px; }
.ref-card2-p { display: flex; justify-content: space-between; gap: 8px; }
.ref-card2 .pcard-badges .icon { width: 12px; height: 12px; }

/* ---------- 62.2 등록 화면 — 사진 올리기 .pfup (main.js 22.) ---------- */
.pfup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pfup-item, .pfup-add { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.pfup-item { background: #eef1f5; border: 1px solid var(--line); }
.pfup-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfup-item.is-up img { opacity: .45; }
.pfup-item.is-busy { opacity: .5; pointer-events: none; }
.pfup-cover { display: none; position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 4px; background: var(--brass); color: #fff; font-size: var(--fs-11); font-weight: 800; }
.pfup-item:first-child .pfup-cover { display: block; }
.pfup-item:first-child { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.pfup-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(16, 24, 40, .55)); opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.pfup-item:hover figcaption, .pfup-item:focus-within figcaption { opacity: 1; }
.pfup-item.is-up figcaption { display: none; }
.pfup-item:first-child [data-pf-cover] { visibility: hidden; }
.pfup-btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .92); color: var(--ink); font: inherit; font-size: var(--fs-12); font-weight: 700; cursor: pointer; }
.pfup-btn .icon { width: 13px; height: 13px; }
.pfup-btn:hover { background: #fff; }
.pfup-btn.is-ask { background: var(--danger); color: #fff; }
.pfup-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.pfup-bar i { display: block; width: 0; height: 100%; background: var(--brass); transition: width .2s linear; }
.pfup-add { display: grid; place-content: center; justify-items: center; gap: 4px; border: 1.5px dashed var(--line-strong); background: #fafbfc; color: var(--ink-2); font-size: var(--fs-14); font-weight: 700; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.pfup-add:hover, .pfup-add:focus-within { border-color: var(--brass); background: var(--info-bg); color: var(--brass-2); }
.pfup-add .icon { width: 28px; height: 28px; color: var(--brass); }
.pfup-add input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pfup-add:only-child { aspect-ratio: auto; min-height: 150px; grid-column: 1 / -1; }
.field.is-invalid .pfup-add { border-color: #f3b5bc; }

/* 더 적기 (선택 항목 접기) */
.pf-more { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--r-card); }
.pf-more > summary { display: flex; align-items: center; gap: 8px; padding: 16px 18px; font-size: var(--fs-15); font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; }
.pf-more > summary::-webkit-details-marker { display: none; }
.pf-more > summary .icon { width: 16px; height: 16px; color: var(--brass); transition: transform var(--t-fast) var(--ease); }
.pf-more[open] > summary .icon { transform: rotate(45deg); }
.pf-more > summary .muted { font-size: var(--fs-13); font-weight: 500; }
.pf-more-bd { display: grid; gap: 20px; padding: 4px 18px 20px; }
.pf-more-bd .field { margin: 0; }

/* 오른쪽 등록 순서 */
.pf-steps { display: grid; gap: 8px; margin: 4px 0 6px; padding: 0; list-style: none; counter-reset: pfs; }
.pf-steps li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14); color: var(--ink-2); counter-increment: pfs; }
.pf-steps li::before { content: counter(pfs); display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eef1f5; color: var(--muted); font-size: var(--fs-12); font-weight: 800; }
.pf-steps li.is-on::before { background: var(--brass); color: #fff; }

/* ---------- 62.3 내 레퍼런스 ---------- */
.pf-suggest { padding: 18px 20px; background: var(--info-bg); border: 1px solid #cfdcff; border-radius: var(--r-card); }
.pf-suggest-t { display: flex; align-items: center; gap: 8px; font-size: var(--fs-15); font-weight: 700; color: var(--info-ink); }
.pf-suggest-t .icon { width: 20px; height: 20px; color: var(--brass); }
.pf-suggest ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pf-suggest li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #fff; border-radius: var(--r-btn); }
.pf-mine .ref-card2-body { gap: 8px; }
.pf-reason { display: flex; gap: 6px; padding: 8px 10px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-ink); font-size: var(--fs-13); line-height: 1.5; }
.pf-reason.is-info { background: var(--info-bg); color: var(--info-ink); }
.pf-reason .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line-2); }
.pf-acts details { position: relative; margin-left: auto; }

/* ---------- 62.4 갤러리 (part pf-gallery) — 레퍼런스 상세 · 관리자 검수 ---------- */
.pfg { display: grid; gap: 10px; }
.pfg-main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-card) !important; overflow: hidden; background: #eef1f5; }
.pfg-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfg-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pfg-th { flex: none; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #eef1f5; cursor: pointer; opacity: .7; transition: opacity var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.pfg-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfg-th:hover { opacity: 1; }
.pfg-th.is-on { border-color: var(--brass); opacity: 1; }
.rd-body { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.rd-h { margin-bottom: 10px; font-size: var(--fs-17); font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.rd-body p { font-size: var(--fs-15); line-height: 1.8; color: var(--ink-2); word-break: keep-all; }
.rdv2 .act-card .kv, .rdv2 .who-card .kv { grid-template-columns: 84px minmax(0, 1fr); font-size: var(--fs-14); }
.rdv2 .act-card .pcard-badges .icon { width: 12px; height: 12px; }
.ref-vendor-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: var(--fs-14); }
.ref-vendor-bar .icon { width: 18px; height: 18px; color: var(--brass); }
.ref-vendor-bar .lnk { margin-left: auto; }

/* ---------- 62.5 파트너사 카드 ---------- */
.pt-card .ref-card2-body { gap: 12px; }
.pt-card .pt-kv { grid-template-columns: 72px minmax(0, 1fr); gap: 6px 12px; font-size: var(--fs-13); }
.pt-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 10px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pt-figs span { display: grid; gap: 2px; text-align: center; font-size: var(--fs-11); color: var(--muted); }
.pt-figs span + span { border-left: 1px solid var(--line-2); }
.pt-figs b { font-size: var(--fs-17); font-weight: 800; color: var(--ink); }
.pt-card .btn.is-disabled { pointer-events: none; color: var(--muted-2); }

/* ---------- 62.6 제안서 — 유사 프로젝트 고르기 .refpick · 제안서 보기 카드 ---------- */
.refpick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.refpick { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.refpick input { position: absolute; opacity: 0; pointer-events: none; }
.refpick-th { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #eef1f5; }
.refpick-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.refpick-tx { display: grid; gap: 2px; min-width: 0; padding-right: 22px; }
.refpick-tx b { font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refpick-ck { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: #fff; color: transparent; }
.refpick-ck .icon { width: 12px; height: 12px; }
.refpick:hover { border-color: var(--brass-3); }
.refpick:has(input:checked) { border-color: var(--brass); background: var(--info-bg); box-shadow: inset 0 0 0 1px var(--brass); }
.refpick:has(input:checked) .refpick-ck { background: var(--brass); border-color: var(--brass); color: #fff; }
.refpick:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.refpick-grid.is-full .refpick:not(:has(input:checked)) { opacity: .5; }
[data-ref-pick-msg].is-warn { color: var(--danger); animation: pfShake .35s ease; }
@keyframes pfShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.pf-none { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--page); border-radius: var(--r-btn); font-size: var(--fs-14); color: var(--muted); }
.pf-none .icon { flex: none; width: 20px; height: 20px; color: var(--brass); }
.pr-refs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pr-refs .ref-card2-body { padding: 12px 14px 14px; }
.pr-refs .ref-card2-t { font-size: var(--fs-15); }

/* ---------- 62.7 관리자 ---------- */
.pf-adm-th { display: block; width: 64px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #eef1f5; }
.pf-adm-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-adm-body { padding: 16px; background: var(--page); border-radius: var(--r-btn); font-size: var(--fs-14); line-height: 1.75; white-space: normal; }

@media (max-width: 960px) {
  .pfup { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pfup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfup-item figcaption { opacity: 1; }
  .pr-refs { grid-template-columns: 1fr; }
  .pf-suggest li { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-thumb img, .ref-card2:hover .pf-thumb img { transition: none; transform: none; }
  [data-ref-pick-msg].is-warn { animation: none; }
}

/* =========================================================
   63. 움직이는 격자 배경 [data-kgrid] — 메인 CTA 띠 (2026-10-26)
   · canvas 는 main.js 23. initKineticGrid 가 넣는다. 그래픽만 움직이고 글자 · 버튼은 그대로
   · 강조색 --kgrid-rgb = --brass-3(#4d82ff) — 어두운 띠 위에서 버튼 파랑과 같은 계열로 보인다
   ========================================================= */
[data-kgrid] { --kgrid-rgb: 77, 130, 255; }
[data-kgrid] > .kgrid-canvas {   /* .cta-band > * (z-index 1) 보다 아래 */
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* =========================================================
   64. 메인 고급 효과 (2026-10-26, 21st.dev 참고 · 순수 JS) — body.has-hero 중심
       64.1 부드러운 스크롤(Lenis)  64.2 제목 흐림 → 선명  64.3 커서 따라오는 빛 [data-spot]
       64.4 흐르는 로고 띠 [data-marquee]  64.5 진행선 [data-beam]  64.6 버튼 빛 한 줄 .btn-shine
       64.7 고운 입자감(어두운 면)  64.8 CTA 섹션 폭 전체 .cta-full
   · 글자 · 카드는 움직이지 않고 그래픽만 움직인다. 동작 줄이기면 모두 정지 상태
   ========================================================= */

/* ---------- 64.1 Lenis 기본 (lenis.css 와 같음) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 64.2 (폐기) 제목 흐림 → 65.3 줄 마스크 등장으로 바꿈 ---------- */

/* ---------- 64.3 커서 따라오는 빛 — 면은 아주 옅게, 테두리는 커서 가까운 곳만 ---------- */
.spot-host { position: relative; }
.spot-host > .spot {
  position: absolute !important;
  inset: 0;
  z-index: 1;                       /* .pj-ai(2) 보다 아래 */
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(77, 130, 255, .09), transparent 62%);
}
.spot-host > .spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(77, 130, 255, .8), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.spot-host:hover > .spot { opacity: 1; }

/* ---------- 64.4 흐르는 로고 띠 — 양 끝은 흐리게 사라진다 ---------- */
.logo-grid.is-mq {
  display: block;
  overflow: hidden;
  padding-block: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mq-track { display: flex; width: max-content; animation: mqMove var(--mq-dur, 40s) linear infinite; }
.is-mq:hover .mq-track { animation-play-state: paused; }
.mq-set { display: flex; gap: 12px; padding-right: 12px; }
.mq-set .logo-cell { flex: none; width: 188px; }
.is-mq .logo-cell:hover { transform: none; box-shadow: none; }
@keyframes mqMove { to { transform: translateX(-50%); } }

/* ---------- 64.5 진행선 — 단계 윗선이 차오르고 지나간 번호가 켜진다 ---------- */
.process.is-beam .process-item { position: relative; }
.process.is-beam .process-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass-3), rgba(77, 130, 255, .3));
  box-shadow: 0 0 10px rgba(77, 130, 255, .5);
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
}
.section-dark .process.is-beam .process-item::before { color: rgba(255, 255, 255, .28); transition: color .4s var(--ease), text-shadow .4s var(--ease); }
.section-dark .process.is-beam .process-item.is-lit::before { color: var(--brass-3); text-shadow: 0 0 14px rgba(77, 130, 255, .55); }

/* ---------- 64.6 주 버튼 위로 몇 초에 한 번 옅은 빛 ---------- */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, var(--shine, rgba(255, 255, 255, .38)) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: btnShine 6.5s var(--ease) 1.8s infinite;
}
.btn-pill.btn-shine { --shine: rgba(31, 94, 255, .2); }
@keyframes btnShine { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }

/* ---------- 64.7 고운 입자감 — 어두운 면이 평평해 보이지 않게 (메인만) ---------- */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.09'/%3E%3C/svg%3E");
}
body.has-hero .section-dark,
body.has-hero .site-footer { background-image: var(--grain); }
body.has-hero .cta-band { background: var(--grain), linear-gradient(120deg, #0f1a33 0%, #14224a 45%, #0b142a 100%); }

/* ---------- 64.8 CTA — 섹션 폭 전체를 채운다 (격자도 화면 끝까지) ---------- */
.cta-full { padding: 0; }
.cta-full .cta-band { border-radius: 0 !important; padding: clamp(88px, 10vw, 144px) 0; }
.cta-full .cta-band::before { width: min(1200px, 120vw); height: 900px; top: -60%; }

@media (prefers-reduced-motion: reduce) {
  .btn-shine::after { animation: none; opacity: 0; }
}

/* =========================================================
   65. 히어로 고급 슬라이드 · 스크롤 연출 (2026-10-26, 사용자 선택)
       65.1 사진: 새 장이 커튼처럼 닦이며 덮고 깊게 줌아웃, 앞 장은 어두워지며 남는다 (.is-lux — main.js 5e)
       65.2 카피: 제목 줄마다 마스크 등장 · 위로 퇴장, 작은 글은 뒤따라 페이드 · 번호 01 / 04
       65.3 섹션 큰 제목 줄 마스크 (main.js 28. initScrollFx)
       65.4 사진 시차 .px-img (--py)
   · 메인 전용 예외: 큰 제목 글자가 마스크 안에서 한 번 올라온다 (호버 흔들림이 아니라 등장 연출)
   ========================================================= */

/* ---------- 65.1 사진 ---------- */
.hero-shot.is-lux .hero-stage { scale: 1.06; }   /* 마우스 시차로 밀려도 가장자리가 비지 않게 */
.hero-shot.is-lux .hero-veil { z-index: 3; }
.hero-shot.is-lux .hshot { opacity: 0; z-index: 0; transition: none; }
.hero-shot.is-lux .hshot.is-prev { opacity: 1; z-index: 1; }
.hero-shot.is-lux .hshot.is-on { opacity: 1; z-index: 2; animation: heroWipe 1.35s cubic-bezier(.77, 0, .18, 1) both; }
.hero-shot.is-lux.is-back .hshot.is-on { animation-name: heroWipeBack; }
@keyframes heroWipe     { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes heroWipeBack { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.hero-shot.is-lux .hshot.is-on img,
.hero-shot.is-lux .hshot.is-prev img { animation: heroKenLux calc(var(--hero-dur) + 2400ms) cubic-bezier(.22, .61, .36, 1) forwards; }
.hero-shot.is-lux.is-paused .hshot.is-on img { animation-play-state: paused; }
@keyframes heroKenLux { from { transform: scale(1.2); } to { transform: scale(1.02); } }
.hero-shot.is-lux .hshot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #07090e;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.35s var(--ease);
}
.hero-shot.is-lux .hshot.is-prev::after { opacity: .55; }

/* ---------- 65.2 카피 ---------- */
.hero-shot.is-lux .hcopy { transform: none; opacity: 0; transition: none; }
.hero-shot.is-lux .hcopy.is-on,
.hero-shot.is-lux .hcopy.is-out { opacity: 1; }
.hero-shot.is-lux .hcopy-t .hl { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-shot.is-lux .hcopy-t .hl-in { display: block; transform: translateY(110%); }
.hero-shot.is-lux .hcopy.is-on .hl-in {
  transform: none;
  transition: transform 1.15s cubic-bezier(.19, 1, .22, 1);
  transition-delay: calc(380ms + var(--i, 0) * 110ms);
}
.hero-shot.is-lux .hcopy.is-out .hl-in {
  transform: translateY(-110%);
  transition: transform .7s cubic-bezier(.7, 0, .84, 0);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.hero-shot.is-lux .hcopy-eb,
.hero-shot.is-lux .hcopy-s { opacity: 0; transform: translateY(10px); }
.hero-shot.is-lux .hcopy.is-on .hcopy-eb { opacity: 1; transform: none; transition: opacity .8s var(--ease) .25s, transform .9s var(--ease-out) .25s; }
.hero-shot.is-lux .hcopy.is-on .hcopy-s  { opacity: 1; transform: none; transition: opacity .8s var(--ease) .8s, transform .9s var(--ease-out) .8s; }
.hero-shot.is-lux .hcopy.is-out .hcopy-eb,
.hero-shot.is-lux .hcopy.is-out .hcopy-s { opacity: 0; transform: none; transition: opacity .4s var(--ease); }

.hero-num { margin-right: 6px; font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }
.hero-num b { color: #fff; font-weight: 700; }

/* ---------- 65.3 섹션 큰 제목 — 줄 마스크 (.hl-host 는 main.js 28 이 붙이고, 화면에 들어오면 .is-in) ---------- */
main h2.display .hl { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
main h2.display .hl-in { display: block; }
.hl-host .hl-in { transform: translateY(110%); }
.hl-host.is-in .hl-in {
  transform: none;
  transition: transform 1.1s cubic-bezier(.19, 1, .22, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.hl-host .eyebrow, .hl-host .lead { opacity: 0; }
.hl-host.is-in .eyebrow, .hl-host.is-in .lead { opacity: 1; transition: opacity .8s var(--ease) .15s; }

/* ---------- 65.4 사진 시차 ---------- */
.px-img { scale: 1.14; translate: 0 var(--py, 0%); will-change: translate; }

/* =========================================================
   66. 내 제안 — 상태 탭 · 검색 · 한 줄 목록 (2026-10-27, my-proposals.php)
       .mpf 탭 + 검색 줄 · .mprow 한 줄(상태 | 제목 · 보조 줄 | 금액 · 공기 | 마감 | 버튼 + ⋯)
   ========================================================= */
.mpf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.mpf-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mpf-n { margin-left: 2px; font-weight: 700; color: var(--muted); }
.fchip.is-on .mpf-n { color: var(--brass-2); }
.mpf-q { position: relative; display: flex; align-items: center; gap: 8px; }
.mpf-q > .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.mpf-q .input { width: 280px; height: 36px; padding-left: 36px; }
.ltool-n .ltool-all { color: var(--muted); font-weight: 600; }

.mplist { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.mprow {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 150px 96px auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-2);
}
.mprow:first-child { border-top: 0; }
.mprow:hover { background: var(--page); }
.mprow-st { justify-self: start; }
.mprow-main { min-width: 0; }
.mprow-t { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-15); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.mprow-t:hover { color: var(--brass); }
.mprow-sub { margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-13); color: var(--muted); }
.mprow-fig { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; font-size: var(--fs-13); color: var(--muted); }
.mprow-fig b { font-size: var(--fs-15); font-weight: 800; color: var(--ink); }
.mprow-ddl { font-size: var(--fs-13); font-weight: 700; color: var(--ink-2); text-align: right; }
.mprow-ddl.is-soon { color: var(--danger); }
.mprow-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.mprow.is-won { background: var(--info-bg); }
.mprow.is-dead .mprow-t, .mprow.is-dead .mprow-fig b { color: var(--muted); }

/* ⋯ 더 보기 — 요청서 · 문의 · 철회 */
.mprow-more { position: relative; }
.mprow-more summary { list-style: none; width: 34px; padding: 0; justify-content: center; }
.mprow-more summary::-webkit-details-marker { display: none; }
.mprow-more summary .icon { width: 18px; height: 18px; }
.mprow-menu {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pop);
  box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
}
.mprow-menu > a { padding: 9px 12px; border-radius: var(--r-btn); font-size: var(--fs-14); color: var(--ink); }
.mprow-menu > a:hover { background: var(--page); color: var(--brass); }
.mprow-menu form { display: grid; gap: 8px; margin-top: 4px; padding: 10px 12px 6px; border-top: 1px solid var(--line-2); }
.mprow-menu form .small { color: var(--muted); line-height: 1.5; }

@media (max-width: 860px) {
  .mpf-q, .mpf-q .input { width: 100%; }
  .mprow { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "st main act" "st fig ddl"; row-gap: 6px; }
  .mprow-st { grid-area: st; align-self: start; }
  .mprow-main { grid-area: main; }
  .mprow-act { grid-area: act; }
  .mprow-fig { grid-area: fig; justify-content: flex-start; }
  .mprow-ddl { grid-area: ddl; }
}

/* =========================================================
   67. 카드 슬라이드 — Swiper (메인 최신 소식 · 진료과목 · 시공 레퍼런스, 2026-10-27 · main.js 29)
       · 자유 드래그 + 관성, 슬라이드는 화면 오른쪽 끝까지 이어지고(섹션에서 자름) 아래 얇은 진행 막대
       · 사진 카드 호버: 사진이 천천히 확대 + 아래에서 '자세히 보기 →' 띠가 떠오른다 (사용자 선택)
   ========================================================= */
#sec-news, #sec-service, #sec-refs, .section:has(> .wrap > .dp-swiper) { overflow-x: clip; }
.dp-swiper { overflow: visible; padding: 6px 0 34px; margin: -6px 0 0; }
.dp-swiper > .swiper-wrapper > .swiper-slide { height: auto; }
.dp-swiper > .swiper-wrapper > .news-card { width: 280px; }
.dp-swiper > .swiper-wrapper > .sol-card  { width: 292px; }
.dp-swiper > .swiper-wrapper > .ref-card2 { width: 380px; }
.dp-swiper.swiper-free-mode > .swiper-wrapper { transition-timing-function: cubic-bezier(.22, .61, .36, 1); }

/* 진행 막대 — 가는 선 위로 파란 구간이 움직인다 */
.dp-swiper > .dp-swp-bar.swiper-scrollbar {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: auto;
  width: auto;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.dp-swp-bar .dp-swp-drag { position: relative; left: 0; top: 0; height: 100%; border-radius: 2px; background: var(--brass); cursor: grab; }
.dp-swiper.swiper-scrollbar-disabled > .dp-swp-bar, .dp-swiper.swiper-lock > .dp-swp-bar { display: none; }
.arrow-btn.is-disabled { opacity: .35; pointer-events: none; }

/* 사진 확대 + 정보 띠 */
.dp-swiper .sol-art img,
.dp-swiper .pf-thumb img { transition: transform 1s cubic-bezier(.22, .61, .36, 1); }
.dp-swiper .swiper-slide:hover .sol-art img,
.dp-swiper .swiper-slide:hover .pf-thumb img { transform: scale(1.09); }
.hov-more {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 48px 18px 14px;
  background: linear-gradient(to top, rgba(7, 12, 24, .72), rgba(7, 12, 24, 0));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .5s cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
}
.hov-more .ic { font-size: 16px; transition: transform .4s var(--ease-out); }
.dp-swiper .swiper-slide:hover .hov-more { opacity: 1; transform: none; }
.dp-swiper .swiper-slide:hover .hov-more .ic { transform: translateX(4px); }
.dp-swiper .sol-art { position: relative; }

@media (max-width: 600px) {
  .dp-swiper > .swiper-wrapper > .news-card,
  .dp-swiper > .swiper-wrapper > .sol-card { width: 76vw; }
  .dp-swiper > .swiper-wrapper > .ref-card2 { width: 84vw; }
}
@media (hover: none) {
  .hov-more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-swiper .swiper-slide:hover .sol-art img, .dp-swiper .swiper-slide:hover .pf-thumb img { transform: none; }
  .hov-more { transition: none; }
}

/* =========================================================
   68. 히어로 WebGL 전환 · 글자 분해 (2026-10-27, 사용자 선택 · main.js 28 · 30 · 31)
       · three.js 캔버스(.hero-gl)가 준비되면 .hero-shot.is-gl — CSS 사진(.hshot)은 숨기고 캔버스가 대신 그린다
       · 큰 제목 글자 분해(.hl-chars): 글자마다 inline-block 이라야 회전 · 이동이 먹는다. 단어는 줄바꿈 단위로 묶는다
   ========================================================= */
.hero-gl { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease); }
.hero-shot.is-gl .hero-gl { opacity: 1; }
.hero-shot.is-gl .hshot { visibility: hidden; transition: visibility 0s .9s; }

.hl-chars .sw { display: inline-block; white-space: nowrap; }
.hl-chars .sc { display: inline-block; will-change: transform, opacity; }
