:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #111111;
  --muted: #667085;
  --line: #d6d6d6;
  --ink: #1b2a41;
  --rail: #2f4d6b;
  --accent: #1b2a41;
  --accent-soft: #f4f5f7;
  --signal: #c1121f;
  --done: #3d6b4f;
  --radius: 14px;
  --max: 1080px;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; overflow-x: clip; }
html {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;
}
body, button, h1, h2, h3, h4, h5, h6, input, select, table, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
}
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  font-synthesis: none;
  padding-top: var(--header-h, 6.1rem);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4rem; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.05rem; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--rail);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.site-header.theme-night { background: #161b28; }
.site-header.theme-steel { background: #3d4c5c; }
.site-header.theme-ktx { background: #0054a6; }
.site-header.theme-ticket {
  background: #f3efe6;
  box-shadow: 0 1px 0 #e4ddd0;
}
.site-header.theme-ticket .logo,
.site-header.theme-ticket .text-btn,
.site-header.theme-ticket .icon-btn { color: #1b2a41; }
.site-header.theme-ticket .text-btn:hover { background: none; }
.site-header.theme-ticket .icon-btn:hover { background: rgba(27, 42, 65, .08); }
.site-header.theme-ticket .main-tabs a { color: #8a8276; }
.site-header.theme-ticket .main-tabs a.is-on {
  color: #1b2a41;
  box-shadow: inset 0 -3px 0 #1b2a41;
}
.site-header.theme-ticket .logo-mark {
  border-color: #1b2a41;
  background:
    linear-gradient(#1b2a41, #1b2a41) 50% 76% / 60% 2px no-repeat,
    transparent;
}
.site-header.theme-ticket .logo-mark::after { background: #1b2a41; }

.header-preview h1 { margin-bottom: .3rem; }
.header-preview .opt { margin: 0 0 1.4rem; }
.header-preview .opt p { margin: .45rem 0 .35rem; color: var(--muted); font-size: .88rem; }
.header-preview .site-header { position: relative; border-radius: 12px; overflow: hidden; }
.header-inner,
.main-tabs,
.page,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}
.header-inner {
  position: relative;
  padding: .55rem 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 2.2rem;
  font-weight: 700;
  font-size: 1.18rem;
  color: #fff;
  letter-spacing: -.04em;
  flex-shrink: 0;
}
.logo-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #fff;
  border-radius: 3px;
  position: relative;
  background:
    linear-gradient(#fff, #fff) 50% 76% / 60% 2px no-repeat,
    transparent;
}
.logo-mark::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 38%;
  height: 2px;
  background: #fff;
}
.header-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(8, 14, 24, .48);
}
.site-header.is-search-open { z-index: 40; }
.site-header.is-search-open .header-search-overlay { display: block; }
.header-search {
  position: relative;
  z-index: 0;
  flex: 1;
  min-width: 0;
  margin: 0;
}
.site-header.is-search-open .header-search {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: .55rem;
  z-index: 2;
  margin: 0;
}
.header-search-icon {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: rgba(255, 255, 255, .72);
  pointer-events: none;
}
.header-search input {
  width: 100%;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  padding: 0 .9rem 0 2.05rem;
  font: inherit;
  font-size: .9rem;
  line-height: 2.2rem;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  outline: none;
}
.header-search input::-webkit-search-decoration,
.header-search input::-webkit-search-cancel-button { appearance: none; }
.header-search input::placeholder { color: rgba(255, 255, 255, .62); }
.site-header.is-search-open .header-search input {
  background: #fff;
  color: var(--ink);
  padding: 0 1rem 0 2.2rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}
.site-header.is-search-open .header-search-icon { color: var(--muted); }
.site-header.is-search-open .header-search input::placeholder { color: var(--muted); }
.site-header.theme-ticket .header-search-icon { color: #8a8276; }
.site-header.theme-ticket .header-search input {
  background: rgba(27, 42, 65, .08);
  color: #1b2a41;
}
.site-header.theme-ticket .header-search input::placeholder { color: #8a8276; }
.header-actions { display: flex; align-items: center; gap: .2rem; flex-shrink: 0; }
.header-actions .text-btn {
  padding: 0;
  background: none;
  border-radius: 0;
}
.header-actions .text-btn:hover,
.header-actions .text-btn:active,
.header-actions .text-btn:focus {
  background: none;
}
.text-btn, .icon-btn {
  height: 2.2rem;
  font-size: .86rem;
  font-weight: 700;
  color: #fff;
  padding: 0 .7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  box-sizing: border-box;
}
.bell-count {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .28rem;
  border-radius: 999px;
  background: #e23d3d;
  color: #fff;
  font-size: .7rem;
  line-height: 1.15rem;
  text-align: center;
}
.text-btn:hover, .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn { font-size: .86rem; }

.main-tabs {
  display: flex;
  gap: .2rem;
  padding: 0 1rem;
}
.main-tabs a {
  flex: 1;
  text-align: center;
  padding: .7rem 0 .65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .62);
}
.main-tabs a.is-on {
  color: #fff;
  box-shadow: inset 0 -3px 0 #fff;
}

.board-tabs {
  display: flex;
  gap: 1rem;
  padding: .1rem .2rem .85rem;
  margin-bottom: .15rem;
}
.board-tabs a { color: #8b93a1; font-weight: 700; }
.board-tabs a.is-on {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--accent);
  padding-bottom: .35rem;
}

.feed-sentinel { text-align: center; font-size: .82rem; margin: .4rem 0 2rem; min-height: 1.2rem; }
.page { padding: 1rem 1rem 3.4rem; min-width: 0; width: 100%; }
.site-footer {
  padding: 1.35rem 1rem 2.5rem;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--line);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .95rem;
  margin: 0 0 .7rem;
}
.footer-nav a {
  color: var(--ink);
  font-weight: 600;
}
.site-footer .footer-tagline { margin: 0 0 .3rem; }
.site-footer .footer-copy {
  margin: 0;
  font-size: .78rem;
  line-height: 1.55;
  max-width: 40rem;
}
.legal-doc h1 { margin-bottom: .35rem; }
.legal-doc h2 {
  margin: 1.35rem 0 .45rem;
  font-size: 1.02rem;
}
.legal-doc p { margin: .5rem 0; }
.legal-doc ul {
  margin: .35rem 0 .7rem;
  padding-left: 1.15rem;
}
.legal-doc li { margin: .25rem 0; }
.legal-updated {
  color: var(--muted);
  font-size: .84rem;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin: .55rem 0;
  font-size: .88rem;
}
.check-line input { margin-top: .2rem; }
.check-line a { text-decoration: underline; text-underline-offset: 2px; }
.form .errorlist {
  margin: .2rem 0 0;
  padding-left: 1.1rem;
  color: var(--signal);
  font-size: .82rem;
}

.feed { padding: .2rem 1rem; }
.feed-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 0;
  border-bottom: 1px solid #d9d9d9;
}
.feed-row:last-child,
.feed-row:has(+ .talk-more) {
  border-bottom: 0;
}
.feed-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f4f5f7;
}
.feed-body { flex: 1; min-width: 0; }
.feed-title {
  margin: 0 0 .25rem;
  font-size: 1.02rem;
  font-weight: 400;
  color: #111;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.feed-meta {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.comment-box {
  min-width: 3.15rem;
  height: 3.15rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.comment-box span { font-size: .65rem; font-weight: 500; color: var(--muted); }
.pill {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: .7rem;
  padding: .08rem .4rem;
  border-radius: 4px;
  margin-right: .2rem;
  vertical-align: middle;
  letter-spacing: .02em;
}
.pill.official { background: var(--ink); }
a.pill { color: #fff; }
.hot-block { margin-top: 1.1rem; }
.hot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}
.hot-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem;
}
.hot-thumb {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: .45rem;
  letter-spacing: -.02em;
}
.fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.2rem;
  min-width: 4.6rem;
  height: 2.7rem;
  padding: 0 .9rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .86rem;
  font-weight: 700;
  gap: .32rem;
  box-shadow: 0 10px 24px rgba(27, 42, 65, .28);
  z-index: 15;
}

.project-hero { padding: .35rem 0 1.05rem; }
.project-hero h1 { font-size: 1.6rem; line-height: 1.32; color: var(--ink); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin: .6rem 0 1rem;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem .4rem;
  text-align: center;
  background: var(--card);
}
.stat-card span { display: block; font-size: .78rem; color: var(--muted); }
.stat-card strong { font-size: 1.2rem; }
.stat-card.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.stat-card.is-on span { color: #c9d0db; }
.sync-note { color: var(--muted); font-size: .82rem; margin: .55rem 0 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.area-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .15rem;
  font-size: 1.05rem;
}
.area-switch { display: inline; margin: 0; }
.area-heading select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111111' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .15rem center;
  background-size: .7rem;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  padding: 0 1.1rem 0 0;
  cursor: pointer;
}
.two-col { display: grid; gap: .7rem; }
.status-link { color: var(--accent); font-weight: 700; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li a {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) 4.2rem 1rem;
  align-items: center;
  column-gap: .55rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}
.rank-list em { width: auto; font-style: normal; font-weight: 700; color: var(--accent); }
.rank-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-list .rank-count {
  margin-left: 0;
  color: var(--muted);
  font-size: .82rem;
  text-align: right;
  white-space: nowrap;
}
.rank-list .update-chev {
  margin-left: 0;
  text-align: right;
}

.estate-layout { margin-bottom: .8rem; }
.map-wrap iframe {
  width: 100%;
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.line-mini.is-picked { border-color: var(--ink); background: var(--accent-soft); }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0; font-size: .85rem; }

.nav-pills {
  display: flex;
  gap: .15rem;
  flex: 1;
}
.nav-pills a {
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .92rem;
  color: var(--muted);
}
.nav-pills a.is-on {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.hero-mini { padding: .3rem 0 1rem; }
.tagline { color: var(--muted); margin: 0 0 .8rem; }
.search-box {
  position: relative;
  display: flex;
  gap: .4rem;
}
.search-box input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .8rem;
  font-size: 1rem;
  background: #fff;
}
.search-box button, .btn {
  border: 0;
  border-radius: 10px;
  padding: .7rem .95rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary { background: var(--ink); }
.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.cta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  margin: 0 0 .85rem;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
}
.card.feed {
  padding: .1rem 1rem .2rem;
}
.card.feed .feed-row:first-child {
  padding-top: .55rem;
}
.search-hits {
  display: flex;
  flex-direction: column;
}
.search-hits .line-mini,
.search-hits .feed-row {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: .72rem 0;
  box-shadow: none;
}
.search-hits .line-mini:last-child,
.search-hits .feed-row:last-child {
  border-bottom: 0;
  padding-bottom: .1rem;
}
.search-page > .card { margin-bottom: 1rem; }
.search-page .card h2 { margin: 0 0 .65rem; }
.card.quiet { background: #fff; }
.section-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
}
.section-head h1,
.section-head h2 {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex: 1;
  min-width: 0;
  margin: 0;
}
.section-head-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.section-head a, .section-head a:visited { color: var(--muted); font-size: .86rem; }
.section-head-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.write-link,
.write-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 2rem;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted) !important;
  font-size: .8rem !important;
  font-weight: 600;
  white-space: nowrap;
  gap: .28rem;
}
.write-link svg {
  flex-shrink: 0;
}
.card.talk-block {
  padding-bottom: 0;
  overflow: hidden;
}
.progress-block .card.talk-block {
  margin-bottom: 0;
}
.talk-block-head {
  padding-bottom: .7rem;
  margin: 0 0 .05rem;
  border-bottom: 1px solid #d9d9d9;
}
.talk-block-head > h2,
.talk-block-head .section-head {
  margin-bottom: .25rem;
}
.talk-block-head > .muted {
  margin: .2rem 0 0;
}
.talk-block .source-list {
  border-top: 0;
}
.talk-block .source-list li {
  padding: .8rem 0;
}
.talk-block .source-list li + li {
  border-top: 1px solid #d9d9d9;
}
.talk-block-head + .feed-row,
.talk-block-head + .source-list,
.talk-block-head + .empty {
  padding-top: .15rem;
}
.talk-more,
.talk-more:visited {
  display: block;
  box-sizing: border-box;
  width: calc(100% + 2.1rem);
  height: 2.75rem;
  margin: 0 -1.05rem;
  padding: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  line-height: calc(2.75rem - 1px);
  text-align: center;
}

