:root {
    --bg: #f7f8f5;
    --surface: #ffffff;
    --surface-soft: #f0f3ed;
    --surface-strong: #e6ece3;
    --ink: #172019;
    --muted: #6f786f;
    --line: #dde2dc;
    --brand: #235c3c;
    --brand-deep: #17472d;
    --brand-soft: #dcebdd;
    --lime: #b8d976;
    --orange: #eaa765;
    --violet: #8778d8;
    --blue: #5d8ec8;
    --danger: #bc4b4b;
    --shadow: 0 18px 60px rgba(30, 50, 35, .09);
    --shadow-sm: 0 7px 24px rgba(30, 50, 35, .07);
    --radius: 20px;
    --radius-sm: 12px;
    --container: 1180px;
}

.legal-page { padding: clamp(3rem, 8vw, 6rem) 0; }
.legal-container { max-width: 860px; }
.legal-header { margin-bottom: 2rem; }
.legal-header h1 { margin: .45rem 0 .65rem; font-size: clamp(2rem, 5vw, 3.4rem); }
.legal-header p { color: var(--muted); }
.legal-card { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.legal-section + .legal-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 .65rem; font-size: 1.1rem; }
.legal-section p { margin: 0; color: var(--muted); line-height: 1.85; }
.footer-meta a { color: inherit; text-decoration: none; }
.footer-meta a:hover { color: var(--ink); }

