:root {
  color-scheme: light;
  --bg: #f6f6f1;
  --paper: #fff;
  --ink: #1d273b;
  --muted: #57637a;
  --line: #dce0e7;
  --navy: #253454;
  --indigo: #3a4da4;
  --blue-soft: #edf0ff;
  --lime: #dcf4a8;
  --radius: 18px;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, select, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
h1, h2, h3, h4, h5, p, figure, ol, ul { margin: 0; }
h1, h2, h3, h4, h5 { line-height: 1.25; letter-spacing: -.04em; }
:focus-visible { outline: 3px solid #5264bc; outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
#main { min-height: calc(100vh - 155px); padding-bottom: 52px; }
.skip, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip:focus {
  z-index: 10; clip: auto; height: auto; width: auto; margin: 8px; padding: 10px 14px;
  background: var(--paper); border-radius: 8px;
}

.top { border-bottom: 1px solid #e5e5df; background: #fafaf7; }
.top-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2b392f;
  text-decoration: none;
  white-space: nowrap;
}
.brand-text { display: grid; gap: 3px; }
.brand-name {
  padding-bottom: 4px;
  border-bottom: 1px solid #b98e6b;
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.075em;
}
.brand-subtitle { color: #5b6156; font-size: 11px; font-weight: 700; line-height: 1.25; }
.brand-mark {
  --house-outline: #69412b;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fbefe1;
}
.brand-house { position: relative; width: 40px; height: 40px; }
.brand-house::before,
.brand-house::after,
.brand-roof,
.brand-roof::before,
.brand-door,
.brand-door::before,
.brand-window { position: absolute; display: block; }
.brand-house::before {
  content: "";
  inset: 4px 5px 5px;
  background: var(--house-outline);
  clip-path: polygon(50% 0, 100% 45%, 100% 94%, 94% 100%, 6% 100%, 0 94%, 0 45%);
}
.brand-house::after {
  content: "";
  inset: 7px 7px 7px;
  background: #fff8ea;
  clip-path: polygon(50% 0, 100% 44%, 100% 100%, 0 100%, 0 44%);
}
.brand-roof {
  inset: 0;
  z-index: 2;
  background: var(--house-outline);
  clip-path: polygon(48% 10%, 53% 10%, 96% 46%, 97% 52%, 91% 58%, 86% 55%, 50.5% 27%, 14% 55%, 8% 58%, 3% 52%, 4% 46%);
}
.brand-roof::before {
  content: "";
  inset: 0;
  background: #e69a51;
  clip-path: polygon(49% 15%, 52% 15%, 92% 48%, 91% 52%, 88% 53%, 50.5% 22%, 12% 53%, 8% 52%, 8% 48%);
}
.brand-door,
.brand-window {
  z-index: 1;
  border: 1.5px solid var(--house-outline);
}
.brand-door {
  inset: 58% 23% 15% 53%;
  border-radius: 2px 2px 0 0;
  background: #df965b;
}
.brand-door::before {
  content: "";
  top: 48%;
  right: 1px;
  width: 1.5px;
  height: 1.5px;
  background: var(--house-outline);
  border-radius: 50%;
}
.brand-window {
  inset: 59% 53% 21% 27%;
  border-radius: 1px;
  background:
    linear-gradient(var(--house-outline), var(--house-outline)) center / 100% 1px no-repeat,
    linear-gradient(var(--house-outline), var(--house-outline)) center / 1px 100% no-repeat,
    #f6deba;
}
.portal-ticker {
  color: #354c42;
  background: #edf2eb;
  border-top: 1px solid #e1e8df;
}
.portal-ticker-inner { display: flex; align-items: center; gap: 8px; min-height: 39px; }
.portal-ticker-window { display: flex; flex: 1; min-width: 0; overflow: hidden; }
.portal-ticker-message {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 100%;
  padding: 7px 24px;
  white-space: nowrap;
  font-size: 13px;
  animation: portal-ticker-scroll 34s linear infinite;
}
.portal-ticker-message strong { font-weight: 800; color: #213c32; }
@keyframes portal-ticker-scroll { to { transform: translateX(-100%); } }
.portal-ticker.is-paused .portal-ticker-message { animation-play-state: paused; }
@media (hover: hover) {
  .portal-ticker-window:hover .portal-ticker-message { animation-play-state: paused; }
}
.portal-ticker-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
}
.portal-ticker-toggle:hover { background: #dde7dd; }
.portal-ticker-toggle::before {
  content: "";
  width: 8px;
  height: 10px;
  border-inline: 2px solid currentColor;
}
.portal-ticker.is-paused .portal-ticker-toggle::before {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}
@media (prefers-reduced-motion: reduce) {
  .portal-ticker-message {
    display: block;
    flex: 1;
    min-width: 0;
    padding-inline: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    animation: none;
  }
  .portal-ticker-message[aria-hidden="true"], .portal-ticker-toggle { display: none; }
}
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.top nav a, .tabs a {
  text-decoration: none; color: var(--muted); padding: 8px 13px; border-radius: 8px; white-space: nowrap;
  font-weight: 650; font-size: 14px;
}
.top nav a:hover, .tabs a:hover { background: #e9eaf0; color: var(--navy); }
.top nav a[aria-current], .tabs a[aria-current] { color: #2d3d8b; background: #e8ecfc; }
.top nav .broker-workspace-link {
  background: var(--navy);
  color: #fff;
  flex: 0 0 auto;
}
.top nav .broker-workspace-link:hover { background: #34488b; color: #fff; }
.workspace-shell .top nav { display: none; }
.footer { border-top: 1px solid #e5e5df; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 22px; }
.footer span { font-size: 13px; }

.hero { padding: 46px 0 28px; }
.market-hero, .workspace-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.eyebrow { display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; font-size: 13px; color: #43568a; font-weight: 800; }
.eyebrow span { width: 14px; height: 3px; border-radius: 2px; background: #586bc7; }
.hero h1 { margin: 10px 0 8px; font-size: clamp(34px, 5vw, 58px); color: #202c48; font-weight: 880; }
.hero p { font-size: clamp(14px, 2vw, 17px); color: var(--muted); }
.hero-meta {
  display: inline-flex; align-items: center; gap: 7px; background: #ebeee3; border: 1px solid #dce4d2;
  color: #3f5540; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.demo-dot { height: 6px; width: 6px; border-radius: 50%; background: #638941; }

.panel, .metric, .listing-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  box-shadow: 0 1px 3px #1f29370a;
}
.filter-panel, .data-panel, .work-panel { padding: 20px 22px; }
.section-title, .work-title {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px;
}
.section-title :is(h2,h4), .work-title h2 { font-size: 20px; }
.section-title > span, .preview-header > span { color: var(--muted); font-size: 12px; }
.market-filters { display: grid; grid-template-columns: .85fr .8fr 1fr 1fr 1.05fr 1.05fr auto; align-items: end; gap: 10px; }
label { display: grid; gap: 5px; color: #414d63; font-size: 13px; font-weight: 700; }
label small { font-weight: 500; color: var(--muted); }
input:not([type="checkbox"]), select, textarea {
  width: 100%; min-width: 0; padding: 8px 10px; min-height: 41px; background: white;
  border: 1px solid #d2d8e4; border-radius: 8px; font-weight: 550;
}
select:disabled, fieldset:disabled :is(input, select, textarea) { background: #f4f5f8; color: #5d667b; }
textarea { resize: vertical; }
input[type="checkbox"] { accent-color: var(--indigo); width: 15px; height: 15px; flex: none; }
input[type="month"] { min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; }
.button {
  display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 41px;
  border-radius: 8px; border: 1px solid #d7dce7; padding: 8px 13px; background: white; font-size: 13px;
  font-weight: 760; white-space: nowrap; text-decoration: none;
}
.button:hover { background: #f0f2fa; border-color: #acb8d4; }
.button.primary { background: var(--indigo); border-color: var(--indigo); color: white; }
.button.primary:hover { background: #2c3d8b; }
.text-button, .text-link {
  border: none; background: transparent; color: #374b9b; padding: 3px 0; font-weight: 750; font-size: 13px;
}
.text-button:hover, .text-link:hover { text-decoration: underline; }
.notice { font-size: 13px; color: #364e8c; }
.notice:not(:empty) { margin-top: 8px; }
.notice.error { color: #a32c34; }

.results-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin: 22px 0 10px; }
.results-heading h2 { font-size: 18px; }
.results-heading span { color: var(--muted); font-size: 13px; }
.metrics { display: grid; grid-template-columns: 1.13fr 1fr 1fr; gap: 13px; }
.metric { display: grid; align-content: start; gap: 3px; padding: 17px 20px; }
.metric > span { color: var(--muted); font-size: 13px; font-weight: 800; }
.metric strong { font-size: clamp(26px, 3.7vw, 40px); line-height: 1.27; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric em { color: var(--muted); font-style: normal; font-size: 14px; }
.metric small { color: var(--muted); font-size: 12px; }
.metric.featured { background: var(--navy); border-color: var(--navy); color: white; }
.metric.featured small, .metric.featured span { color: #e1e8f7; }
.metric.featured strong { color: var(--lime); }
.market-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 13px; margin-top: 13px; }
.data-note { color: var(--muted); font-size: 12px; margin-top: 12px; }
.ranking { list-style: none; padding: 0; }
.ranking li {
  display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 10px;
  padding-block: 12px; border-bottom: 1px solid #e9ecf3;
}
.ranking li:last-child { border: 0; }
.rank { color: #4a5795; font-weight: 850; font-size: 12px; letter-spacing: .025em; }
.region > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; }
.region span { color: var(--muted); white-space: nowrap; font-size: 11px; }
.rank-meter { height: 5px; border-radius: 4px; background: #eceffa; overflow: hidden; margin-top: 5px; }
.rank-meter i { display: block; height: 100%; background: #788ad8; border-radius: 4px; }
.ranking b { min-width: 51px; text-align: right; font-variant-numeric: tabular-nums; }

.empty, .loading { padding: 22px; color: var(--muted); background: #f8f9fc; border: 1px dashed #d6dce9; border-radius: 11px; }
.loading, .failed { margin-top: 30px; }
.failed p { margin-block: 9px 16px; }
.workspace-hero h1 { font-size: clamp(34px, 4.5vw, 49px); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 17px 0 12px; }
.tabs a { border: 1px solid #dce0ec; background: #fff; }
.work-title p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.work-tools { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.work-tools label { width: 150px; }
.work-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid #e7eaf0;
}
.work-row:last-child { border: 0; }
.work-row-info { min-width: 0; overflow-wrap: anywhere; }
.work-row-info > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.work-row h3 { font-size: 17px; margin-top: 5px; }
.work-row p, .subtle { color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; }
.badge, .chip {
  display: inline-flex; align-items: center; gap: 4px; align-self: start; padding: 3px 8px; border-radius: 6px;
  background: #edf0f8; color: #495882; white-space: nowrap; font-weight: 760; font-size: 12px;
}
.badge.live { background: #e5f2e4; color: #37563a; }
#listing-rows, #contact-rows { margin-top: 8px; }
.contact-filters { display: grid; grid-template-columns: 1.35fr 1fr 1fr auto; gap: 10px; align-items: end; }
.contact-filters .text-button { min-height: 40px; }
.contact-summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding-top: 10px; }
.contact-summary .notice { margin: 0; }
.table-wrap { overflow: auto; }
.contact-table { width: 100%; min-width: 530px; border-collapse: collapse; font-size: 13px; text-align: left; }
.contact-table :is(th,td) { padding: 10px 9px; border-bottom: 1px solid #e7eaf0; overflow-wrap: anywhere; }
.contact-table thead th { background: #edf0f8; color: #424f6c; white-space: nowrap; }
.contact-table .button { min-height: 33px; padding-block: 3px; }

.editor {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); padding: 0; width: min(580px, calc(100% - 32px)); max-height: 90dvh; box-shadow: 0 12px 48px #10152a44;
}
.editor::backdrop { background: #1620369c; }
.editor :is(header, footer) { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; gap: 10px; }
.editor header { border-bottom: 1px solid var(--line); }
.editor header h2 { font-size: 22px; }
.editor footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.editor-fields { padding: 17px 20px 14px; display: grid; gap: 12px; }
.editor-notice:not(:empty) { margin: 0; padding: 0 20px 13px; }
.field-row { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.field-row.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.address-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pin-status { font-size: 13px; color: #3d5777; margin-bottom: 5px; }
.address-results { display: grid; gap: 5px; list-style: none; padding: 0; }
.address-results .button { min-height: 33px; white-space: normal; }
.map-preview {
  height: 104px; border: 1px solid #d3ddb9; border-radius: 9px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(9deg, transparent 0 26px, #fff 27px 30px, transparent 31px 53px),
    repeating-linear-gradient(85deg, #e8eddc 0 40px, #f7f9ee 41px 48px, #ebefdf 49px 84px);
}
.park, .street, .water { position: absolute; display: block; }
.park { background: #cfe2b3; border: 1px solid #bdcea2; border-radius: 15px 4px 8px 4px; }
.park-west { left: 8%; top: 12%; width: 15%; height: 29%; transform: rotate(8deg); }
.park-east { left: 58%; top: 39%; width: 19%; height: 34%; transform: rotate(7deg); }
.street { width: 107%; height: 7px; background: #fcfbf5; border-block: 1px solid #dbe1ce; left: -2%; top: 55%; transform: rotate(-13deg); }
.water { width: 20%; height: 155%; top: -30%; left: 82%; background: #cadfee; transform: rotate(-23deg); border-inline: 2px solid #f2f7f8; }
.map-pin {
  position: absolute; top: var(--y); left: var(--x); width: 22px; height: 22px; border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg); border: 2px solid white; background: #3c4d9c; box-shadow: 0 2px 5px #2439535e;
}
.map-pin::after { position: absolute; inset: 5px; background: white; content: ""; border-radius: 50%; }
.map-preview > span { position: absolute; left: 5px; bottom: 5px; background: #ffffffed; padding: 1px 5px; border-radius: 3px; font-size: 10px; }

.builder-grid { display: grid; grid-template-columns: minmax(270px, .9fr) minmax(0, 1.3fr); gap: 14px; align-items: start; }
.live-site { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 11px; }
.builder-actions { margin-top: 16px; }
.preview-panel { overflow: hidden; }
.preview-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.preview-header h2 { font-size: 17px; }
.preview-header span { overflow-wrap: anywhere; }
.office-page { --office: #27365d; --office-light: #e5ebff; overflow-wrap: anywhere; }
.office-page.theme-green { --office: #204b40; --office-light: #d9f2dd; }
.office-page.theme-clay { --office: #6f322a; --office-light: #fae3d8; }
.office-hero { border-radius: var(--radius); padding: clamp(24px,5vw,48px); background: var(--office); color: white; }
.office-hero :is(h1,h3) { font-size: clamp(30px, 5vw, 54px); margin: 8px 0 10px; }
.office-hero p { max-width: 680px; color: var(--office-light); }
.site-location { color: var(--office-light); font-size: 13px; font-weight: 700; }
.office-action {
  display: inline-flex; align-items: center; gap: 8px; background: var(--office-light); color: var(--office);
  text-decoration: none; font-weight: 800; border-radius: 8px; padding: 7px 11px; margin-top: 16px;
}
.office-action:hover { text-decoration: underline; }
.office-listings { margin: 18px 0 0; }
.office-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 20px 12px; }
.office-top a { font-size: 13px; font-weight: 750; }
.listing-cards, .office-directory { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.listing-card, .directory-card { padding: 16px; }
.listing-card h3, .listing-card h5, .directory-card h2 { margin: 7px 0 5px; font-size: 17px; letter-spacing: -.03em; }
.asking { font-weight: 850; font-size: 22px; color: var(--office, var(--navy)); }
.asking small, .address-line, .listing-card summary { font-size: 12px; color: var(--muted); }
.listing-card summary { cursor: pointer; font-weight: 750; margin-top: 9px; }
.listing-card details .map-preview { margin-top: 6px; }
.directory-card p { font-size: 13px; margin-bottom: 12px; color: var(--muted); }
.is-preview .office-hero { border-radius: 0; padding: 22px; }
.is-preview .office-hero h3 { font-size: 27px; }
.is-preview .office-hero p, .is-preview .office-action { font-size: 13px; }
.is-preview .office-listings { padding: 0 16px 16px; }
.is-preview .listing-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.is-preview .listing-card { padding: 12px; }
.is-preview .asking { font-size: 19px; }

@media (max-width: 1060px) {
  .market-filters { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .market-filters .button { justify-self: start; }
}
@media (max-width: 840px) {
  .wrap { width: min(1180px, calc(100% - 40px)); }
  .market-grid, .builder-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-cards, .office-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 28px); }
  .top-inner { gap: 8px; padding-block: 10px; }
  .top nav { justify-content: flex-end; gap: 2px; }
  .top nav a { padding: 5px 8px; font-size: 12px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 25px; }
  .hero { padding: 25px 0 16px; }
  .market-hero, .workspace-hero { align-items: flex-start; flex-direction: column-reverse; gap: 10px; }
  .hero h1 { margin-top: 5px; }
  .filter-panel, .data-panel, .work-panel { padding: 14px; }
  .market-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-filters .button { grid-column: 1 / -1; justify-self: stretch; }
  .results-heading { display: grid; gap: 1px; margin-top: 16px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .metric { padding: 10px 11px; }
  .metric.featured { grid-column: 1 / -1; }
  .metric small { font-size: 11px; }
  .work-title, .work-row { align-items: flex-start; flex-direction: column; }
  .listing-cards, .office-directory { grid-template-columns: minmax(0,1fr); }
  .contact-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-filters label:first-child { grid-column: 1 / -1; }
  .contact-filters button { justify-self: start; min-height: 29px; }
  .is-preview .listing-cards { grid-template-columns: minmax(0,1fr); }
  .editor-fields { padding-inline: 13px; }
}