.talk-item {
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}
.talk-item:first-of-type { border-top: 0; }
.talk-title { display: block; font-weight: 400; margin: .15rem 0 .2rem; }
.talk-meta { color: var(--muted); font-size: .82rem; margin: 0; }
.badge {
  display: inline-block;
  font-size: .75rem;
  padding: .1rem .45rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}
.badge.official, .official {
  color: var(--accent);
  font-weight: 700;
  font-size: .78rem;
}
.badge.news { color: #344054; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
a.chip.is-on { color: #fff; }
.chip-wrap { display: inline-flex; align-items: center; gap: .15rem; }
.chip-remove button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: .1rem .25rem;
}
.estate-picker {
  position: relative;
  z-index: 2;
  padding: .15rem 0 .55rem;
  margin-bottom: .45rem;
}
.estate-picker-row {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.estate-picker-row label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}
.estate-picker-icon {
  color: var(--ink);
  flex-shrink: 0;
}
.estate-picker-row label::after {
  content: " :";
  font-weight: 500;
  color: var(--muted);
}
.estate-picker-bar { position: relative; flex: 1; min-width: 0; }
.estate-picker .input {
  margin: 0;
  padding: .5rem .75rem;
  border-radius: 10px;
  font-size: .9rem;
  background: var(--card);
}
.estate-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  margin-top: .45rem;
}
.estate-picks > .chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .78rem;
  background: #fff;
  font-size: .86rem;
}
.estate-picks > .chip.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.estate-picks .chip-wrap {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: .18rem .12rem .18rem .4rem;
}
.estate-picks .chip-wrap .chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 0;
  padding: 0 .15rem 0 0;
  background: transparent;
  font-size: .86rem;
  font-weight: 700;
}
.estate-picks .station-chip-name { line-height: 1.2; }
.estate-picks .chip-wrap.is-on {
  background: var(--ink);
  border-color: var(--ink);
}
.estate-picks .chip-wrap.is-on .chip,
.estate-picks .chip-wrap.is-on .chip-remove button {
  color: #fff;
}
.chip-remove {
  display: inline-flex;
  margin: 0;
}
.estate-picks .chip-remove button {
  padding: .2rem .45rem .2rem .15rem;
}
.estate-picker-guest {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}
.estate-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 6;
  display: none;
  margin: 0;
  padding: .2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(17, 17, 17, .08);
}
.estate-search-results:not([hidden]) {
  display: grid;
}
.estate-search-results a, .estate-search-results button {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: .4rem .6rem;
  cursor: pointer;
  font: inherit;
}
.line-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .22rem;
  flex: 0 0 auto;
}
.line-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: .12rem .38rem;
  border-radius: 999px;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.25;
  white-space: nowrap;
}
.estate-picks .line-tag {
  min-width: 1.25rem;
  padding: .1rem .32rem;
  font-size: .64rem;
}
.estate-search-results .estate-search-name {
  min-width: 0;
}
.estate-search-results button:hover {
  background: var(--accent-soft);
}
.flash { list-style: none; padding: 0; margin: 0 0 .8rem; }
.flash li {
  padding: .55rem .7rem;
  border-radius: 8px;
  background: #fff4f0;
  border: 1px solid #f0c9bc;
}
.price-chart { margin-top: .8rem; }
.price-chart svg { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .7rem;
  background: #fff;
  font-size: .88rem;
}
.line-mini-list, .line-grid { display: grid; gap: .45rem; margin-bottom: .7rem; }
.line-mini, .line-card, .update-row, .doc-item {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.line-mini span, .doc-item span { color: var(--muted); font-size: .84rem; }
.progress-block { margin: 0 0 1.2rem; }
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .45rem;
}
.progress-head h2 {
  margin: 0;
  min-width: 0;
}
.progress-head-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.more-link { color: var(--muted); font-size: .88rem; }
.progress-grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: .4rem;
}
.progress-grid .empty { grid-column: 1 / -1; }
.progress-grid > .update-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.update-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .55rem;
  padding: .68rem .8rem;
  margin-bottom: 0;
  border-radius: 12px;
}
.update-main { flex: 1; min-width: 0; }
.update-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .12rem;
  color: var(--ink);
  min-width: 0;
}
.update-head {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-tag { color: var(--ink); font-weight: 700; }
.stage-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .14rem .4rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.stage-badge--plan { background: #eef0f3; color: #5c6570; }
.stage-badge--yeota { background: #fff1e6; color: #c45c12; }
.stage-badge--basic_plan { background: #eef0f3; color: #5c6570; }
.stage-badge--design { background: #f3eef9; color: #6b4aa8; }
.stage-badge--construction { background: #e8f1fb; color: #1d5aa8; }
.stage-badge--scheduled { background: #e8f6ec; color: #217a45; }
.stage-badge--opened { background: #e8f6ec; color: #217a45; }
.stage-badge--hold { background: #fdecee; color: #c1121f; }
.update-status {
  margin: 0 0 .15rem;
  color: var(--ink);
  font-size: .9rem;
}
.update-meta { margin: 0; color: var(--muted); font-size: .82rem; }
.update-chev {
  color: #c5cad3;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.popular-block { margin: 0 0 1.4rem; }
.popular-block .rank-list li a { padding-right: 0; }
.line-grid { grid-template-columns: repeat(2, 1fr); }

.line-hero .eyebrow { color: var(--accent); font-weight: 700; margin: 0; font-size: .85rem; }
.status-now {
  font-size: 1.15rem;
  font-weight: 700;
  margin: .5rem 0 .2rem;
}
.status-now.sm { font-size: 1rem; }
.sample-note { font-size: .78rem; color: var(--muted); }
.talk-block { border-color: var(--line); }
.count { color: var(--muted); font-weight: 600; }

.stage-list {
  list-style: none;
  padding: 0;
  margin: .6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.stage-list li {
  display: flex;
  align-items: center;
  gap: .45rem;
  cursor: help;
}
.stage-done { color: var(--muted); }
.stage-current { font-weight: 700; color: var(--accent); }
.stage-todo { color: #b0b7c3; }
.stage-list em {
  font-style: normal;
  font-size: .75rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: .05rem .4rem;
  border-radius: 999px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .6rem;
  padding: .55rem 0;
  border-top: 1px solid var(--line);
}
.timeline-item:first-of-type { border-top: 0; }
.timeline-item h3 { font-size: .95rem; font-weight: 700; }

.doc-item { margin-bottom: .45rem; }
.crumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .7rem;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .3rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.filters { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0; }
.filters a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .84rem;
  color: var(--muted);
}
.filters a.is-on { border-color: var(--ink); color: var(--ink); background: #fff; }

.form label { display: block; margin: .6rem 0; font-size: .9rem; }
.oauth-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  margin: 1rem 0 .9rem;
}
.btn.oauth {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: stretch;
  height: 48px;
  padding: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
}
.btn.oauth .oauth-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.btn.oauth .oauth-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 48px;
  letter-spacing: -.02em;
}
.btn.oauth.naver {
  background: #03c75a;
  color: #fff;
  border: 0;
}
.btn.oauth.naver .oauth-mark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, .35);
}
.btn.oauth.kakao {
  background: #fee500;
  color: #191919;
  border: 0;
}
.oauth-legal {
  margin: 0 0 .85rem;
  font-size: .82rem;
  color: var(--muted);
}
.oauth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.mypage-now {
  margin: .2rem 0 .55rem;
  font-size: .92rem;
}
.user-name {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  vertical-align: middle;
}
.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #2f4d6b;
}
.mypage-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
}
.mypage-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #2f4d6b;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.mypage-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mypage-hero-text h1 { margin: 0 0 .2rem; font-size: 1.25rem; }
.mypage-badge {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.mypage-tabs {
  display: flex;
  gap: .2rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.mypage-tabs a {
  flex: 1;
  min-width: 4.8rem;
  text-align: center;
  padding: .75rem .4rem .65rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.mypage-tabs a.is-on {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--ink);
}
.mypage-panel { padding: 1rem 1.1rem 1.15rem; margin-top: 16px;}
.mypage-panel h2 { margin: 1.1rem 0 .55rem; font-size: 1.02rem; }
.mypage-panel h2:first-child { margin-top: 0; }
.mypage-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .35rem;
}
.mypage-panel-head h2 { margin: 0; }
.mypage-row {
  display: grid;
  gap: .15rem;
  padding: .75rem 0;
  border-bottom: 1px solid #eee;
}
.mypage-row:last-of-type { border-bottom: 0; }
.mypage-row strong { font-size: .95rem; }
.mypage-row span { color: var(--muted); font-size: .82rem; }
.mypage-row.is-new strong { color: var(--ink); }
.nick-hint {
  display: block;
  margin: .35rem 0 0;
  font-size: .82rem;
}
.nick-hint.is-ok { color: #1a7f37; }
.nick-hint.is-bad { color: var(--signal); }
.mypage-form:has(#nick-hint:not([hidden])) .errorlist { display: none; }
.mypage-section {
  padding-top: 1.05rem;
  margin-top: 1.05rem;
  border-top: 1px solid var(--line);
}
.mypage-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.mypage-section h2 { margin: 0 0 .55rem; }
.mypage-form { margin: 0; }
.mypage-inline { margin: .45rem 0 0; }
.mypage-row-controls {
  display: flex;
  align-items: stretch;
  gap: .5rem;
}
.mypage-row-controls .input {
  flex: 1;
  min-width: 0;
  height: 2.7rem;
  box-sizing: border-box;
}
.mypage-row-controls .btn.primary {
  flex: 0 0 auto;
  width: auto;
  min-width: 3.8rem;
  height: 2.7rem;
  padding: 0 .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}
.mypage-file {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  height: 2.7rem;
  box-sizing: border-box;
  padding: 0 .55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.mypage-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.mypage-file-btn {
  flex-shrink: 0;
  padding: .28rem .55rem;
  border-radius: 8px;
  background: #f1f4f8;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
}
.mypage-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mypage-text-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mypage-logout {
  margin: 1.1rem 0 0;
  text-align: right;
}
.mypage-logout a {
  color: var(--muted);
  font-size: .84rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.input, select.input, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem .75rem;
  font: inherit;
  margin-top: .25rem;
  background: #fff;
}
.image-attach { margin: .85rem 0 1.1rem; }
.image-attach-label {
  margin: 0 0 .4rem;
  font-size: .9rem;
}
.image-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: .45rem .9rem;
  border: 1px dashed #c5cad3;
  border-radius: 10px;
  background: #f7f8fa;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.image-attach-btn:hover { background: #eef1f5; }
.image-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-attach-hint { margin: .35rem 0 0; font-size: .82rem; }
.image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .7rem;
}
.image-preview-list[hidden] { display: none !important; }
.image-preview {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.image-preview img {
  display: block;
  width: 7.2rem;
  height: 7.2rem;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f4f5f7;
}
.image-preview-remove {
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 42, 65, .82);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.image-preview-remove:hover { background: #1b2a41; }
.post-body { white-space: pre-wrap; }
.post-body + .post-image,
.post-image + .post-body,
.post-image + .post-image { margin-top: .85rem; }
.post-image {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: contain;
  object-position: center;
  background: #f4f5f7;
  border-radius: 10px;
}
.post-images { display: grid; gap: .6rem; margin-top: .8rem; }
.post-images .post-image { margin-top: 0; }
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.05rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.post-action {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: .42rem .85rem;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
}
.post-action svg { flex: 0 0 auto; }
.post-action:hover { background: var(--accent-soft); }
.post-action.like-btn.is-on {
  color: var(--signal);
  border-color: #f0c9bc;
  background: #fff7f5;
}
.post-action.share-btn.is-copied { color: var(--done); }
.owner-tools {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .3rem 0 .85rem;
}
.owner-tools a,
.owner-tools button,
.comment-tools .reply-toggle {
  color: var(--muted);
}
.owner-tools form { display: inline; margin: 0; }
.owner-tools button,
.owner-inline button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.owner-tools a { font-size: .86rem; }
.owner-tools .is-danger,
.comment-tools .is-danger { color: var(--signal); }
.comment-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: .3rem;
}
.owner-inline { display: inline; margin: 0; }
.comment { padding: .7rem 0; border-top: 1px solid var(--line); }
.comment.reply { margin-left: 1rem; padding-left: 0; }
.comment-tools .reply-toggle { margin-top: 0; }
.reply-toggle {
  display: inline-block;
  margin-top: .3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.reply-box {
  margin-top: .55rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f7fa;
}
.reply-box[hidden] { display: none !important; }
.reply-box .textarea { width: 100%; margin: 0; }
.reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: .35rem;
  margin-top: .5rem;
}
.reply-actions .btn { padding: .4rem .75rem; font-size: .86rem; }
.reply-actions .btn.primary {
  background: var(--accent-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 600;
}
.comment-form { margin-top: .9rem; }
.comment-form .textarea { width: 100%; margin: 0 0 .55rem; }
.comment-form .btn,
.comment-form .btn.primary,
.card.form > .btn.primary {
  display: block;
  width: 100%;
  height: 2.55rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  line-height: calc(2.55rem - 2px);
}
.body-composer { display: grid; gap: .65rem; margin: .45rem 0 .7rem; }
.body-block-image {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f4f5f7;
}
.body-block-image img {
  display: block;
  width: 100%;
  max-height: 16rem;
  object-fit: contain;
  background: #f4f5f7;
}
.composer-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 .85rem;
}
.composer-actions .image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.empty, .muted { color: var(--muted); font-size: 14px;}
.page-head { margin-bottom: .8rem; }
.suggest {
  position: absolute;
  left: 0; right: 80px; top: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: .25rem;
  box-shadow: var(--shadow);
}
.suggest a { display: block; padding: .55rem .8rem; }
.suggest a:hover { background: var(--accent-soft); }

.detail-page,
.detail-grid,
.detail-main,
.detail-side {
  min-width: 0;
  max-width: 100%;
}
.detail-grid { display: grid; gap: .9rem; }
.detail-main .line-hero h1 {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wrap-text,
.line-hero p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cta-row .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.stage-track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: .8rem 0 0;
  padding-bottom: .25rem;
  max-width: 100%;
}
.verify-note {
  margin: -.2rem 0 .4rem;
  font-size: .82rem;
  color: var(--muted);
}
.verify-note a { text-decoration: underline; }
.source-now {
  list-style: none;
  margin: .45rem 0 0;
  padding: 0;
}
.source-now li {
  margin: .25rem 0 0;
}
.source-now a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.source-now span,
.source-list span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  margin-top: .15rem;
}
.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.source-list li {
  padding: .65rem 0;
  border-top: 1px solid var(--line);
}
.source-list li:first-child { border-top: 0; }
.source-list a { font-weight: 700; }
.notice-summary {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.doc-preview {
  margin-top: .5rem;
}
.doc-preview > summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .75rem;
  background: #fff;
}
.doc-preview > summary::-webkit-details-marker { display: none; }
.doc-preview[open] .when-closed { display: none; }
.doc-preview:not([open]) .when-open { display: none; }
.doc-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .65rem;
  margin-top: .65rem;
  max-width: 420px;
}
.doc-page {
  display: block;
  font-weight: 500 !important;
}
.doc-page img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: block;
}
.doc-page span {
  display: block;
  margin-top: .3rem;
  font-size: .78rem;
  color: var(--muted);
}
.doc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 16, 28, .86);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-lightbox[hidden] { display: none !important; }
.doc-lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.doc-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  transform-origin: center center;
  user-select: none;
}
.doc-lightbox-close {
  position: absolute;
  top: .7rem;
  right: .9rem;
  border: 0;
  background: #fff;
  color: #111;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}
.doc-lightbox-tools {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.doc-lightbox-tools button {
  min-width: 2.4rem;
  height: 2.2rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}
.status-now.red {
  display: inline-block;
  color: var(--signal);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin: .55rem 0 .65rem;
  padding: .12rem 0 .2rem;
  border-bottom: 3px solid var(--signal);
}
.segment-box {
  margin: .85rem 0 .2rem;
}
.segment-list {
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
}
.segment-list li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .5rem 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.segment-list li:first-child { border-top: 0; }
.segment-list a { font-weight: 700; }
.segment-list span { color: var(--muted); font-size: .82rem; }
.overview-fold {
  margin-top: .2rem;
  padding-top: .15rem;
  border-top: 0;
}
.overview-fold .overview-label {
  margin: 0 0 .15rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.overview-rows {
  margin: .2rem 0 0;
}
.overview-row {
  padding: .55rem 0;
  border-top: 1px solid var(--line);
}
.overview-row:first-child { border-top: 0; }
.overview-k {
  margin: 0 0 .2rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.overview-row p {
  margin: .15rem 0 0;
  font-size: .88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.overview-row p:first-of-type { margin-top: 0; }
.fold-more > summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem 0 .15rem;
}
.fold-more > summary::-webkit-details-marker { display: none; }
.fold-more > summary::after { content: " · 펼치기"; }
.fold-more[open] > summary::after { content: " · 접기"; }
.fold-block > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: 0 0 .35rem;
}
.fold-block > summary::-webkit-details-marker { display: none; }
.fold-block > summary::after {
  content: "펼치기";
  color: var(--muted);
  font-weight: 500;
  font-size: .8rem;
  flex: 0 0 auto;
}
.fold-block[open] > summary::after { content: "접기"; }
.stage-track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: .2rem;
  width: max-content;
  min-width: 100%;
}
.stage-track li {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
  min-width: 4.6rem;
  text-align: center;
  font-size: .78rem;
  position: relative;
}
.stage-track .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 0 .3rem;
  border-radius: 50%;
  border: 2px solid #d0d5dd;
  background: #fff;
  box-sizing: border-box;
  font-size: .75rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.stage-track .stage-done .mark {
  background: var(--done);
  border-color: var(--done);
  color: #fff;
}
.stage-track .stage-current .mark {
  background: var(--signal);
  border-color: var(--signal);
}
.stage-track .stage-current { color: var(--signal); font-weight: 700; }
.stage-track .stage-todo { color: #98a2b3; }
.stage-track em {
  display: block;
  font-style: normal;
  font-size: .7rem;
  margin-top: .15rem;
  min-height: 1rem;
  line-height: 1;
}
.history-item {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: .7rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}
.history-item:first-of-type { border-top: 0; }
.history-item h3 { font-size: .95rem; }
.history-item h3 a { color: inherit; }
.history-item h3 a:hover { text-decoration: underline; }
.history-item .muted a { color: var(--muted); text-decoration: underline; }
.history-item p { margin: .2rem 0 0; font-size: .9rem; }
.info-card dl { margin: 0; }
.info-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.info-card dl > div:last-child { border-bottom: 0; }
.info-card dt { color: var(--muted); }
.info-card dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.stage-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: .75rem;
  left: calc(50% + .85rem);
  width: calc(100% - .3rem);
  height: 2px;
  background: #d0d5dd;
}
.stage-track .stage-done:not(:last-child)::after { background: var(--done); }
.line-hero .sub { margin: 0; color: var(--muted); }
.history-item .pill.official { background: var(--ink); }
.detail-side .line-mini { margin-bottom: .45rem; }
.detail-side .line-mini span { display: block; }

@media (min-width: 768px) {
  .fab {
    right: max(1.2rem, calc((100vw - var(--max)) / 2 + 1.2rem));
    bottom: 2rem;
    min-width: 5.4rem;
    height: 2.9rem;
  }
  .two-col { grid-template-columns: 1fr 1fr; }
  .oauth-stack { grid-template-columns: 1fr 1fr; }
  .btn.oauth {
    font-size: 13px;
    grid-template-columns: 40px 1fr;
  }
  .btn.oauth .oauth-label { padding-right: 10px; }
  .map-wrap iframe { height: 320px; }
  .stage-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem .8rem;
  }
  .line-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .progress-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

@media (max-width: 430px) {
  .header-inner { padding: .55rem .75rem .35rem; }
  .page { padding: .8rem .7rem 2.8rem; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); gap: .3rem; }
  .stat-card { padding: .55rem .15rem; }
  .stat-card span { font-size: .7rem; }
}