[data-theme="dark"] {
    --bg: #101512;
    --surface: #171e19;
    --surface-soft: #1d261f;
    --surface-strong: #253128;
    --ink: #ecf2eb;
    --muted: #9da89f;
    --line: #2d3930;
    --brand: #7fbd8f;
    --brand-deep: #a2d4ae;
    --brand-soft: #24392a;
    --shadow: 0 20px 60px rgba(0, 0, 0, .26);
    --shadow-sm: 0 7px 24px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.header-inner { height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 850; letter-spacing: -.05em; }
.brand-mark { position: relative; width: 27px; height: 27px; display: inline-block; transform: rotate(-1deg); }
.brand-mark span { position: absolute; bottom: 3px; width: 7px; border-radius: 5px 5px 2px 2px; background: var(--brand); }
.brand-mark span:nth-child(1) { left: 1px; height: 12px; }
.brand-mark span:nth-child(2) { left: 10px; height: 21px; }
.brand-mark span:nth-child(3) { left: 19px; height: 16px; }
.main-nav { display: flex; gap: 27px; margin-left: 24px; color: var(--muted); font-weight: 650; font-size: 14px; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-actions form { display: flex; }
.text-button { border: 0; padding: 8px 6px; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.button { border: 1px solid var(--brand); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; background: var(--brand); color: #fff; font-weight: 780; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
[data-theme="dark"] .button:not(.button-light):not(.button-ghost) { color: #102017; }
[data-theme="dark"] .button-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
[data-theme="dark"] .button-ghost:hover { border-color: #496052; background: var(--surface-soft); }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 23%, transparent); }
.button-small { min-height: 38px; border-radius: 8px; padding-inline: 15px; font-size: 13px; }
.button-large { min-height: 54px; padding-inline: 25px; }
.button-block { width: 100%; }
.button-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-light { border-color: #fff; background: #fff; color: #1b3827; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-button svg { width: 18px; height: 18px; }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
.mobile-menu-toggle, .mobile-nav { display: none; }
.user-menu { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; }
.user-name { max-width: 75px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.flash-wrap { position: fixed; z-index: 100; top: 88px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.flash { min-width: 320px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 11px; padding: 13px 15px; background: var(--surface); box-shadow: var(--shadow); pointer-events: auto; }
.flash-error { border-left-color: var(--danger); }
.flash-warning { border-left-color: var(--orange); }
.flash-close { border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.site-footer { padding: 58px 0 28px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 2fr); align-items: start; gap: 42px 70px; }
.footer-brand { font-size: 19px; }
.footer-inner p { margin: 6px 0 0; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column strong { margin-bottom: 5px; color: var(--ink); font-size: 14px; }
.footer-column a { color: var(--muted); font-size: 14px; line-height: 1.5; transition: color .18s; }
.footer-column a:hover { color: var(--brand); }
.footer-column a span { margin-left: 2px; font-size: 11px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Home */
.hero { overflow: hidden; min-height: 660px; display: flex; align-items: center; padding: 78px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; }
.eyebrow { color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #68a974; box-shadow: 0 0 0 5px color-mix(in srgb, #68a974 15%, transparent); }
.hero h1 { margin: 17px 0 23px; font-size: clamp(38px, 3.9vw, 48px); line-height: 1.12; letter-spacing: -.065em; font-weight: 860; }
.hero-title-line { display: block; white-space: nowrap; }
.hero h1 .hero-title-accent { color: var(--brand); }
.hero-copy > p { max-width: 610px; margin: 0 0 32px; color: var(--muted); font-size: 17px; line-height: 1.85; word-break: keep-all; }
.hero-actions { display: flex; gap: 12px; }
.trust-row { display: flex; gap: 24px; margin-top: 25px; color: var(--muted); font-size: 12px; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.trust-row svg { width: 15px; height: 15px; color: var(--brand); stroke-width: 2.6; }
.hero-visual { position: relative; min-height: 480px; border: 1px solid var(--line); border-radius: 46% 54% 42% 58% / 53% 42% 58% 47%; background: var(--surface-soft); box-shadow: inset 0 0 80px color-mix(in srgb, var(--brand-soft) 65%, transparent); }
.map-grid { position: absolute; inset: 0; opacity: .32; border-radius: inherit; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at center, #000 15%, transparent 75%); }
.map-road { position: absolute; height: 20px; border: 6px solid var(--surface); border-radius: 50%; opacity: .8; }
.road-one { width: 530px; top: 190px; left: -45px; transform: rotate(-22deg); }
.road-two { width: 390px; top: 280px; left: 100px; transform: rotate(62deg); }
.map-pin { position: absolute; z-index: 2; left: 54%; top: 42%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50% 50% 50% 10%; transform: rotate(-45deg); background: var(--brand); box-shadow: 0 12px 35px color-mix(in srgb, var(--brand) 40%, transparent); }
.map-pin span { width: 15px; height: 15px; border: 4px solid #fff; border-radius: 50%; }
.preview-card { position: absolute; z-index: 4; border: 1px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 15px; background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.preview-main { left: -20px; top: 55px; width: 235px; padding: 18px; }
.preview-top { display: flex; gap: 12px; align-items: center; }
.preview-top > span:last-child { display: flex; flex-direction: column; }
.preview-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 21px; }
.preview-card small { color: var(--muted); font-size: 10px; }
.preview-card strong { font-size: 18px; letter-spacing: -.04em; }
.trend-row { display: flex; justify-content: space-between; margin-top: 17px; color: var(--muted); font-size: 10px; }
.trend-row b { color: #4b9b60; }
.mini-chart { height: 60px; display: flex; align-items: flex-end; gap: 7px; margin-top: 6px; }
.mini-chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(var(--lime), var(--brand)); }
.preview-land { right: -13px; top: 110px; width: 165px; padding: 16px; display: flex; flex-direction: column; }
.preview-land strong { margin: 2px 0 7px; font-size: 14px; }
.preview-land span { color: var(--muted); font-size: 10px; }
.preview-shop { right: 30px; bottom: 65px; width: 180px; padding: 13px; display: flex; align-items: center; gap: 11px; }
.preview-shop > span:last-child { display: flex; flex-direction: column; }
.round-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; }
.data-orbit { position: absolute; z-index: 3; border-radius: 20px; padding: 5px 10px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--muted); font-size: 9px; font-weight: 750; }
.orbit-one { left: 55px; bottom: 80px; }
.orbit-two { right: 120px; top: 35px; }
.source-strip { padding: 27px 0; border-block: 1px solid var(--line); background: var(--surface); }
.source-strip .container { display: flex; align-items: center; gap: 38px; }
.source-strip p { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: 11px; }
.source-logos { flex: 1; display: flex; align-items: center; justify-content: space-between; color: color-mix(in srgb, var(--ink) 62%, transparent); font-weight: 820; letter-spacing: -.02em; }
.section { padding: 110px 0; }
.section-muted { background: var(--surface-soft); }
.section-heading { max-width: 620px; margin: 0 auto 54px; text-align: center; }
.section-heading h2 { margin: 10px 0 15px; white-space: nowrap; font-size: clamp(18px, 3.4vw, 45px); line-height: 1.25; letter-spacing: -.07em; }
.process-grid h2, .cta-card h2 { margin: 10px 0 15px; font-size: clamp(31px, 4vw, 45px); line-height: 1.25; letter-spacing: -.055em; }
.section-heading p, .process-grid > div > p { margin: 0; color: var(--muted); font-size: 16px; }
.section-heading p { width: max-content; max-width: calc(100vw - 40px); margin-inline: auto; white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.feature-card { position: relative; min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-number { position: absolute; top: 23px; right: 25px; color: var(--muted); font: 700 10px/1 monospace; }
.feature-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-soft); color: var(--brand); font-size: 22px; }
.feature-card h3 { margin: 26px 0 9px; font-size: 20px; letter-spacing: -.035em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; word-break: keep-all; }
.feature-accent { border-color: #bad3bf; background: linear-gradient(145deg, #dcecdf 0%, #cfe3d3 100%); color: #193723; }
.feature-accent .feature-number, .feature-accent p { color: #52695a; }
.feature-accent .feature-icon { background: rgba(35,92,60,.1); color: #235c3c; }
.sparkline { height: 48px; margin-top: 27px; overflow: hidden; }
.sparkline span { width: 130%; height: 70px; display: block; border-top: 2px solid #6f9f78; border-radius: 50%; transform: rotate(-8deg) translate(-10px, 23px); }
.feature-tags { display: flex; gap: 6px; margin-top: 25px; }
.feature-tags span { padding: 5px 8px; border-radius: 6px; background: var(--surface-soft); color: var(--muted); font-size: 10px; }
.zone-sample { display: flex; height: 35px; margin-top: 29px; gap: 3px; transform: skew(-10deg); }
.zone-sample i { flex: 1; border-radius: 5px; background: var(--brand-soft); }
.zone-sample i:nth-child(2) { background: #f0d9b7; }.zone-sample i:nth-child(3){background:#d9d4ef}
.category-dots { display: flex; gap: 8px; align-items: flex-end; margin-top: 26px; }
.category-dots i { width: 28px; border-radius: 50%; aspect-ratio: 1; background: var(--brand-soft); }.category-dots i:nth-child(2){width:38px;background:#ebd4b9}.category-dots i:nth-child(3){width:24px;background:#d9d4ef}.category-dots i:nth-child(4){width:32px;background:#c9dcef}.category-dots i:nth-child(5){width:18px}
.process-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 115px; align-items: center; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--brand); font-weight: 850; }
.process-list strong { display: block; margin-bottom: 3px; font-size: 17px; }
.process-list p { margin: 0; color: var(--muted); font-size: 13px; }
.cta-section { padding: 90px 0; }
.cta-card { min-height: 250px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; position: relative; border: 1px solid #bad3bf; border-radius: 28px; padding: 52px 64px; background: linear-gradient(135deg, #dcecdf 0%, #cfe5d4 100%); color: #193723; }
.cta-card::after { content:""; position:absolute; width:330px; height:330px; right:15%; top:-190px; border:60px solid rgba(35,92,60,.055); border-radius:50%; }
.cta-card > * { position: relative; z-index: 1; }
.eyebrow.light { color: #356d48; }
.cta-card p { margin: 0; color: #52695a; }

[data-theme="dark"] .feature-card { border-color: #2b3b31; background: #151d18; }
[data-theme="dark"] .feature-card:not(.feature-accent):hover { border-color: #3d5545; background: #18231b; }
[data-theme="dark"] .feature-accent { border-color: #3d6549; background: linear-gradient(145deg, #284c34 0%, #1d3526 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
[data-theme="dark"] .feature-accent h3 { color: #f2f7f2; }
[data-theme="dark"] .feature-accent .feature-number,
[data-theme="dark"] .feature-accent p { color: #c6d5c9; }
[data-theme="dark"] .feature-accent .feature-icon { background: #315940; color: #c4e5cb; }
[data-theme="dark"] .feature-accent .sparkline span { border-color: #91c99b; }
[data-theme="dark"] .feature-tags span { background: #1c2820; }
[data-theme="dark"] .cta-card { border: 1px solid #365640; background: linear-gradient(135deg, #1a3324 0%, #203d2a 100%); box-shadow: 0 18px 55px rgba(0,0,0,.2); }
[data-theme="dark"] .cta-card::after { border-color: rgba(144,199,156,.07); }
[data-theme="dark"] .cta-card p { color: #c5d2c8; }
[data-theme="dark"] .eyebrow.light { color: #a7d2ad; }
[data-theme="dark"] .cta-card .button-light { border-color: #dce9de; background: #eef5ef; color: #173120; }
[data-theme="dark"] .cta-card .button-light:hover { background: #ffffff; }

/* Forms & authentication */
.auth-section { width: min(calc(100% - 40px), var(--container)); min-height: calc(100vh - 147px); display: grid; grid-template-columns: minmax(520px, 1fr) minmax(420px, .9fr); overflow: hidden; margin: 35px auto 70px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.auth-panel { width: min(520px, calc(100% - 60px)); margin: 0 auto; padding: 48px 0 65px; }
.auth-brand { margin-bottom: 30px; }
.auth-heading h1 { margin: 10px 0 7px; font-size: 37px; line-height: 1.25; letter-spacing: -.055em; }
.auth-heading p { margin: 0 0 30px; color: var(--muted); }
.stack-form { display: flex; flex-direction: column; gap: 18px; }
.stack-form label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 730; }
.stack-form label span small { color: var(--muted); font-weight: 500; }
input, select { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 9px; outline: none; padding: 0 14px; background: var(--surface); color: var(--ink); transition: border .17s, box-shadow .17s; }
input::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 54px; }
.password-toggle { position: absolute; top: 50%; right: 8px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; padding: 0; background: transparent; color: var(--muted); cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { background: var(--surface-soft); color: var(--ink); }
.password-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand); }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-switch { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { color: var(--brand); font-weight: 800; }
.form-errors { margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line)); border-radius: 9px; padding: 11px 14px; background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); font-size: 12px; }
.form-errors p { margin: 0; }
.social-login-list { display: grid; gap: 11px; margin-bottom: 20px; }
.social-button { position: relative; min-height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 760; line-height: 1.4; transition: transform .16s, border-color .16s, box-shadow .16s; }
.social-button:hover { z-index: 1; transform: translateY(-1px); border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.social-button > span { position: absolute; left: 15px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.social-button svg { width: 21px; height: 21px; fill: currentColor; stroke-width: 0; }
.social-naver { border-color: #03c75a; background: #03c75a; color: #fff; }
.social-naver > span { background: rgba(255,255,255,.15); }
.social-kakao { border-color: #fee500; background: #fee500; color: #191919; }
.social-google { border: 1px solid #747775; background: #fff; color: #1f1f1f; box-shadow: none; font-family: Arial, sans-serif; font-weight: 600; }
.social-google:hover { border-color: #5f6368; background: #f8f9fa; box-shadow: 0 1px 3px rgba(60,64,67,.2); }
.social-google:focus-visible { outline: 3px solid rgba(66,133,244,.28); outline-offset: 2px; border-color: #4285f4; }
.social-google > .google-logo { width: 28px; height: 28px; overflow: hidden; display: block; border: 0; border-radius: 50%; background: #fff; }
.social-google > .google-logo img { position: absolute; top: -7px; left: -7px; width: 42px; height: 42px; max-width: none; }
[data-theme="dark"] .social-google { border-color: #8e918f; background: #131314; color: #e3e3e3; box-shadow: none; }
[data-theme="dark"] .social-google:hover { border-color: #aeb1af; background: #202124; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.social-button.is-pending::after { content: "설정 필요"; position: absolute; right: 12px; color: currentColor; opacity: .7; font-size: 11px; font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 11px; margin: 18px 0; color: var(--muted); font-size: 9px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-art { position: relative; overflow: hidden; display: grid; place-items: center; padding: 60px; background: var(--brand-deep); color: #fff; }
.auth-art-copy { position: relative; z-index: 2; }
.quote-mark { display: block; height: 60px; color: var(--lime); font: 90px/1 Georgia, serif; }
.auth-art blockquote { margin: 20px 0; font-size: 34px; font-weight: 820; line-height: 1.42; letter-spacing: -.05em; }
.auth-art-copy p { color: rgba(255,255,255,.6); }
.auth-grid { position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg,#fff 1px,transparent 1px); background-size: 48px 48px; transform: rotate(10deg) scale(1.3); }
.register-art { background: #223b2b; }
[data-theme="dark"] .auth-art { border-left: 1px solid #314238; background: linear-gradient(145deg, #1b3b27 0%, #10271a 100%); color: #f5f8f5; }
[data-theme="dark"] .auth-art-copy p { color: #c3d0c6; }
[data-theme="dark"] .auth-art .quote-mark { color: #a9cf79; }
[data-theme="dark"] .auth-grid { opacity: .055; }
[data-theme="dark"] .register-art { background: linear-gradient(145deg, #1a3424 0%, #102319 100%); }
.auth-stat-card { position: relative; z-index: 2; width: min(380px, 100%); border: 1px solid rgba(255,255,255,.13); border-radius: 22px; padding: 30px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.auth-stat-card > small { color: var(--lime); font-weight: 800; }
.auth-stat-card > strong { display: block; margin: 8px 0 28px; font-size: 27px; line-height: 1.35; }
.fake-report { height: 65px; display: grid; grid-template-columns: 42px 1fr 32px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.fake-report i { width: 38px; height: 38px; border-radius: 9px; background: rgba(184,217,118,.2); }
.fake-report span { height: 9px; border-radius: 4px; background: rgba(255,255,255,.25); }
.fake-report b { width: 24px; height: 7px; border-radius: 3px; background: var(--lime); }
.empty-page { min-height: 65vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { width: 65px; height: 65px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 25px; font-weight: 900; }
.empty-page h1 { margin-bottom: 0; }.empty-page p{color:var(--muted);margin-bottom:24px}

/* Dashboard */
.dashboard-hero { padding: 58px 0 38px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.dashboard-heading h1 { margin: 7px 0 5px; font-size: 38px; letter-spacing: -.055em; }
.dashboard-heading p { margin: 0; color: var(--muted); }
.api-state { min-width: 220px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; }
.api-state > span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.api-state.is-live > span { background: #58a46e; box-shadow: 0 0 0 4px rgba(88,164,110,.12); }
.api-state b { margin-left: auto; color: var(--brand); }
.dashboard-content { padding: 42px 0 100px; }
.dashboard-grid { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 25px; align-items: start; }
.create-report-card, .report-list-panel, .settings-card, .aside-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.create-report-card { padding: 27px; }
.card-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 25px; }
.round-icon.large { width: 45px; height: 45px; font-size: 19px; }
.card-heading h2, .panel-title h2, .settings-card h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.card-heading p, .panel-title p, .settings-card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; color: var(--muted); }
.input-with-icon input { padding-left: 42px; }
.report-form { gap: 15px; }
.report-form .button { margin-top: 3px; }
.form-note { display: flex; align-items: center; gap: 6px; margin: -3px 0 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.form-note svg { width: 15px; color: var(--brand); }
.loading-label { display:none; align-items:center; gap:8px; }.loading-label i{width:15px;height:15px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .7s linear infinite}.is-loading .normal-label{display:none}.is-loading .loading-label{display:flex}@keyframes spin{to{transform:rotate(360deg)}}
.collecting-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin-top: 25px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 10px; }
.collecting-list > span { grid-column: 1/-1; color: var(--ink); font-size: 11px; font-weight: 800; }
.collecting-list i { color: var(--brand); font-style: normal; }
.report-list-panel { overflow: hidden; min-height: 495px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; padding: 27px 29px 20px; }
.count-pill { min-width: 38px; border-radius: 20px; padding: 4px 10px; background: var(--surface-soft); color: var(--muted); text-align: center; font-size: 11px; font-weight: 700; }
.report-list { border-top: 1px solid var(--line); }
.report-row { display: grid; grid-template-columns: 65px minmax(0, 1fr) 30px; gap: 16px; align-items: center; padding: 16px 28px; border-bottom: 1px solid var(--line); transition: background .17s; }
.report-row:hover { background: var(--surface-soft); }
.report-map-thumb { position: relative; overflow: hidden; width: 62px; height: 62px; border-radius: 12px; background-color: var(--surface-soft); background-image: linear-gradient(35deg, transparent 44%, rgba(255,255,255,.8) 45%, rgba(255,255,255,.8) 53%, transparent 54%),linear-gradient(120deg, transparent 40%,rgba(255,255,255,.55) 41%,rgba(255,255,255,.55) 49%,transparent 50%); }
.report-map-thumb i { position: absolute; width: 9px; height: 9px; left: 28px; top: 26px; border: 2px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.thumb-1{background-color:#dfeadb}.thumb-2{background-color:#e9e1d7}.thumb-3{background-color:#dbe6e9}.thumb-4{background-color:#e3deeb}
[data-theme="dark"] .report-map-thumb{filter:brightness(.65)}
.report-row-main { min-width: 0; display: flex; flex-direction: column; }
.report-row-main > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.report-row-main > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 2px 0 7px; color: var(--muted); }
.report-row-main > span { display: flex; align-items: center; gap: 10px; }
.report-row-main time { color: var(--muted); font-size: 9px; }
.status-badge { border-radius: 10px; padding: 2px 7px; background: var(--brand-soft); color: var(--brand-deep); font-size: 9px; font-style: normal; font-weight: 800; }
.status-partial { background: color-mix(in srgb, var(--orange) 18%, var(--surface)); color: #a46127; }
.row-arrow { color: var(--brand); font-size: 18px; }
.empty-reports { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; }
.empty-map { width: 100px; height: 85px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 68%); }
.empty-map span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--brand); font-size: 21px; }
.empty-reports h3 { margin: 10px 0 3px; font-size: 16px; }.empty-reports p{margin:0;color:var(--muted);font-size:12px}
.guest-save-panel { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; border-top: 1px solid var(--line); text-align: center; }
.guest-save-panel h3 { margin: 10px 0 4px; font-size: 17px; }.guest-save-panel p{margin:0 0 20px;color:var(--muted);font-size:12px}.guest-save-panel>div:last-child{display:flex;gap:8px}.guest-save-panel .button{min-width:105px}

/* Settings */
.page-heading { padding: 65px 0 45px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-heading h1 { margin: 8px 0 5px; font-size: 39px; letter-spacing: -.055em; }.page-heading p{margin:0;color:var(--muted)}
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 12px; font-weight: 700; }
.settings-section { padding: 40px 0 100px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 23px; align-items: start; }
.settings-main { display: flex; flex-direction: column; gap: 20px; }
.settings-card { padding: 28px; }
.settings-card-head { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.mode-badge { border-radius: 8px; padding: 6px 9px; background: color-mix(in srgb, var(--orange) 15%, var(--surface)); color: #a56329; font: 800 9px/1 monospace; letter-spacing: .08em; }
.mode-badge.live{background:var(--brand-soft);color:var(--brand-deep)}
.connection-list > div { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }.connection-list > div:last-child{border:0;padding-bottom:0}
.connection-logo { width: 40px; height: 40px; display: grid; flex:0 0 auto; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 850; }.connection-logo.blue{background:color-mix(in srgb,var(--blue) 17%,var(--surface));color:var(--blue)}.connection-logo.violet{background:color-mix(in srgb,var(--violet) 17%,var(--surface));color:var(--violet)}
.connection-list p { min-width: 0; display:flex;flex-direction:column;margin:0}.connection-list strong{font-size:13px}.connection-list small{color:var(--muted)}
.connection-state { display:flex;align-items:center;gap:6px;margin-left:auto;color:var(--muted);font-size:10px;font-style:normal;font-weight:800}.connection-state i{width:7px;height:7px;border-radius:50%;background:var(--orange)}.connection-state.connected{color:var(--brand)}.connection-state.connected i{background:#58a46e}
.setup-steps { list-style:none;margin:0;padding:7px 0 0}.setup-steps li{display:grid;grid-template-columns:35px 1fr;gap:13px;padding:14px 0}.setup-steps li>span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--surface-soft);color:var(--brand);font-size:11px;font-weight:850}.setup-steps strong{display:block;font-size:13px}.setup-steps p{margin:3px 0;color:var(--muted);font-size:11px}code{border-radius:5px;padding:2px 5px;background:var(--surface-soft);color:var(--brand-deep);font:500 11px/1.5 Consolas,monospace}
.security-note { display:flex;gap:12px;margin-top:15px;border-radius:10px;padding:15px;background:var(--surface-soft)}.security-note svg{width:22px;flex:0 0 auto;color:var(--brand)}.security-note p{display:flex;flex-direction:column;margin:0}.security-note strong{font-size:12px}.security-note span{color:var(--muted);font-size:10px}
.settings-aside{display:flex;flex-direction:column;gap:16px}.aside-card{padding:22px}.aside-card h3{margin:0 0 12px;font-size:14px}.aside-card ul{margin:0;padding-left:17px;color:var(--muted);font-size:11px}.aside-card li{margin:8px 0}.aside-card.subtle{background:var(--surface-soft);box-shadow:none}.aside-card p{margin:0;color:var(--muted);font-size:11px}

/* Report */
.report-header { padding: 36px 0 25px; background: var(--surface); }
.report-breadcrumb { display:flex;gap:8px;margin-bottom:25px;color:var(--muted);font-size:11px}.report-breadcrumb a:hover{color:var(--brand)}
.report-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.report-labels { display:flex;gap:6px;margin-bottom:8px}.type-pill,.demo-pill{border-radius:6px;padding:3px 8px;background:var(--brand-soft);color:var(--brand-deep);font-size:9px;font-weight:850}.demo-pill{background:color-mix(in srgb,var(--orange) 17%,var(--surface));color:#a56329}
.report-title-row h1{margin:0;font-size:34px;line-height:1.25;letter-spacing:-.055em}.report-title-row p{display:flex;align-items:center;gap:6px;margin:7px 0 0;color:var(--muted);font-size:12px}.report-title-row p svg{width:15px;height:15px;color:var(--brand)}
.report-actions{display:flex;gap:8px}.report-actions .button{min-height:40px;padding-inline:15px;font-size:11px}.icon-button.danger{color:var(--danger);font-size:22px}
.report-meta{display:flex;gap:22px;margin-top:23px;padding-top:17px;border-top:1px solid var(--line);color:var(--muted);font-size:9px}.source-status{margin-left:auto}.source-status i{width:7px;height:7px;display:inline-block;margin-right:5px;border-radius:50%;background:#5aa470}
.report-nav{position:sticky;z-index:35;top:77px;border-block:1px solid var(--line);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(15px)}.report-nav .container{display:flex;gap:30px;overflow-x:auto;scrollbar-width:none}.report-nav .container::-webkit-scrollbar{display:none}.report-nav a{position:relative;flex:0 0 auto;padding:15px 2px;color:var(--muted);font-size:11px;font-weight:750}.report-nav a.active,.report-nav a:hover{color:var(--brand)}.report-nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--brand)}
.report-body{padding:32px 0 100px}.report-warning{display:flex;gap:13px;align-items:center;margin-bottom:20px;border:1px solid color-mix(in srgb,var(--orange) 35%,var(--line));border-radius:10px;padding:12px 15px;background:color-mix(in srgb,var(--orange) 8%,var(--surface));font-size:10px}.report-warning strong{flex:0 0 auto;color:#a56329}.report-warning span{color:var(--muted)}
.guest-report-notice{display:flex;align-items:center;gap:13px;margin-bottom:14px;border:1px solid var(--line);border-radius:10px;padding:12px 15px;background:var(--surface);font-size:10px}.guest-report-notice strong{flex:0 0 auto;color:var(--brand)}.guest-report-notice span{color:var(--muted)}.guest-report-notice a{margin-left:auto;color:var(--brand);font-weight:800}
.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.summary-card{position:relative;min-height:155px;border:1px solid var(--line);border-radius:15px;padding:21px;background:var(--surface);box-shadow:var(--shadow-sm)}.summary-card.primary{background:var(--brand-deep);color:#fff}.summary-icon{position:absolute;right:17px;top:17px;width:31px;height:31px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.13);color:var(--lime)}.summary-card:not(.primary) .summary-icon{background:var(--brand-soft);color:var(--brand)}.summary-icon.orange{background:color-mix(in srgb,var(--orange) 16%,var(--surface))!important;color:var(--orange)!important}.summary-icon.violet{background:color-mix(in srgb,var(--violet) 16%,var(--surface))!important;color:var(--violet)!important}
.summary-card>small{display:block;margin-bottom:18px;color:var(--muted);font-size:9px;font-weight:700}.summary-card.primary>small,.summary-card.primary p{color:rgba(255,255,255,.65)}.summary-card>strong{display:block;font-size:23px;line-height:1.25;letter-spacing:-.05em}.summary-card>strong em{font-size:11px;font-style:normal;font-weight:600}.summary-card p{margin:8px 0 0;color:var(--muted);font-size:9px}
.report-section{padding-top:80px}.section-title-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.section-kicker{color:var(--brand);font:800 9px/1 monospace;letter-spacing:.15em}.section-title-row h2{margin:7px 0 1px;font-size:25px;letter-spacing:-.045em}.section-title-row p{margin:0;color:var(--muted);font-size:11px}.source-chip{border:1px solid var(--line);border-radius:7px;padding:5px 9px;background:var(--surface);color:var(--muted);font-size:8px;font-weight:800}
.transaction-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:13px}.chart-card,.range-card,.building-card,.land-zones,.price-panel,.category-chart,.store-list{border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:var(--shadow-sm)}.chart-card{padding:22px}.chart-head{display:flex;justify-content:space-between}.chart-head>span{color:var(--muted);font-size:10px}.chart-head strong{font-size:15px}.chart-head small{color:var(--muted);font-size:8px;font-weight:500}.price-chart{height:205px;display:flex;align-items:flex-end;gap:11px;padding:27px 4px 0;border-bottom:1px solid var(--line);background-image:linear-gradient(var(--line) 1px,transparent 1px);background-size:100% 50px}.price-bar-wrap{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.price-bar-wrap>span{opacity:0;position:absolute;top:-2px;border-radius:5px;padding:2px 4px;background:var(--ink);color:var(--surface);white-space:nowrap;font-size:7px;transition:opacity .15s}.price-bar-wrap:hover>span{opacity:1}.price-bar-wrap i{width:min(28px,70%);min-height:8px;border-radius:5px 5px 0 0;background:linear-gradient(var(--lime),var(--brand));}.price-bar-wrap small{height:22px;padding-top:5px;color:var(--muted);font-size:7px}.range-card{padding:22px}.range-card>span{color:var(--muted);font-size:10px}.range-card>div{display:flex;justify-content:space-between;align-items:center;margin-top:23px}.range-card small{color:var(--muted);font-size:9px}.range-card strong{font-size:14px}.range-card hr{border:0;border-top:1px solid var(--line);margin:22px 0}.range-card p{margin:0;color:var(--muted);font-size:9px}
.table-wrap{overflow-x:auto;margin-top:13px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:13px 17px;border-bottom:1px solid var(--line);text-align:left;font-size:10px}th{background:var(--surface-soft);color:var(--muted);font-size:8px;letter-spacing:.04em}tbody tr:last-child td{border:0}td.right,th.right{text-align:right}td strong{font-weight:750}.no-data{text-align:center;color:var(--muted);font-size:11px}.no-data.panel{border:1px solid var(--line);border-radius:14px;padding:50px;background:var(--surface)}
.building-card{display:grid;grid-template-columns:260px 1fr;overflow:hidden}.building-visual{min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--surface-soft);color:var(--muted);font-size:9px}.tower{width:95px;height:160px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px;border-radius:5px 5px 2px 2px;padding:18px;background:var(--brand-deep);box-shadow:18px 18px 0 color-mix(in srgb,var(--brand) 18%,transparent)}.tower i{border-radius:2px;background:var(--lime);opacity:.75}.building-visual>span{margin-top:25px}.building-details{padding:30px}.detail-primary{padding-bottom:20px;border-bottom:1px solid var(--line)}.detail-primary small{color:var(--muted);font-size:9px}.detail-primary h3{margin:3px 0;font-size:22px;letter-spacing:-.04em}.detail-primary p{margin:0;color:var(--muted);font-size:10px}.building-details dl{display:grid;grid-template-columns:repeat(4,1fr);gap:24px 18px;margin:25px 0 0}.building-details dl div{display:flex;flex-direction:column}.building-details dt{color:var(--muted);font-size:8px}.building-details dd{margin:3px 0 0;font-size:11px;font-weight:750}
.land-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:13px}.land-zones,.price-panel{padding:25px}.land-zones h3,.store-list h3{margin:0;font-size:14px}.zone-summary{margin:5px 0 20px;color:var(--muted);font-size:10px}.zone-list{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.zone-list>div{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:12px}.zone-color{width:6px;height:35px;border-radius:4px;background:var(--brand)}.zone-color.zone-2{background:var(--orange)}.zone-color.zone-3{background:var(--violet)}.zone-color.zone-4{background:var(--blue)}.zone-list p{display:flex;flex-direction:column;margin:0}.zone-list strong{font-size:11px}.zone-list small{color:var(--muted);font-size:8px}.land-notice{margin-top:18px;border-radius:8px;padding:10px;background:var(--surface-soft);color:var(--muted);font-size:8px}.price-panel{background:var(--brand-deep);color:#fff}.price-panel>span{color:rgba(255,255,255,.6);font-size:9px}.price-panel>strong{display:block;margin:8px 0 24px;font-size:25px;letter-spacing:-.05em}.price-panel>strong small{font-size:10px}.price-facts{border-block:1px solid rgba(255,255,255,.15);padding:12px 0}.price-facts p{display:flex;justify-content:space-between;margin:7px 0;font-size:9px}.price-facts span{color:rgba(255,255,255,.55)}.price-panel>.muted{display:block;margin-top:14px;color:rgba(255,255,255,.48);font-size:7px;line-height:1.6}
.commerce-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:13px}.category-chart,.store-list{padding:25px}.category-total{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:19px}.category-total span{color:var(--muted);font-size:9px}.category-total strong{font-size:26px}.category-total small{font-size:10px}.category-bars>div{margin:11px 0}.category-bars p{display:flex;justify-content:space-between;margin:0 0 4px;color:var(--muted);font-size:8px}.category-bars b{color:var(--ink)}.category-bars i{height:7px;display:block;overflow:hidden;border-radius:6px;background:var(--surface-soft)}.category-bars i span{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,var(--brand),var(--lime))}.store-list>div{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.store-list>div:last-child{border:0}.store-dot{width:28px;height:28px;flex:0 0 auto;border-radius:50%;background:var(--brand-soft)}.store-list p{display:flex;min-width:0;flex-direction:column;margin:0}.store-list strong{font-size:10px}.store-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:8px}.report-disclaimer{margin-top:60px;border-left:3px solid var(--line);padding:7px 0 7px 17px;color:var(--muted);font-size:9px}.report-disclaimer strong{color:var(--ink)}.report-disclaimer p{margin:3px 0 0}

/* Report theme accents */
.summary-card.primary { border-color: #bad3bf; background: linear-gradient(145deg, #dcecdf 0%, #cfe3d3 100%); color: #193723; }
.summary-card.primary > small, .summary-card.primary p { color: #52695a; }
.summary-card.primary .summary-icon { background: rgba(35,92,60,.1); color: #397a50; }
.price-panel { border-color: #bad3bf; background: linear-gradient(155deg, #dcecdf 0%, #cfe3d3 100%); color: #193723; }
.price-panel > span, .price-facts span, .price-panel > .muted { color: #52695a; }
.price-facts { border-color: rgba(35,92,60,.14); }
.tower { background: #6f9f7b; box-shadow: 18px 18px 0 rgba(35,92,60,.12); }
.tower i { background: #d7e99e; opacity: 1; }

[data-theme="dark"] .summary-card.primary { border-color: #365640; background: linear-gradient(145deg, #203d2a 0%, #192f22 100%); color: #f1f6f2; }
[data-theme="dark"] .summary-card.primary > small,
[data-theme="dark"] .summary-card.primary p { color: #bdccc1; }
[data-theme="dark"] .summary-card.primary .summary-icon { background: #2d533a; color: #a8d7b1; }
[data-theme="dark"] .price-panel { border-color: #365640; background: linear-gradient(155deg, #203d2a 0%, #192f22 100%); color: #f1f6f2; }
[data-theme="dark"] .price-panel > span,
[data-theme="dark"] .price-facts span,
[data-theme="dark"] .price-panel > .muted { color: #bdccc1; }
[data-theme="dark"] .price-facts { border-color: rgba(190,214,196,.15); }
[data-theme="dark"] .building-visual { background: #18231b; color: #bdc9c0; }
[data-theme="dark"] .tower { background: #315a40; box-shadow: 18px 18px 0 #243a2b; }
[data-theme="dark"] .tower i { background: #98c66f; opacity: 1; }

@media (max-width: 1020px) {
    .main-nav { display:none; }.mobile-menu-toggle{display:inline-flex;margin-left:0}.header-actions{margin-left:auto}.mobile-nav{flex-direction:column;gap:0;padding-bottom:14px}.mobile-nav.is-open{display:flex}.mobile-nav a{padding:10px 0;border-top:1px solid var(--line);font-size:13px;font-weight:700}
    .hero-grid{grid-template-columns:1fr;gap:50px}.hero-copy{text-align:center}.hero-copy>p{margin-inline:auto}.hero-actions,.trust-row{justify-content:center}.hero-visual{width:min(620px,100%);margin-inline:auto}.feature-grid{grid-template-columns:repeat(2,1fr)}.process-grid{gap:55px}
    .dashboard-grid{grid-template-columns:440px minmax(0,1fr)}
    .summary-grid{grid-template-columns:repeat(2,1fr)}.building-details dl{grid-template-columns:repeat(3,1fr)}
}

@media (max-width: 780px) {
    .container{width:min(calc(100% - 28px),var(--container))}.header-inner{height:64px}.site-header .user-name,.header-actions>.text-button,.header-actions>form{display:none}.site-header .button-small{display:none}.theme-toggle{width:36px;height:36px}.mobile-menu-toggle{width:36px;height:36px}.site-footer{padding:38px 0 24px}.footer-inner{grid-template-columns:1fr;gap:28px}.footer-nav{grid-template-columns:1fr 1fr;gap:28px 20px}.footer-bottom{grid-column:1;flex-direction:column;gap:2px}
    .hero{min-height:0;padding:60px 0}.hero h1{font-size:clamp(20px,7.3vw,43px)}.hero-copy>p{font-size:15px}.hero-visual{min-height:390px}.preview-main{left:10px;top:35px}.preview-land{right:5px}.preview-shop{right:20px;bottom:35px}.source-strip .container{flex-direction:column;gap:15px}.source-logos{width:100%;flex-wrap:wrap;justify-content:center;gap:14px 25px;font-size:12px}.section{padding:75px 0}.feature-grid{grid-template-columns:1fr 1fr}.feature-card{min-height:275px}.process-grid{grid-template-columns:1fr;gap:30px}.cta-section{padding:60px 0}.cta-card{align-items:flex-start;flex-direction:column;padding:39px 32px}.cta-card .button{width:100%}
    .auth-section{width:min(calc(100% - 28px),var(--container));display:block;margin:20px auto 50px}.auth-panel{width:min(520px,calc(100% - 34px));padding:38px 0 55px}.auth-brand{margin-bottom:28px}.auth-art{display:none}.auth-heading h1{font-size:32px}
    .dashboard-hero{padding:38px 0 28px}.dashboard-heading{align-items:flex-start;flex-direction:column}.dashboard-heading h1{font-size:31px}.api-state{width:100%}.dashboard-grid{grid-template-columns:1fr}.create-report-card{padding:22px}.report-list-panel{min-height:350px}.report-row{padding:14px 17px;grid-template-columns:55px minmax(0,1fr) 20px}.report-map-thumb{width:53px;height:53px}.report-map-thumb i{left:23px;top:22px}
    .settings-grid{grid-template-columns:1fr}.page-heading{padding:42px 0 32px}.settings-card{padding:21px}.settings-aside{display:grid;grid-template-columns:1fr 1fr}
    .report-header{padding-top:25px}.report-title-row{flex-direction:column}.report-actions{width:100%}.report-actions .button{flex:1}.report-meta{flex-wrap:wrap;gap:8px 15px}.source-status{margin-left:0}.report-nav{top:65px}.summary-grid{grid-template-columns:1fr 1fr}.transaction-layout,.land-layout,.commerce-layout{grid-template-columns:1fr}.building-card{grid-template-columns:1fr}.building-visual{min-height:230px}.building-details dl{grid-template-columns:repeat(2,1fr)}
}

@media (max-width: 520px) {
    .header-actions .user-menu{display:none}.hero h1{font-size:clamp(20px,7.3vw,35px)}.hero-actions{flex-direction:column}.hero-actions .button{width:100%}.trust-row{align-items:center;flex-direction:column;gap:6px}.hero-visual{min-height:335px;border-radius:28px}.preview-main{width:190px;padding:14px}.preview-land{width:140px;top:150px}.preview-shop{width:155px;right:10px}.data-orbit{display:none}.feature-grid{grid-template-columns:1fr}.feature-card{min-height:255px}.section-heading{text-align:left}.source-logos{font-size:10px}.cta-card h2{font-size:32px}.form-row{grid-template-columns:1fr}
    .collecting-list{grid-template-columns:1fr 1fr}.panel-title{padding-inline:18px}.report-row-main>span{gap:5px}.row-arrow{display:none}.report-row{grid-template-columns:50px minmax(0,1fr);gap:12px}.report-map-thumb{width:50px;height:50px}.report-map-thumb i{left:21px;top:20px}
    .settings-aside{grid-template-columns:1fr}.connection-list>div{align-items:flex-start}.connection-state{font-size:0}.connection-state i{margin-top:7px}.settings-card-head{flex-direction:column}.page-heading h1{font-size:33px}
    .report-title-row h1{font-size:28px}.report-meta span:nth-child(2){display:none}.summary-grid{grid-template-columns:1fr}.summary-card{min-height:135px}.report-section{padding-top:65px}.section-title-row{gap:10px}.section-title-row h2{font-size:22px}.source-chip{display:none}.chart-card{padding:15px}.range-card{display:grid;grid-template-columns:1fr 1fr;gap:8px}.range-card>span,.range-card>hr,.range-card>p{grid-column:1/-1}.range-card>div{margin-top:0;flex-direction:column;align-items:flex-start}.price-chart{gap:5px}.price-bar-wrap i{width:70%}.building-details{padding:21px}.building-details dl{gap:17px 10px}.zone-list{grid-template-columns:1fr}.price-panel>strong{font-size:22px}.commerce-layout{gap:10px}.guest-report-notice{align-items:flex-start;flex-wrap:wrap}.guest-report-notice strong{width:100%}.guest-report-notice a{margin-left:0}
}

/* Larger, more readable typography */
body { font-size: 17px; line-height: 1.72; }
.main-nav, .text-button, .user-name { font-size: 16px; }
.button { min-height: 50px; font-size: 16px; }
.button-small { min-height: 44px; font-size: 15px; }
.button-large { min-height: 58px; font-size: 17px; }
input, select { height: 56px; padding-inline: 16px; font-size: 17px; }
.footer-meta { font-size: 14px; }
.eyebrow { font-size: 14px; }
.hero-copy > p { font-size: 19px; }
.trust-row { font-size: 15px; }
.preview-card small, .trend-row, .preview-land span { font-size: 13px; }
.preview-land strong { font-size: 16px; }
.data-orbit { font-size: 12px; }
.source-strip p { font-size: 14px; }
.section-heading p, .process-grid > div > p { font-size: 18px; line-height: 1.75; }
.feature-number { font-size: 13px; }
.feature-card p, .process-list p { font-size: 16px; line-height: 1.7; }
.feature-tags span { font-size: 13px; }
.process-list strong { font-size: 19px; }

.stack-form label, .auth-switch { font-size: 16px; }
.form-errors { font-size: 15px; }
.social-button { min-height: 60px; font-size: 17px; }
.social-button.is-pending::after { font-size: 13px; }
.auth-divider { font-size: 13px; }
.auth-heading p, .auth-art-copy p, .auth-stat-card > small { font-size: 16px; }

.api-state { font-size: 14px; }
.card-heading h2, .panel-title h2, .settings-card h2 { font-size: 21px; }
.card-heading p, .panel-title p, .settings-card-head p { font-size: 15px; line-height: 1.65; }
.form-note { font-size: 14px; }
.collecting-list, .collecting-list > span { font-size: 14px; }
.count-pill { font-size: 14px; }
.report-row-main > strong { font-size: 16px; }
.report-row-main time, .status-badge { font-size: 13px; }
.empty-reports h3, .guest-save-panel h3 { font-size: 19px; }
.empty-reports p, .guest-save-panel p { font-size: 15px; }

.back-link { font-size: 15px; }
.mode-badge { font-size: 13px; }
.connection-list strong, .setup-steps strong, .security-note strong { font-size: 16px; }
.connection-list small, .connection-state, .setup-steps p, .security-note span,
.aside-card ul, .aside-card p { font-size: 14px; line-height: 1.65; }
.setup-steps li > span, code { font-size: 14px; }
.aside-card h3 { font-size: 17px; }

.report-breadcrumb, .report-title-row p, .report-meta, .report-nav a { font-size: 14px; }
.type-pill, .demo-pill { padding: 5px 10px; font-size: 13px; }
.report-actions .button { min-height: 46px; font-size: 15px; }
.report-warning, .guest-report-notice { padding: 15px 17px; font-size: 15px; line-height: 1.6; }
.summary-card { min-height: 175px; padding: 23px; }
.summary-card > small { font-size: 14px; }
.summary-card > strong { font-size: 25px; }
.summary-card > strong em { font-size: 14px; }
.summary-card p { font-size: 14px; line-height: 1.55; }
.section-kicker { font-size: 13px; }
.section-title-row h2 { font-size: 28px; }
.section-title-row p { font-size: 15px; }
.source-chip { font-size: 13px; }
.transaction-layout { grid-template-columns: minmax(0,1fr) 280px; }
.chart-head > span, .range-card > span { font-size: 14px; }
.chart-head strong { font-size: 18px; }
.chart-head small, .range-card small, .range-card p { font-size: 13px; }
.range-card strong { font-size: 17px; }
.price-bar-wrap > span { font-size: 12px; }
.price-bar-wrap small { height: 28px; font-size: 12px; }
th, td { padding: 15px 18px; font-size: 15px; }
th { font-size: 14px; }
.no-data { font-size: 15px; }
.building-visual, .detail-primary small, .detail-primary p { font-size: 14px; }
.detail-primary h3 { font-size: 24px; }
.building-details dt { font-size: 13px; }
.building-details dd { font-size: 15px; }
.land-zones h3, .store-list h3 { font-size: 18px; }
.zone-summary { font-size: 14px; line-height: 1.65; }
.zone-list strong { font-size: 15px; }
.zone-list small, .land-notice { font-size: 13px; line-height: 1.55; }
.price-panel > span { font-size: 14px; }
.price-panel > strong small { font-size: 14px; }
.price-facts p { font-size: 14px; }
.price-panel > .muted { font-size: 12px; line-height: 1.65; }
.category-total span, .category-total small { font-size: 14px; }
.category-bars p { font-size: 13px; }
.store-list strong { font-size: 15px; }
.store-list small { font-size: 13px; }
.report-disclaimer { font-size: 14px; line-height: 1.65; }

/* Report drill-down interactions */
.summary-card { color: inherit; text-decoration: none; scroll-margin-top: 150px; }
.summary-card[href] { cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.summary-card[href]:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: var(--shadow); }
.summary-card[href]:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 38%, transparent); outline-offset: 3px; }
.summary-cta { position: absolute; right: 21px; bottom: 17px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 13px; font-weight: 800; }
.summary-card.primary .summary-cta { color: #285f3c; }
.summary-cta b { transition: transform .18s ease; }
.summary-card:hover .summary-cta b { transform: translateX(3px); }
.section-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.detail-open-button, .source-link { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.detail-open-button { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-soft); color: var(--brand-deep); }
.detail-open-button:hover, .source-link:hover { border-color: var(--brand); color: var(--brand); }
.detail-open-button:focus-visible, .source-link:focus-visible, .detail-disclosure > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.detail-disclosure { scroll-margin-top: 145px; margin-top: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.detail-disclosure > summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 21px; list-style: none; cursor: pointer; }
.detail-disclosure > summary::-webkit-details-marker { display: none; }
.detail-disclosure > summary span { display: flex; flex-direction: column; gap: 3px; }
.detail-disclosure > summary strong { font-size: 17px; }
.detail-disclosure > summary small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.detail-disclosure > summary i { position: relative; width: 32px; height: 32px; flex: 0 0 auto; display: block; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 0; font-style: normal; transition: transform .2s ease; }
.detail-disclosure > summary i::before, .detail-disclosure > summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.detail-disclosure > summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.detail-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.detail-disclosure[open] > summary i { transform: rotate(45deg); }
.detail-content { padding: 24px 21px 21px; }
.detail-block + .detail-block, .detail-fact-grid + .record-detail-list, .record-detail-list + .detail-source, .detail-block + .detail-source, .detail-fact-grid + .detail-block { margin-top: 24px; }
.detail-block h3 { margin: 0 0 12px; font-size: 17px; }
.detail-table { margin-top: 0; box-shadow: none; }
.detail-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.detail-fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.detail-fact-grid > div { min-height: 92px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; background: var(--surface-soft); }
.detail-fact-grid span { color: var(--muted); font-size: 13px; }
.detail-fact-grid strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 17px; }
.record-detail-list { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.record-detail-list > div { display: grid; grid-template-columns: minmax(130px, .3fr) 1fr; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.record-detail-list > div:last-child { border-bottom: 0; }
.record-detail-list span { color: var(--muted); font-size: 13px; }
.record-detail-list strong { overflow-wrap: anywhere; font-size: 14px; }
.category-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.category-share-grid > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface-soft); }
.category-share-grid span { color: var(--muted); font-size: 13px; }
.category-share-grid strong { font-size: 14px; }
.category-share-grid small { grid-column: 1 / -1; color: var(--brand); font-size: 13px; font-weight: 800; }
.detail-source { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 11px; padding: 17px 18px; background: var(--brand-soft); }
.detail-source strong { font-size: 15px; }
.detail-source p { max-width: 760px; margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.detail-source a { flex: 0 0 auto; border-radius: 8px; padding: 10px 13px; background: var(--brand-deep); color: #fff; font-size: 13px; font-weight: 800; }
[data-theme="dark"] .summary-card.primary .summary-cta { color: #a8d7b1; }
[data-theme="dark"] .detail-open-button { border-color: #42664d; background: #1d3425; color: #b9dcc1; }
[data-theme="dark"] .detail-source { background: #17291d; }
[data-theme="dark"] .detail-source a { background: #a8d7b1; color: #12251a; }

@media (max-width: 780px) {
    .hero-copy > p { font-size: 17px; }
    .section-heading p { width: auto; max-width: none; white-space: normal; }
    .mobile-nav a { font-size: 16px; }
    .feature-card { min-height: 300px; }
    .transaction-layout { grid-template-columns: 1fr; }
    .section-title-row { align-items: flex-start; flex-direction: column; }
    .section-tools { width: 100%; justify-content: flex-start; }
    .detail-fact-grid { grid-template-columns: 1fr 1fr; }
    .category-share-grid { grid-template-columns: 1fr 1fr; }
    .detail-source { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: clamp(30px, 8.5vw, 38px); }
    .section-heading h2 { font-size: clamp(23px, 6vw, 30px); }
    .source-logos { font-size: 13px; }
    .summary-card { min-height: 155px; }
    .section-title-row h2 { font-size: 25px; }
    .building-details dl { grid-template-columns: 1fr 1fr; }
    .section-tools { display: grid; grid-template-columns: 1fr 1fr; }
    .detail-open-button, .source-link { width: 100%; }
    .detail-disclosure > summary { min-height: 82px; padding: 15px 16px; }
    .detail-disclosure > summary strong { font-size: 16px; }
    .detail-disclosure > summary small { font-size: 13px; }
    .detail-content { padding: 18px 14px 14px; }
    .detail-fact-grid, .category-share-grid { grid-template-columns: 1fr; }
    .record-detail-list > div { grid-template-columns: 1fr; gap: 4px; }
    .form-note { white-space: normal; }
}

@page { size: A4 portrait; margin: 12mm; }

@media print {
    :root { --bg:#fff;--surface:#fff;--surface-soft:#f3f5f3;--surface-strong:#e9ede9;--ink:#111;--muted:#444;--line:#bfc5c0;--brand:#285f3c;--brand-deep:#214d32;--brand-soft:#e0ece2; color-scheme:light; }
    html,body,.site-shell,main,.report-header,.report-body { background:#fff!important; color:#111!important; }
    body { font-size:10pt; line-height:1.45; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    .site-header,.site-footer,.report-nav,.report-actions,.report-warning,.guest-report-notice,.summary-cta,.section-tools,.detail-disclosure { display:none!important; }
    .container { width:100%!important; max-width:none!important; }
    .report-header { padding:0 0 12px!important; border-bottom:1px solid #9ca49e!important; }
    .report-breadcrumb { margin-bottom:8px; color:#444!important; font-size:8.5pt!important; }
    .report-title-row h1 { margin:4px 0!important; color:#111!important; font-size:22pt!important; line-height:1.2!important; }
    .report-title-row p,.report-meta { color:#333!important; font-size:8.5pt!important; }
    .report-meta { margin-top:8px!important; padding-top:8px!important; border-top-color:#c8cdc9!important; }
    .type-pill,.demo-pill,.source-chip { border:1px solid #aeb7b0!important; background:#f1f4f1!important; color:#243a2b!important; }
    .report-body { padding:12px 0 0!important; }
    .summary-grid { grid-template-columns:repeat(2,1fr)!important; gap:8px!important; }
    .summary-card { min-height:112px!important; break-inside:avoid; border:1px solid #aeb5af!important; padding:14px!important; background:#fff!important; color:#111!important; box-shadow:none!important; }
    .summary-card.primary { background:#edf3ee!important; color:#111!important; }
    .summary-card>small,.summary-card p,.summary-card.primary>small,.summary-card.primary p { color:#3f4741!important; }
    .summary-card>strong { color:#111!important; font-size:17pt!important; }
    .summary-icon,.summary-card.primary .summary-icon { background:#dce9de!important; color:#285f3c!important; }
    .report-section { padding-top:25px!important; break-inside:auto!important; }
    .section-title-row { margin-bottom:12px!important; }
    .section-kicker { color:#285f3c!important; font-size:8pt!important; }
    .section-title-row h2 { margin:4px 0!important; color:#111!important; font-size:16pt!important; }
    .section-title-row p { color:#3f4741!important; font-size:9pt!important; }
    .chart-card,.range-card,.building-card,.land-zones,.price-panel,.category-chart,.store-list,.table-wrap { border:1px solid #aeb5af!important; background:#fff!important; color:#111!important; box-shadow:none!important; }
    .chart-card,.range-card,.land-zones,.price-panel,.category-chart,.store-list { padding:14px!important; }
    .chart-head>span,.chart-head small,.range-card>span,.range-card small,.range-card p { color:#3f4741!important; }
    .price-chart { height:150px!important; border-bottom-color:#aeb5af!important; background-image:linear-gradient(#d9deda 1px,transparent 1px)!important; background-size:100% 38px!important; }
    .price-bar-wrap i { background:linear-gradient(#9ac66f,#285f3c)!important; }
    .price-bar-wrap>span { background:#222!important; color:#fff!important; }
    .price-bar-wrap small { color:#333!important; }
    .table-wrap { overflow:visible!important; }
    table { white-space:normal!important; }
    th,td { border-bottom-color:#c8cdc9!important; padding:8px 10px!important; color:#111!important; font-size:8.5pt!important; }
    th { background:#edf1ed!important; color:#333!important; font-size:8pt!important; }
    .building-card { break-inside:avoid; grid-template-columns:34% 66%!important; }
    .building-visual { min-height:220px!important; background:#edf1ed!important; color:#333!important; }
    .tower { width:78px!important; height:128px!important; background:#668d70!important; box-shadow:12px 12px 0 #d5ded7!important; }
    .tower i { background:#e2ecb1!important; }
    .building-details { padding:18px!important; }
    .building-details dt,.detail-primary small,.detail-primary p { color:#444!important; }
    .building-details dd,.detail-primary h3 { color:#111!important; }
    .land-layout { grid-template-columns:1fr!important; gap:8px!important; }
    .price-panel { break-inside:avoid; background:#edf3ee!important; color:#111!important; }
    .price-panel>span,.price-panel>.muted,.price-facts span { color:#444!important; }
    .price-panel>strong,.price-facts strong { color:#111!important; }
    .price-facts { border-color:#b9c0ba!important; }
    .zone-list>div { border-color:#b9c0ba!important; }
    .land-notice { background:#f1f3f1!important; color:#444!important; }
    .category-bars i { background:#e8ece8!important; }
    .store-list small,.category-bars p,.category-total span { color:#444!important; }
    .report-disclaimer { margin-top:25px!important; border-left-color:#777!important; color:#333!important; font-size:8.5pt!important; }
    a { color:#111!important; text-decoration:none!important; }
}

/* Admin */
.admin-nav-link { color: var(--brand) !important; font-weight: 800; }
.admin-page { padding: 20px 0 72px; }
.admin-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-toolbar h1 { margin: 0; font-size: 23px; letter-spacing: -.05em; }
.admin-toolbar nav { align-self: stretch; display: flex; gap: 24px; }
.admin-toolbar nav a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: 15px; font-weight: 750; }
.admin-toolbar nav a:hover, .admin-toolbar nav a.is-active { color: var(--ink); }
.admin-toolbar nav a.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--brand); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-stat-card { min-height: 94px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; justify-content: center; padding: 16px 20px; background: var(--surface); }
a.admin-stat-card { transition: border-color .18s, transform .18s; }
a.admin-stat-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.admin-stat-card > span { color: var(--muted); font-size: 14px; font-weight: 700; }
.admin-stat-card > strong { margin-top: 5px; color: var(--ink); font-size: 28px; line-height: 1.1; letter-spacing: -.04em; }
.admin-stat-card > strong small { margin-left: 3px; color: var(--muted); font-size: 14px; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--surface); }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.admin-panel-heading a { color: var(--brand); font-size: 14px; font-weight: 800; }
.admin-table-wrap { margin-top: 14px; box-shadow: none; }
.admin-table-wrap th, .admin-table-wrap td { vertical-align: middle; }
.table-subtext { display: block; max-width: 360px; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 13px; text-overflow: ellipsis; }
.role-badge { display: inline-flex; border-radius: 999px; padding: 4px 10px; background: var(--surface-soft); color: var(--muted); font-size: 13px; font-weight: 800; }
.role-badge.role-admin { background: var(--brand-soft); color: var(--brand-deep); }
.admin-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 4px 0 18px; }
.admin-list-heading > div { display: flex; align-items: baseline; gap: 10px; }
.admin-list-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.admin-list-heading > div span { color: var(--muted); font-size: 14px; }
.admin-filter { display: flex; align-items: center; gap: 8px; }
.admin-filter input { width: 260px; }
.admin-filter select { min-width: 135px; }
.admin-filter input, .admin-filter select { height: 46px; font-size: 15px; }
.admin-filter .button { min-width: 72px; min-height: 46px; flex: 0 0 auto; padding-inline: 16px; font-size: 15px; white-space: nowrap; }
.admin-full-table { margin-top: 0; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.admin-pagination a { color: var(--brand); font-weight: 800; }

@media (max-width: 1020px) {
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-columns { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .admin-page { padding-top: 20px; }
    .admin-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
    .admin-toolbar h1 { margin-bottom: 0; }
    .admin-toolbar nav { width: 100%; min-height: 48px; gap: 20px; overflow-x: auto; }
    .admin-toolbar nav a { flex: 0 0 auto; }
    .admin-list-heading { align-items: stretch; flex-direction: column; }
    .admin-filter { flex-wrap: wrap; }
    .admin-filter input { width: 100%; }
}

@media (max-width: 600px) {
    .admin-stats { grid-template-columns: 1fr; }
    .admin-panel { padding: 19px; }
    .admin-stat-card { min-height: 88px; padding: 16px 18px; }
}

/* Account settings */
.user-menu { color: inherit; }
.user-menu:hover .user-name { color: var(--brand); }
.account-settings-section { padding: 40px 0 100px; }
.account-settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.account-password-card { min-width: 0; }
.account-lock { width: 48px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand-deep); }
.account-lock svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-errors { margin: 22px 0 0; }
.account-password-form { max-width: 590px; padding-top: 24px; }
.account-password-form label > span:first-child { display: flex; justify-content: space-between; gap: 12px; }
.account-password-form label small { color: var(--muted); font-size: 14px; font-weight: 600; }
.account-password-form .button { align-self: flex-start; min-width: 190px; margin-top: 6px; }
.social-account-guide { display: flex; min-height: 255px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 28px 0 8px; }
.social-account-label { color: var(--muted); font-size: 14px; font-weight: 700; }
.social-provider-list { display: flex; flex-wrap: wrap; gap: 10px; }
.social-provider-badge { min-width: 92px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; background: var(--surface-soft); color: var(--ink); text-align: center; font-size: 15px; }
.social-provider-naver { border-color: color-mix(in srgb, #03c75a 35%, var(--line)); background: color-mix(in srgb, #03c75a 12%, var(--surface)); }
.social-provider-kakao { border-color: color-mix(in srgb, #fee500 42%, var(--line)); background: color-mix(in srgb, #fee500 15%, var(--surface)); }
.social-provider-google { border-color: color-mix(in srgb, #4285f4 35%, var(--line)); background: color-mix(in srgb, #4285f4 10%, var(--surface)); }
.social-account-guide p { max-width: 580px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.account-profile-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); box-shadow: var(--shadow-sm); }
.account-avatar { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font-size: 29px; font-weight: 850; }
.account-profile-card h2 { margin: 18px 0 2px; font-size: 24px; letter-spacing: -.04em; }
.account-profile-card > p { overflow-wrap: anywhere; margin: 0; color: var(--muted); font-size: 16px; }
.account-profile-card dl { margin: 25px 0 0; border-top: 1px solid var(--line); }
.account-profile-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-profile-card dt { color: var(--muted); font-size: 15px; }
.account-profile-card dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 750; }
.account-security-note { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; border-radius: 12px; padding: 16px; background: var(--surface-soft); }
.account-security-note strong { color: var(--ink); font-size: 15px; }
.account-security-note span { color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
    .account-settings-grid { grid-template-columns: 1fr; }
    .account-profile-card { grid-row: 1; }
}

@media (max-width: 600px) {
    .account-settings-section { padding: 24px 0 70px; }
    .account-password-form .button { width: 100%; }
    .account-profile-card { padding: 22px; }
    .account-password-form label > span:first-child { align-items: flex-start; flex-direction: column; gap: 3px; }
}


/* Public content pages */
.content-page { padding: clamp(3rem, 7vw, 5.5rem) 0 5rem; }
.content-container { max-width: 860px; }
.content-header { margin-bottom: 2rem; }
.content-header h1 { margin: .45rem 0 .7rem; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.05em; line-height: 1.2; }
.content-header > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; word-break: keep-all; }
.content-header .crumb { display: flex; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.content-header .crumb a:hover { color: var(--brand); }
.prose-card { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.prose-card section + section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.prose-card h2 { margin: 0 0 .7rem; font-size: 1.2rem; letter-spacing: -.03em; }
.prose-card p, .prose-card li { color: var(--muted); line-height: 1.85; word-break: keep-all; }
.prose-card p { margin: 0; }
.prose-card ul { margin: .8rem 0 0; padding-left: 1.15rem; }
.prose-card li + li { margin-top: .45rem; }
.prose-card a { color: var(--brand); font-weight: 750; }
.guide-list { display: grid; gap: 14px; }
.guide-card { display: block; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s, border-color .18s; }
.guide-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.guide-card h2 { margin: 8px 0 8px; font-size: 22px; letter-spacing: -.04em; }
.guide-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.guide-card-cta { display: inline-block; margin-top: 14px; color: var(--brand); font-size: 14px; font-weight: 800; }
.content-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 28px 0 0; }
.content-links a { color: var(--brand); font-weight: 800; }
.empty-actions { display: flex; gap: 10px; justify-content: center; }
.region-grid, .type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.region-card, .type-card { display: flex; flex-direction: column; gap: 6px; min-height: 110px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.region-card:hover, .type-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); }
.region-card strong, .type-card strong { font-size: 18px; letter-spacing: -.03em; }
.region-card span, .type-card span { color: var(--muted); font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.wide-content { max-width: 1100px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-row input { min-width: min(100%, 320px); height: 44px; }
@media (max-width: 780px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .region-grid, .type-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .stat-grid, .region-grid, .type-grid { grid-template-columns: 1fr; }
}

.content-pagination { display:flex; flex-wrap:nowrap; align-items:center; justify-content:center; gap:6px; margin:22px 0 4px; color:var(--muted); font-size:14px; }
.content-pagination .page-num, .content-pagination .page-nav { min-width:36px; height:36px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:10px; color:var(--text); font-weight:700; text-decoration:none; background:var(--surface); }
.content-pagination a.page-nav:hover { border-color:color-mix(in srgb, var(--brand) 45%, var(--line)); color:var(--brand); }
.content-pagination .page-num.is-current { border-color:var(--brand); background:var(--brand); color:#fff; min-width:44px; }
.content-pagination .page-nav { font-weight:800; color:var(--brand); }
.content-pagination .page-nav.is-off { color:var(--muted); opacity:.45; }
.trade-cards { display:none; gap:10px; margin-top:22px; }
.trade-card { display:flex; flex-direction:column; gap:6px; padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.trade-card-top { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.trade-card-top strong { font-size:17px; letter-spacing:-.03em; }
.trade-card-top small { color:var(--muted); font-size:13px; }
.trade-card-meta { display:flex; flex-wrap:wrap; gap:8px 14px; color:var(--muted); font-size:13px; }
.trade-card-price { font-size:18px; font-weight:800; letter-spacing:-.03em; }
@media (max-width: 780px) {
    .table-wrap { display:none; }
    .trade-cards { display:flex; flex-direction:column; }
    .content-pagination { gap:4px; }
    .content-pagination .page-num, .content-pagination .page-nav { min-width:auto; padding:0 10px; height:34px; font-size:13px; }
}

.stat-grid { margin: 16px 0 18px; gap: 8px; }
.stat-grid .summary-card { min-height: 0; padding: 12px 14px; }
.stat-grid .summary-card > small { margin-bottom: 4px; font-size: 12px; }
.stat-grid .summary-card > strong { font-size: 18px; line-height: 1.3; }
.stat-grid .summary-card > strong em { font-size: 12px; }
.stat-grid .summary-card p { margin: 4px 0 0; font-size: 12px; }
@media (max-width: 780px) {
    .stat-grid .summary-card { padding: 10px 12px; }
    .stat-grid .summary-card > strong { font-size: 16px; }
}

.board-header { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:16px; }
.board-header .button { margin-top:8px; }
.board-header-copy { min-width:min(100%, 560px); }
.board-header-copy h1 { margin:.45rem 0 .7rem; }
.board-header-copy p { margin:0; color:var(--muted); font-size:17px; line-height:1.8; word-break:keep-all; }
.board-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 12px; }
.board-toolbar p { margin:0; color:var(--muted); font-size:14px; }
.board-toolbar nav { display:flex; gap:4px; border-radius:12px; padding:4px; background:var(--surface-soft); }
.board-toolbar nav a { border-radius:9px; padding:7px 12px; color:var(--muted); font-size:13px; font-weight:750; }
.board-toolbar nav a.is-active { background:var(--surface); color:var(--brand); box-shadow:var(--shadow-sm); }
.board-list { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--surface); }
.board-row { display:grid; grid-template-columns:76px minmax(0,1fr) 88px 88px; gap:12px; align-items:center; padding:15px 18px; border-bottom:1px solid var(--line); color:inherit; text-decoration:none; }
.board-row:last-child { border-bottom:0; }
.board-row:hover { background:var(--surface-soft); }
.board-title { display:flex; min-width:0; flex-direction:column; gap:3px; }
.board-title small { color:var(--brand); font-size:11px; font-weight:750; }
.board-row .board-title strong { overflow:hidden; color:var(--ink); font-size:16px; letter-spacing:-.03em; text-overflow:ellipsis; white-space:nowrap; }
.lock-mark { margin-left:5px; font-size:11px; }
.board-row span, .board-row time { color:var(--muted); font-size:13px; }
.board-status { display:inline-flex; width:max-content; align-items:center; justify-content:center; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:800; white-space:nowrap; }
.board-status.status-pending { background:color-mix(in srgb, #eaa130 15%, var(--surface)); color:#ad6800; }
.board-status.status-answered { background:var(--brand-soft); color:var(--brand-deep); }
.board-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; color:var(--muted); font-size:14px; }
.board-form textarea { width:100%; min-height:220px; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:inherit; font:inherit; resize:vertical; }
.board-form select { width:100%; height:48px; border:1px solid var(--line); border-radius:12px; padding:0 14px; background:var(--surface); color:var(--ink); font:inherit; }
.field-help { display:block; margin-top:6px; color:var(--muted); font-size:12px; }
.board-private { display:flex !important; flex-direction:row !important; align-items:flex-start; gap:11px; border:1px solid var(--line); border-radius:14px; padding:15px; background:var(--surface-soft); cursor:pointer; }
.board-private input { width:18px; height:18px; flex:0 0 auto; margin-top:2px; accent-color:var(--brand); }
.board-private > span { display:flex; flex-direction:column; gap:3px; }
.board-private strong { font-size:14px; }
.board-private small { color:var(--muted); font-size:13px; font-weight:500; }
.board-form-actions { display:flex; gap:10px; margin-top:8px; }
.board-body p { white-space:pre-wrap; margin:0; line-height:1.75; }
.inline-form { display:inline; }
.inquiry-answer { margin-top:18px; border-color:color-mix(in srgb, var(--brand) 30%, var(--line)); background:color-mix(in srgb, var(--brand-soft) 35%, var(--surface)); }
.answer-heading { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.answer-mark { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:var(--brand); color:#fff; font-size:18px; font-weight:900; }
.answer-heading h2 { margin:0 0 2px; font-size:18px; }
.answer-heading p { margin:0; color:var(--muted); font-size:13px; }
.inquiry-answer > p { white-space:pre-wrap; color:var(--ink); }
.admin-answer-form { margin-top:22px; border:1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius:18px; padding:22px; }
.admin-answer-form .button { align-self:flex-start; }
.board-detail-actions { align-items:center; }
.board-detail-actions .text-button { color:#c94a4a; font-weight:800; }
.admin-inquiry-row a { color:inherit; }
@media (max-width: 640px) {
    .board-header-copy { width:100%; min-width:0; }
    .board-header-copy p { word-break:normal; }
    .board-toolbar { align-items:flex-start; flex-direction:column; }
    .board-row { grid-template-columns:60px minmax(0, 1fr) auto; gap:5px 8px; padding:14px; }
    .board-row .board-status { grid-column:1; grid-row:1 / 3; }
    .board-row .board-title { grid-column:2 / 4; }
    .board-row > span:nth-child(3) { grid-column:2; }
    .board-row > time { grid-column:3; }
    .board-form-actions { flex-direction:column; }
    .board-form-actions .button { width:100%; }
}

/* Inquiry support board */
.inquiry-page { padding-top:clamp(2.6rem, 6vw, 5rem); }
.inquiry-guide { display:flex; align-items:flex-start; gap:12px; margin:-4px 0 28px; border:1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); border-radius:14px; padding:15px 17px; background:color-mix(in srgb, var(--brand-soft) 36%, var(--surface)); }
.inquiry-guide-icon { width:24px; height:24px; display:grid; flex:0 0 auto; place-items:center; border-radius:50%; background:var(--brand); color:#fff; font-size:13px; font-weight:900; }
.inquiry-guide p { margin:0; color:var(--muted); font-size:13px; line-height:1.65; }
.inquiry-guide strong { color:var(--ink); }
.board-tabs { display:flex; gap:24px; margin-bottom:18px; border-bottom:1px solid var(--line); }
.board-tabs a { position:relative; padding:11px 2px 13px; color:var(--muted); font-size:15px; font-weight:800; }
.board-tabs a.is-active { color:var(--brand); }
.board-tabs a.is-active::after { position:absolute; right:0; bottom:-1px; left:0; height:2px; background:var(--brand); content:""; }
.board-filter { display:grid; grid-template-columns:150px 150px minmax(240px, 1fr) auto; gap:8px; margin-bottom:14px; }
.board-filter select,.board-filter input { width:100%; height:46px; border:1px solid var(--line); border-radius:11px; background:var(--surface); color:var(--ink); font-size:14px; }
.board-search { position:relative; }
.board-search input { padding-right:46px; }
.board-search button { position:absolute; top:0; right:0; width:46px; height:46px; display:grid; place-items:center; border:0; background:transparent; color:var(--muted); cursor:pointer; }
.board-search button:hover { color:var(--brand); }
.board-search svg { width:18px; }
.filter-reset { display:flex; align-items:center; padding:0 9px; color:var(--muted); font-size:13px; font-weight:700; }
.filter-reset:hover { color:var(--brand); }
.board-summary { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:18px 0 10px; color:var(--muted); font-size:13px; }
.board-summary p { margin:0; }
.board-list { border-radius:14px; }
.board-row { grid-template-columns:82px minmax(0,1fr) 90px 74px 92px; padding:16px 18px; }
.board-row.is-notice { background:color-mix(in srgb, var(--brand-soft) 28%, var(--surface)); }
.board-row.is-notice:hover { background:color-mix(in srgb, var(--brand-soft) 48%, var(--surface)); }
.board-status.status-notice { background:var(--brand); color:#fff; }
.board-status.status-in-progress { background:color-mix(in srgb, #5d8ec8 15%, var(--surface)); color:#3970ad; }
.board-status.status-closed { background:var(--surface-strong); color:var(--muted); }
.reply-count { margin-left:7px; color:var(--brand); font-size:12px; font-style:normal; font-weight:800; }
.board-author,.board-views,.board-row time { text-align:center; white-space:nowrap; }
.page-numbers { display:flex; gap:5px; }
.board-empty { min-height:300px; }
.board-empty .button { margin-top:8px; }

.inquiry-detail-container { max-width:900px; }
.inquiry-detail-container > .crumb { display:flex; gap:8px; margin:0 0 28px; color:var(--muted); font-size:13px; }
.inquiry-detail-container > .crumb a:hover { color:var(--brand); }
.inquiry-detail-header { margin-bottom:22px; }
.inquiry-detail-labels { display:flex; flex-wrap:wrap; align-items:center; gap:9px; color:var(--muted); font-size:13px; }
.inquiry-detail-header h1 { margin:14px 0 12px; font-size:clamp(29px, 5vw, 42px); line-height:1.25; letter-spacing:-.05em; overflow-wrap:anywhere; }
.inquiry-question { position:relative; min-height:180px; padding-left:76px; }
.conversation-mark { width:38px; height:38px; display:grid; flex:0 0 auto; place-items:center; border-radius:11px; background:var(--brand); color:#fff; font-size:17px; font-weight:900; }
.question-mark { position:absolute; top:clamp(1.4rem, 4vw, 2.5rem); left:clamp(1.4rem, 4vw, 2.5rem); background:var(--surface-strong); color:var(--brand); }
.inquiry-question p,.conversation-item > p { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); line-height:1.85; }
.inquiry-conversation { margin-top:30px; scroll-margin-top:100px; }
.conversation-heading { display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.conversation-heading h2 { margin:0; font-size:20px; }
.conversation-heading > span { color:var(--muted); font-size:13px; }
.conversation-item { border:1px solid var(--line); padding:24px 26px; background:var(--surface); }
.conversation-item:first-of-type { border-radius:18px 18px 0 0; }
.conversation-item:last-child { border-radius:0 0 18px 18px; }
.conversation-item:only-of-type { border-radius:18px; }
.conversation-item + .conversation-item { border-top:0; }
.conversation-item.is-admin { border-color:color-mix(in srgb, var(--brand) 25%, var(--line)); background:color-mix(in srgb, var(--brand-soft) 30%, var(--surface)); }
.conversation-item.is-user .conversation-mark { background:var(--surface-strong); color:var(--brand); }
.conversation-author { display:flex; align-items:center; gap:12px; margin-bottom:17px; }
.conversation-author > div { display:flex; flex-direction:column; }
.conversation-author strong { font-size:15px; }
.conversation-author time { color:var(--muted); font-size:12px; }
.conversation-item > p { margin:0; font-size:15px; }
.answer-waiting { display:flex; align-items:center; gap:15px; margin-top:22px; border:1px dashed var(--line); border-radius:16px; padding:20px 22px; background:var(--surface-soft); }
.answer-waiting > span { font-size:24px; }
.answer-waiting strong { font-size:15px; }
.answer-waiting p { margin:2px 0 0; color:var(--muted); font-size:13px; }
.follow-up-form,.inquiry-admin-panel { margin-top:30px; border:1px solid var(--line); border-radius:18px; padding:24px; background:var(--surface); }
.form-section-heading { margin-bottom:18px; }
.form-section-heading h2 { margin:0 0 3px; font-size:19px; }
.form-section-heading p { margin:0; color:var(--muted); font-size:13px; }
.follow-up-form .button,.admin-answer-form .button { align-self:flex-start; }
.inquiry-admin-panel { border-color:color-mix(in srgb, var(--brand) 35%, var(--line)); }
.admin-inquiry-tools { display:flex; align-items:flex-end; gap:10px; padding-bottom:20px; }
.admin-inquiry-tools form { display:flex; align-items:flex-end; gap:8px; }
.admin-inquiry-tools label { display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:12px; font-weight:750; }
.admin-inquiry-tools select { min-width:145px; height:50px; border:1px solid var(--line); border-radius:10px; padding:0 12px; background:var(--surface); color:var(--ink); }
.inquiry-admin-panel .admin-answer-form { margin:0; border:0; border-top:1px solid var(--line); border-radius:0; padding:20px 0 0; }
.board-detail-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:30px; }
.board-detail-actions > div { display:flex; align-items:center; gap:16px; }
.text-action { border:0; padding:7px 0; background:transparent; color:var(--brand); font:inherit; font-size:14px; font-weight:800; cursor:pointer; }
.text-action.is-danger { color:var(--danger); }
.board-notice-option { border-color:color-mix(in srgb, var(--brand) 38%, var(--line)); }

.admin-inquiry-stats { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin-bottom:24px; }
.admin-stats { grid-template-columns:repeat(5, 1fr); }
@media (max-width:1020px) { .admin-stats { grid-template-columns:repeat(2, 1fr); } }
@media (max-width:600px) { .admin-stats { grid-template-columns:1fr; } }
.admin-inquiry-stats a { display:flex; align-items:center; justify-content:space-between; border:1px solid var(--line); border-radius:13px; padding:14px 16px; background:var(--surface); color:var(--muted); }
.admin-inquiry-stats a.is-active { border-color:var(--brand); color:var(--brand); }
.admin-inquiry-stats span { font-size:13px; font-weight:750; }
.admin-inquiry-stats strong { color:var(--ink); font-size:20px; }
.admin-inquiry-filter { margin:-8px 0 18px; }
.admin-inquiry-filter input { width:min(320px, 100%); }
.admin-inquiry-link { display:block; }

@media (max-width:780px) {
    .board-filter { grid-template-columns:1fr 1fr; }
    .board-search { grid-column:1 / -1; }
    .filter-reset { justify-content:center; }
    .board-row { grid-template-columns:84px minmax(0, 1fr) auto; gap:5px 9px; padding:14px; }
    .board-row .board-status { grid-column:1; grid-row:1 / 4; }
    .board-row .board-title { grid-column:2 / 4; }
    .board-row .board-author { grid-column:2; text-align:left; }
    .board-row .board-views { display:none; }
    .board-row time { grid-column:3; text-align:right; }
    .admin-inquiry-stats { grid-template-columns:1fr 1fr; }
}
@media (max-width:520px) {
    .inquiry-guide { padding:13px; }
    .board-filter { grid-template-columns:1fr; }
    .board-search { grid-column:auto; }
    .board-row { grid-template-columns:78px minmax(0, 1fr); }
    .board-row .board-status { grid-row:1 / 4; }
    .board-row .board-title,.board-row .board-author,.board-row time { grid-column:2; text-align:left; }
    .inquiry-question { min-height:150px; padding-left:62px; }
    .conversation-item { padding:20px; }
    .follow-up-form,.inquiry-admin-panel { padding:19px; }
    .admin-inquiry-tools,.admin-inquiry-tools form { align-items:stretch; flex-direction:column; }
    .admin-inquiry-tools form,.admin-inquiry-tools select,.admin-inquiry-tools .button { width:100%; }
    .board-detail-actions { align-items:stretch; flex-direction:column; }
    .board-detail-actions > .button { width:100%; }
    .board-detail-actions > div { justify-content:center; }
}


/* 단지 허브 · 구 순위 · 공동주택 공시가 */
.stat-grid.has-ratio { grid-template-columns: repeat(5, 1fr); }
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 22px; }
.rank-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.rank-card h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.03em; }
.rank-card > p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.rank-card ol { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.rank-card li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); counter-increment: rank; }
.rank-card li:last-child { border-bottom: 0; }
.rank-card li::before { content: counter(rank); flex: 0 0 1.4em; color: var(--brand); font-weight: 800; }
.rank-card li a { flex: 1; min-width: 0; font-weight: 750; }
.rank-card li a:hover { color: var(--brand); }
.rank-card li span { flex: 0 0 auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.area-buckets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; }
.area-bucket { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); }
.area-bucket small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.area-bucket strong { display: block; margin: 4px 0 2px; font-size: 16px; letter-spacing: -.03em; }
.area-bucket span { color: var(--muted); font-size: 12px; }
.gongsi-panel { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.gongsi-panel small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.gongsi-panel strong { display: block; margin: 4px 0 6px; font-size: 18px; letter-spacing: -.03em; }
.gongsi-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.gongsi-panel a { color: var(--brand); font-weight: 750; }
.land-layout.has-apart { grid-template-columns: minmax(0,1.15fr) minmax(220px,.42fr) minmax(220px,.42fr); }
@media (max-width: 900px) {
    .stat-grid.has-ratio { grid-template-columns: 1fr 1fr; }
    .rank-grid, .area-buckets, .land-layout.has-apart { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .area-buckets { grid-template-columns: 1fr 1fr; }
}

.area-unit-toggle { display:inline-flex; align-items:center; gap:6px; margin:10px 0 0; padding:4px; border:1px solid var(--line); border-radius:999px; background:var(--surface); width:fit-content; }
.area-unit-toggle > span { padding:0 8px 0 10px; color:var(--muted); font-size:12px; font-weight:700; }
.area-unit-toggle button { appearance:none; border:0; background:transparent; color:var(--muted); font:inherit; font-size:13px; font-weight:800; padding:6px 12px; border-radius:999px; cursor:pointer; }
.area-unit-toggle button[aria-pressed="true"] { background:var(--brand); color:#fff; }

.area-unit-toggle-wrap { margin:10px 0 0; }
.area-unit-note { margin:6px 0 0; color:var(--muted); font-size:12px; }
.area-unit-note[hidden] { display:none; }
