:root {
  --brand-blue: #1769e0;
  --brand-blue-dark: #0e4fb3;
  --brand-blue-soft: #eef5ff;
  --app-bg: #eef2f7;
  --panel-bg: #fbfdff;
  --line: #d8e0ec;
  --text-soft: #637083;
  --header-height: 48px;
  --panel-header-height: 108px;
  color: #111;
  background: var(--app-bg);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--app-bg);
  color: #111;
}

button,
input {
  font: inherit;
}

button {
  color: #111;
}

.app-shell {
  height: 100vh;
  overflow: hidden;
}

.app-header {
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.legal-note {
  justify-self: end;
  max-width: 520px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: right;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  color: #111;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.brand span {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.top-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.top-nav button,
.app-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 720;
}

.top-nav button {
  padding: 0 14px;
  background: transparent;
  color: var(--text-soft);
}

.top-nav button.is-active,
.top-nav button:hover,
.top-nav button:focus-visible {
  background: var(--brand-blue-soft);
  color: var(--brand-blue-dark);
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary-action {
  padding: 0 14px;
  border: 1px solid var(--line) !important;
  background: #fff;
  color: #111;
}

.primary-action {
  padding: 0 16px;
  background: var(--brand-blue);
  color: #fff;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--brand-blue-dark);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(520px, 44vw) minmax(220px, 240px) minmax(460px, 1fr);
  height: calc(100vh - var(--header-height));
  min-height: 0;
}

.library {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--panel-bg);
}

.library-header {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: var(--panel-header-height) minmax(0, 1fr);
  padding: 0;
  background: #fff;
}

.panel-title-block,
.viewer-header {
  min-height: var(--panel-header-height);
  padding: 16px 24px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.research-drawer {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fff;
}

.site-name,
#documentKind {
  margin: 0 0 8px;
  color: var(--brand-blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.48rem, 1.55vw, 1.8rem);
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: 0;
}

.panel-copy {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.address-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(23, 105, 224, 0.82);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(23, 105, 224, 0.14);
}

.map-search {
  position: absolute;
  z-index: 8;
  top: 22px;
  right: auto;
  left: 24px;
  width: min(420px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 6px;
  padding: 5px;
  border-color: rgba(23, 105, 224, 0.56);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.address-search::before {
  position: absolute;
  width: 12px;
  height: 12px;
  left: 23px;
  top: 50%;
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  content: "";
  transform: translateY(-60%);
}

.map-search::before {
  left: 17px;
}

.address-search::after {
  position: absolute;
  width: 8px;
  height: 2px;
  left: 35px;
  top: calc(50% + 7px);
  background: var(--brand-blue);
  content: "";
  transform: rotate(45deg);
}

.map-search::after {
  left: 28px;
}

.address-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 0 0 44px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 1.02rem;
  font-weight: 620;
  line-height: 1.4;
}

.map-search input {
  min-height: 32px;
  padding-left: 34px;
  font-size: 0.82rem;
  font-weight: 720;
}

.address-search input::placeholder {
  color: #4f6f9d;
}

.address-search input:focus {
  outline: 0;
}

.address-search button {
  min-width: 74px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--brand-blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
}

.map-search button {
  min-width: 58px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.address-search button:hover,
.address-search button:focus-visible {
  background: var(--brand-blue-dark);
}

.address-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.map-panel {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  margin: 0;
  background: #fff;
}

.map-toolbar {
  position: absolute;
  z-index: 5;
  top: 72px;
  right: 24px;
  left: auto;
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0;
  border: 0;
  color: var(--brand-blue-dark);
  font-size: 0.7rem;
  font-weight: 750;
  opacity: 0.72;
}

.map-canvas {
  --pin-x: 52%;
  --pin-y: 47%;
  position: relative;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(23, 105, 224, 0.13), transparent 42%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    #f7faff;
  background-size: 34px 34px;
}

.kakao-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
}

.map-tile-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #eef4fb;
}

.map-tile-layer img {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
}

.cadastre-wms-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.map-panel.has-live-map .map-canvas {
  background: #eef4fb;
}

.map-panel.has-live-map .map-road,
.map-panel.has-live-map .map-parcel {
  display: none;
}

.map-panel.has-live-map .map-canvas::before,
.map-panel.has-live-map .map-canvas::after {
  content: none;
}

.map-panel.uses-kakao .kakao-map {
  display: block;
}

.map-panel.uses-kakao .map-road,
.map-panel.uses-kakao .map-parcel {
  display: none;
}

.cadastre-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--cadastre-x, 0), var(--cadastre-y, 0)) rotate(var(--cadastre-rotate, 0deg));
  transition: opacity 0.18s ease;
}

.map-panel.cadastre-on .cadastre-overlay {
  opacity: 1;
}

.map-panel.cadastre-on .cadastre-wms-layer {
  opacity: 0.9;
}

.map-panel.has-app-cadastre .cadastre-wms-layer {
  opacity: 0 !important;
  visibility: hidden;
}

.map-panel:not(.cadastre-on) .cadastre-overlay,
.map-panel:not(.cadastre-on) .cadastre-wms-layer {
  opacity: 0 !important;
  visibility: hidden;
}

.cadastre-lines path {
  fill: none;
  stroke: rgba(17, 24, 39, 0.72);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.cadastre-lines .cadastre-view-boundary {
  fill: none;
  stroke: rgba(17, 24, 39, 0.72);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.cadastre-lines .cadastre-land-polygon {
  fill: rgba(17, 24, 39, 0.08);
  stroke: none;
}

.cadastre-lines .cadastre-land-boundary {
  fill: none;
  stroke: #111827;
  stroke-width: 2.4;
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  vector-effect: non-scaling-stroke;
}

.cadastre-lines .cadastre-building-polygon {
  fill: rgba(17, 24, 39, 0.06);
  stroke: #111827;
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.cadastre-target polygon {
  fill: rgba(37, 99, 235, 0.12);
  stroke: #1769e0;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.cadastre-target path {
  fill: none;
  stroke: rgba(23, 105, 224, 0.74);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.cadastre-labels text {
  fill: #111827;
  font-size: 18px;
  font-weight: 850;
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.cadastre-labels .cadastre-lot-label {
  fill: rgba(17, 24, 39, 0.86);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 3px;
}

.cadastre-labels .target-number {
  fill: #111827;
  font-size: 20px;
  font-weight: 950;
}

.cadastre-lines,
.cadastre-labels text:not(.target-number):not(.cadastre-lot-label) {
  display: none;
}

.map-panel.has-app-cadastre .cadastre-lines,
.map-panel.has-view-cadastre .cadastre-lines {
  display: block;
}

.map-panel.has-view-cadastre .cadastre-labels .cadastre-lot-label {
  display: block;
}

.map-canvas::before,
.map-canvas::after {
  position: absolute;
  background: #fff;
  content: "";
}

.map-canvas::before {
  width: 120%;
  height: 44px;
  left: -10%;
  top: 55%;
  border-top: 1px solid #bfbfba;
  border-bottom: 1px solid #bfbfba;
  transform: rotate(-12deg);
}

.map-canvas::after {
  width: 36px;
  height: 120%;
  left: 62%;
  top: -10%;
  border-right: 1px solid #c9c9c4;
  border-left: 1px solid #c9c9c4;
  transform: rotate(16deg);
}

.map-road,
.map-parcel,
.map-pin,
.map-layer-tab,
.map-export-button,
.map-actions,
.map-lot-button,
.map-info-card {
  position: absolute;
  display: block;
}

.map-actions {
  z-index: 9;
  right: 16px;
  bottom: 18px;
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 52px;
}

.map-layer-tab,
.map-export-button {
  position: static;
  display: flex;
  width: 47px;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-blue);
  background: #fff;
  color: var(--brand-blue-dark);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.map-layer-tab {
  border-radius: 12px;
  background: var(--brand-blue);
  color: #fff;
}

.map-layer-tab.is-off {
  background: #fff;
  color: var(--brand-blue-dark);
}

.map-export-button {
  position: relative;
  width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: #fff;
}

.map-layer-tab .map-icon {
  display: none;
}

.map-layer-tab span:last-child {
  max-width: 34px;
}

.map-export-button span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.map-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.layer-icon::before,
.layer-icon::after {
  position: absolute;
  left: 3px;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  content: "";
  transform: rotate(45deg) skew(-12deg, -12deg);
}

.layer-icon::before {
  top: 2px;
  background: currentColor;
}

.layer-icon::after {
  top: 8px;
  border: 2px solid currentColor;
}

.download-icon::before {
  position: absolute;
  left: 9px;
  top: 3px;
  width: 4px;
  height: 11px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.download-icon::after {
  position: absolute;
  left: 5px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.download-icon {
  width: 22px;
  height: 22px;
  border: 0;
}

.map-export-button::after {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.map-layer-tab:focus-visible,
.map-export-button:focus-visible,
.map-lot-button:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.35);
  outline-offset: 4px;
}

.map-lot-button {
  display: none;
  z-index: 5;
  left: 49%;
  top: 48%;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue-dark);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(23, 105, 224, 0.18);
}

.map-info-card {
  z-index: 7;
  left: 49%;
  top: calc(48% + 26px);
  display: none;
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid rgba(37, 99, 235, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
  transform: translateX(-50%);
  pointer-events: none;
}

.map-info-card.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-info-card strong {
  color: var(--brand-blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.map-info-card span {
  display: none;
}

.map-road {
  z-index: 1;
  background: #fff;
  border: 1px solid #cecec8;
}

.road-main {
  width: 106%;
  height: 28px;
  left: -8%;
  top: 18%;
  transform: rotate(8deg);
}

.road-side {
  width: 30px;
  height: 116%;
  left: 20%;
  top: -8%;
  transform: rotate(-18deg);
}

.road-cross {
  width: 80%;
  height: 22px;
  right: -18%;
  bottom: 18%;
  transform: rotate(26deg);
}

.map-parcel {
  z-index: 2;
  border: 1px solid rgba(17, 17, 17, 0.68);
  background: rgba(255, 255, 255, 0.62);
}

.parcel-one {
  width: 34%;
  height: 31%;
  left: 8%;
  top: 34%;
  clip-path: polygon(8% 0, 100% 12%, 88% 100%, 0 82%);
}

.parcel-two {
  width: 27%;
  height: 35%;
  left: 43%;
  top: 24%;
  border-color: var(--brand-blue);
  border-width: 2px;
  background: rgba(238, 245, 255, 0.88);
  clip-path: polygon(12% 0, 100% 8%, 90% 90%, 0 100%);
}

.parcel-three {
  width: 26%;
  height: 30%;
  right: 8%;
  top: 38%;
  clip-path: polygon(0 14%, 86% 0, 100% 82%, 16% 100%);
}

.parcel-four {
  width: 38%;
  height: 20%;
  left: 25%;
  bottom: 9%;
  clip-path: polygon(0 12%, 92% 0, 100% 76%, 10% 100%);
}

.map-pin {
  z-index: 4;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 13px;
  height: 13px;
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.map-pin::after {
  position: absolute;
  width: 1px;
  height: 24px;
  left: 4px;
  top: 8px;
  background: var(--brand-blue);
  content: "";
}

.map-pin span {
  display: none;
  position: absolute;
  left: 14px;
  top: -11px;
  min-width: 44px;
  padding: 3px 6px;
  border: 1px solid var(--brand-blue);
  background: #fff;
  color: var(--brand-blue-dark);
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.map-panel.is-active .map-pin {
  background: var(--brand-blue);
}

.map-panel.is-active .map-pin span {
  background: var(--brand-blue);
  color: #fff;
}

.map-address-card {
  flex: 0 0 auto;
  min-height: 112px;
  padding: 18px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.map-address-card strong {
  display: block;
  color: var(--brand-blue-dark);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.35;
}

.map-address {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: #111;
  font-size: 0.96rem;
  line-height: 1.55;
}

.quick-grid,
.quick-list {
  display: grid;
  gap: 8px;
}

.quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-card,
.summary-card {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.quick-card {
  min-height: 78px;
  padding: 14px;
}

.summary-card {
  min-height: 64px;
  row-gap: 4px;
  padding: 13px 14px;
}

.tool-icon {
  width: 26px;
  height: 26px;
  grid-row: 1 / span 2;
  object-fit: contain;
}

.quick-card:hover,
.quick-card:focus-visible,
.summary-card:hover,
.summary-card:focus-visible {
  border-color: rgba(23, 105, 224, 0.28);
  background: var(--brand-blue-soft);
}

.quick-card strong,
.summary-card strong {
  display: block;
  min-width: 0;
  color: #111;
  font-size: 0.96rem;
  font-weight: 820;
  line-height: 1.35;
}

.quick-card span,
.summary-card span {
  display: block;
  margin-top: 4px;
  min-width: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.file-loader {
  position: relative;
  display: block;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.3;
}

.file-loader:hover,
.file-loader:focus-within {
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
}

.file-loader input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.document-list {
  display: grid;
  gap: 8px;
  padding: 0;
}

.panel-section {
  padding: 22px 24px 0;
}

.document-section {
  padding-bottom: 32px;
}

.research-drawer .panel-section {
  padding: 18px 16px 20px;
}

.research-drawer .panel-section + .panel-section {
  border-top: 1px solid var(--line);
}

.research-drawer .quick-grid {
  grid-template-columns: 1fr;
}

.research-drawer .quick-card {
  min-height: 64px;
  padding: 12px 13px;
}

.research-drawer .summary-card {
  min-height: 58px;
  padding: 12px 13px;
}

.research-drawer .file-loader {
  padding: 13px 14px;
  font-size: 0.9rem;
}

.section-label {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.document-button {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.document-button:hover,
.document-button:focus-visible,
.document-button[aria-current="true"] {
  border-color: rgba(23, 105, 224, 0.18);
  background: var(--brand-blue-soft);
}

.document-button strong {
  display: block;
  color: #111;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.35;
}

.document-button span {
  color: var(--brand-blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.document-button[aria-current="true"] strong {
  color: var(--brand-blue-dark);
}

.document-button[aria-current="true"] strong,
.document-button:hover strong,
.document-button:focus-visible strong {
  text-decoration: none;
}

.document-button:focus-visible,
.file-loader:focus-within,
.address-search:focus-within,
.page-control button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.address-search:focus-within {
  outline: 3px solid rgba(23, 105, 224, 0.22);
  outline-offset: 4px;
}

.viewer {
  display: grid;
  min-width: 0;
  height: calc(100vh - var(--header-height));
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--app-bg);
}

.viewer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  border-top: 0;
}

.viewer-title-block {
  min-width: 0;
}

#documentTitle {
  margin: 0;
  color: #111;
  font-size: clamp(1.48rem, 1.55vw, 1.8rem);
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: 0;
}

.report-actions {
  margin-top: 0;
}

.document-tools {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 34px;
  display: flex;
  max-width: calc(100% - 68px);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.document-tools span,
.document-tool-button,
.office-info-trigger {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.2;
}

.document-tool-button {
  appearance: none;
  cursor: pointer;
}

.document-tool-button.is-active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.document-tool-button.danger {
  color: #b42318;
}

.document-tool-button.bookmark {
  border-color: rgba(37, 99, 235, 0.32);
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
}

.document-tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.office-info-trigger {
  min-height: 38px;
  padding: 0 14px;
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
  cursor: pointer;
}

.office-info-trigger:hover,
.office-info-trigger:focus-visible {
  background: var(--brand-blue-dark);
}

.page-control {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  margin-top: 0;
  color: #111;
  font-size: 0.88rem;
}

.page-control button {
  min-width: 52px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.page-control button:disabled {
  border-color: var(--line);
  color: #9aa3af;
  cursor: default;
}

#pageStatus {
  min-width: 56px;
  text-align: center;
}

.document-stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  padding: 14px 34px 18px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    var(--app-bg);
  background-size: 24px 24px;
}

.paper {
  width: min(100%, 600px);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 32px 40px 22px;
  overflow: hidden;
  border: 1px solid #d9e0ea;
  background: #fff;
  color: #111;
  box-shadow: 0 22px 55px rgba(22, 34, 51, 0.12);
  position: relative;
}

.report-bottom-controls {
  display: flex;
  width: min(100%, 600px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}

.office-footer {
  position: absolute;
  right: 48px;
  bottom: 24px;
  left: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  padding-top: 12px;
  border-top: 1px solid #cfd8e4;
  background: #fff;
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.35;
}

.office-footer strong {
  grid-column: 1 / -1;
  color: var(--brand-blue-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.office-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper[contenteditable="true"] {
  caret-color: #111;
}

.paper[contenteditable="true"]:focus {
  outline: 2px solid #111;
  outline-offset: 8px;
}

.paper h3 {
  margin: 0 0 15px;
  color: #111;
  font-size: clamp(1.28rem, 1.55vw, 1.78rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

.paper .meta {
  display: grid;
  gap: 3px;
  margin: 0 0 18px;
  padding: 0 0 13px;
  border-bottom: 1px solid #111;
  color: #111;
  font-size: 0.92rem;
  line-height: 1.55;
}

.paper section {
  margin: 0 0 14px;
}

.paper section:last-of-type {
  margin-bottom: 0;
}

.paper h4 {
  margin: 0 0 6px;
  color: #111;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
}

.paper p,
.paper li {
  color: #111;
  font-size: 0.84rem;
  line-height: 1.45;
}

.paper p {
  margin: 0 0 8px;
}

.paper ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
}

.paper li::before {
  width: 4px;
  height: 4px;
  margin-top: 11px;
  border-radius: 50%;
  background: #111;
  content: "";
}

.paper table {
  width: 100%;
  border-collapse: collapse;
  color: #111;
  font-size: 0.82rem;
  line-height: 1.35;
}

.paper th,
.paper td {
  padding: 7px 8px;
  border: 1px solid #cfcfc9;
  text-align: left;
  vertical-align: top;
}

.paper th {
  width: 30%;
  font-weight: 650;
}

.plain-text {
  white-space: pre-wrap;
}

.pdf-frame {
  width: 100%;
  height: calc(100vh - 154px);
  min-height: 620px;
  border: 1px solid #d7d7d1;
  background: #fff;
}

.empty-file {
  margin: 0;
  color: #111;
  font-size: 1rem;
  line-height: 1.8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

.modal-backdrop.is-open {
  display: flex;
}

.office-modal {
  width: min(100%, 620px);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  color: #111;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.3;
}

.modal-header button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 720;
}

.office-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 24px 24px;
}

.office-form label {
  display: grid;
  gap: 7px;
}

.office-form label:nth-child(2),
.office-form label:nth-child(5) {
  grid-column: 1 / -1;
}

.office-form span {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.office-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111;
}

.office-form input:focus {
  border-color: var(--brand-blue);
  outline: 3px solid rgba(23, 105, 224, 0.16);
}

.modal-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* Professional visual refresh */
:root {
  --brand-blue: #1d63d8;
  --brand-blue-dark: #14499f;
  --brand-blue-soft: #eef6ff;
  --app-bg: #eef3f8;
  --panel-bg: #ffffff;
  --line: #d8e2ee;
  --text-soft: #65758b;
  --header-height: 56px;
  --panel-header-height: 116px;
}

body {
  background: #e9eff6;
  color: #0f172a;
}

button {
  color: #0f172a;
}

.app-header {
  min-height: var(--header-height);
  padding: 0 22px;
  border-bottom: 1px solid #dce5f0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.brand {
  gap: 11px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1d63d8 0%, #1357c5 64%, #0f766e 100%);
  box-shadow: 0 8px 18px rgba(29, 99, 216, 0.22);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.brand strong {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 850;
}

.brand span,
.legal-note {
  color: var(--text-soft);
}

.legal-note {
  font-size: 0.74rem;
}

.workspace {
  grid-template-columns: minmax(600px, 48vw) minmax(232px, 248px) minmax(420px, 1fr);
}

.library,
.research-drawer {
  border-right-color: #d9e3ef;
  background: #fff;
}

.panel-title-block,
.viewer-header {
  padding: 18px 24px 0;
  border-bottom-color: #d9e3ef;
}

.site-name,
#documentKind,
.section-label {
  color: var(--brand-blue-dark);
  font-size: 0.73rem;
  letter-spacing: 0.01em;
}

h1,
#documentTitle {
  color: #0b1220;
  font-size: clamp(1.52rem, 1.45vw, 1.86rem);
  font-weight: 850;
}

.panel-copy {
  max-width: 680px;
  color: #66758a;
  font-size: 0.86rem;
}

.map-panel {
  background: #f8fafc;
}

.map-canvas {
  background:
    linear-gradient(135deg, rgba(29, 99, 216, 0.08), transparent 45%),
    linear-gradient(90deg, rgba(30, 41, 59, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(30, 41, 59, 0.045) 1px, transparent 1px),
    #f8fbff;
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.map-canvas::before,
.map-canvas::after,
.map-road {
  border-color: #d6d2ca;
  background: #fffdfa;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.map-canvas::before {
  height: 48px;
}

.map-canvas::after {
  width: 40px;
}

.map-toolbar {
  top: 78px;
  right: 28px;
  color: #41668f;
  font-size: 0.68rem;
  opacity: 0.78;
}

.address-search {
  border-color: #9dc3f8;
  border-radius: 10px;
}

.map-search {
  top: 22px;
  left: 24px;
  width: min(400px, calc(100% - 48px));
  padding: 6px;
  border-color: rgba(29, 99, 216, 0.55);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.14);
}

.map-search input {
  min-height: 34px;
  color: #0f172a;
}

.map-search button {
  min-height: 34px;
  border-radius: 8px;
}

.map-actions {
  right: 22px;
  bottom: 24px;
  gap: 10px;
  width: 54px;
}

.map-layer-tab,
.map-export-button {
  border-color: rgba(20, 73, 159, 0.2);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.map-layer-tab {
  width: 52px;
  min-height: 52px;
  border-radius: 14px;
  background: #1d63d8;
  color: #fff;
}

.map-export-button {
  width: 46px;
  min-height: 46px;
  color: #1d63d8;
}

.map-export-button::after {
  bottom: 8px;
}

.map-lot-button {
  border-color: rgba(29, 99, 216, 0.85);
  background: rgba(255, 255, 255, 0.96);
  color: #14499f;
  box-shadow: 0 12px 26px rgba(29, 99, 216, 0.18);
}

.map-pin {
  border-color: #1d63d8;
}

.map-pin::after {
  background: #1d63d8;
}

.map-pin span,
.map-info-card span {
  color: #14499f;
}

.map-parcel {
  border-color: rgba(51, 65, 85, 0.58);
  background: rgba(255, 255, 255, 0.7);
}

.parcel-two {
  border-color: #1d63d8;
  background: rgba(226, 239, 255, 0.78);
}

.map-address-card {
  min-height: 108px;
  padding: 18px 24px 20px;
  border-top-color: #d9e3ef;
}

.map-address-card strong {
  color: #14499f;
  font-size: 1.02rem;
}

.map-address {
  color: #1f2937;
  font-size: 0.92rem;
}

.research-drawer .panel-section {
  padding: 18px 16px;
}

.research-drawer .panel-section + .panel-section {
  border-top-color: #e2e8f0;
}

.file-loader,
.quick-card,
.summary-card,
.document-button,
.page-control button,
.document-tools span,
.office-info-trigger {
  border-radius: 9px;
}

.file-loader,
.quick-card,
.summary-card {
  border-color: #dbe4ef;
  background: #fff;
}

.file-loader {
  color: #0f172a;
}

.quick-card strong,
.summary-card strong,
.document-button strong {
  color: #0f172a;
}

.quick-card span,
.summary-card span {
  color: #66758a;
}

.quick-card:hover,
.quick-card:focus-visible,
.summary-card:hover,
.summary-card:focus-visible,
.document-button:hover,
.document-button:focus-visible,
.document-button[aria-current="true"] {
  border-color: rgba(29, 99, 216, 0.28);
  background: #f3f8ff;
}

.document-button[aria-current="true"] {
  box-shadow: inset 3px 0 0 #1d63d8;
}

.document-button span,
.document-button[aria-current="true"] strong {
  color: #14499f;
}

.viewer {
  background: #edf2f8;
}

.document-stage {
  padding: 16px 32px 18px;
  background:
    linear-gradient(90deg, rgba(51, 65, 85, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(51, 65, 85, 0.035) 1px, transparent 1px),
    #edf2f8;
  background-size: 22px 22px;
}

.document-tools {
  top: 18px;
  right: 32px;
}

.document-tools span {
  min-height: 32px;
  border-color: #d9e3ef;
  background: rgba(255, 255, 255, 0.92);
  color: #66758a;
}

.office-info-trigger {
  min-height: 38px;
  border-color: #1d63d8;
  background: #1d63d8;
  box-shadow: 0 10px 22px rgba(29, 99, 216, 0.2);
}

.paper,
.report-bottom-controls {
  width: min(100%, 560px);
}

.paper {
  padding: 36px 40px 28px;
  border-color: #d6dee9;
  color: #0f172a;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.14);
}

.paper h3 {
  color: #0b1220;
  font-size: clamp(1.24rem, 1.36vw, 1.62rem);
  font-weight: 850;
}

.paper .meta,
.paper p,
.paper li,
.paper table {
  color: #111827;
}

.paper h4 {
  color: #0b1220;
  font-weight: 820;
}

.paper th,
.paper td {
  border-color: #d5d0c8;
}

.paper th {
  background: #fbfaf8;
}

.report-bottom-controls {
  gap: 14px;
}

.page-control {
  gap: 14px;
}

.page-control button,
.secondary-action {
  border-color: #d9e3ef !important;
  background: rgba(255, 255, 255, 0.94);
}

.primary-action {
  background: #1d63d8;
}

.primary-action:hover,
.primary-action:focus-visible,
.office-info-trigger:hover,
.office-info-trigger:focus-visible {
  background: #14499f;
}

.office-modal {
  border: 1px solid rgba(216, 226, 238, 0.9);
  border-radius: 12px;
}

/* AI tools directory inspired refresh */
:root {
  --brand-blue: #2563eb;
  --brand-blue-dark: #1e40af;
  --brand-blue-soft: #eff6ff;
  --accent-gold: #f5b84b;
  --accent-gold-soft: #fff7df;
  --app-bg: #f6f8fb;
  --panel-bg: #ffffff;
  --line: #e5ebf2;
  --text-soft: #6b7280;
  --header-height: 64px;
  --panel-header-height: 124px;
}

body {
  background:
    radial-gradient(circle at 14% 10%, rgba(245, 184, 75, 0.13), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.11), transparent 28%),
    #f6f8fb;
  color: #111827;
}

.app-header {
  min-height: var(--header-height);
  padding: 0 28px;
  border-bottom: 1px solid rgba(229, 235, 242, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #111827 0%, #1f2937 46%, #2563eb 47%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
  font-size: 0.7rem;
}

.brand strong {
  font-size: 0.96rem;
  font-weight: 900;
}

.brand span {
  color: #7b8494;
}

.legal-note {
  color: #7b8494;
}

.workspace {
  grid-template-columns: minmax(560px, 43vw) minmax(240px, 260px) minmax(470px, 1fr);
  gap: 0;
  padding: 0;
  background: transparent;
}

.library,
.research-drawer,
.viewer {
  background: transparent;
}

.library,
.research-drawer {
  border-right-color: rgba(229, 235, 242, 0.96);
}

.panel-title-block,
.viewer-header {
  padding: 20px 28px 0;
  border-bottom: 1px solid rgba(229, 235, 242, 0.96);
  background: rgba(255, 255, 255, 0.92);
}

.site-name,
#documentKind,
.section-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-gold-soft);
  color: #9a6200;
  font-size: 0.68rem;
  font-weight: 900;
}

#documentKind {
  background: var(--brand-blue-soft);
  color: var(--brand-blue-dark);
}

h1,
#documentTitle {
  color: #101828;
  font-size: clamp(1.58rem, 1.42vw, 1.92rem);
  font-weight: 900;
}

.panel-copy {
  color: #667085;
  font-size: 0.88rem;
}

.map-panel {
  padding: 18px 20px 0;
  background: rgba(255, 255, 255, 0.35);
}

.map-canvas {
  border: 1px solid rgba(218, 226, 237, 0.9);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.11), transparent 42%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.043) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.043) 1px, transparent 1px),
    #f9fbff;
  background-size: auto, 34px 34px, 34px 34px, auto;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.09);
}

.map-search {
  top: 20px;
  left: 20px;
  width: min(410px, calc(100% - 40px));
  padding: 7px;
  border: 1px solid rgba(37, 99, 235, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.map-search input {
  min-height: 36px;
  color: #111827;
}

.map-search button {
  min-height: 36px;
  border-radius: 11px;
  background: #111827;
}

.map-search button:hover,
.map-search button:focus-visible {
  background: var(--brand-blue);
}

.map-toolbar {
  top: 88px;
  right: 34px;
  color: #475467;
}

.map-layer-tab {
  width: 54px;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: #111827;
  color: #fff;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.22);
}

.map-export-button {
  width: 48px;
  min-height: 48px;
  border: 1px solid rgba(229, 235, 242, 0.95);
  background: #fff;
  color: #111827;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.map-lot-button {
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: #fff;
  color: var(--brand-blue-dark);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.15);
}

.map-pin {
  border-color: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.map-pin::after {
  background: #2563eb;
}

.map-pin span {
  border-color: rgba(37, 99, 235, 0.45);
  border-radius: 6px;
  color: var(--brand-blue-dark);
}

.map-address-card {
  margin: 14px 0 0;
  min-height: 96px;
  padding: 18px 8px 20px;
  border-top: 0;
  background: transparent;
}

.map-address-card strong {
  color: #101828;
  font-size: 1.05rem;
}

.research-drawer {
  padding: 14px 12px;
  overflow-y: auto;
}

.research-drawer .panel-section {
  margin-bottom: 12px;
  padding: 0;
}

.research-drawer .panel-section + .panel-section {
  border-top: 0;
}

.file-loader,
.quick-card,
.summary-card,
.document-button {
  border: 1px solid rgba(218, 226, 237, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.file-loader {
  padding: 16px;
}

.quick-card,
.summary-card {
  min-height: 70px;
  padding: 14px;
}

.tool-icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 10px;
  background: var(--brand-blue-soft);
}

.quick-card strong,
.summary-card strong,
.document-button strong {
  color: #111827;
  font-weight: 900;
}

.quick-card span,
.summary-card span {
  color: #7b8494;
}

.quick-card:hover,
.quick-card:focus-visible,
.summary-card:hover,
.summary-card:focus-visible,
.document-button:hover,
.document-button:focus-visible,
.document-button[aria-current="true"] {
  border-color: rgba(37, 99, 235, 0.36);
  background: #fff;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.1);
}

.document-button {
  min-height: 56px;
  padding: 13px 14px;
}

.document-button[aria-current="true"] {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(135deg, #fff 0%, #f3f8ff 100%);
  box-shadow:
    inset 4px 0 0 var(--accent-gold),
    0 16px 36px rgba(37, 99, 235, 0.1);
}

.document-button span,
.document-button[aria-current="true"] strong {
  color: var(--brand-blue-dark);
}

.viewer-header {
  position: relative;
}

.viewer-header::after {
  position: absolute;
  right: 28px;
  bottom: 18px;
  width: 58px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-gold), var(--brand-blue));
  content: "";
}

.document-stage {
  padding: 18px 30px 18px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    #f1f5f9;
  background-size: 24px 24px;
}

.document-tools {
  top: 18px;
  right: 30px;
}

.document-tools span,
.page-control button,
.secondary-action {
  border-color: rgba(218, 226, 237, 0.98) !important;
  border-radius: 12px;
  background: #fff;
  color: #667085;
}

.office-info-trigger,
.primary-action {
  border-radius: 13px;
  background: #111827;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.17);
}

.office-info-trigger:hover,
.office-info-trigger:focus-visible,
.primary-action:hover,
.primary-action:focus-visible {
  background: var(--brand-blue);
}

.paper,
.report-bottom-controls {
  width: min(100%, 540px);
}

.paper {
  padding: 36px 38px 28px;
  border: 0;
  border-radius: 2px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(218, 226, 237, 0.9);
}

.paper h3 {
  font-weight: 900;
}

.paper th {
  background: #fbfcff;
}

.report-bottom-controls {
  padding: 0 2px;
}

.report-actions {
  flex: 0 0 auto;
}

.report-actions button {
  white-space: nowrap;
}

.report-actions .secondary-action {
  min-width: 64px;
}

.report-actions .primary-action {
  min-width: 126px;
}

.page-control button {
  min-height: 38px;
}

/* Rounded dashboard layout inspired by the uploaded reference */
:root {
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-blue-soft: #eef4ff;
  --accent-gold: #f3b43f;
  --accent-gold-soft: #fff4cf;
  --app-bg: #f6f6f7;
  --panel-bg: #ffffff;
  --line: #e8edf5;
  --text-soft: #697386;
  --header-height: 72px;
  --panel-header-height: 124px;
}

html,
body {
  background: var(--app-bg);
}

body {
  color: #06164a;
}

.app-shell {
  display: grid;
  height: 100vh;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  overflow: hidden;
  background: #f6f6f7;
}

.app-header {
  display: grid;
  min-height: 0;
  height: var(--header-height);
  grid-template-columns: minmax(220px, 300px) minmax(360px, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 18px;
  padding: 0 22px 0 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.055);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #2563eb 55%, #173b9c 56%, #173b9c 100%);
  color: #fff;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 900;
}

.brand strong {
  color: #06164a;
  font-size: 0.98rem;
  font-weight: 900;
}

.brand span {
  color: #6d7890;
  font-size: 0.76rem;
}

.top-nav {
  justify-self: center;
  gap: 16px;
}

.top-nav button {
  min-width: 118px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fafafa;
  color: #06164a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  font-size: 0.92rem;
  font-weight: 760;
}

.top-nav button.is-active,
.top-nav button:hover,
.top-nav button:focus-visible {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 13px 24px rgba(37, 99, 235, 0.26);
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.legal-note {
  max-width: 330px;
  color: #6d7890;
  font-size: 0.72rem;
  font-weight: 700;
}

.settings-button {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.settings-button::before,
.settings-button::after {
  position: absolute;
  inset: 12px;
  border: 2px solid #06164a;
  border-radius: 50%;
  content: "";
}

.settings-button::after {
  inset: 18px;
  background: #06164a;
}

.workspace {
  grid-template-columns: minmax(520px, 42vw) minmax(248px, 280px) minmax(460px, 1fr);
  gap: 22px;
  height: auto;
  min-height: 0;
  padding: 0;
}

.library,
.research-drawer,
.viewer {
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.055);
}

.library-header {
  background: #fff;
}

.panel-title-block,
.viewer-header {
  padding: 24px 28px 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.site-name,
#documentKind,
.section-label {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent-gold-soft);
  color: #9a6200;
  font-size: 0.7rem;
  font-weight: 900;
}


h1,
#documentTitle {
  color: #06164a;
  font-size: clamp(1.48rem, 1.42vw, 1.85rem);
  font-weight: 900;
}

.panel-copy {
  max-width: 720px;
  color: #697386;
  font-size: 0.88rem;
}

.map-panel {
  padding: 20px;
  background: #fff;
}

.map-canvas {
  border: 1px solid #dbe6f5;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 42%),
    linear-gradient(90deg, rgba(6, 22, 74, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(6, 22, 74, 0.045) 1px, transparent 1px),
    #fbfdff;
  background-size: auto, 34px 34px, 34px 34px, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.cadastre-lines path {
  stroke: rgba(3, 7, 18, 0.7);
}

.cadastre-target polygon {
  fill: rgba(37, 99, 235, 0.15);
  stroke: var(--brand-blue);
}

.map-search {
  top: 22px;
  left: 22px;
  width: min(410px, calc(100% - 44px));
  padding: 7px;
  border: 1px solid #9fc1ff;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
}

.map-search input {
  min-height: 38px;
  color: #06164a;
}

.map-search button {
  min-width: 64px;
  min-height: 38px;
  border-radius: 13px;
  background: var(--brand-blue);
  font-weight: 850;
}

.map-search button:hover,
.map-search button:focus-visible {
  background: var(--brand-blue-dark);
}

.map-toolbar {
  top: 92px;
  right: 36px;
}

.map-actions {
  right: 24px;
  bottom: 24px;
}

.map-layer-tab {
  width: 58px;
  min-height: 58px;
  border-radius: 20px;
  background: var(--brand-blue);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.map-export-button {
  width: 52px;
  min-height: 52px;
  border: 0;
  background: #fff;
  color: #06164a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
}

.map-lot-button {
  border-color: rgba(37, 99, 235, 0.34);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue-dark);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.map-pin {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.map-pin::after {
  background: var(--brand-blue);
}

.map-pin span {
  border-color: #9fc1ff;
  border-radius: 7px;
  color: var(--brand-blue-dark);
}

.map-address-card {
  margin: 16px 0 0;
  min-height: 92px;
  padding: 14px 8px 0;
  background: transparent;
}

.map-address-card strong {
  color: #06164a;
}

.research-drawer {
  padding: 18px 16px;
  background: #fff;
}

.research-drawer .panel-section {
  margin-bottom: 16px;
  padding: 0;
}


.file-loader,
.quick-card,
.summary-card,
.document-button {
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.055),
    inset 0 0 0 1px #e6edf7;
}

.file-loader {
  padding: 17px 18px;
}

.quick-card,
.summary-card {
  min-height: 72px;
  padding: 15px 16px;
}

.tool-icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 12px;
  background: var(--brand-blue-soft);
}

.quick-card strong,
.summary-card strong,
.document-button strong {
  color: #06164a;
  font-weight: 900;
}

.quick-card span,
.summary-card span {
  color: #778298;
}

.summary-card {
  position: relative;
  cursor: pointer;
  text-align: left;
}

.summary-card.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.summary-card.is-loading::after {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(37, 99, 235, 0.18);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  content: "";
  animation: client-spin 0.8s linear infinite;
}

.client-status-panel {
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid #e6edf7;
  border-radius: 18px;
  background: #fbfdff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.client-status-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #06164a;
  font-size: 0.82rem;
  font-weight: 900;
}

.client-status-panel p {
  margin: 0;
  color: #778298;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.45;
  word-break: keep-all;
}

.client-status-panel[data-state="success"] {
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--brand-blue-soft);
}

.client-status-panel[data-state="loading"] {
  border-color: rgba(37, 99, 235, 0.26);
}

.client-status-panel[data-state="warning"] {
  border-color: rgba(218, 138, 0, 0.28);
  background: var(--accent-gold-soft);
}

.client-status-panel[data-state="error"] {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fff4f2;
}

@keyframes client-spin {
  to {
    transform: rotate(360deg);
  }
}

.quick-card:hover,
.quick-card:focus-visible,
.summary-card:hover,
.summary-card:focus-visible,
.document-button:hover,
.document-button:focus-visible,
.document-button[aria-current="true"] {
  background: #fff;
  box-shadow:
    0 18px 38px rgba(37, 99, 235, 0.12),
    inset 0 0 0 1px #9fc1ff;
}

.document-button[aria-current="true"] {
  background: var(--brand-blue);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
}

.document-button[aria-current="true"] strong,
.document-button[aria-current="true"] span {
  color: #fff;
}

.viewer {
  background: #fff;
}


.viewer-header::after {
  right: 28px;
  bottom: 20px;
  width: 64px;
  height: 8px;
  background: linear-gradient(90deg, var(--accent-gold), var(--brand-blue));
}

.document-stage {
  padding: 20px 28px 20px;
  background:
    linear-gradient(90deg, rgba(6, 22, 74, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(6, 22, 74, 0.035) 1px, transparent 1px),
    #f1f5fa;
  background-size: 24px 24px;
}

.document-tools {
  top: 20px;
  right: 28px;
}

.document-tools span,
.document-tool-button,
.page-control button,
.secondary-action {
  border: 0 !important;
  border-radius: 15px;
  background: #fff;
  color: #65718a;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
}

.document-tool-button {
  min-height: 34px;
}

.document-tool-button.is-active {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}


.document-tool-button:disabled {
  color: #9aa4b2;
  opacity: 0.55;
}

.office-info-trigger,
.primary-action {
  border: 0;
  border-radius: 16px;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
}

.office-info-trigger:hover,
.office-info-trigger:focus-visible,
.primary-action:hover,
.primary-action:focus-visible {
  background: var(--brand-blue-dark);
}


.paper {
  padding: 38px 40px 30px;
  border: 0;
  border-radius: 2px;
  color: #06164a;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.14),
    0 0 0 1px #e2e8f1;
}

.paper h3,
.paper h4 {
  color: #06164a;
  font-weight: 900;
}


.paper th {
  background: #f8fbff;
}


.paper.app-report-page {
  width: min(100%, 560px);
  height: calc(100% - 30px);
  margin-top: 30px;
  padding: 24px 28px 34px;
  overflow: hidden;
  background: #fff;
  color: #111;
}

.app-report-page .report-document {
  position: relative;
  display: flex;
  min-height: 100%;
  width: 760px;
  flex-direction: column;
  padding-bottom: 34px;
  zoom: 0.45;
}

.app-report-page h3 {
  margin: 0 0 22px;
  color: #000;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.report-field-grid {
  border-top: 1.5px solid #111;
  color: #111;
}

.report-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid #111;
}

.report-cell {
  display: grid;
  min-height: 40px;
  grid-column: span var(--span, 2);
  grid-template-columns: minmax(104px, 0.62fr) minmax(0, 1fr);
  align-items: center;
  border-right: 1px solid #111;
  font-size: 0.95rem;
  line-height: 1.32;
}

.report-cell:last-child {
  border-right: 0;
}

.report-cell strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  color: #111;
  font-weight: 900;
  line-height: 1.25;
}

.report-cell span {
  min-width: 0;
  padding: 7px 10px;
  color: #111;
  text-align: center;
}

.report-cell.is-multiline {
  grid-template-columns: minmax(112px, 0.55fr) minmax(0, 1fr);
}

.report-cell.is-multiline span {
  text-align: left;
  word-break: keep-all;
}

.report-divider {
  height: 0;
  border-bottom: 1px solid #111;
}

.report-map {
  flex: 0 0 auto;
  height: 340px;
  margin: 10px 0 12px;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  overflow: hidden;
}

.report-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(70px, 0.8fr) minmax(0, 3fr) minmax(116px, 1fr);
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid #d0d0d0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.25;
}

.report-footer span:nth-child(2) {
  text-align: center;
}

.report-footer span:last-child {
  text-align: right;
}

.paper.app-report-page .office-footer {
  bottom: 42px;
  font-size: 0.62rem;
}

.map-canvas {
  cursor: grab;
  touch-action: none;
}

.map-canvas.is-dragging {
  cursor: grabbing;
}

.map-panel.uses-kakao .map-tile-layer {
  display: none;
}

.map-panel.cadastre-on .cadastre-overlay {
  opacity: 0.9;
}

.map-zoom-controls {
  position: absolute;
  z-index: 8;
  right: 24px;
  top: 96px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.map-zoom-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-bottom: 1px solid #e6edf7;
  background: #fff;
  color: #06164a;
  cursor: pointer;
  font-size: 1.22rem;
  font-weight: 900;
}

.map-zoom-controls button:last-child {
  border-bottom: 0;
}

.map-zoom-controls button:hover,
.map-zoom-controls button:focus-visible {
  background: var(--brand-blue-soft);
  color: var(--brand-blue-dark);
}

.map-location-button {
  position: absolute;
  z-index: 8;
  right: 24px;
  bottom: 164px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--brand-blue-dark);
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.17);
}

.map-location-button span {
  position: relative;
  width: 24px;
  height: 24px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.map-location-button span::before,
.map-location-button span::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.map-location-button span::before {
  width: 4px;
  height: 34px;
  left: 6px;
  top: -9px;
}

.map-location-button span::after {
  width: 34px;
  height: 4px;
  left: -9px;
  top: 6px;
}

.map-location-button.is-loading span {
  animation: client-spin 0.8s linear infinite;
}

.map-location-button:hover,
.map-location-button:focus-visible {
  background: var(--brand-blue);
  color: #fff;
}

.selected-address-details {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e1e9f5;
  border-radius: 18px;
  background: #fbfdff;
}

.map-panel.map-focus-mode .map-address-card {
  max-height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
}

.map-panel.map-focus-mode .map-canvas {
  min-height: clamp(560px, 68vh, 860px);
}

.selected-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.selected-detail-title {
  min-width: 0;
}

.selected-detail-title strong,
.selected-detail-title span {
  display: block;
}

.selected-detail-title strong {
  color: #06164a;
  font-size: 0.95rem;
  font-weight: 900;
}

.selected-detail-title span {
  margin-top: 4px;
  color: var(--brand-blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.map-return-button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue-dark);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.map-return-button:hover,
.map-return-button:focus-visible {
  border-color: rgba(23, 105, 224, 0.4);
  background: var(--brand-blue-soft);
}

.building-info-viewer {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #dfe8f5;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.055);
}

.building-info-viewer-header {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.building-info-viewer-header span {
  color: #06164a;
  font-size: 0.88rem;
  font-weight: 950;
  word-break: keep-all;
  white-space: nowrap;
}

.building-info-viewer-header .map-return-button {
  width: 100%;
}

.building-info-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed #d6e2f1;
  border-radius: 14px;
  background: #fbfdff;
  color: #7a8699;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.45;
  word-break: keep-all;
}

.building-info-viewer .selected-address-details {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.building-info-viewer .selected-detail-header {
  margin-bottom: 10px;
}

.building-info-viewer .building-variant-tabs,
.building-info-viewer .selected-info-grid {
  grid-template-columns: 1fr;
}

.building-info-viewer .building-variant-tabs button {
  min-height: 48px;
}

.building-info-viewer .selected-info-item {
  padding: 9px 10px;
}

@media (min-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(500px, 1fr) minmax(176px, 200px) minmax(500px, 560px);
    gap: 14px;
  }

  .research-drawer {
    max-width: 200px;
  }

  .viewer {
    max-width: 560px;
  }

  .document-stage {
    display: grid;
    grid-template-columns: minmax(158px, 172px) minmax(320px, 350px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 10px;
    padding: 14px 14px 18px;
  }

  .building-info-viewer {
    grid-column: 1;
    grid-row: 1 / 4;
  }

  .document-tools {
    position: static;
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    justify-content: flex-start;
  }

  .paper {
    grid-column: 2;
    grid-row: 2;
    width: min(100%, 350px);
    margin: 0 auto;
    padding-right: 24px;
    padding-left: 24px;
  }

  .paper.app-report-page {
    width: min(100%, 360px);
  }

  .paper.app-report-page .report-document {
    zoom: 0.38;
  }

  .report-bottom-controls {
    grid-column: 2;
    grid-row: 3;
    width: min(100%, 350px);
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .report-bottom-controls .report-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .report-actions .primary-action {
    min-width: 112px;
    font-size: 0.78rem;
  }
}

@media (min-width: 1700px) {
  .workspace {
    grid-template-columns: minmax(620px, 1fr) minmax(200px, 220px) minmax(610px, 700px);
    gap: 18px;
  }

  .research-drawer {
    max-width: 220px;
  }

  .viewer {
    max-width: 700px;
  }

  .document-stage {
    grid-template-columns: minmax(190px, 220px) minmax(360px, 430px);
    column-gap: 16px;
    padding: 14px 18px 18px;
  }

  .paper {
    width: min(100%, 430px);
    padding-right: 30px;
    padding-left: 30px;
  }

  .paper.app-report-page {
    width: min(100%, 440px);
  }

  .paper.app-report-page .report-document {
    zoom: 0.45;
  }

  .report-bottom-controls {
    width: min(100%, 430px);
    flex-wrap: nowrap;
  }

  .report-bottom-controls .report-actions {
    width: auto;
  }

  .report-actions .primary-action {
    min-width: 126px;
    font-size: 0.9rem;
  }
}

.building-variant-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.building-variant-tabs button {
  min-width: 0;
  min-height: 54px;
  padding: 8px 9px;
  border: 1px solid #dce6f4;
  border-radius: 13px;
  background: #fff;
  color: #06164a;
  cursor: pointer;
  text-align: left;
}

.building-variant-tabs button.is-active {
  border-color: rgba(23, 105, 224, 0.56);
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 105, 224, 0.18);
}

.building-variant-tabs strong,
.building-variant-tabs span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.building-variant-tabs strong {
  font-size: 0.76rem;
  font-weight: 950;
}

.building-variant-tabs span {
  margin-top: 3px;
  opacity: 0.76;
  font-size: 0.66rem;
  font-weight: 800;
}

.selected-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.selected-info-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #ebf1f8;
  border-radius: 12px;
  background: #fff;
}

.selected-info-item.is-wide {
  grid-column: 1 / -1;
}

.selected-info-item span,
.selected-info-item strong {
  display: block;
}

.selected-info-item span {
  margin-bottom: 4px;
  color: #778298;
  font-size: 0.68rem;
  font-weight: 800;
}

.selected-info-item strong {
  color: #101828;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
  word-break: keep-all;
}

.selected-info-grid.is-app-building {
  display: block;
}

.app-info-date-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #e5eaf2;
  border-bottom: 1px solid #e5eaf2;
  background: #fbfdff;
}

.app-info-date-strip div {
  min-width: 0;
  padding: 12px 8px;
  text-align: center;
}

.app-info-date-strip span,
.app-info-date-strip strong {
  display: block;
}

.app-info-date-strip span {
  color: #2f6585;
  font-size: 0.72rem;
  font-weight: 900;
}

.app-info-date-strip strong {
  margin-top: 8px;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.app-info-list {
  border-bottom: 1px solid #e5eaf2;
}

.app-info-empty-state {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed #d7e1f0;
  border-radius: 14px;
  background: #fbfdff;
}

.app-info-empty-state strong {
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
}

.app-info-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.85fr) minmax(0, 1.15fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.app-info-row span {
  color: #2f6585;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.35;
}

.app-info-row strong {
  color: #111827;
  font-size: 0.77rem;
  font-weight: 780;
  line-height: 1.35;
  text-align: right;
  word-break: keep-all;
}

.app-detail-checks {
  margin-top: 16px;
}

.app-detail-checks > strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 950;
}

.app-origin-card,
.app-violation-card {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 56px;
  padding: 12px 46px 12px 14px;
  border-radius: 10px;
}

.app-origin-card {
  border: 1px solid #e5edf8;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.app-violation-card {
  margin-top: 10px;
  border: 1px solid #9ad2a0;
  background: #effaf1;
}

.app-violation-card.is-clear {
  border-color: #9ad2a0;
  background: #effaf1;
}

.app-violation-card.is-violation {
  border-color: #fecaca;
  background: #fef2f2;
}

.app-violation-card.is-unknown {
  border-color: #d7dee9;
  background: #f8fafc;
}

.app-origin-card span,
.app-violation-card span {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 920;
  line-height: 1.35;
}

.app-origin-card em,
.app-violation-card em {
  color: #6b7280;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
}

.app-origin-card b {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 950;
}

.app-violation-card b {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.app-violation-card.is-clear b {
  color: #15803d;
}

.app-violation-card.is-violation b {
  color: #dc2626;
}

.app-violation-card.is-unknown b {
  color: #64748b;
}

.floor-overview-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.floor-overview-header,
.room-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.floor-overview-header strong,
.room-overview-header strong {
  color: #020617;
  font-size: 0.86rem;
  font-weight: 950;
}

.floor-overview-header span {
  min-width: 0;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 0 8px;
  scrollbar-width: thin;
}

.floor-tabs button {
  flex: 0 0 74px;
  min-height: 50px;
  padding: 8px;
  border: 1px solid #dce6f4;
  border-radius: 6px;
  background: #fff;
  color: #06164a;
  cursor: pointer;
  text-align: left;
}

.floor-tabs button.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.floor-tabs strong,
.floor-tabs span,
.room-overview-list strong,
.room-overview-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-tabs strong {
  font-size: 0.74rem;
  font-weight: 950;
}

.floor-tabs span {
  margin-top: 3px;
  opacity: 0.72;
  font-size: 0.62rem;
  font-weight: 800;
}

.room-overview {
  margin-top: 8px;
}

.room-overview-list {
  display: grid;
  gap: 7px;
}

.room-overview-list button {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #020617;
  cursor: pointer;
  text-align: left;
}

.room-overview-list button.is-active {
  border-color: #2563eb;
  box-shadow: inset 4px 0 0 #2563eb;
}

.room-overview-list strong {
  font-size: 0.78rem;
  font-weight: 950;
}

.room-overview-list span {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.info-viewer .floor-tabs {
  flex-wrap: wrap;
  overflow-x: visible;
}

.info-viewer .floor-tabs button {
  flex: 0 0 auto;
  min-width: 46px;
  min-height: 36px;
  padding: 7px 11px;
  text-align: center;
}

.info-viewer .floor-tabs span,
.info-viewer .room-overview-list span {
  display: none;
}

.info-viewer .room-overview-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-viewer .room-overview-list button {
  min-height: 38px;
  padding: 8px;
  text-align: center;
}

.info-viewer .room-overview-list button.is-active {
  background: #356d9a;
  color: #fff;
  box-shadow: none;
}

.info-viewer .room-detail-grid {
  grid-template-columns: 1fr;
}

.info-viewer .room-detail-item {
  display: grid;
  grid-template-columns: minmax(78px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
  align-items: center;
  border: 0;
  border-top: 1px solid #edf2f7;
  border-radius: 0;
  background: transparent;
}

.info-viewer .room-detail-item span {
  color: #72add1;
  font-size: 0.72rem;
}

.info-viewer .room-detail-item strong {
  margin-top: 0;
  text-align: right;
}

.room-overview-detail {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.room-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.room-detail-title strong {
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 950;
}

.room-detail-title span {
  color: #2563eb;
  font-size: 0.66rem;
  font-weight: 850;
}

.room-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.room-detail-item {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e6eef9;
  border-radius: 7px;
  background: #fff;
}

.room-detail-item span,
.room-detail-item strong {
  display: block;
  min-width: 0;
  line-height: 1.35;
}

.room-detail-item span {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 850;
}

.room-detail-item strong {
  margin-top: 3px;
  color: #020617;
  font-size: 0.72rem;
  font-weight: 900;
  word-break: keep-all;
}

.make-document-button {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-blue);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(23, 105, 224, 0.22);
}

.make-document-button:hover,
.make-document-button:focus-visible {
  background: var(--brand-blue-dark);
}

@media print {
  body {
    background: #fff !important;
  }

  body * {
    visibility: hidden !important;
  }

  .paper,
  .paper * {
    visibility: visible !important;
  }

  .paper {
    position: fixed !important;
    inset: 0 !important;
    width: 210mm !important;
    min-height: 297mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 16mm !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .paper.app-report-page {
    padding: 12mm 14mm 14mm !important;
  }

  .app-report-page .report-document {
    width: 100% !important;
    zoom: 1 !important;
  }
}

@media (min-width: 1600px) {
  .app-report-page .report-document {
    zoom: 0.58;
  }
}

@media (max-width: 920px) {
  .app-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 18px;
  }

  .top-nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .app-actions {
    justify-content: flex-start;
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .library {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #cfcfc9;
  }

  .viewer {
    min-height: 720px;
  }

  .panel-title-block,
  .viewer-header {
    padding-right: 24px;
    padding-left: 24px;
  }

  .file-loader {
    margin: 0;
  }

  .document-list {
    padding: 0;
  }

  .panel-section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .document-stage {
    padding: 24px;
  }

  .map-panel {
    margin: 0;
  }

  .paper {
    min-height: 820px;
    padding: 48px 32px 56px;
  }

  .map-canvas {
    height: 520px;
    flex: 0 0 auto;
  }

  .map-panel.map-focus-mode .map-canvas {
    min-height: 620px;
  }
}

@media (max-width: 620px) {
  .viewer-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .page-control {
    width: 100%;
    justify-content: space-between;
  }

  .paper {
    padding: 36px 22px 46px;
  }

  .map-canvas {
    height: 380px;
  }

  .map-panel.map-focus-mode .map-canvas {
    min-height: 520px;
  }

  .map-actions {
    width: 52px;
  }

  .map-address {
    right: 160px;
  }
}

/* Step-flow layout: 1 열람 -> 2 선택 -> 3 정보보기 -> 4 보고서 */
.info-viewer {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.055);
}

.info-viewer-panel {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 18px 16px;
}

.info-viewer .building-info-viewer {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 18px;
}

.info-viewer .building-info-viewer-header span {
  white-space: normal;
}

@media (min-width: 1180px) {
  .workspace {
    grid-template-columns:
      minmax(360px, 1.05fr)
      minmax(180px, 0.48fr)
      minmax(230px, 0.68fr)
      minmax(380px, 0.95fr);
    gap: 14px;
    align-items: stretch;
  }

  .library,
  .research-drawer,
  .info-viewer,
  .viewer {
    height: calc(100vh - var(--header-height) - 28px);
    min-height: 0;
  }

  .library-header {
    height: 100%;
    grid-template-rows: var(--panel-header-height) auto;
    overflow-y: auto;
  }

  .map-panel {
    height: auto;
    min-height: 0;
  }

  .map-canvas {
    height: clamp(390px, 45vh, 540px);
    flex: 0 0 auto;
  }

  .map-panel.map-focus-mode .map-canvas {
    min-height: clamp(460px, 54vh, 660px);
  }

  .research-drawer {
    max-width: none;
  }

  .research-drawer .summary-card strong {
    font-size: 0.9rem;
    word-break: keep-all;
  }

  .viewer {
    max-width: none;
  }

  .viewer-header {
    min-height: var(--panel-header-height);
  }

  .document-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    row-gap: 10px;
    padding: 16px 30px 18px 18px;
  }

  .document-tools {
    position: static;
    grid-row: 1;
    width: 100%;
    justify-self: stretch;
    max-width: none;
    justify-content: flex-end;
    gap: 6px;
  }

  .document-tools span,
  .document-tool-button,
  .office-info-trigger {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  .office-info-trigger {
    min-height: 34px;
    padding: 0 11px;
  }

  .paper {
    grid-row: 2;
    justify-self: center;
    width: min(100%, 390px);
    margin-right: auto;
    margin-left: auto;
    padding-right: 26px;
    padding-left: 26px;
  }

  .paper.app-report-page {
    width: min(100%, 400px);
    margin-top: 0;
  }

  .paper.app-report-page .report-document {
    zoom: 0.4;
  }

  .report-bottom-controls {
    grid-row: 3;
    justify-self: center;
    width: min(100%, 390px);
    flex-wrap: wrap;
    gap: 8px;
  }

  

  
}

@media (min-width: 1700px) {
  .workspace {
    grid-template-columns:
      minmax(460px, 1.08fr)
      minmax(184px, 0.42fr)
      minmax(260px, 0.62fr)
      minmax(500px, 0.96fr);
    gap: 18px;
  }

  .map-canvas {
    height: clamp(430px, 48vh, 600px);
  }

  .map-panel.map-focus-mode .map-canvas {
    min-height: clamp(500px, 58vh, 700px);
  }

  .document-stage {
    padding: 18px 24px 20px;
  }

  

  .paper.app-report-page {
    width: min(100%, 450px);
  }

  .paper.app-report-page .report-document {
    zoom: 0.46;
  }

  

  
}

@media (max-width: 1179px) {
  .workspace {
    grid-template-columns: 1fr;
    height: auto;
  }

  .info-viewer {
    border-radius: 0;
  }

  .info-viewer-panel {
    padding: 22px 24px;
  }
}

/* Mobile app web version */
@media (min-width: 1020px) {
  :root {
    --header-height: 58px;
    --panel-header-height: 84px;
  }

  body {
    background: #f4f6fa;
  }

  .app {
    padding: 0;
  }

  .app-header {
    min-height: var(--header-height);
    margin: 0;
    padding: 0 18px;
    border-radius: 0;
    box-shadow: none;
  }

  .top-nav {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand span {
    display: none;
  }

  .legal-note {
    font-size: 0.68rem;
  }

  .settings-button {
    width: 34px;
    height: 34px;
    box-shadow: none;
  }

  .workspace {
    display: grid;
    grid-template-columns: minmax(520px, 640px) minmax(420px, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    height: calc(100vh - var(--header-height));
    padding: 0;
    background: #eef2f7;
  }

  .library,
  .research-drawer,
  .info-viewer,
  .viewer {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .library {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: #fff;
    border-right: 1px solid #d9e3ef;
  }

  .library-header {
    display: grid;
    height: auto;
    grid-template-rows: auto auto;
    overflow: visible;
    background: #fff;
  }

  .panel-title-block {
    min-height: var(--panel-header-height);
    padding: 16px 20px 12px;
    border-bottom: 1px solid #edf1f6;
  }

  .panel-title-block h1 {
    font-size: 1.28rem;
    line-height: 1.25;
  }

  .panel-copy {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .map-panel {
    height: auto;
    padding: 0;
    background: #fff;
  }

  .map-canvas {
    height: clamp(430px, 52vh, 600px);
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .map-panel.map-focus-mode .map-canvas {
    min-height: clamp(520px, 64vh, 720px);
  }

  .map-search {
    top: 18px;
    left: 18px;
    width: min(420px, calc(100% - 96px));
    padding: 5px;
    border-radius: 14px;
  }

  .map-search input {
    min-height: 34px;
    font-size: 0.82rem;
  }

  .map-search button {
    min-width: 56px;
    min-height: 34px;
    border-radius: 11px;
    font-size: 0.78rem;
  }

  .map-zoom-controls {
    top: 82px;
    right: 18px;
  }

  .map-location-button {
    right: 18px;
    bottom: 148px;
  }

  .map-actions {
    right: 18px;
    bottom: 22px;
  }

  .map-address-card {
    min-height: 74px;
    margin: 0;
    padding: 14px 20px 16px;
    border-top: 1px solid #edf1f6;
    background: #fff;
  }

  .map-address-card strong {
    font-size: 0.95rem;
  }

  .map-address {
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .research-drawer {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    min-height: 0;
    overflow: visible;
    border-right: 1px solid #d9e3ef;
    border-top: 1px solid #edf1f6;
    background: #fff;
    padding: 0;
  }

  .research-drawer .panel-section {
    margin: 0;
    padding: 14px 20px;
  }

  .research-drawer .section-label {
    display: none;
  }

  .quick-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .research-drawer .summary-card {
    min-height: 56px;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 12px 13px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px #e4ebf4;
  }

  .research-drawer .summary-card strong {
    font-size: 0.88rem;
  }

  .research-drawer .summary-card span {
    margin-top: 2px;
    font-size: 0.68rem;
  }

  .research-drawer .client-status-panel {
    display: none;
  }

  .info-viewer {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid #d9e3ef;
    background: #fff;
  }

  .info-viewer-panel {
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  .info-viewer .section-label {
    display: block;
    width: auto;
    margin: 0;
    padding: 14px 20px 10px;
    border-radius: 0;
    background: #fff;
    color: #06164a;
    font-size: 1rem;
    font-weight: 900;
  }

  .info-viewer .building-info-viewer {
    height: calc(100% - 48px);
    min-height: 260px;
    padding: 0 20px 18px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .building-info-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  .building-info-viewer-header span {
    font-size: 1rem;
  }

  .building-info-viewer-header .map-return-button {
    width: auto;
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .building-info-empty {
    padding: 18px;
    border-radius: 16px;
    font-size: 0.86rem;
  }

  .info-viewer .selected-address-details {
    padding: 0;
  }

  .info-viewer .building-variant-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .info-viewer .building-variant-tabs button {
    min-height: 58px;
  }

  .info-viewer .selected-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .selected-info-item {
    min-height: 68px;
    padding: 12px 13px;
    border-radius: 14px;
  }

  .make-document-button {
    position: sticky;
    bottom: 0;
    min-height: 52px;
    margin-top: 16px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .viewer {
    grid-column: 2;
    grid-row: 1 / 4;
    display: grid;
    height: calc(100vh - var(--header-height));
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    background: #eef2f7;
  }

  .viewer-header {
    min-height: var(--panel-header-height);
    padding: 16px 22px 12px;
    border-bottom: 1px solid #d9e3ef;
    background: #fff;
  }

  .viewer-header::after {
    display: none;
  }

  #documentKind {
    margin-bottom: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #1d4ed8;
    font-size: 0.72rem;
  }

  #documentTitle {
    font-size: 1.28rem;
  }

  .document-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    gap: 10px;
    padding: 14px 26px 16px;
  }

  .document-tools {
    position: static;
    width: min(100%, 520px);
    max-width: none;
    justify-content: flex-end;
    gap: 7px;
  }

  .document-tools span,
  .document-tool-button,
  .office-info-trigger {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .paper {
    width: min(100%, 500px);
    margin: 0 auto;
  }

  .paper.app-report-page {
    width: min(100%, 520px);
    height: 100%;
    margin-top: 0;
  }

  .paper.app-report-page .report-document {
    zoom: 0.52;
  }

  .report-bottom-controls {
    width: min(100%, 520px);
    gap: 10px;
  }
}

@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: minmax(600px, 720px) minmax(520px, 1fr);
  }

  .paper.app-report-page .report-document {
    zoom: 0.58;
  }
}

@media (max-width: 1019px) {
  .top-nav {
    display: none;
  }

  .workspace {
    display: block;
  }

  .library,
  .research-drawer,
  .info-viewer,
  .viewer {
    border-radius: 0;
  }
}

/* Return to the previous four-panel dashboard layout */
@media (min-width: 1020px) {
  :root {
    --header-height: 72px;
    --panel-header-height: 124px;
  }

  body {
    background: #f6f6f7;
  }

  .app-shell {
    display: grid;
    height: 100vh;
    grid-template-rows: var(--header-height) minmax(0, 1fr);
    gap: 18px;
    padding: 28px;
    overflow: hidden;
    background: #f6f6f7;
  }

  .app-header {
    display: grid;
    min-height: 0;
    height: var(--header-height);
    grid-template-columns: minmax(220px, 300px) minmax(360px, 1fr) minmax(260px, 420px);
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0 22px 0 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.055);
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand span {
    display: block;
  }

  .top-nav {
    display: flex;
    justify-self: center;
    gap: 16px;
  }

  .top-nav button {
    min-width: 118px;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    background: #fafafa;
    color: #06164a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
    font-size: 0.92rem;
    font-weight: 760;
  }

  .top-nav button.is-active,
  .top-nav button:hover,
  .top-nav button:focus-visible {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 13px 24px rgba(37, 99, 235, 0.26);
  }

  .header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }

  .legal-note {
    max-width: 330px;
    font-size: 0.72rem;
  }

  .settings-button {
    width: 42px;
    height: 42px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .workspace {
    display: grid;
    grid-template-columns:
      minmax(360px, 1.05fr)
      minmax(180px, 0.48fr)
      minmax(230px, 0.68fr)
      minmax(380px, 0.95fr);
    grid-template-rows: none;
    gap: 14px;
    height: auto;
    min-height: 0;
    padding: 0;
    align-items: stretch;
    background: transparent;
  }

  .library,
  .research-drawer,
  .info-viewer,
  .viewer {
    grid-row: auto;
    height: calc(100vh - var(--header-height) - 74px);
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.055);
  }

  .library {
    grid-column: auto;
  }

  .research-drawer {
    grid-column: auto;
    max-width: none;
    padding: 18px 16px;
  }

  .info-viewer {
    grid-column: auto;
  }

  .viewer {
    grid-column: auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-width: none;
    background: #fff;
  }

  .library-header {
    display: grid;
    height: 100%;
    grid-template-rows: var(--panel-header-height) auto;
    overflow-y: auto;
    background: #fff;
  }

  .panel-title-block,
  .viewer-header {
    min-height: var(--panel-header-height);
    padding: 24px 28px 0;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
  }

  .viewer-header::after {
    display: block;
  }

  h1,
  #documentTitle {
    font-size: clamp(1.48rem, 1.42vw, 1.85rem);
  }

  .panel-copy {
    max-width: 720px;
    margin-top: 8px;
    font-size: 0.88rem;
  }

  #documentKind,
  .section-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 9px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
  }

  #documentKind {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
  }

  .map-panel {
    height: auto;
    min-height: 0;
    padding: 20px;
    background: #fff;
  }

  .map-canvas {
    height: clamp(390px, 45vh, 540px);
    flex: 0 0 auto;
    border: 1px solid #dbe6f5;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }

  .map-panel.map-focus-mode .map-canvas {
    min-height: clamp(460px, 54vh, 660px);
  }

  .map-search {
    top: 22px;
    left: 22px;
    width: min(410px, calc(100% - 44px));
    padding: 7px;
    border-radius: 17px;
  }

  .map-search input,
  .map-search button {
    min-height: 38px;
  }

  .map-zoom-controls {
    top: 96px;
    right: 24px;
  }

  .map-location-button {
    right: 24px;
    bottom: 164px;
  }

  .map-actions {
    right: 24px;
    bottom: 24px;
  }

  .map-address-card {
    min-height: 92px;
    margin: 16px 0 0;
    padding: 14px 8px 0;
    border-top: 0;
    background: transparent;
  }

  .research-drawer .panel-section,
  .info-viewer-panel {
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 18px 16px;
  }

  .research-drawer .section-label {
    display: inline-flex;
  }

  .quick-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .research-drawer .summary-card {
    min-height: 72px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 15px 16px;
    border-radius: 18px;
  }

  .research-drawer .summary-card strong {
    font-size: 0.9rem;
    word-break: keep-all;
  }

  .research-drawer .summary-card span {
    font-size: 0.78rem;
  }

  .research-drawer .client-status-panel {
    display: block;
  }

  .info-viewer .section-label {
    width: fit-content;
    margin: 0 0 9px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--accent-gold-soft);
    color: #9a6200;
    font-size: 0.7rem;
  }

  .info-viewer .building-info-viewer {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px;
    overflow-y: auto;
    border: 1px solid #dfe8f5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.055);
  }

  .building-info-viewer-header {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
  }

  .building-info-viewer-header span {
    font-size: 0.88rem;
  }

  .building-info-viewer-header .map-return-button {
    width: 100%;
  }

  .building-info-empty {
    padding: 14px;
    font-size: 0.76rem;
  }

  .info-viewer .building-variant-tabs,
  .info-viewer .selected-info-grid {
    grid-template-columns: 1fr;
  }

  .info-viewer .building-variant-tabs button {
    min-height: 48px;
  }

  .selected-info-item {
    min-height: 0;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .make-document-button {
    position: static;
    min-height: 44px;
    margin-top: 12px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .document-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    row-gap: 10px;
    padding: 16px 30px 18px 18px;
  }

  .document-tools {
    position: static;
    width: 100%;
    max-width: none;
    justify-content: flex-end;
    gap: 6px;
  }

  .document-tools span,
  .document-tool-button,
  .office-info-trigger {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  .paper {
    width: min(100%, 390px);
    margin: 0 auto;
    padding-right: 26px;
    padding-left: 26px;
  }

  .paper.app-report-page {
    width: min(100%, 400px);
    height: calc(100% - 30px);
    margin-top: 0;
  }

  .paper.app-report-page .report-document {
    zoom: 0.4;
  }

  .report-bottom-controls {
    width: min(100%, 390px);
    flex-wrap: wrap;
    gap: 8px;
  }

  .report-bottom-controls .report-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (min-width: 1700px) {
  

  

  

  
}

/* App video alignment: detail rows and document selection sheet */
.report-picker {
  width: min(460px, calc(100vw - 36px));
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.25);
}

.report-picker-header {
  display: grid;
  min-height: 56px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  background: #376e9e;
  color: #fff;
}

.report-picker-header button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
}

.report-picker-header-spacer {
  width: 44px;
  height: 44px;
}

.report-picker-header h3 {
  margin: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 760;
}

.report-picker-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #376e9e;
}

.report-picker-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 720;
}

.report-picker-tabs button.is-active {
  border-bottom-color: #fff;
  color: #fff;
}

.report-picker-body {
  max-height: min(58vh, 560px);
  min-height: 230px;
  overflow: auto;
  padding: 22px 20px;
}

.report-picker-option-list,
.report-picker-room-stack {
  display: grid;
  gap: 10px;
}

.report-picker-option-list.is-compact {
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.report-picker-option {
  display: grid;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.report-picker-option strong,
.report-picker-room strong {
  display: block;
  color: #031446;
  font-size: 0.9rem;
  font-weight: 850;
}

.report-picker-option small,
.report-picker-room small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.35;
}

.report-picker-option input {
  width: 18px;
  height: 18px;
  justify-self: center;
  accent-color: #2563eb;
}

.report-picker-section-title {
  margin: 2px 0 8px;
  color: #376e9e;
  font-size: 0.78rem;
  font-weight: 850;
}

.report-picker-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-picker-chip,
.report-picker-room {
  cursor: pointer;
}

.report-picker-chip input,
.report-picker-room input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-picker-chip span {
  display: block;
  min-width: 58px;
  padding: 9px 12px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fff;
  color: #376e9e;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.report-picker-chip input:checked + span {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.report-picker-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.report-picker-room {
  display: block;
  padding: 12px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
}

.report-picker-room:has(input:checked),
.report-picker-option:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.report-picker-summary {
  margin: 0;
  padding: 12px 20px 0;
  color: #031446;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.45;
  text-align: center;
}

.report-picker-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #cbd8ea;
  border-radius: 14px;
  background: #f8fbff;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.report-picker-note {
  margin: 0;
  padding: 14px 20px 16px;
  border-top: 1px solid #eef2f7;
  color: #667085;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.report-picker-confirm {
  width: calc(100% - 32px);
  min-height: 46px;
  margin: 0 16px 16px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 850;
}

.viewer.is-report-revealed {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 18px 60px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.18s ease;
}

@media (min-width: 1020px) {
  .info-viewer .selected-info-grid {
    display: block;
    border-top: 1px solid #edf1f6;
  }

  .info-viewer .selected-info-item {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(76px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 10px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    border-radius: 0;
    background: transparent;
  }

  .info-viewer .selected-info-item span {
    margin: 0;
    color: #376e9e;
    font-size: 0.7rem;
    font-weight: 850;
  }

  .info-viewer .selected-info-item strong {
    color: #111827;
    font-size: 0.74rem;
    line-height: 1.42;
    text-align: right;
  }
}

.paper.app-report-page {
  aspect-ratio: 210 / 297;
  height: auto;
  max-height: 100%;
  min-height: 0;
}

.paper.app-report-page .report-document {
  height: calc(760px * 297 / 210);
  min-height: calc(760px * 297 / 210);
}

/* Land report pages should use the A4 sheet vertically, like the mobile app output. */
.paper.app-report-page.land-report-page .report-document {
  height: calc(760px * 297 / 210);
  min-height: calc(760px * 297 / 210);
  padding-bottom: 72px;
}

.paper.app-report-page.land-report-page h3 {
  margin-bottom: 18px;
}

.paper.app-report-page.land-report-page .report-field-grid {
  flex: 0 0 auto;
}

.paper.app-report-page.land-report-page .report-cell {
  min-height: 38px;
}

.paper.app-report-page.land-report-page .report-cell strong,
.paper.app-report-page.land-report-page .report-cell span {
  padding-top: 6px;
  padding-bottom: 6px;
}

.paper.app-report-page.land-report-page .report-map {
  flex: 0 0 640px;
  min-height: 0;
  height: 640px;
  margin: 18px 0 20px;
}

.paper.app-report-page.land-report-page .report-map img {
  object-fit: fill;
}

.paper.app-report-page.land-report-page .report-footer {
  padding-top: 12px;
}

/* Give step 1 more room: larger map, lower address block, slimmer side panels. */
@media (min-width: 1020px) {
  .workspace {
    grid-template-columns:
      minmax(480px, 1.34fr)
      minmax(160px, 0.36fr)
      minmax(220px, 0.52fr)
      minmax(340px, 0.78fr);
  }

  .map-panel {
    padding: 20px 22px 24px;
  }

  .map-canvas {
    height: clamp(560px, 58vh, 700px);
  }

  .map-panel.map-focus-mode .map-canvas {
    min-height: clamp(620px, 68vh, 780px);
  }

  .map-address-card {
    min-height: 104px;
    margin-top: 24px;
    padding-top: 18px;
  }

  .research-drawer {
    padding-right: 12px;
    padding-left: 12px;
  }

  .research-drawer .summary-card {
    min-height: 64px;
    padding: 13px 12px;
  }

  .info-viewer-panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .document-stage {
    padding-right: 18px;
    padding-left: 16px;
  }
}

@media (min-width: 1700px) {
  .workspace {
    grid-template-columns:
      minmax(580px, 1.38fr)
      minmax(166px, 0.34fr)
      minmax(230px, 0.48fr)
      minmax(390px, 0.78fr);
  }

  .map-canvas {
    height: clamp(620px, 62vh, 760px);
  }
}

/* Fit the A4 sheet to the report frame instead of leaving unused side padding. */
@media (min-width: 1020px) {
  .document-stage {
    padding: 12px 0 14px;
    row-gap: 8px;
  }

  .document-tools,
  .paper,
  .paper.app-report-page,
  .report-bottom-controls {
    width: 100%;
  }

  .paper.app-report-page {
    padding: 18px 0 24px;
  }

  .paper.app-report-page .report-document {
    zoom: 0.446;
  }
}

@media (min-width: 1700px) {
  .paper.app-report-page .report-document {
    zoom: 0.47;
  }
}

/* Final A4 fitting pass: the JS sets --report-scale from the actual paper width. */
.paper.app-report-page {
  aspect-ratio: 210 / 297;
  height: auto !important;
  min-height: 0 !important;
  max-height: none;
  margin: 0 auto;
  padding: 0 !important;
  overflow: hidden;
}

.paper.app-report-page .report-document {
  width: 760px;
  height: var(--report-base-height, 1074.286px);
  min-height: var(--report-base-height, 1074.286px);
  max-height: var(--report-base-height, 1074.286px);
  box-sizing: border-box;
  zoom: var(--report-scale, 0.5) !important;
}

.paper.app-report-page.land-report-page .report-document {
  height: var(--report-base-height, 1074.286px);
  min-height: var(--report-base-height, 1074.286px);
  max-height: var(--report-base-height, 1074.286px);
  padding: 28px 36px 72px;
}

.paper.app-report-page.land-report-page h3 {
  margin: 0 0 18px;
  font-size: 2.08rem;
  line-height: 1.08;
}

.paper.app-report-page.land-report-page .report-field-grid {
  width: 100%;
  flex: 0 0 auto;
  border-top-width: 1.2px;
}

.paper.app-report-page.land-report-page .report-cell {
  min-height: 35px;
  font-size: 0.88rem;
  line-height: 1.22;
}

.paper.app-report-page.land-report-page .report-cell strong,
.paper.app-report-page.land-report-page .report-cell span {
  padding: 5px 9px;
}

.paper.app-report-page.land-report-page .report-cell.is-multiline {
  min-height: 68px;
}

.paper.app-report-page.land-report-page .report-map {
  flex: 0 0 520px;
  height: 520px;
  margin: 8px 0 0;
  border: 1px solid #111;
}

.paper.app-report-page.land-report-page .report-map img {
  object-fit: contain;
}

.paper.app-report-page.land-report-page .report-footer {
  right: 36px;
  bottom: 28px;
  left: 36px;
  grid-template-columns: minmax(84px, 0.7fr) minmax(0, 3.4fr) minmax(128px, 1fr);
  gap: 14px;
  padding-top: 10px;
}

/* Building register pages do not have a large map, so the table fills the A4 page. */
.paper.app-report-page:not(.land-report-page) .report-document {
  padding: 30px 36px 72px;
}

.paper.app-report-page:not(.land-report-page) h3 {
  margin: 0 0 20px;
  font-size: 2.12rem;
  line-height: 1.08;
}

.paper.app-report-page:not(.land-report-page) .report-field-grid {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  border-top-width: 1.2px;
}

.paper.app-report-page:not(.land-report-page) .report-row {
  flex: 1 1 0;
  min-height: 58px;
}

.paper.app-report-page:not(.land-report-page) .report-cell {
  min-height: 58px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.paper.app-report-page:not(.land-report-page) .report-cell strong,
.paper.app-report-page:not(.land-report-page) .report-cell span {
  padding: 8px 10px;
}

.paper.app-report-page:not(.land-report-page) .report-footer {
  right: 36px;
  bottom: 28px;
  left: 36px;
}

/* Dabang-style map workspace: dark header, flat panels, map-first layout. */
:root {
  --header-height: 64px;
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-blue-soft: #eef4ff;
  --app-bg: #f3f4f6;
  --panel-bg: #fff;
  --line: #e5e7eb;
  --text-soft: #6b7280;
}

body {
  background: #f3f4f6;
}

.app-header {
  min-height: var(--header-height);
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(300px, auto);
  gap: 18px;
  padding: 0 18px;
  border: 0;
  background: #050505;
  color: #fff;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
}

.brand strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand span {
  color: rgba(255, 255, 255, 0.62);
}

.top-nav {
  justify-content: center;
  gap: 4px;
}

.top-nav button {
  min-height: 38px;
  min-width: 92px;
  padding: 0 16px;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.top-nav button.is-active,
.top-nav button:hover,
.top-nav button:focus-visible {
  background: #2563eb;
  color: #fff;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.legal-note {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.settings-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  box-shadow: none;
}

.settings-button::before {
  border-color: #fff;
}

.settings-button::after {
  background: #fff;
}

.workspace {
  display: grid;
  grid-template-columns:
    minmax(500px, 1.08fr)
    minmax(210px, 250px)
    minmax(280px, 340px)
    minmax(340px, 420px);
  gap: 0;
  height: calc(100vh - var(--header-height));
  padding: 0;
  background: #f3f4f6;
}

.library,
.research-drawer,
.info-viewer,
.viewer {
  height: calc(100vh - var(--header-height));
  min-height: 0;
  border: 0;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.library {
  background: #fff;
}

.library-header {
  grid-template-rows: 112px minmax(0, 1fr);
  background: #fff;
}

.panel-title-block,
.viewer-header {
  min-height: 112px;
  padding: 20px 24px 0;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

h1,
#documentTitle {
  color: #020617;
  font-size: 1.48rem;
  font-weight: 900;
}

.panel-copy {
  max-width: 620px;
  color: #6b7280;
  font-size: 0.82rem;
}

.map-panel {
  height: 100%;
  padding: 0 18px 18px;
  background: #fff;
}

.map-canvas {
  height: calc(100vh - var(--header-height) - 248px);
  min-height: 520px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f8fafc;
  box-shadow: none;
}

.map-search {
  top: 18px;
  left: 18px;
  width: min(430px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 8px;
  padding: 7px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.map-search input {
  min-height: 36px;
  padding-left: 38px;
  color: #111827;
  font-size: 0.86rem;
}

.map-search::before {
  left: 19px;
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.map-search::after {
  left: 35px;
  top: 30px;
  height: 8px;
  border-left-width: 2px;
}

.map-search button {
  min-height: 36px;
  min-width: 66px;
  border-radius: 5px;
  background: #2563eb;
  font-size: 0.84rem;
}

.address-search-results {
  position: absolute;
  z-index: 16;
  top: 76px;
  left: 18px;
  width: min(430px, calc(100% - 36px));
  max-height: min(360px, calc(100% - 104px));
  overflow: auto;
  padding: 8px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.address-search-results[hidden] {
  display: none;
}

.address-search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 10px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
}

.address-search-result-head strong {
  color: #0f3f8f;
}

.address-search-result-head-recent strong {
  color: #1f6fe5;
}

.address-search-result-list {
  display: grid;
  gap: 6px;
}

.address-search-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: stretch;
  gap: 6px;
}

.address-search-result {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #e6edf7;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}

.address-search-result:hover,
.address-search-result:focus-visible {
  border-color: #2563eb;
  background: #f8fbff;
  outline: 0;
}

.address-search-result strong {
  color: #051b52;
  font-size: 0.86rem;
  font-weight: 900;
}

.address-search-result span,
.address-search-result small {
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.35;
}

.address-search-result small {
  color: #2563eb;
}

.address-search-result-recent strong {
  color: #1f6fe5;
  font-weight: 750;
}

.address-search-result-delete {
  display: grid;
  width: 30px;
  min-height: 100%;
  place-items: center;
  border: 1px solid #dbe7fb;
  border-radius: 6px;
  background: #fff;
  color: #1f6fe5;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.address-search-result-delete:hover,
.address-search-result-delete:focus-visible {
  border-color: #2563eb;
  color: #1f6fe5;
  outline: 0;
}

.address-search-result-empty {
  margin: 0;
  padding: 12px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 750;
}

.map-zoom-controls {
  top: 132px;
  right: 20px;
}

.map-actions {
  right: 20px;
  bottom: 20px;
}

.map-layer-tab {
  width: 58px;
  min-height: 58px;
  border-radius: 8px;
  background: #2563eb;
}

.map-export-button {
  width: 50px;
  min-height: 50px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.map-address-card {
  min-height: 84px;
  margin: 16px 0 0;
  padding: 0 6px;
  border: 0;
}

.map-address-card strong {
  color: #020617;
  font-size: 0.96rem;
}

.map-address {
  color: #111827;
  font-size: 0.86rem;
}

.section-label,
#documentKind {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
}

.research-drawer,
.info-viewer-panel {
  padding: 18px 14px;
  overflow-y: auto;
}

.research-drawer .panel-section,
.info-viewer-panel {
  margin: 0;
}

.quick-list {
  gap: 10px;
}

.summary-card,
.client-status-panel,
.building-info-viewer,
.selected-info-item,
.building-variant-tabs button {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.summary-card {
  min-height: 74px;
  padding: 13px 12px;
}

.summary-card:hover,
.summary-card:focus-visible {
  border-color: #2563eb;
  box-shadow: inset 4px 0 0 #2563eb;
}

.summary-card strong,
.selected-detail-title strong,
.building-info-viewer-header span {
  color: #020617;
  font-weight: 900;
}

.summary-card span,
.client-status-panel p,
.selected-detail-title span,
.building-info-empty {
  color: #6b7280;
}

.tool-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #eff6ff;
}

.building-info-viewer {
  padding: 16px;
}

.building-info-viewer-header {
  margin-bottom: 12px;
}

.map-return-button {
  border-radius: 6px;
}

.building-variant-tabs button.is-active {
  border-color: #2563eb;
  background: #2563eb;
}

.selected-info-grid {
  gap: 8px;
}

.selected-info-item {
  min-height: 48px;
  padding: 10px;
}

.make-document-button {
  border-radius: 6px;
  background: #2563eb;
}

.viewer {
  border-right: 0;
}

.viewer-header::after {
  width: 52px;
  height: 4px;
  background: #2563eb;
}

.document-stage {
  padding: 12px 12px 14px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    #eef2f7;
  background-size: 22px 22px;
}

.document-tools {
  top: 12px;
  right: 12px;
  gap: 6px;
}

.document-tools span,
.document-tool-button,
.office-info-trigger,
.page-control button,
.secondary-action,
.primary-action {
  border-radius: 6px;
  box-shadow: none;
}

.paper {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.13);
}

@media (min-width: 1700px) {
  .workspace {
    grid-template-columns:
      minmax(620px, 1.1fr)
      minmax(220px, 260px)
      minmax(300px, 360px)
      minmax(380px, 450px);
  }

  .map-canvas {
    height: calc(100vh - var(--header-height) - 248px);
    min-height: 580px;
  }
}

.app-shell {
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  gap: 0 !important;
  height: 100vh;
  padding: 0 !important;
  overflow: hidden;
  background: #f3f4f6;
}

.app-header {
  width: 100%;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.workspace {
  width: 100%;
  margin: 0;
}

/* Light header override: keep the map-service layout without the heavy black bar. */
.app-header {
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.98);
  color: #020617;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.brand strong {
  color: #020617;
}

.brand span {
  color: #6b7280;
}

.top-nav button {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
}

.top-nav button.is-active,
.top-nav button:hover,
.top-nav button:focus-visible {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.legal-note {
  color: #6b7280;
}

.settings-button {
  border: 1px solid #dbe3ef;
  background: #fff;
}

.settings-button::before {
  border-color: #0f172a;
}

.settings-button::after {
  background: #0f172a;
}

.app-header {
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
}

.header-actions {
  grid-column: 2;
}

.top-nav {
  display: none;
}

html,
body,
button,
input {
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
}

/* Step heading alignment: 1, 2, 3, 4 use the same title typography. */
.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle {
  display: block;
  min-height: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #020617;
  font-size: 1.34rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

#documentKind {
  display: none !important;
}

.viewer-title-block #documentTitle {
  margin-bottom: 0;
}

.research-drawer .panel-section {
  padding-top: 0 !important;
}

.research-drawer,
.info-viewer-panel {
  padding-top: 20px !important;
}

/* App-like selected address summary under the map. */
.map-address-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 108px;
  margin-top: 14px;
  padding: 0 6px 4px;
}

.map-address-card > strong {
  display: block;
  color: #020617;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
}

.map-address-details {
  display: grid;
  gap: 7px;
}

.map-address-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
}

.map-address-row span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.35;
}

.map-address-row strong {
  min-width: 0;
  color: #020617;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.map-address-card .map-address {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Many collective buildings have several dong entries; show a short vertical list instead of horizontal paging. */
.building-info-viewer .building-variant-tabs,
.info-viewer .building-variant-tabs {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px;
  max-height: 190px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1px 4px 7px 0;
  scrollbar-width: thin;
}

.building-info-viewer .building-variant-tabs button,
.info-viewer .building-variant-tabs button {
  width: 100%;
  min-height: 54px;
}

/* App document output uses compact register tables; do not stretch rows to fill A4. */
.paper.app-report-page:not(.land-report-page) .report-document {
  padding: 28px 36px 72px !important;
}

.paper.app-report-page:not(.land-report-page) h3 {
  margin: 0 0 14px !important;
  font-size: 1.94rem !important;
  line-height: 1.08 !important;
}

.paper.app-report-page:not(.land-report-page) .report-field-grid {
  display: block !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

.paper.app-report-page:not(.land-report-page) .report-row {
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

.paper.app-report-page:not(.land-report-page) .report-cell {
  min-height: 35px !important;
  font-size: 0.86rem !important;
  line-height: 1.18 !important;
}

.paper.app-report-page:not(.land-report-page) .report-cell strong,
.paper.app-report-page:not(.land-report-page) .report-cell span {
  padding: 5px 8px !important;
}

.paper.app-report-page:not(.land-report-page) .report-cell.is-multiline {
  min-height: 52px !important;
}

/* The old temporary blue parcel placeholder should never flash during search. */
.cadastre-target {
  display: none !important;
}

.paper[data-previewable="true"] {
  cursor: zoom-in;
}

.paper[data-previewable="true"] :is(h1, h2, h3, h4, p, li, td, th, span, strong, em, small, .report-cell) {
  cursor: text;
}

a.document-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.document-tool-button[aria-disabled="true"] {
  pointer-events: none;
  color: #9aa4b2;
  opacity: 0.55;
}

/* Folder-style report archive. */
.archive-folder-button {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 12px;
  border: 1px solid #d7e4f5;
  border-radius: 999px;
  background: #f8fbff;
  color: #0f2d68;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.archive-folder-button:hover,
.archive-folder-button:focus-visible {
  border-color: #2563eb;
  background: #eff6ff;
  outline: none;
}

.archive-quick-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 70;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 15px 0 12px;
  border: 1px solid #cfe0f6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f2d68;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.archive-quick-button:hover,
.archive-quick-button:focus-visible {
  border-color: #2563eb;
  background: #f8fbff;
  outline: none;
  transform: translateY(-1px);
}

.archive-check-icon {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 2px solid #2563eb;
  border-radius: 6px;
  background: #eff6ff;
}

.archive-check-icon::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #2563eb;
  border-left: 2px solid #2563eb;
  content: "";
  transform: rotate(-45deg);
}

.folder-icon,
.archive-item-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 4px 4px 3px 3px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.folder-icon::before,
.archive-item-icon::before {
  position: absolute;
  top: -4px;
  left: 2px;
  width: 9px;
  height: 5px;
  border-radius: 4px 4px 0 0;
  background: #60a5fa;
  content: "";
}

.archive-modal {
  width: min(100%, 760px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(216, 226, 238, 0.95);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28);
}

.archive-modal .modal-header {
  align-items: flex-start;
}

.archive-modal .modal-header p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.archive-list {
  display: grid;
  gap: 10px;
  max-height: min(620px, calc(100vh - 170px));
  overflow: auto;
  padding: 18px 20px 22px;
  background: #f8fbff;
}

.archive-empty {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 24px;
  border: 1px dashed #cbd8eb;
  border-radius: 14px;
  background: #fff;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.archive-empty strong {
  color: #0f172a;
  font-size: 1rem;
}

.archive-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe7f6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.archive-item-icon {
  width: 28px;
  height: 21px;
}

.archive-item-icon::before {
  width: 13px;
  height: 7px;
}

.archive-item-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.archive-item-main strong {
  color: #020617;
  font-size: 0.96rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-item-main span,
.archive-item-main small {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-item-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.archive-open-link,
.archive-item-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.archive-open-link {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

@media (max-width: 920px) {
  .archive-folder-button {
    min-height: 34px;
    padding-inline: 10px;
  }

  .archive-quick-button {
    bottom: 14px;
    left: 14px;
    min-height: 38px;
    padding-inline: 10px 12px;
    font-size: 0.8rem;
  }

  .archive-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .archive-item-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* Scroll-down checklist storage, matching the public-housing checklist behavior. */
html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  scroll-behavior: smooth;
}

.app-shell {
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
}

.workspace {
  height: calc(100vh - var(--header-height));
}

.archive-scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px 0 16px;
  border: 1px solid rgba(203, 218, 240, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1d3565;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.archive-scroll-cue strong {
  color: #1f5fd8;
  font-weight: 700;
}

.archive-scroll-cue::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.archive-scroll-cue:hover,
.archive-scroll-cue:focus-visible {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.2);
  transform: translate(-50%, -2px);
}

.archive-scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
}

@media (max-width: 920px) {
  .archive-scroll-cue {
    bottom: 14px;
    max-width: calc(100vw - 32px);
    min-height: 36px;
    padding: 0 13px 0 14px;
    font-size: 0.76rem;
  }
}

.archive-checklist-section {
  padding: 26px clamp(18px, 3vw, 34px) 34px;
  background: #f3f4f6;
}

.archive-checklist-panel {
  display: grid;
  gap: 16px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.archive-checklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.archive-checklist-head p,
.archive-checklist-head h2 {
  margin: 0;
}

.archive-checklist-head p {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.archive-checklist-head h2 {
  margin-top: 5px;
  color: #06164a;
  font-size: 1.22rem;
  font-weight: 920;
  line-height: 1.25;
}

.archive-checklist-head > span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.45;
  text-align: right;
}

.archive-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.document-archive-shelf {
  display: grid;
  gap: 10px;
}

.document-archive-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed #cbd8eb;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 760;
  text-align: center;
}

.document-archive-item {
  display: grid;
  min-height: 54px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: #f8fafc;
}

.document-archive-item > input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
}

.document-archive-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.document-archive-main strong,
.document-archive-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-archive-main strong {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 900;
}

.document-archive-main span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 720;
}

.document-archive-item a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.archive-check-row {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #f8fafc;
}

.archive-check-row:focus-within {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.07);
}

.archive-check-row > input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  accent-color: #2563eb;
}

.archive-check-text {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 760;
}

.archive-checklist-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.archive-checklist-actions button {
  min-height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.archive-checklist-note {
  margin: -2px 0 0;
  color: #7b8797;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: right;
}

@media (max-width: 980px) {
  .workspace {
    height: auto;
    min-height: calc(100vh - var(--header-height));
  }

  .archive-checklist-grid {
    grid-template-columns: 1fr;
  }

  .document-archive-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .document-archive-item a {
    grid-column: 2;
    justify-self: start;
  }

  .archive-checklist-head,
  .archive-checklist-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-checklist-head > span,
  .archive-checklist-note {
    text-align: left;
  }
}

/* Lighter typography pass: keep hierarchy, remove the heavy pressed look. */
body,
button,
input {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.brand strong,
.panel-title-block h1,
.viewer-title-block #documentTitle,
.archive-checklist-head h2 {
  font-weight: 700 !important;
}

.section-label,
.site-name,
#documentKind,
.archive-checklist-head p {
  font-weight: 650 !important;
}

.panel-copy,
.legal-note,
.map-address,
.map-address-row span,
.archive-checklist-head > span,
.archive-checklist-note,
.client-status-panel p,
.building-info-empty {
  font-weight: 440 !important;
}

.summary-card strong,
.selected-detail-title strong,
.selected-info-item strong,
.floor-overview-header strong,
.room-overview-header strong,
.document-archive-main strong,
.archive-item-main strong {
  font-weight: 650 !important;
}

.summary-card span,
.selected-detail-title span,
.selected-info-item span,
.document-archive-main span,
.archive-item-main span,
.archive-item-main small {
  font-weight: 430 !important;
}

.document-tools span,
.document-tool-button,
.office-info-trigger,
.page-control button,
.secondary-action,
.primary-action,
.archive-folder-button,
.archive-checklist-actions button,
.document-archive-item a,
.make-document-button {
  font-weight: 620 !important;
}

.document-tool-button.bookmark {
  font-weight: 650 !important;
}

.paper.app-report-page h3,
.app-report-page h3 {
  font-weight: 740 !important;
}

.report-cell strong,
.paper th {
  font-weight: 650 !important;
}

.report-cell span,
.paper td,
.paper p,
.paper li,
.report-footer,
.office-footer {
  font-weight: 400 !important;
}

/* Polished map floating controls. */
.map-canvas .map-actions {
  z-index: 12;
  right: 18px !important;
  bottom: 18px !important;
  display: grid !important;
  width: 62px !important;
  justify-items: center;
  gap: 9px !important;
}

.map-canvas .map-layer-tab,
.map-canvas .map-export-button,
.map-canvas .map-location-button {
  border: 1px solid rgba(199, 215, 236, 0.92) !important;
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
  backdrop-filter: blur(12px);
}

.map-canvas .map-layer-tab:hover,
.map-canvas .map-export-button:hover,
.map-canvas .map-location-button:hover,
.map-canvas .map-layer-tab:focus-visible,
.map-canvas .map-export-button:focus-visible,
.map-canvas .map-location-button:focus-visible {
  outline: none !important;
  transform: translateY(-1px);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.22),
    0 0 0 4px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.map-canvas .map-layer-tab {
  display: flex !important;
  width: 62px !important;
  min-height: 62px !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #2f76f5 0%, #1769e0 100%) !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 650 !important;
}

.map-canvas .map-layer-tab.is-off {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #1d4ed8 !important;
}

.map-canvas .map-layer-tab .map-icon {
  display: inline-block !important;
}

.map-canvas .map-layer-tab span:last-child {
  max-width: none !important;
  letter-spacing: 0;
}

.map-canvas .map-export-button,
.map-canvas .map-location-button {
  display: grid !important;
  width: 50px !important;
  min-height: 50px !important;
  height: 50px !important;
  place-items: center;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #1d4ed8 !important;
}

.map-canvas .map-export-button {
  position: relative !important;
}

.map-canvas .map-export-button span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.map-canvas .map-export-button::after {
  bottom: 11px !important;
  width: 17px !important;
  height: 2px !important;
  opacity: 0.96;
}

.map-canvas .download-icon {
  width: 21px !important;
  height: 21px !important;
}

.map-canvas .download-icon::before {
  left: 9px !important;
  top: 2px !important;
  width: 3px !important;
  height: 13px !important;
}

.map-canvas .download-icon::after {
  left: 5px !important;
  top: 9px !important;
  width: 10px !important;
  height: 10px !important;
  border-right-width: 3px !important;
  border-bottom-width: 3px !important;
}

.map-canvas .map-location-button {
  z-index: 12;
  right: 24px !important;
  bottom: 152px !important;
  padding: 0;
}

.map-canvas .map-location-button span {
  width: 25px !important;
  height: 25px !important;
  border: 2.5px solid currentColor !important;
  border-radius: 50%;
}

.map-canvas .map-location-button span::before {
  width: 2.5px !important;
  height: 35px !important;
  left: 9px !important;
  top: -8px !important;
  border-radius: 999px;
}

.map-canvas .map-location-button span::after {
  width: 35px !important;
  height: 2.5px !important;
  left: -8px !important;
  top: 9px !important;
  border-radius: 999px;
}

.map-canvas .map-location-button:hover,
.map-canvas .map-location-button:focus-visible,
.map-canvas .map-export-button:hover,
.map-canvas .map-export-button:focus-visible {
  border-color: rgba(37, 99, 235, 0.36) !important;
  background: #eff6ff !important;
  color: #145fd4 !important;
}

@media (max-width: 920px) {
  .map-canvas .map-actions {
    right: 12px !important;
    bottom: 12px !important;
    width: 56px !important;
  }

  .map-canvas .map-layer-tab {
    width: 56px !important;
    min-height: 56px !important;
    border-radius: 16px !important;
  }

  .map-canvas .map-export-button,
  .map-canvas .map-location-button {
    width: 46px !important;
    min-height: 46px !important;
    height: 46px !important;
  }

  .map-canvas .map-location-button {
    right: 17px !important;
    bottom: 136px !important;
  }
}

/* Web report design pass: app data, cleaner web-only A4 presentation. */
.paper.app-report-page {
  border: 1px solid rgba(212, 222, 235, 0.95) !important;
  border-radius: 2px;
  background: #ffffff !important;
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.92) inset !important;
}

.paper.app-report-page .report-document,
.paper.app-report-page.land-report-page .report-document {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 42px 46px 44px !important;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.025), transparent 150px),
    #ffffff !important;
  color: #111827 !important;
  overflow: visible !important;
}

.report-document-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 0 0 18px;
  padding: 0 0 15px;
  border-bottom: 2px solid #111827;
}

.report-document-head span {
  display: inline-flex;
  width: fit-content;
  min-height: 23px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d8e4f4;
  border-radius: 999px;
  background: #f4f8ff;
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
}

.paper.app-report-page .report-document-head h3,
.paper.app-report-page.land-report-page .report-document-head h3,
.paper.app-report-page:not(.land-report-page) .report-document-head h3,
.app-report-page .report-document-head h3 {
  margin: 8px 0 0 !important;
  color: #020617 !important;
  font-size: 2.02rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
  text-align: left !important;
}

.report-document-head p {
  max-width: 236px;
  margin: 0 0 2px;
  color: #64748b !important;
  font-size: 0.78rem !important;
  font-weight: 450 !important;
  line-height: 1.35;
  text-align: right;
  word-break: keep-all;
}

.paper.app-report-page .report-field-grid,
.paper.app-report-page.land-report-page .report-field-grid {
  overflow: hidden;
  flex: 0 0 auto !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px;
  background: #ffffff;
}

.paper.app-report-page .report-row,
.paper.app-report-page.land-report-page .report-row {
  border-bottom: 1px solid #d9e2ee !important;
}

.paper.app-report-page .report-row:last-child,
.paper.app-report-page.land-report-page .report-row:last-child {
  border-bottom: 0 !important;
}

.paper.app-report-page .report-divider,
.paper.app-report-page.land-report-page .report-divider {
  height: 8px;
  border: 0 !important;
  background: #f1f5f9;
}

.paper.app-report-page .report-cell,
.paper.app-report-page.land-report-page .report-cell,
.paper.app-report-page:not(.land-report-page) .report-cell {
  min-height: 34px !important;
  border-right: 1px solid #d9e2ee !important;
  color: #111827 !important;
  font-size: 0.8rem !important;
  line-height: 1.24 !important;
}

.paper.app-report-page .report-cell:last-child,
.paper.app-report-page.land-report-page .report-cell:last-child {
  border-right: 0 !important;
}

.paper.app-report-page .report-cell strong,
.paper.app-report-page.land-report-page .report-cell strong,
.paper.app-report-page:not(.land-report-page) .report-cell strong {
  padding: 7px 10px !important;
  background: #f8fafc;
  color: #315f93 !important;
  font-size: 0.76rem;
  font-weight: 590 !important;
  line-height: 1.22 !important;
}

.paper.app-report-page .report-cell span,
.paper.app-report-page.land-report-page .report-cell span,
.paper.app-report-page:not(.land-report-page) .report-cell span {
  padding: 7px 10px !important;
  color: #111827 !important;
  font-weight: 400 !important;
  line-height: 1.24 !important;
  text-align: left !important;
  word-break: keep-all;
}

.paper.app-report-page .report-cell:not(.is-multiline) span {
  display: flex;
  align-items: center;
}

.paper.app-report-page .report-cell.is-multiline,
.paper.app-report-page.land-report-page .report-cell.is-multiline {
  min-height: 58px !important;
}

.paper.app-report-page .report-cell.is-multiline span,
.paper.app-report-page.land-report-page .report-cell.is-multiline span {
  font-size: 0.73rem;
  line-height: 1.34 !important;
}

.paper.app-report-page .report-row.is-land-use-plan,
.paper.app-report-page.land-report-page .report-row.is-land-use-plan {
  display: block !important;
  border-bottom: 1px solid #d9e2ee !important;
}

.report-land-use-plan {
  display: grid;
  grid-template-columns: minmax(96px, 1.2fr) minmax(128px, 1.45fr) minmax(0, 4.1fr);
  color: #111827;
  font-size: 0.69rem;
  line-height: 1.36;
}

.report-land-use-plan > div {
  min-height: 48px;
  padding: 7px 10px;
  border-right: 1px solid #d9e2ee;
  border-bottom: 1px solid #d9e2ee;
  box-sizing: border-box;
}

.report-land-use-plan > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.report-land-use-plan > div:nth-child(3n),
.report-land-use-plan > div:last-child {
  border-right: 0;
}

.report-land-use-plan .land-use-major {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #315f93;
  font-weight: 590;
  text-align: center;
}

.report-land-use-plan .land-use-label,
.report-land-use-plan .land-use-wide-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfdff;
  color: #315f93;
  font-weight: 560;
  text-align: center;
  word-break: keep-all;
}

.report-land-use-plan .land-use-wide-label {
  grid-column: span 2;
}

.report-land-use-plan .land-use-value {
  display: flex;
  align-items: center;
  color: #111827;
  font-weight: 400;
  text-align: left;
  word-break: keep-all;
}

.paper.app-report-page .report-map,
.paper.app-report-page.land-report-page .report-map {
  position: relative;
  flex: 1 1 390px !important;
  min-height: 280px !important;
  height: auto !important;
  margin: 16px 0 14px !important;
  overflow: hidden;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    #f8fafc;
  background-size: 28px 28px;
}

.paper.app-report-page.land-report-page .report-map {
  flex-basis: 430px !important;
}

.paper.app-report-page .report-map figcaption {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 620;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.paper.app-report-page .report-map img,
.paper.app-report-page.land-report-page .report-map img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.paper.app-report-page .report-footer,
.paper.app-report-page.land-report-page .report-footer {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid #d5dde8 !important;
  color: #64748b !important;
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  line-height: 1.28 !important;
}

.paper.app-report-page > .office-footer {
  display: none !important;
}

.paper.app-report-page .report-document > .office-footer {
  position: static !important;
  display: grid !important;
  width: min(310px, 48%);
  grid-template-columns: 1fr;
  gap: 2px;
  margin: auto 0 14px auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #475569 !important;
  box-shadow: none;
  font-size: 0.66rem !important;
  font-weight: 400 !important;
  line-height: 1.38 !important;
  text-align: left;
}

.paper.app-report-page .report-document > .office-footer strong {
  grid-column: auto;
  margin: 0 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #d5dde8;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 650;
}

.paper.app-report-page .report-document > .office-footer span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Selection cards show which data will be printed in the basic report. */
.summary-card {
  padding-right: 52px !important;
}

.summary-card .summary-output-check {
  position: absolute;
  top: 15px;
  right: 16px;
  display: block;
  width: 21px;
  height: 21px;
  margin: 0;
  border: 1.5px solid #c9d6e8;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.summary-card .summary-output-check::after {
  position: absolute;
  top: 5px;
  left: 4px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  opacity: 0;
  transform: rotate(-45deg);
}

.summary-card .summary-output-state {
  display: inline-flex;
  width: fit-content;
  grid-column: 2;
  align-items: center;
  margin-top: 3px;
  padding: 3px 8px;
  border: 1px solid #e3ebf7;
  border-radius: 999px;
  background: #f8fbff;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 520 !important;
  line-height: 1;
}

.summary-card.is-selected,
.summary-card[aria-pressed="true"] {
  border-color: rgba(37, 99, 235, 0.28) !important;
  background: #f7fbff !important;
  box-shadow:
    0 16px 36px rgba(37, 99, 235, 0.09),
    inset 0 0 0 1px rgba(37, 99, 235, 0.16) !important;
}

.summary-card.is-selected .summary-output-check,
.summary-card[aria-pressed="true"] .summary-output-check {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.summary-card.is-selected .summary-output-check::after,
.summary-card[aria-pressed="true"] .summary-output-check::after {
  opacity: 1;
}

.summary-card.is-selected .summary-output-state,
.summary-card[aria-pressed="true"] .summary-output-state {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Keep step 2 as a clean title-only checklist. */
.research-drawer .summary-card > span:not(.summary-output-check),
.research-drawer .summary-card .summary-output-state,
.research-drawer .client-status-panel {
  display: none !important;
}

.research-drawer .summary-card {
  min-height: 58px !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
}

.research-drawer .summary-card .tool-icon {
  grid-row: 1 !important;
}

/* Bottom area follows the same 1-2-3 / 4 column rhythm as the main workspace. */
.archive-checklist-section {
  display: grid !important;
  grid-template-columns:
    minmax(500px, 1.08fr)
    minmax(210px, 250px)
    minmax(280px, 340px)
    minmax(340px, 420px);
  gap: 0 !important;
  align-items: start;
  padding: 0 0 34px !important;
  background: #f3f4f6;
}

.archive-checklist-panel {
  width: 100% !important;
  grid-column: 1 / 4;
  margin: 0 !important;
  padding: 22px 24px;
  border-width: 1px 1px 1px 0;
  border-radius: 0;
  box-shadow: none;
}

.right-info-stack {
  display: grid;
  grid-column: 4;
  gap: 12px;
  align-self: start;
}

.subscription-panel,
.company-panel {
  display: grid;
  gap: 15px;
  padding: 22px 24px;
  border: 1px solid #dbe5f1;
  border-right: 0;
  background: #ffffff;
}

.subscription-panel {
  min-height: 220px;
  border-top: 0;
}

.company-panel {
  min-height: 180px;
}

.subscription-panel header,
.company-panel header {
  display: grid;
  gap: 5px;
}

.subscription-panel p,
.subscription-panel h2,
.company-panel p,
.company-panel h2 {
  margin: 0;
}

.subscription-panel p,
.company-panel p {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.subscription-panel h2,
.company-panel h2 {
  color: #06164a;
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.25;
}

.subscription-status {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 13px;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: #f8fafc;
}

.subscription-status span,
.subscription-list span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 430;
  line-height: 1.35;
}

.subscription-status strong {
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 650;
}

.subscription-list {
  display: grid;
  gap: 7px;
}

.subscription-list span {
  position: relative;
  padding-left: 14px;
}

.subscription-list span::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #93c5fd;
  content: "";
}

.company-panel dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.company-panel dl > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.company-panel dt,
.company-panel dd {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.company-panel dt {
  color: #64748b;
  font-weight: 520;
}

.company-panel dd {
  min-width: 0;
  color: #0f172a;
  font-weight: 430;
  word-break: keep-all;
}

.subscription-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 2px;
}

.subscription-actions button {
  min-height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 620;
}

@media (max-width: 1179px) {
  .archive-checklist-section {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 18px !important;
  }

  .archive-checklist-panel,
  .right-info-stack,
  .subscription-panel,
  .company-panel {
    grid-column: 1;
  }

  .subscription-panel,
  .company-panel {
    border: 1px solid #dbe5f1;
    border-radius: 16px;
  }
}

/* Disabled: AAGA-inspired spacing pass. Restored to the previous in-house layout. */
@media (min-width: 999999px) {
  :root {
    --header-height: 82px;
    --app-bg: #ffffff;
    --line: #e6e8ec;
    --text-soft: #5f6978;
  }

  body {
    background: #ffffff;
  }

  .app-shell {
    gap: 24px !important;
    min-height: 100vh;
    padding: 26px clamp(22px, 3.2vw, 52px) 42px !important;
    background: #ffffff !important;
  }

  .app-header {
    min-height: var(--header-height);
    padding: 0 0 18px;
    border-bottom: 1px solid #111827;
    background: #ffffff;
    box-shadow: none !important;
  }

  .brand {
    gap: 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: #1d4ed8;
    font-weight: 620;
  }

  .brand strong {
    color: #020617;
    font-size: 1.12rem;
    font-weight: 680 !important;
    letter-spacing: 0;
  }

  .legal-note {
    max-width: 520px;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 400 !important;
  }

  .settings-button {
    width: 36px;
    height: 36px;
    border-color: #d9dee7;
    border-radius: 50%;
    background: #ffffff;
  }

  .workspace {
    grid-template-columns:
      minmax(400px, 1.32fr)
      minmax(150px, 0.34fr)
      minmax(230px, 0.48fr)
      minmax(320px, 0.72fr);
    gap: clamp(16px, 1.5vw, 28px) !important;
    height: calc(100vh - var(--header-height) - 92px);
    background: #ffffff !important;
  }

  .library,
  .research-drawer,
  .info-viewer,
  .viewer {
    height: calc(100vh - var(--header-height) - 92px);
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .library-header {
    grid-template-rows: 108px minmax(0, 1fr);
  }

  .panel-title-block,
  .viewer-header {
    min-height: 108px;
    padding: 0 0 22px;
    border-bottom: 0;
    background: #ffffff;
  }

  .panel-title-block h1,
  .research-drawer > .panel-section > .section-label,
  .info-viewer-panel > .section-label,
  .viewer-title-block #documentTitle {
    position: relative;
    margin-bottom: 12px;
    padding-top: 20px;
    color: #020617;
    font-size: clamp(1.22rem, 1.32vw, 1.54rem);
    font-weight: 660 !important;
    line-height: 1.2;
  }

  .panel-title-block h1::before,
  .research-drawer > .panel-section > .section-label::before,
  .info-viewer-panel > .section-label::before,
  .viewer-title-block #documentTitle::before {
    position: absolute;
    top: 0;
    left: 0;
    width: min(142px, 48%);
    height: 2px;
    background: #111827;
    content: "";
  }

  .panel-copy {
    max-width: 620px;
    color: #667085;
    font-size: 0.82rem;
    font-weight: 400 !important;
  }

  .map-panel {
    padding: 0;
  }

  .map-canvas {
    height: calc(100vh - var(--header-height) - 318px);
    min-height: 460px;
    border: 1px solid #e3e7ee;
    border-radius: 0;
    background: #f8fafc;
    box-shadow: none;
  }

  .map-panel.map-focus-mode .map-canvas {
    min-height: clamp(520px, 57vh, 720px);
  }

  .map-search {
    top: 22px;
    left: 22px;
    width: min(440px, calc(100% - 44px));
    border-color: #d9dee7;
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }

  .map-search button,
  .document-tools span,
  .document-tool-button,
  .office-info-trigger,
  .page-control button,
  .secondary-action,
  .primary-action {
    border-radius: 0 !important;
  }

  .map-address-card {
    margin-top: 18px;
    padding: 0;
    border-top: 1px solid #e6e8ec;
    padding-top: 16px;
  }

  .map-address-card > strong {
    font-size: 1rem;
    font-weight: 620 !important;
  }

  .map-address-row strong,
  .map-address-row span {
    font-weight: 430 !important;
  }

  .research-drawer,
  .info-viewer-panel {
    padding: 0 !important;
  }

  .research-drawer .panel-section,
  .info-viewer-panel {
    padding: 0 !important;
  }

  .quick-list {
    gap: 12px;
  }

  .summary-card {
    position: relative;
    min-height: 64px !important;
    padding: 13px 46px 13px 12px !important;
    border-color: #e2e7ef !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .summary-card::before {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    width: auto;
    height: 1px;
    background: #111827;
    content: "";
    transition: height 0.16s ease;
  }

  .summary-card:hover,
  .summary-card:focus-visible,
  .summary-card.is-selected,
  .summary-card[aria-pressed="true"] {
    border-color: #111827 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .summary-card:hover::before,
  .summary-card:focus-visible::before,
  .summary-card.is-selected::before,
  .summary-card[aria-pressed="true"]::before {
    background: #111827;
    height: 5px;
  }

  .summary-card strong {
    color: #020617;
    font-size: 0.9rem;
    font-weight: 560 !important;
  }

  .summary-card .summary-output-check {
    top: 50%;
    width: 19px;
    height: 19px;
    border-radius: 0;
    transform: translateY(-50%);
  }

  .summary-card.is-selected .summary-output-check,
  .summary-card[aria-pressed="true"] .summary-output-check {
    border-color: #111827;
    background: #111827;
    box-shadow: none;
  }

  .building-info-viewer {
    height: calc(100% - 48px);
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid #e6e8ec;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .building-info-empty {
    border-radius: 0;
    background: #fafafa;
  }

  .building-variant-tabs button,
  .floor-tabs button,
  .room-overview-list button,
  .report-picker-tabs button {
    position: relative;
    border-color: #e2e7ef !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
  }

  .building-variant-tabs button::before,
  .floor-tabs button::before,
  .room-overview-list button::before,
  .report-picker-tabs button::before {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 1px;
    background: #111827;
    content: "";
    transition: height 0.16s ease;
  }

  .building-variant-tabs button::before,
  .room-overview-list button::before {
    bottom: auto;
    width: auto;
  }

  .floor-tabs button::before,
  .report-picker-tabs button::before {
    height: 1px;
  }

  .building-variant-tabs button.is-active,
  .floor-tabs button.is-active,
  .room-overview-list button.is-active,
  .report-picker-tabs button.is-active,
  .building-variant-tabs button:hover,
  .floor-tabs button:hover,
  .room-overview-list button:hover,
  .report-picker-tabs button:hover {
    border-color: #111827 !important;
    background: #ffffff !important;
    color: #111827 !important;
  }

  .building-variant-tabs button.is-active::before,
  .floor-tabs button.is-active::before,
  .room-overview-list button.is-active::before,
  .report-picker-tabs button.is-active::before,
  .building-variant-tabs button:hover::before,
  .floor-tabs button:hover::before,
  .room-overview-list button:hover::before,
  .report-picker-tabs button:hover::before {
    background: #111827;
    height: 5px;
  }

  .selected-info-item {
    border-color: #edf0f4;
  }

  .info-viewer .selected-info-item span {
    color: #4f7092;
    font-weight: 520 !important;
  }

  .info-viewer .selected-info-item strong {
    font-weight: 500 !important;
  }

  .make-document-button {
    border-radius: 0;
    background: #111827;
    box-shadow: none;
  }

  .viewer-header::after {
    display: none;
  }

  .document-stage {
    padding: 0;
    background: #f7f8fa;
    background-image: none !important;
  }

  .document-tools {
    top: 20px;
    right: 20px;
  }

  .document-tools span,
  .document-tool-button,
  .office-info-trigger {
    border-color: #d9dee7;
    background: #ffffff;
    color: #334155;
    font-weight: 430 !important;
  }

  .document-tool-button.is-active,
  .office-info-trigger,
  .primary-action {
    border-color: #111827 !important;
    background: #111827 !important;
    color: #ffffff !important;
  }

  .document-tool-button.bookmark {
    border-color: #d9dee7;
    background: #ffffff;
    color: #1d4ed8;
  }

  .paper {
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
  }

  .report-bottom-controls {
    padding-top: 8px;
  }

  .archive-checklist-section {
    grid-template-columns:
      minmax(400px, 1.32fr)
      minmax(150px, 0.34fr)
      minmax(230px, 0.48fr)
      minmax(320px, 0.72fr) !important;
    gap: clamp(16px, 1.5vw, 28px) !important;
    padding: 30px 0 0 !important;
    background: #ffffff;
  }

  .archive-checklist-panel,
  .subscription-panel,
  .company-panel {
    border: 1px solid #e2e7ef;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }
}

@media (min-width: 999999px) {
  .workspace,
  .archive-checklist-section {
    grid-template-columns:
      minmax(600px, 1.34fr)
      minmax(180px, 0.34fr)
      minmax(280px, 0.46fr)
      minmax(420px, 0.74fr) !important;
  }
}

/* Disabled: AAGA spacing tune-up. Restored to the previous in-house layout. */
@media (min-width: 999999px) {
  .workspace,
  .archive-checklist-section {
    grid-template-columns:
      minmax(380px, 1.22fr)
      minmax(190px, 0.42fr)
      minmax(230px, 0.5fr)
      minmax(320px, 0.72fr) !important;
  }

  .library-header {
    overflow: hidden;
  }

  .map-canvas {
    height: clamp(480px, 50vh, 680px);
    min-height: 480px;
  }

  .map-panel.map-focus-mode .map-canvas {
    min-height: clamp(520px, 54vh, 720px);
  }

  .research-drawer .summary-card {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    padding-right: 40px !important;
  }

  .summary-card .summary-output-check {
    right: 12px;
  }
}

@media (min-width: 999999px) {
  .workspace,
  .archive-checklist-section {
    grid-template-columns:
      minmax(580px, 1.28fr)
      minmax(210px, 0.42fr)
      minmax(280px, 0.5fr)
      minmax(420px, 0.72fr) !important;
  }
}

/* Final grid alignment: keep every step title and content box on the same rails. */
:root {
  --aligned-panel-header: 112px;
  --workspace-col-1: minmax(500px, 1.08fr);
  --workspace-col-2: minmax(210px, 250px);
  --workspace-col-3: minmax(280px, 340px);
  --workspace-col-4: minmax(340px, 420px);
}

.workspace,
.archive-checklist-section {
  grid-template-columns:
    var(--workspace-col-1)
    var(--workspace-col-2)
    var(--workspace-col-3)
    var(--workspace-col-4) !important;
}

.library-header {
  grid-template-rows: var(--aligned-panel-header) minmax(0, 1fr) !important;
}

.panel-title-block,
.viewer-header,
.research-drawer .section-label,
.info-viewer-panel > .section-label {
  min-height: var(--aligned-panel-header) !important;
  height: var(--aligned-panel-header) !important;
  margin: 0 !important;
  padding: 20px 24px 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle {
  color: #020617 !important;
  font-size: 1.34rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.panel-title-block {
  display: grid;
  align-content: start;
}

.panel-copy {
  margin-top: 8px !important;
}

.research-drawer,
.info-viewer {
  padding: 0 !important;
  overflow: hidden !important;
}

.research-drawer .panel-section,
.info-viewer-panel {
  display: grid !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-rows: var(--aligned-panel-header) minmax(0, 1fr) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.research-drawer .quick-list,
.info-viewer-panel > .building-info-viewer {
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.research-drawer .section-label,
.info-viewer-panel > .section-label {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.research-drawer .quick-list {
  align-content: start;
  overflow-y: auto;
  padding: 0 14px 18px !important;
}

.info-viewer-panel > .building-info-viewer {
  align-self: stretch;
  overflow-y: auto;
  border-width: 0 0 0 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.map-panel {
  padding-top: 0 !important;
}

.map-canvas,
.research-drawer .summary-card:first-child,
.info-viewer-panel > .building-info-viewer,
.document-stage {
  margin-top: 0 !important;
}

.viewer-header {
  display: grid !important;
  align-content: start !important;
}

.viewer-header::after {
  top: calc(var(--aligned-panel-header) - 24px) !important;
}

.document-stage {
  border-top: 0 !important;
}

.archive-checklist-section {
  align-items: stretch !important;
  border-top: 1px solid #e5e7eb;
  background: #f3f4f6 !important;
}

.archive-checklist-panel,
.right-info-stack,
.subscription-panel,
.company-panel {
  min-width: 0;
}

.archive-checklist-panel {
  align-self: stretch !important;
  border-width: 0 1px 1px 0 !important;
  border-radius: 0 !important;
}

.right-info-stack {
  align-self: stretch !important;
  height: 100% !important;
  gap: 0 !important;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.subscription-panel,
.company-panel {
  align-content: start;
  min-height: 0 !important;
  border-width: 0 0 1px 1px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 1700px) {
  :root {
    --workspace-col-1: minmax(620px, 1.1fr);
    --workspace-col-2: minmax(220px, 260px);
    --workspace-col-3: minmax(300px, 360px);
    --workspace-col-4: minmax(380px, 450px);
  }
}

@media (max-width: 1179px) {
  .workspace,
  .archive-checklist-section {
    grid-template-columns: 1fr !important;
  }

  .research-drawer .panel-section,
  .info-viewer-panel {
    height: auto !important;
  }

  .archive-checklist-panel,
  .right-info-stack,
  .subscription-panel,
  .company-panel {
    border: 1px solid #dbe5f1 !important;
    border-radius: 16px !important;
  }
}

/* Warm charcoal theme: professional document-tool mood with restrained accents. */
:root {
  --brand-blue: #2b3137;
  --brand-blue-dark: #151a1f;
  --brand-blue-soft: #f3f5f4;
  --app-bg: #f1f2f0;
  --panel-bg: #ffffff;
  --line: #d8dedb;
  --text-soft: #66706d;
  --charcoal: #20262c;
  --charcoal-dark: #12161a;
  --charcoal-soft: #f6f7f5;
  --earth-accent: #b08a58;
  --quiet-blue: #7d8582;
}

body,
.app-shell,
.workspace,
.archive-checklist-section {
  background: var(--app-bg) !important;
  color: #15191d;
}

.app-header {
  border-bottom-color: #d6ddd9 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 22px rgba(18, 22, 26, 0.06) !important;
}

.brand-mark {
  background:
    transparent !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(18, 22, 26, 0.18) !important;
  color: #ffffff !important;
}

.brand strong,
.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle,
.archive-checklist-head h2,
.subscription-panel h2,
.company-panel h2 {
  color: #151a1f !important;
}

.legal-note,
.panel-copy,
.map-address-row span,
.archive-checklist-head > span,
.archive-checklist-note,
.subscription-status span,
.subscription-list span,
.company-panel dt {
  color: #66706d !important;
}

.site-name,
#documentKind,
.archive-checklist-head p,
.subscription-panel p,
.company-panel p {
  color: #7a5e3b !important;
}

.panel-title-block,
.viewer-header,
.research-drawer .section-label,
.info-viewer-panel > .section-label,
.library,
.research-drawer,
.info-viewer,
.viewer,
.archive-checklist-panel,
.subscription-panel,
.company-panel {
  border-color: #d8dedb !important;
  background: #ffffff !important;
}

.viewer-header::after {
  background: linear-gradient(90deg, var(--charcoal) 0 76%, var(--earth-accent) 76% 100%) !important;
}

.primary-action,
.map-search button,
.document-tool-button.is-active,
.office-info-trigger,
.make-document-button,
.report-picker-confirm,
.archive-checklist-actions .primary-action,
.subscription-actions .primary-action {
  border-color: var(--charcoal) !important;
  background: linear-gradient(180deg, #30373e, var(--charcoal-dark)) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(18, 22, 26, 0.15) !important;
}

.primary-action:hover,
.primary-action:focus-visible,
.map-search button:hover,
.map-search button:focus-visible,
.document-tool-button.is-active:hover,
.office-info-trigger:hover,
.office-info-trigger:focus-visible,
.make-document-button:hover,
.make-document-button:focus-visible {
  background: #11161a !important;
}

.secondary-action,
.document-tool-button,
.document-tools span,
.page-control button,
.archive-checklist-actions .secondary-action,
.subscription-actions .secondary-action {
  border-color: #d8dedb !important;
  background: #ffffff !important;
  color: #283039 !important;
}

.document-tool-button.bookmark {
  border-color: #cfd7d3 !important;
  background: #f8f9f8 !important;
  color: #20262c !important;
}

.document-tool-button.danger {
  color: #a13b2f !important;
}

.address-search,
.map-search {
  border-color: rgba(43, 49, 55, 0.28) !important;
  box-shadow: 0 12px 28px rgba(18, 22, 26, 0.12) !important;
}

.address-search:focus-within {
  outline-color: rgba(176, 138, 88, 0.28) !important;
}

.map-search::before {
  border-color: var(--charcoal) !important;
}

.map-search::after {
  border-left-color: var(--charcoal) !important;
}

.map-canvas {
  border-color: #d8dedb !important;
  background:
    linear-gradient(135deg, rgba(176, 138, 88, 0.08), transparent 42%),
    linear-gradient(90deg, rgba(18, 22, 26, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(18, 22, 26, 0.04) 1px, transparent 1px),
    #fafaf8 !important;
  background-size: auto, 34px 34px, 34px 34px, auto !important;
}

.cadastre-target polygon {
  fill: rgba(176, 138, 88, 0.16) !important;
  stroke: #20262c !important;
}

.cadastre-target path {
  stroke: rgba(32, 38, 44, 0.72) !important;
}

.map-pin {
  border-color: #20262c !important;
  box-shadow: 0 0 0 5px rgba(32, 38, 44, 0.1) !important;
}

.map-pin::after {
  background: #20262c !important;
}

.map-pin span {
  border-color: #d8d0c4 !important;
  color: #20262c !important;
}

.map-panel.is-active .map-pin,
.map-panel.is-active .map-pin span {
  background: #20262c !important;
  color: #ffffff !important;
}

.summary-card,
.client-status-panel,
.building-info-viewer,
.selected-info-item,
.building-variant-tabs button,
.document-archive-item,
.subscription-status {
  border-color: #dce2df !important;
  background: #ffffff !important;
}

.summary-card:hover,
.summary-card:focus-visible {
  border-color: rgba(43, 49, 55, 0.38) !important;
  background: #f8f9f7 !important;
  box-shadow: inset 4px 0 0 var(--charcoal) !important;
}

.summary-card.is-selected,
.summary-card[aria-pressed="true"],
.building-variant-tabs button.is-active {
  border-color: rgba(43, 49, 55, 0.34) !important;
  background: #f5f6f4 !important;
  box-shadow:
    0 16px 34px rgba(18, 22, 26, 0.08),
    inset 0 0 0 1px rgba(43, 49, 55, 0.16) !important;
}

.summary-card .summary-output-check {
  border-color: #bfc9c5 !important;
}

.summary-card.is-selected .summary-output-check,
.summary-card[aria-pressed="true"] .summary-output-check {
  border-color: var(--charcoal) !important;
  background: var(--charcoal) !important;
  box-shadow:
    0 8px 18px rgba(18, 22, 26, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

.tool-icon {
  background: #f2f4f2 !important;
}

.building-variant-tabs button.is-active {
  background: var(--charcoal) !important;
  color: #ffffff !important;
}

.selected-detail-title span,
.selected-info-item span,
.building-info-empty {
  color: #66706d !important;
}

.selected-info-item strong,
.document-archive-main strong,
.archive-item-main strong,
.subscription-status strong,
.company-panel dd {
  color: #151a1f !important;
}

.map-canvas .map-layer-tab {
  border-color: rgba(43, 49, 55, 0.16) !important;
  background: linear-gradient(180deg, #30373e 0%, #171c21 100%) !important;
  color: #ffffff !important;
}

.map-canvas .map-layer-tab.is-off,
.map-canvas .map-location-button {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #20262c !important;
}

.map-location-button span,
.map-location-button span::after,
.map-location-button span::before {
  border-color: #20262c !important;
}

.map-zoom-controls button {
  color: #20262c !important;
}

.map-lot-button {
  border-color: rgba(43, 49, 55, 0.22) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #20262c !important;
}

.address-search-result-head strong,
.address-search-result small,
.address-search-result:hover strong,
.address-search-result:focus-visible strong,
.selected-detail-title span,
.selected-info-item span,
.floor-overview-header span,
.room-overview-detail span {
  color: #5f4930 !important;
}

.address-search-result:hover,
.address-search-result:focus-visible {
  border-color: #20262c !important;
  background: #f8f7f4 !important;
}

.report-picker-chip input,
.report-picker-room input,
.report-picker-option input {
  accent-color: #20262c !important;
}

.report-picker-chip input:checked + span,
.report-picker-option:has(input:checked),
.report-picker-room:has(input:checked) {
  border-color: #20262c !important;
  background: #f4f2ed !important;
  color: #151a1f !important;
}

.archive-scroll-cue {
  border-color: rgba(216, 222, 219, 0.95) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #20262c !important;
}

.archive-scroll-cue strong {
  color: #7a5e3b !important;
}

.document-archive-item input,
.archive-checklist-grid input {
  accent-color: var(--charcoal) !important;
}

.document-archive-item a,
.archive-open-link {
  border-color: var(--charcoal) !important;
  background: var(--charcoal) !important;
  color: #ffffff !important;
}

.paper.app-report-page,
.paper {
  box-shadow: 0 14px 34px rgba(18, 22, 26, 0.12) !important;
}

/* Brand bridge: keep the calm charcoal page, but make key actions match the app-blue logo. */
:root {
  --app-logo-blue: #1769e0;
  --app-logo-blue-dark: #0e4fb3;
  --app-logo-blue-soft: #eef5ff;
}

.primary-action,
.map-search button,
.document-tool-button.is-active,
.office-info-trigger,
.make-document-button,
.report-picker-confirm,
.archive-checklist-actions .primary-action,
.subscription-actions .primary-action {
  border-color: var(--app-logo-blue) !important;
  background: linear-gradient(180deg, #2f7cf0 0%, var(--app-logo-blue) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(23, 105, 224, 0.2) !important;
}

.primary-action:hover,
.primary-action:focus-visible,
.map-search button:hover,
.map-search button:focus-visible,
.document-tool-button.is-active:hover,
.office-info-trigger:hover,
.office-info-trigger:focus-visible,
.make-document-button:hover,
.make-document-button:focus-visible {
  background: linear-gradient(180deg, #236fdd 0%, var(--app-logo-blue-dark) 100%) !important;
}

.map-search::before {
  border-color: var(--app-logo-blue) !important;
}

.map-search::after {
  border-left-color: var(--app-logo-blue) !important;
}

.address-search,
.map-search {
  border-color: rgba(23, 105, 224, 0.36) !important;
  box-shadow: 0 14px 30px rgba(23, 105, 224, 0.12) !important;
}

.address-search:focus-within {
  outline-color: rgba(23, 105, 224, 0.18) !important;
}

.viewer-header::after {
  background: linear-gradient(90deg, #20262c 0 64%, var(--app-logo-blue) 64% 88%, #b08a58 88% 100%) !important;
}

.summary-card:hover,
.summary-card:focus-visible {
  border-color: rgba(23, 105, 224, 0.28) !important;
  background: #f8fbff !important;
  box-shadow: inset 4px 0 0 var(--app-logo-blue) !important;
}

.summary-card.is-selected,
.summary-card[aria-pressed="true"] {
  border-color: rgba(23, 105, 224, 0.32) !important;
  background: #f7fbff !important;
  box-shadow:
    0 16px 34px rgba(23, 105, 224, 0.1),
    inset 0 0 0 1px rgba(23, 105, 224, 0.16) !important;
}

.summary-card.is-selected .summary-output-check,
.summary-card[aria-pressed="true"] .summary-output-check {
  border-color: var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  box-shadow:
    0 8px 18px rgba(23, 105, 224, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

.building-variant-tabs button.is-active {
  border-color: var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
}

.map-canvas .map-layer-tab {
  border-color: rgba(23, 105, 224, 0.18) !important;
  background: linear-gradient(180deg, #2f7cf0 0%, var(--app-logo-blue) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(23, 105, 224, 0.24) !important;
}

.map-canvas .map-layer-tab.is-off {
  border-color: rgba(23, 105, 224, 0.22) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--app-logo-blue-dark) !important;
}

.map-pin {
  border-color: var(--app-logo-blue) !important;
  box-shadow: 0 0 0 5px rgba(23, 105, 224, 0.1) !important;
}

.map-pin::after {
  background: var(--app-logo-blue) !important;
}

.map-panel.is-active .map-pin,
.map-panel.is-active .map-pin span {
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
}

.document-archive-item input,
.archive-checklist-grid input,
.report-picker-chip input,
.report-picker-room input,
.report-picker-option input {
  accent-color: var(--app-logo-blue) !important;
}

.document-archive-item a,
.archive-open-link {
  border-color: var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
}

.archive-scroll-cue strong,
.address-search-result-head strong,
.address-search-result small,
.selected-detail-title span,
.selected-info-item span,
.floor-overview-header span {
  color: var(--app-logo-blue-dark) !important;
}

.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle {
  color: transparent !important;
  background: linear-gradient(92deg, #06164a 0%, var(--app-logo-blue-dark) 46%, var(--app-logo-blue) 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.archive-checklist-panel {
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  min-height: 0 !important;
}

.document-archive-shelf {
  position: relative;
  height: 224px;
  max-height: 224px;
  min-height: 0;
  overflow-y: scroll;
  overscroll-behavior: contain;
  padding: 0 9px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 105, 224, 0.38) rgba(216, 222, 219, 0.5);
}

.document-archive-shelf::-webkit-scrollbar {
  width: 8px;
}

.document-archive-shelf::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(216, 222, 219, 0.5);
}

.document-archive-shelf::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 105, 224, 0.42);
}

.document-archive-limit-note {
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px dashed #cfd9e7;
  border-radius: 10px;
  background: #f8fbff;
  color: #66706d;
  font-size: 0.78rem;
  font-weight: 450;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 1179px) {
  .document-archive-shelf {
    height: 300px;
    max-height: 300px;
  }
}

/* Wondershare PDF editor inspired polish: light document workspace, soft cards, clear blue actions. */
:root {
  --header-height: 56px;
  --pdf-workspace-bg: #eef5ff;
  --pdf-card-bg: rgba(255, 255, 255, 0.96);
  --pdf-card-border: #dbe7fb;
  --pdf-panel-shadow: 0 18px 52px rgba(20, 48, 98, 0.1);
  --pdf-soft-shadow: 0 12px 30px rgba(23, 105, 224, 0.08);
  --pdf-upload-blue: #0877f2;
  --pdf-upload-violet: #c778ff;
}

html,
body {
  background:
    radial-gradient(circle at 18% 8%, rgba(111, 166, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #f9fcff 0%, var(--pdf-workspace-bg) 54%, #f7faff 100%) !important;
}

.app-shell {
  min-height: 100vh !important;
  padding: 12px !important;
  background: transparent !important;
}

.app-header {
  min-height: var(--header-height) !important;
  padding: 0 18px !important;
  border: 1px solid rgba(213, 226, 248, 0.9) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 16px 40px rgba(15, 37, 72, 0.08) !important;
  backdrop-filter: blur(14px);
}

.brand strong {
  color: #0b1535 !important;
  font-weight: 680 !important;
}

.legal-note {
  color: #5f6d82 !important;
  font-weight: 430 !important;
}

.settings-button {
  border-color: rgba(219, 231, 251, 0.95) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(20, 48, 98, 0.08) !important;
}

.workspace {
  gap: 12px !important;
  height: calc(100vh - var(--header-height) - 36px) !important;
  min-height: 720px;
  padding: 0 !important;
  background: transparent !important;
}

.library,
.research-drawer,
.info-viewer,
.viewer {
  height: 100% !important;
  min-height: 0 !important;
  border: 1px solid var(--pdf-card-border) !important;
  border-radius: 18px !important;
  background: var(--pdf-card-bg) !important;
  box-shadow: var(--pdf-panel-shadow) !important;
}

.library,
.research-drawer,
.info-viewer,
.viewer,
.map-canvas,
.document-stage {
  overflow: hidden !important;
}

.panel-title-block,
.viewer-header,
.research-drawer .section-label,
.info-viewer-panel > .section-label {
  padding: 21px 24px 0 !important;
  border-bottom: 1px solid #e5eefc !important;
  background:
    radial-gradient(circle at 88% 18%, rgba(23, 105, 224, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle {
  font-size: 1.34rem !important;
  font-weight: 660 !important;
  letter-spacing: 0 !important;
}

.panel-copy {
  color: #5f6d82 !important;
  font-weight: 420 !important;
}

.map-canvas {
  border: 2px solid transparent !important;
  border-radius: 18px !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(130deg, var(--pdf-upload-blue), #6e8cff 48%, var(--pdf-upload-violet)) border-box !important;
  box-shadow: 0 18px 48px rgba(23, 105, 224, 0.13) !important;
}

.map-search,
.address-search {
  border: 1px solid rgba(23, 105, 224, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 42px rgba(22, 89, 180, 0.16) !important;
}

.map-search input,
.address-search input {
  color: #0b1535 !important;
  font-weight: 520 !important;
}

.map-search button,
.primary-action,
.document-tool-button.is-active,
.office-info-trigger,
.make-document-button,
.report-picker-confirm,
.archive-checklist-actions .primary-action,
.subscription-actions .primary-action {
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #0d7df4 0%, var(--app-logo-blue) 60%, #0e4fb3 100%) !important;
  box-shadow: 0 14px 30px rgba(23, 105, 224, 0.24) !important;
  color: #ffffff !important;
}

.map-canvas .map-layer-tab,
.map-canvas .map-location-button {
  border-color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 30px rgba(16, 45, 89, 0.16) !important;
}

.summary-card,
.selected-info-item,
.building-info-empty,
.room-overview-list button,
.floor-tabs button,
.building-variant-tabs button,
.address-search-result,
.document-archive-item,
.subscription-status {
  border-color: var(--pdf-card-border) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: var(--pdf-soft-shadow) !important;
}

.summary-card::before,
.building-variant-tabs button::before,
.floor-tabs button::before,
.room-overview-list button::before,
.report-picker-tabs button::before {
  display: none !important;
}

.summary-card:hover,
.summary-card:focus-visible,
.summary-card.is-selected,
.summary-card[aria-pressed="true"] {
  border-color: rgba(23, 105, 224, 0.38) !important;
  background: #f8fbff !important;
  box-shadow:
    0 18px 36px rgba(23, 105, 224, 0.12),
    inset 0 0 0 1px rgba(23, 105, 224, 0.1) !important;
}

.summary-card strong,
.selected-info-item strong,
.document-archive-main strong {
  color: #0b1535 !important;
  font-weight: 620 !important;
}

.summary-card > span:not(.summary-output-check),
.selected-info-item span,
.document-archive-main span {
  color: #607086 !important;
  font-weight: 430 !important;
}

.summary-output-check {
  border-radius: 8px !important;
}

.info-viewer-panel > .building-info-viewer {
  padding: 16px !important;
  background: #ffffff !important;
}

.building-info-viewer-header,
.selected-address-details,
.room-detail-item {
  border-color: var(--pdf-card-border) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.document-stage {
  padding: 18px 18px 12px !important;
  background:
    linear-gradient(rgba(212, 224, 242, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 224, 242, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
}

.document-tools {
  top: 18px !important;
  right: 18px !important;
}

.document-tools span,
.document-tool-button,
.office-info-trigger,
.page-control button,
.secondary-action,
.archive-checklist-actions .secondary-action,
.subscription-actions .secondary-action {
  border-color: #dbe7fb !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #32445f !important;
  box-shadow: 0 10px 22px rgba(20, 48, 98, 0.08) !important;
}

.document-tool-button.bookmark {
  border-color: rgba(23, 105, 224, 0.22) !important;
  background: #f7fbff !important;
  color: var(--app-logo-blue-dark) !important;
}

.document-tool-button.danger {
  color: #bc3b32 !important;
}

.paper {
  box-shadow: 0 20px 58px rgba(15, 37, 72, 0.14) !important;
}

.archive-scroll-cue {
  border-color: rgba(23, 105, 224, 0.18) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #30425e !important;
  box-shadow: 0 18px 42px rgba(20, 48, 98, 0.16) !important;
  backdrop-filter: blur(14px);
}

.archive-scroll-cue strong {
  color: var(--app-logo-blue) !important;
}

.archive-checklist-section {
  gap: 12px !important;
  padding: 12px 0 36px !important;
  border-top: 0 !important;
  background: transparent !important;
}

.archive-checklist-panel,
.subscription-panel,
.company-panel {
  border: 1px solid var(--pdf-card-border) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--pdf-panel-shadow) !important;
}

.archive-checklist-panel {
  padding: 22px 24px !important;
}

.right-info-stack {
  gap: 12px !important;
}

.subscription-panel,
.company-panel {
  padding: 22px 24px !important;
}

.document-archive-shelf {
  height: 260px !important;
  max-height: 260px !important;
  overflow-y: auto !important;
  padding-right: 10px !important;
}

.document-archive-item {
  min-height: 58px;
  margin-bottom: 8px;
  padding: 12px 14px !important;
}

.document-archive-item a,
.archive-open-link {
  border-radius: 10px !important;
  background: var(--app-logo-blue) !important;
  box-shadow: 0 10px 22px rgba(23, 105, 224, 0.18) !important;
}

.subscription-panel p,
.company-panel p,
.archive-checklist-head p,
.site-name,
#documentKind {
  color: var(--app-logo-blue-dark) !important;
}

.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle {
  color: #071848 !important;
  background: none !important;
  -webkit-text-fill-color: #071848 !important;
}

@media (max-width: 1179px) {
  .app-shell {
    padding: 10px !important;
  }

  .workspace {
    height: auto !important;
    min-height: 0 !important;
  }

  .library,
  .research-drawer,
  .info-viewer,
  .viewer {
    height: auto !important;
  }

  .document-archive-shelf {
    height: 320px !important;
    max-height: 320px !important;
  }
}

/* Open workspace pass: steps 1-3 sit directly on the soft gradient, while the report preview stays framed. */
body {
  background:
    radial-gradient(circle at 16% 12%, rgba(74, 145, 255, 0.2), transparent 31%),
    radial-gradient(circle at 70% 4%, rgba(113, 177, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eaf4ff 48%, #f5faff 100%) !important;
}

.workspace {
  gap: 14px !important;
}

.library,
.research-drawer,
.info-viewer {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.library,
.library-header,
.map-panel {
  overflow: hidden !important;
}

.library-header,
.map-panel {
  background: transparent !important;
}

.panel-title-block,
.research-drawer .section-label,
.info-viewer-panel > .section-label {
  border-bottom: 0 !important;
  background: transparent !important;
}

.research-drawer .panel-section,
.info-viewer-panel {
  background: transparent !important;
}

.research-drawer .quick-list,
.info-viewer-panel > .building-info-viewer {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.info-viewer-panel > .building-info-viewer {
  border: 1px solid rgba(219, 231, 251, 0.82) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 18px 42px rgba(20, 48, 98, 0.08) !important;
  backdrop-filter: blur(12px);
}

.map-panel {
  gap: 12px;
}

.map-canvas {
  flex: 1 1 0 !important;
  min-height: 0 !important;
}

.map-address-card {
  flex: 0 0 auto;
  min-height: 92px !important;
  margin-top: 0 !important;
  padding: 0 6px 2px !important;
}

.map-address-card > strong {
  font-weight: 720 !important;
}

.map-address-row span,
.map-address-row strong {
  font-weight: 520 !important;
}

.summary-card {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px);
}

.viewer {
  border-color: rgba(219, 231, 251, 0.95) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

/* Notebook style for step 3: remove white cards and read information as ruled notes. */
.info-viewer-panel > .building-info-viewer {
  border: 0 !important;
  border-radius: 0 !important;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 43px,
      rgba(23, 105, 224, 0.13) 44px
    ) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.info-viewer .building-info-empty {
  display: flex;
  min-height: 172px;
  align-items: center;
  justify-content: center;
  padding: 18px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0b1535 !important;
  font-weight: 620 !important;
  text-align: center;
}

.info-viewer .selected-address-details,
.info-viewer .building-info-viewer-header,
.info-viewer .selected-detail-header,
.info-viewer .room-detail-item,
.info-viewer .floor-overview-panel,
.info-viewer .room-overview-detail {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.info-viewer .selected-address-details {
  display: grid;
  gap: 0 !important;
  padding: 0 !important;
}

.info-viewer .selected-detail-header,
.info-viewer .building-info-viewer-header,
.info-viewer .floor-overview-header,
.info-viewer .room-overview-header {
  min-height: 44px;
  padding: 0 0 9px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.2) !important;
}

.info-viewer .selected-info-grid,
.info-viewer .room-detail-grid {
  gap: 0 !important;
}

.info-viewer .selected-info-item,
.info-viewer .room-detail-item {
  min-height: 44px;
  padding: 10px 0 !important;
  border-width: 0 0 1px !important;
  border-style: solid !important;
  border-color: rgba(23, 105, 224, 0.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.info-viewer .selected-info-item span,
.info-viewer .room-detail-item span {
  color: #58708f !important;
  font-size: 0.78rem !important;
  font-weight: 470 !important;
}

.info-viewer .selected-info-item strong,
.info-viewer .room-detail-item strong {
  color: #0b1535 !important;
  font-weight: 570 !important;
}

.info-viewer .building-variant-tabs {
  gap: 0 !important;
  max-height: 176px;
  padding: 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.18);
}

.info-viewer .building-variant-tabs button,
.info-viewer .building-variant-tabs button.is-active {
  min-height: 44px !important;
  padding: 10px 0 !important;
  border-width: 0 0 1px !important;
  border-style: solid !important;
  border-color: rgba(23, 105, 224, 0.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0b1535 !important;
}

.info-viewer .building-variant-tabs button.is-active {
  color: var(--app-logo-blue-dark) !important;
}

.info-viewer .building-variant-tabs button span {
  color: #58708f !important;
  font-weight: 470 !important;
}

.info-viewer .app-info-empty-state {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  padding: 18px 0 !important;
  border-width: 0 0 1px !important;
  border-style: solid !important;
  border-color: rgba(23, 105, 224, 0.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

.info-viewer-panel > .building-info-viewer {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 43px,
      rgba(11, 21, 53, 0.28) 44px
    ) !important;
}

.info-viewer .selected-detail-header,
.info-viewer .building-info-viewer-header,
.info-viewer .floor-overview-header,
.info-viewer .room-overview-header,
.info-viewer .selected-info-item,
.info-viewer .room-detail-item,
.info-viewer .building-variant-tabs,
.info-viewer .building-variant-tabs button,
.info-viewer .building-variant-tabs button.is-active,
.info-viewer .app-info-empty-state {
  border-color: rgba(11, 21, 53, 0.34) !important;
}

/* Architectural sheet concept: fine grid, drafting lines, and technical title-block rhythm. */
:root {
  --sheet-paper: #f8fbff;
  --sheet-blue: #1769e0;
  --sheet-ink: #101928;
  --sheet-line: rgba(16, 25, 40, 0.18);
  --sheet-line-strong: rgba(16, 25, 40, 0.42);
  --sheet-fill: rgba(255, 255, 255, 0.42);
}

body {
  background:
    linear-gradient(rgba(16, 25, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 25, 40, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 105, 224, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 224, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff 0%, #eef6ff 100%) !important;
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px, auto !important;
}

.app-header {
  border-color: var(--sheet-line-strong) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 12px 30px rgba(16, 25, 40, 0.08) !important;
}

.workspace {
  gap: 0 !important;
  border: 1px solid var(--sheet-line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 18px 48px rgba(16, 25, 40, 0.08);
  overflow: hidden;
}

.library,
.research-drawer,
.info-viewer {
  padding: 0 16px !important;
  border-right: 1px solid var(--sheet-line) !important;
  background: transparent !important;
}

.viewer {
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
}

.panel-title-block,
.research-drawer .section-label,
.info-viewer-panel > .section-label,
.viewer-header {
  border-bottom: 1px solid var(--sheet-line-strong) !important;
  background: rgba(255, 255, 255, 0.24) !important;
}

.panel-title-block {
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.research-drawer .section-label,
.info-viewer-panel > .section-label {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.viewer-header {
  padding-left: 24px !important;
}

.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle {
  color: var(--sheet-ink) !important;
  font-weight: 620 !important;
}

.panel-copy,
.legal-note {
  color: rgba(16, 25, 40, 0.68) !important;
}

.map-canvas {
  border: 1px solid var(--sheet-line-strong) !important;
  border-radius: 6px !important;
  background:
    linear-gradient(rgba(16, 25, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 25, 40, 0.04) 1px, transparent 1px),
    #f6faff !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  box-shadow: 0 18px 40px rgba(16, 25, 40, 0.1) !important;
}

.map-search,
.address-search {
  border-color: var(--sheet-line-strong) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 34px rgba(16, 25, 40, 0.12) !important;
}

.map-search button,
.primary-action,
.document-tool-button.is-active,
.office-info-trigger,
.make-document-button,
.report-picker-confirm,
.archive-checklist-actions .primary-action,
.subscription-actions .primary-action {
  border-radius: 6px !important;
}

.summary-card {
  min-height: 54px !important;
  border-color: var(--sheet-line-strong) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

.summary-card:hover,
.summary-card:focus-visible,
.summary-card.is-selected,
.summary-card[aria-pressed="true"] {
  border-color: rgba(23, 105, 224, 0.58) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: inset 3px 0 0 var(--sheet-blue) !important;
}

.summary-output-check {
  border-radius: 3px !important;
}

.info-viewer-panel > .building-info-viewer {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 43px,
      rgba(16, 25, 40, 0.34) 44px
    ) !important;
}

.info-viewer .selected-detail-header,
.info-viewer .building-info-viewer-header,
.info-viewer .floor-overview-header,
.info-viewer .room-overview-header,
.info-viewer .selected-info-item,
.info-viewer .room-detail-item,
.info-viewer .building-variant-tabs,
.info-viewer .building-variant-tabs button,
.info-viewer .building-variant-tabs button.is-active,
.info-viewer .app-info-empty-state {
  border-color: rgba(16, 25, 40, 0.42) !important;
}

.document-stage {
  background:
    linear-gradient(rgba(16, 25, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 25, 40, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 105, 224, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 224, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%) !important;
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px, auto !important;
}

.document-tools span,
.document-tool-button,
.office-info-trigger,
.page-control button,
.secondary-action {
  border-radius: 6px !important;
}

.paper {
  box-shadow: 0 16px 42px rgba(16, 25, 40, 0.14) !important;
}

.archive-checklist-panel,
.subscription-panel,
.company-panel {
  border-color: var(--sheet-line-strong) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 14px 34px rgba(16, 25, 40, 0.08) !important;
}

/* White drafting base: keep the sheet grid but remove the blue cast. */
body {
  background:
    linear-gradient(rgba(16, 25, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 25, 40, 0.035) 1px, transparent 1px),
    #ffffff !important;
  background-size: 24px 24px, 24px 24px, auto !important;
}

.workspace {
  background:
    linear-gradient(rgba(16, 25, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 25, 40, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.82) !important;
  background-size: 24px 24px, 24px 24px, auto !important;
}

.viewer,
.document-stage {
  background:
    linear-gradient(rgba(16, 25, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 25, 40, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.9) !important;
  background-size: 24px 24px, 24px 24px, auto !important;
}

/* Clean web-tool base: remove drafting-grid mood and keep a quiet white interface. */
body {
  background: #ffffff !important;
}

.workspace {
  border-color: #e6edf5 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 18px 46px rgba(15, 37, 72, 0.06) !important;
}

.app-header {
  border-color: #e6edf5 !important;
  background: #ffffff !important;
}

.viewer,
.document-stage {
  background: #f7fbff !important;
  background-image: none !important;
}

.library,
.research-drawer,
.info-viewer {
  border-right-color: #e6edf5 !important;
}

.panel-title-block,
.research-drawer .section-label,
.info-viewer-panel > .section-label,
.viewer-header {
  border-bottom-color: #e6edf5 !important;
  background: #ffffff !important;
}

.map-canvas {
  border-color: #dbe7fb !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 42px rgba(20, 48, 98, 0.1) !important;
}

.summary-card,
.map-search,
.address-search {
  border-color: #dbe7fb !important;
  border-radius: 12px !important;
}

/* Step 2 as a PDF-tool style checklist: bold lead copy with large blue check marks. */
.research-drawer .panel-section {
  grid-template-rows: 190px minmax(0, 1fr) !important;
}

.research-drawer > .panel-section > .section-label {
  display: grid !important;
  height: 190px !important;
  min-height: 190px !important;
  align-content: start !important;
  padding-top: 26px !important;
  border-bottom: 0 !important;
  background: transparent !important;
  color: #171a1f !important;
  font-size: clamp(2rem, 2.35vw, 2.7rem) !important;
  font-weight: 800 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.01em !important;
}

.research-drawer > .panel-section > .section-label::after {
  display: block;
  max-width: 220px;
  margin-top: 18px;
  color: #171a1f;
  content: "필요한 자료를 선택하면 기본서식에서 하나의 보고서로 정리됩니다.";
  font-size: clamp(0.98rem, 1.08vw, 1.18rem);
  font-weight: 650;
  line-height: 1.34;
  letter-spacing: 0;
}

.research-drawer .quick-list {
  gap: 22px !important;
  padding: 0 0 20px !important;
}

.research-drawer .summary-card {
  position: relative;
  display: grid !important;
  min-height: 54px !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 15px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  backdrop-filter: none !important;
}

.research-drawer .summary-card:hover,
.research-drawer .summary-card:focus-visible,
.research-drawer .summary-card.is-selected,
.research-drawer .summary-card[aria-pressed="true"] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.research-drawer .summary-card .tool-icon {
  display: none !important;
}

.research-drawer .summary-card strong {
  grid-column: 2 !important;
  color: #2d3137 !important;
  font-size: clamp(1.04rem, 1.15vw, 1.28rem) !important;
  font-weight: 500 !important;
  line-height: 1.34 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

.research-drawer .summary-card .summary-output-check {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  grid-column: 1 !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #2c7be5 !important;
  box-shadow: 0 10px 24px rgba(44, 123, 229, 0.22) !important;
}

.research-drawer .summary-card .summary-output-check::after {
  top: 15px !important;
  left: 13px !important;
  width: 15px !important;
  height: 8px !important;
  border-bottom: 3px solid #ffffff !important;
  border-left: 3px solid #ffffff !important;
  opacity: 1 !important;
}

/* Step 2 item wording: bold black label + thin blue action + toggle circle after text. */
.research-drawer .summary-card {
  min-height: 42px !important;
  grid-template-columns: minmax(0, 1fr) 30px !important;
  column-gap: 10px !important;
}

.research-drawer .summary-card strong {
  display: flex !important;
  grid-column: 1 !important;
  align-items: baseline !important;
  gap: 7px !important;
  color: inherit !important;
  line-height: 1.2 !important;
}

.research-drawer .summary-card .summary-title-main {
  display: inline !important;
  color: #111827 !important;
  font-size: clamp(1.02rem, 1.1vw, 1.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.research-drawer .summary-card .summary-title-action {
  display: inline !important;
  color: var(--app-logo-blue) !important;
  font-size: clamp(0.96rem, 1vw, 1.1rem) !important;
  font-weight: 380 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.research-drawer .summary-card .summary-output-check {
  grid-column: 2 !important;
  width: 28px !important;
  height: 28px !important;
  border: 1.5px solid #cbd9ee !important;
  background: #ffffff !important;
  box-shadow: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.research-drawer .summary-card .summary-output-check::after {
  top: 9px !important;
  left: 8px !important;
  width: 10px !important;
  height: 5px !important;
  border-bottom: 2.5px solid #ffffff !important;
  border-left: 2.5px solid #ffffff !important;
  opacity: 0 !important;
}

.research-drawer .summary-card.is-selected .summary-output-check,
.research-drawer .summary-card[aria-pressed="true"] .summary-output-check {
  border-color: var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.2) !important;
}

.research-drawer .summary-card.is-selected .summary-output-check::after,
.research-drawer .summary-card[aria-pressed="true"] .summary-output-check::after {
  opacity: 1 !important;
}

/* Step 2 alignment tune-up: match the other step headers and keep item text/checks compact. */
.research-drawer .panel-section {
  grid-template-rows: var(--aligned-panel-header) minmax(0, 1fr) !important;
}

.research-drawer > .panel-section > .section-label {
  display: flex !important;
  height: var(--aligned-panel-header) !important;
  min-height: var(--aligned-panel-header) !important;
  align-items: flex-start !important;
  align-content: normal !important;
  padding: 21px 24px 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  color: #071848 !important;
  font-size: 1.34rem !important;
  font-weight: 660 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.research-drawer > .panel-section > .section-label::after {
  display: none !important;
  content: none !important;
}

.research-drawer .quick-list {
  gap: 14px !important;
  padding: 0 18px 20px !important;
}

.research-drawer .summary-card {
  min-height: 36px !important;
  grid-template-columns: minmax(0, 1fr) 22px !important;
  column-gap: 8px !important;
}

.research-drawer .summary-card strong {
  display: grid !important;
  grid-template-columns: 82px 38px !important;
  gap: 6px !important;
  align-items: baseline !important;
}

.research-drawer .summary-card .summary-title-main {
  width: 82px !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
}

.research-drawer .summary-card .summary-title-action {
  width: 38px !important;
  color: var(--app-logo-blue) !important;
  font-size: 0.98rem !important;
  font-weight: 760 !important;
}

.research-drawer .summary-card .summary-output-check {
  width: 20px !important;
  height: 20px !important;
  border-width: 1.4px !important;
  box-shadow: none !important;
}

.research-drawer .summary-card .summary-output-check::after {
  top: 6px !important;
  left: 5px !important;
  width: 8px !important;
  height: 4px !important;
  border-bottom-width: 2px !important;
  border-left-width: 2px !important;
}

.research-drawer .summary-card.is-selected .summary-output-check,
.research-drawer .summary-card[aria-pressed="true"] .summary-output-check {
  box-shadow: 0 5px 12px rgba(23, 105, 224, 0.18) !important;
}

/* Keep the item names aligned and pair the action text tightly with the check control. */
.research-drawer .summary-card {
  grid-template-columns: 82px minmax(12px, 1fr) auto 20px !important;
  column-gap: 6px !important;
}

.research-drawer .summary-card strong {
  display: contents !important;
}

.research-drawer .summary-card .summary-title-main {
  grid-column: 1 !important;
  width: 82px !important;
}

.research-drawer .summary-card .summary-title-action {
  grid-column: 3 !important;
  width: auto !important;
  justify-self: end !important;
  margin-right: 2px !important;
}

.research-drawer .summary-card .summary-output-check {
  grid-column: 4 !important;
}

/* Clean flat pass: remove mixed gradients and keep the interface quieter. */
:root {
  --clean-blue: #1769e0;
  --clean-blue-hover: #0e4fb3;
  --clean-bg: #f7f9fc;
  --clean-line: #e3ebf6;
  --clean-text: #0f172a;
}

body {
  background: var(--clean-bg) !important;
  background-image: none !important;
}

.app-header,
.workspace,
.library,
.research-drawer,
.info-viewer,
.viewer,
.archive-checklist-panel,
.subscription-panel,
.company-panel {
  background: #ffffff !important;
  background-image: none !important;
}

/* Stronger information labels and selected dong state. */
.info-viewer .selected-info-item span,
.info-viewer .room-detail-item span,
.info-viewer .floor-overview-header span,
.info-viewer .room-overview-header span {
  color: var(--clean-blue) !important;
  font-weight: 760 !important;
}

.info-viewer .building-variant-tabs button.is-active {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-bottom-color: var(--clean-blue) !important;
  border-radius: 10px !important;
  background: var(--clean-blue) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.18) !important;
}

.info-viewer .building-variant-tabs button.is-active strong,
.info-viewer .building-variant-tabs button.is-active span {
  color: #ffffff !important;
}

.info-viewer .building-variant-tabs button.is-active::after {
  content: "선택";
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

/* Absolute final info-viewer overrides. */
.info-viewer .selected-detail-header {
  display: none !important;
}

.info-viewer .app-info-row span,
.info-viewer .app-info-date-strip span,
.info-viewer .selected-info-item span,
.info-viewer .room-detail-item span,
.info-viewer .floor-overview-header span,
.info-viewer .room-overview-header span {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-weight: 760 !important;
}

.info-viewer .building-variant-tabs button.is-active {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2px !important;
  align-items: start !important;
  justify-content: start !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.34) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #064fbd !important;
  box-shadow: none !important;
}

.info-viewer .building-variant-tabs button.is-active strong,
.info-viewer .building-variant-tabs button.is-active span {
  color: #064fbd !important;
  -webkit-text-fill-color: #064fbd !important;
}

.info-viewer .building-variant-tabs button.is-active strong {
  font-weight: 900 !important;
}

.info-viewer .building-variant-tabs button.is-active::after {
  content: none !important;
  display: none !important;
}

.info-viewer .floor-tabs button,
.info-viewer .room-overview-list button {
  background: #ffffff !important;
  color: #111827 !important;
}

.info-viewer .floor-tabs button.is-active,
.info-viewer .room-overview-list button.is-active {
  border-color: #1769e0 !important;
  background: #ffffff !important;
  color: #064fbd !important;
  box-shadow: inset 0 -3px 0 #1769e0 !important;
}

.info-viewer .floor-tabs button.is-active strong,
.info-viewer .floor-tabs button.is-active span,
.info-viewer .room-overview-list button.is-active strong,
.info-viewer .room-overview-list button.is-active span {
  color: #064fbd !important;
  -webkit-text-fill-color: #064fbd !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Absolute final layout divider color. */
:root {
  --layout-blue-line: rgba(23, 105, 224, 0.34);
  --layout-blue-line-soft: rgba(23, 105, 224, 0.22);
}

.app-header {
  border-bottom: 1px solid var(--layout-blue-line) !important;
}

.workspace {
  border-color: var(--layout-blue-line-soft) !important;
}

.library,
.research-drawer,
.info-viewer {
  border-right: 1px solid var(--layout-blue-line-soft) !important;
}

.viewer {
  border-right: 0 !important;
}

.library-header,
.panel-title-block,
.research-drawer .section-label,
.info-viewer-panel > .section-label,
.viewer-header {
  border-bottom: 1px solid var(--layout-blue-line-soft) !important;
}

.viewer-header::after {
  background: #1769e0 !important;
}

.research-drawer > .panel-section > .section-label,
.info-viewer > .panel-section > .section-label,
.info-viewer-panel > .section-label {
  border-bottom: 1px solid var(--layout-blue-line-soft) !important;
}

/* Final map frame and address summary styling. */
.map-panel {
  gap: 12px !important;
}

.map-canvas {
  overflow: hidden !important;
  border: 3px solid #1769e0 !important;
  border-radius: 0 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.map-canvas .map-search,
.map-canvas .address-search {
  border-color: rgba(23, 105, 224, 0.72) !important;
}

.map-address-card {
  min-height: 0 !important;
  gap: 0 !important;
  margin-top: 0 !important;
  padding: 0 4px 0 !important;
  background: transparent !important;
}

.map-address-card > strong {
  display: block !important;
  padding: 10px 0 9px !important;
  border-bottom: 2px solid #1769e0 !important;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-size: 0.98rem !important;
  font-weight: 780 !important;
  line-height: 1.35 !important;
}

.map-address-details {
  display: grid !important;
  gap: 0 !important;
}

.map-address-row {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.62) !important;
}

.map-address-row span {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-size: 0.76rem !important;
  font-weight: 740 !important;
}

.map-address-row strong {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere !important;
}

/* Step headings: small blue circular number badges. */
.panel-title-block h1 .step-number,
.research-drawer > .panel-section > .section-label .step-number,
.info-viewer-panel > .section-label .step-number,
.viewer-title-block #documentTitle .step-number {
  display: inline-flex !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin-right: 0.42em !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #1769e0 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  vertical-align: 0.12em !important;
}

/* Absolute final map refinement: use the same thin blue line as the page dividers. */
.library .map-panel .map-canvas {
  border: 1px solid var(--layout-blue-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.library .map-address-card > strong {
  border-bottom: 0 !important;
  padding-bottom: 6px !important;
}

/* Final map refinement: thin blue line, no underline below the place name. */
.map-canvas {
  border: 1px solid var(--layout-blue-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.map-address-card > strong {
  border-bottom: 0 !important;
  padding-bottom: 6px !important;
}

/* Layout dividers: use brand-blue thin lines instead of black/gray rules. */


/* Step headings: blue number only, no dot marker. */
.panel-title-block h1::before,
.research-drawer > .panel-section > .section-label::before,
.info-viewer-panel > .section-label::before,
.viewer-title-block #documentTitle::before {
  content: none !important;
  display: none !important;
}

.panel-title-block h1 .step-number,
.research-drawer > .panel-section > .section-label .step-number,
.info-viewer-panel > .section-label .step-number,
.viewer-title-block #documentTitle .step-number {
  display: inline-block !important;
  margin-right: 0.28em !important;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font: inherit !important;
  font-weight: 900 !important;
}

/* Give information content breathing room from its scrollbars. */
.info-viewer-panel > .building-info-viewer {
  padding-right: 24px !important;
  scrollbar-gutter: stable !important;
}

.info-viewer .building-variant-tabs {
  padding-right: 16px !important;
  scrollbar-gutter: stable !important;
}

.info-viewer-panel > .building-info-viewer::-webkit-scrollbar,
.info-viewer .building-variant-tabs::-webkit-scrollbar {
  width: 8px;
}

.info-viewer-panel > .building-info-viewer::-webkit-scrollbar-track,
.info-viewer .building-variant-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.info-viewer-panel > .building-info-viewer::-webkit-scrollbar-thumb,
.info-viewer .building-variant-tabs::-webkit-scrollbar-thumb {
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
}

/* Final report picker modal: clean white surface with the current site accents. */
#reportPickerModal.modal-backdrop {
  padding: 28px !important;
  background: rgba(15, 23, 42, 0.22) !important;
  backdrop-filter: blur(6px) !important;
}

#reportPickerModal .report-picker {
  width: min(520px, calc(100vw - 42px)) !important;
  max-height: min(760px, calc(100vh - 56px)) !important;
  overflow: hidden !important;
  border: 1px solid #dbe7f6 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
}

#reportPickerModal .report-picker-header {
  display: grid !important;
  min-height: 64px !important;
  grid-template-columns: 36px minmax(0, 1fr) 36px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 18px !important;
  border-bottom: 1px solid #e3ebf6 !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
}

#reportPickerModal .report-picker-header-spacer {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
}

#reportPickerModal .report-picker-header h3 {
  margin: 0 !important;
  overflow: hidden !important;
  color: #0f172a !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 1.08rem !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
}

#reportPickerModal .report-picker-header button {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid #e3ebf6 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #64748b !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

#reportPickerModal .report-picker-header button:hover,
#reportPickerModal .report-picker-header button:focus-visible {
  border-color: #b9cceb !important;
  color: #1769e0 !important;
}

#reportPickerModal .report-picker-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 14px 18px 10px !important;
  border-bottom: 1px solid #edf3fb !important;
  background: #ffffff !important;
  background-image: none !important;
}

#reportPickerModal .report-picker-tabs button {
  position: relative !important;
  min-height: 38px !important;
  border: 1px solid #dbe7f6 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #334155 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 0.82rem !important;
  font-weight: 740 !important;
}

#reportPickerModal .report-picker-tabs button::before,
#reportPickerModal .report-picker-tabs button::after {
  content: none !important;
  display: none !important;
}

#reportPickerModal .report-picker-tabs button.is-active,
#reportPickerModal .report-picker-tabs button:hover,
#reportPickerModal .report-picker-tabs button:focus-visible {
  border-color: #1769e0 !important;
  background: #1769e0 !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#reportPickerModal .report-picker-body {
  min-height: 220px !important;
  max-height: min(420px, calc(100vh - 330px)) !important;
  overflow-y: auto !important;
  padding: 14px 18px !important;
  background: #ffffff !important;
  background-image: none !important;
}

#reportPickerModal .report-picker-option-list,
#reportPickerModal .report-picker-room-stack {
  display: grid !important;
  gap: 10px !important;
}

#reportPickerModal .report-picker-option-list.is-compact {
  max-height: 170px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

#reportPickerModal .report-picker-option {
  display: grid !important;
  min-height: 58px !important;
  grid-template-columns: minmax(0, 1fr) 22px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid #e3ebf6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
  box-shadow: none !important;
  cursor: pointer !important;
  line-height: 1.42 !important;
}

#reportPickerModal .report-picker-option:has(input:checked),
#reportPickerModal .report-picker-room:has(input:checked) {
  border-color: rgba(23, 105, 224, 0.48) !important;
  background: #f7fbff !important;
  background-image: none !important;
  color: #0f172a !important;
  box-shadow: inset 3px 0 0 #1769e0 !important;
}

#reportPickerModal .report-picker-option strong,
#reportPickerModal .report-picker-room strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 0.88rem !important;
  font-weight: 760 !important;
}

#reportPickerModal .report-picker-option small,
#reportPickerModal .report-picker-room small {
  display: block !important;
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 520 !important;
  line-height: 1.35 !important;
}

#reportPickerModal .report-picker-option input,
#reportPickerModal .report-picker-room input,
#reportPickerModal .report-picker-chip input {
  width: 18px !important;
  height: 18px !important;
  justify-self: end !important;
  accent-color: #1769e0 !important;
}

#reportPickerModal .report-picker-section-title {
  margin: 8px 0 8px !important;
  color: #1769e0 !important;
  font-size: 0.78rem !important;
  font-weight: 820 !important;
}

#reportPickerModal .report-picker-summary {
  margin: 0 18px !important;
  padding: 10px 12px !important;
  border: 1px solid #dbe7f6 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  background-image: none !important;
  color: #064fbd !important;
  font-size: 0.78rem !important;
  font-weight: 760 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

#reportPickerModal .report-picker-empty {
  margin: 0 !important;
  padding: 18px !important;
  border: 1px dashed #dbe7f6 !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
  text-align: center !important;
}

#reportPickerModal .report-picker-note {
  margin: 10px 18px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #64748b !important;
  font-size: 0.72rem !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

.report-picker-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr) !important;
  gap: 10px !important;
  margin: 14px 18px 18px !important;
}

#reportPickerModal .report-picker-save,
#reportPickerModal .report-picker-confirm {
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 0.86rem !important;
  font-weight: 760 !important;
}

#reportPickerModal .report-picker-save {
  border: 1px solid #dbe7f6 !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #1769e0 !important;
}

#reportPickerModal .report-picker-confirm {
  background: #1769e0 !important;
  background-image: none !important;
  color: #ffffff !important;
}

#reportPickerModal .report-picker-save:hover,
#reportPickerModal .report-picker-save:focus-visible {
  background: #f4f8ff !important;
  color: #0e4fb3 !important;
}

#reportPickerModal .report-picker-confirm:hover,
#reportPickerModal .report-picker-confirm:focus-visible {
  background: #0e4fb3 !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* Final column balance: slightly smaller map, readable selection controls. */
:root {
  --workspace-col-1: minmax(470px, 0.98fr);
  --workspace-col-2: minmax(220px, 230px);
  --workspace-col-3: minmax(330px, 380px);
}

.research-drawer .quick-list {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.research-drawer .summary-card {
  column-gap: 10px !important;
  min-width: 0 !important;
}

.research-drawer .summary-card strong {
  min-width: 0 !important;
}

/* Step width balance: keep selection readable while trimming the map a little. */


.research-drawer .summary-card {
  column-gap: 8px !important;
}

/* Final cleanup: hide duplicated register header and keep selections subtle. */


.workspace {
  border-color: var(--clean-line) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055) !important;
}

.app-header {
  border-bottom-color: var(--clean-line) !important;
  box-shadow: none !important;
}

.panel-title-block,
.research-drawer .section-label,
.info-viewer-panel > .section-label,
.viewer-header {
  border-bottom-color: var(--clean-line) !important;
  background: #ffffff !important;
  background-image: none !important;
}

.viewer,
.document-stage {
  background: #f8fafc !important;
  background-image: none !important;
}

.viewer-header::after {
  background: var(--clean-blue) !important;
}

.map-canvas,
.summary-card,
.map-search,
.address-search,
.selected-info-item,
.building-info-empty,
.room-overview-list button,
.floor-tabs button,
.building-variant-tabs button,
.address-search-result,
.document-archive-item,
.subscription-status,
.room-detail-item {
  border-color: var(--clean-line) !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.map-search button,
.primary-action,
.document-tool-button.is-active,
.office-info-trigger,
.make-document-button,
.report-picker-confirm,
.archive-checklist-actions .primary-action,
.subscription-actions .primary-action,
.archive-open-link,
.map-canvas .map-layer-tab {
  border-color: var(--clean-blue) !important;
  background: var(--clean-blue) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.map-search button:hover,
.map-search button:focus-visible,
.primary-action:hover,
.primary-action:focus-visible,
.document-tool-button.is-active:hover,
.document-tool-button.is-active:focus-visible,
.office-info-trigger:hover,
.office-info-trigger:focus-visible,
.make-document-button:hover,
.make-document-button:focus-visible,
.report-picker-confirm:hover,
.report-picker-confirm:focus-visible,
.archive-checklist-actions .primary-action:hover,
.archive-checklist-actions .primary-action:focus-visible,
.subscription-actions .primary-action:hover,
.subscription-actions .primary-action:focus-visible,
.archive-open-link:hover,
.archive-open-link:focus-visible,
.map-canvas .map-layer-tab:hover,
.map-canvas .map-layer-tab:focus-visible {
  border-color: var(--clean-blue-hover) !important;
  background: var(--clean-blue-hover) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.map-canvas .map-layer-tab.is-off,
.map-canvas .map-location-button,
.secondary-action,
.document-tool-button,
.document-tools span,
.page-control button,
.archive-checklist-actions .secondary-action,
.subscription-actions .secondary-action {
  border-color: var(--clean-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #243246 !important;
  box-shadow: none !important;
}

.research-drawer .summary-card.is-selected .summary-output-check,
.research-drawer .summary-card[aria-pressed="true"] .summary-output-check,
.building-variant-tabs button.is-active {
  border-color: var(--clean-blue) !important;
  background: var(--clean-blue) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.paper,
.paper.app-report-page {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle {
  color: var(--clean-text) !important;
  background: none !important;
  -webkit-text-fill-color: var(--clean-text) !important;
}

/* Product-style top bar using the official app-store icon. */
.app-header {
  min-height: 78px !important;
  height: 78px !important;
  grid-template-columns: minmax(260px, 1fr) auto !important;
  padding: 0 clamp(28px, 7vw, 148px) !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.brand {
  gap: 12px !important;
}

.brand-mark {
  width: 44px !important;
  height: 44px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.brand strong {
  color: #111827 !important;
  font-size: 1.08rem !important;
  font-weight: 760 !important;
  letter-spacing: -0.01em !important;
}

.brand span {
  display: block !important;
  margin-top: 2px !important;
  color: #6b7280 !important;
  font-size: 0.74rem !important;
  font-weight: 430 !important;
  line-height: 1.25 !important;
}

.header-actions {
  gap: 18px !important;
}

.legal-note {
  max-width: none !important;
  color: #6b7280 !important;
  font-size: 0.72rem !important;
  font-weight: 430 !important;
  white-space: nowrap !important;
}

.settings-button {
  width: 34px !important;
  height: 34px !important;
  border-color: #e5e7eb !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

/* Header and step title alignment refinement. */
:root {
  --aligned-panel-header: 118px;
}

.app-header {
  min-height: 62px !important;
  height: 62px !important;
  padding: 0 24px !important;
}

.brand {
  gap: 10px !important;
}

.brand .brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
}

.brand strong {
  font-size: 1.12rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.brand strong .brand-accent {
  display: inline !important;
  margin: 0 !important;
  color: var(--clean-blue) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  -webkit-text-fill-color: var(--clean-blue) !important;
}

.brand > div > span {
  display: none !important;
}

.header-actions {
  gap: 14px !important;
}

.legal-note {
  font-size: 0.7rem !important;
}

.settings-button {
  width: 30px !important;
  height: 30px !important;
}

.panel-title-block,
.research-drawer .section-label,
.info-viewer-panel > .section-label,
.viewer-header {
  padding-top: 30px !important;
}

.research-drawer > .panel-section > .section-label {
  padding-top: 30px !important;
}

/* Info viewer notebook lines: replace dark guide lines with brand blue. */
.info-viewer-panel > .building-info-viewer {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 43px,
      rgba(23, 105, 224, 0.38) 44px
    ) !important;
  background-attachment: local !important;
  background-origin: content-box !important;
  background-clip: content-box !important;
}

.info-viewer .selected-detail-header,
.info-viewer .building-info-viewer-header,
.info-viewer .floor-overview-header,
.info-viewer .room-overview-header,
.info-viewer .selected-info-item,
.info-viewer .room-detail-item,
.info-viewer .building-variant-tabs,
.info-viewer .building-variant-tabs button,
.info-viewer .building-variant-tabs button.is-active,
.info-viewer .app-info-empty-state,
.info-viewer .building-info-empty {
  border-color: transparent !important;
  border-top-color: transparent !important;
  border-right-color: transparent !important;
  border-bottom-color: transparent !important;
  border-left-color: transparent !important;
  box-shadow: none !important;
}

.info-viewer .selected-detail-header,
.info-viewer .building-info-viewer-header,
.info-viewer .floor-overview-header,
.info-viewer .room-overview-header,
.info-viewer .selected-info-item,
.info-viewer .room-detail-item,
.info-viewer .app-info-empty-state,
.info-viewer .building-info-empty {
  background: transparent !important;
  background-image: none !important;
}

/* Dong selector has its own scroll area, so its notebook lines must scroll locally. */
.info-viewer .building-variant-tabs {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 43px,
      rgba(23, 105, 224, 0.38) 44px
    ),
    #ffffff !important;
  background-attachment: local !important;
  background-origin: padding-box !important;
  background-clip: padding-box !important;
}

.info-viewer .building-variant-tabs button,
.info-viewer .building-variant-tabs button.is-active {
  background: transparent !important;
  background-image: none !important;
}

.info-viewer .make-document-button {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 8 !important;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  box-shadow:
    0 -10px 18px rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(23, 105, 224, 0.18) !important;
}

/* Keep info guide lines attached to actual rows so they scroll with the content. */
.info-viewer-panel > .building-info-viewer,
.info-viewer .building-variant-tabs {
  background: #ffffff !important;
  background-image: none !important;
}

.info-viewer .selected-detail-header,
.info-viewer .building-info-viewer-header,
.info-viewer .floor-overview-header,
.info-viewer .room-overview-header,
.info-viewer .selected-info-item,
.info-viewer .room-detail-item,
.info-viewer .building-variant-tabs,
.info-viewer .building-variant-tabs button,
.info-viewer .building-variant-tabs button.is-active,
.info-viewer .app-info-empty-state,
.info-viewer .building-info-empty {
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.24) !important;
  border-left: 0 !important;
  box-shadow: none !important;
}

.info-viewer .selected-detail-header,
.info-viewer .building-info-viewer-header,
.info-viewer .floor-overview-header,
.info-viewer .room-overview-header,
.info-viewer .selected-info-item,
.info-viewer .room-detail-item,
.info-viewer .building-variant-tabs button,
.info-viewer .building-variant-tabs button.is-active,
.info-viewer .app-info-empty-state,
.info-viewer .building-info-empty {
  background: #ffffff !important;
  background-image: none !important;
}

/* Final information viewer emphasis. */


/* Absolute final layout divider color at file end. */


/* Absolute final map frame and address summary styling. */


/* Absolute final step headings: small blue circular number badges. */
.panel-title-block h1 .step-number,
.research-drawer > .panel-section > .section-label .step-number,
.info-viewer-panel > .section-label .step-number,
.viewer-title-block #documentTitle .step-number {
  display: inline-flex !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin-right: 0.42em !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #1769e0 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  vertical-align: 0.12em !important;
}

/* Absolute final refinements: keep map lines thin and align step badges to heading text. */


.panel-title-block h1 .step-number,
.research-drawer > .panel-section > .section-label .step-number,
.info-viewer-panel > .section-label .step-number,
.viewer-title-block #documentTitle .step-number {
  display: inline-grid !important;
  place-items: center !important;
  line-height: 18px !important;
  vertical-align: middle !important;
  transform: translateY(1px) !important;
}

/* Absolute final map address text: keep address details black below the blue title. */
.library .map-address-row span,
.library .map-address-row strong {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

/* Absolute final subscription price styling. */
.subscription-status .subscription-price {
  display: grid !important;
  gap: 2px !important;
  justify-items: end !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-weight: 700 !important;
}

.subscription-status .subscription-price del {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  font-size: 0.78rem !important;
  font-weight: 520 !important;
  text-decoration-thickness: 1px !important;
}

.subscription-status .subscription-price b {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-size: 0.98rem !important;
  font-weight: 760 !important;
}

/* Absolute final step 2 buttons: clear button shape with small form-add action text. */
.research-drawer .quick-list {
  display: grid !important;
  gap: 10px !important;
  padding: 0 12px 20px !important;
}

.research-drawer .summary-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto 20px !important;
  column-gap: 8px !important;
  align-items: center !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(23, 105, 224, 0.28) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  text-align: left !important;
}

.research-drawer .summary-card:hover,
.research-drawer .summary-card:focus-visible,
.research-drawer .summary-card.is-selected,
.research-drawer .summary-card[aria-pressed="true"] {
  border-color: #1769e0 !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

.research-drawer .summary-card .tool-icon,
.research-drawer .summary-card > span:not(.summary-output-check),
.research-drawer .summary-card .summary-output-state {
  display: none !important;
}


.research-drawer .summary-card .summary-title-main {
  grid-column: 1 !important;
  width: auto !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: 0.96rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
}

.research-drawer .summary-card .summary-title-action {
  grid-column: 2 !important;
  justify-self: end !important;
  width: auto !important;
  margin: 0 !important;
  padding: 3px 7px !important;
  border: 1px solid rgba(23, 105, 224, 0.2) !important;
  border-radius: 999px !important;
  background: rgba(23, 105, 224, 0.08) !important;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-size: 0.68rem !important;
  font-weight: 720 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.research-drawer .summary-card .summary-output-check {
  grid-column: 3 !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 18px !important;
  height: 18px !important;
  border-width: 1.4px !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.research-drawer .summary-card .summary-output-check::after {
  top: 5px !important;
  left: 4px !important;
  width: 8px !important;
  height: 4px !important;
  border-bottom-width: 2px !important;
  border-left-width: 2px !important;
}

/* Keep selected state as a real button too. */
.research-drawer .summary-card.is-selected,
.research-drawer .summary-card[aria-pressed="true"] {
  border: 1px solid #1769e0 !important;
  border-style: solid !important;
  background: #f8fbff !important;
}

/* Land-use plan in step 3: split the long plan sentence into register-style rows. */
.info-viewer .selected-info-land-use {
  padding: 0 !important;
  overflow: hidden !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.24) !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.info-viewer .info-land-use-grid {
  display: grid;
  grid-template-columns: minmax(74px, 0.9fr) minmax(94px, 1.1fr) minmax(0, 2.2fr);
  border-top: 1px solid rgba(23, 105, 224, 0.24);
  border-left: 1px solid rgba(23, 105, 224, 0.24);
  color: #0b1535;
  font-size: 0.68rem;
  line-height: 1.38;
}

.info-viewer .info-land-use-grid > div {
  min-height: 54px;
  padding: 9px 10px;
  border-right: 1px solid rgba(23, 105, 224, 0.24);
  border-bottom: 1px solid rgba(23, 105, 224, 0.24);
  box-sizing: border-box;
}

.info-viewer .info-land-use-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.info-viewer .info-land-use-major {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1769e0;
  -webkit-text-fill-color: #1769e0;
  font-weight: 580;
  text-align: center;
  word-break: keep-all;
}

.info-viewer .info-land-use-label,
.info-viewer .info-land-use-wide-label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1769e0;
  -webkit-text-fill-color: #1769e0;
  font-weight: 520;
  text-align: center;
  word-break: keep-all;
}

.info-viewer .info-land-use-wide-label {
  grid-column: span 2;
}

.info-viewer .info-land-use-value {
  color: #0b1535;
  -webkit-text-fill-color: #0b1535;
  font-weight: 450;
  word-break: keep-all;
}

@media (max-width: 1320px) {
  .info-viewer .info-land-use-grid {
    grid-template-columns: minmax(72px, 0.85fr) minmax(88px, 1fr) minmax(0, 1.7fr);
    font-size: 0.64rem;
  }
}

/* Final document archive: folder cards with share and download actions. */
.archive-checklist-head {
  align-items: end !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.18) !important;
}

.document-archive-shelf {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  align-content: start !important;
  align-items: start !important;
  gap: 14px !important;
  height: 334px !important;
  max-height: 334px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 2px 10px 6px 2px !important;
}

.document-archive-shelf::-webkit-scrollbar {
  width: 8px !important;
}

.document-archive-shelf::-webkit-scrollbar-track {
  background: #f2f6fb !important;
  border-radius: 999px !important;
}

.document-archive-shelf::-webkit-scrollbar-thumb {
  background: rgba(23, 105, 224, 0.46) !important;
  border-radius: 999px !important;
}

.document-archive-item.document-archive-folder-card,
.document-archive-add-card {
  position: relative !important;
  display: grid !important;
  min-height: 154px !important;
  margin: 0 !important;
  padding: 18px 18px 14px !important;
  border: 1px solid #e1e8f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.045) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.document-archive-add-card {
  cursor: pointer !important;
  gap: 10px !important;
  border-style: dashed !important;
  color: #1d3354 !important;
  text-align: left !important;
}

.document-archive-add-card:hover,
.document-archive-add-card:focus-visible,
.document-archive-item.document-archive-folder-card:hover {
  border-color: rgba(23, 105, 224, 0.44) !important;
  box-shadow: 0 16px 34px rgba(23, 105, 224, 0.11) !important;
}

.archive-add-icon {
  position: relative !important;
  display: inline-grid !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: #eef5ff !important;
}

.archive-add-icon::before,
.archive-add-icon::after {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 15px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: var(--app-logo-blue) !important;
  content: "" !important;
  transform: translate(-50%, -50%) !important;
}

.archive-add-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) !important;
}

.document-archive-add-card strong {
  color: #111827 !important;
  font-size: 0.98rem !important;
  font-weight: 720 !important;
}

.document-archive-add-card small {
  max-width: 24em !important;
  color: #6b778b !important;
  font-size: 0.78rem !important;
  font-weight: 520 !important;
  line-height: 1.5 !important;
}

.archive-folder-tab {
  position: absolute !important;
  top: -1px !important;
  left: 16px !important;
  width: 58px !important;
  height: 11px !important;
  border: 1px solid #e1e8f2 !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  background: #f7fbff !important;
}

.document-archive-card-body {
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  gap: 12px !important;
  min-width: 0 !important;
  height: 100% !important;
}

.document-archive-card-body > strong {
  display: -webkit-box !important;
  min-height: 42px !important;
  overflow: hidden !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  font-size: 0.94rem !important;
  font-weight: 680 !important;
  line-height: 1.45 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.document-archive-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 14px !important;
  align-content: start !important;
  color: #8793a7 !important;
  font-size: 0.72rem !important;
  font-weight: 520 !important;
}

.document-archive-meta span {
  position: relative !important;
  padding-left: 12px !important;
}

.document-archive-meta span::before {
  position: absolute !important;
  top: 0.35em !important;
  left: 0 !important;
  width: 6px !important;
  height: 6px !important;
  border: 1.5px solid rgba(23, 105, 224, 0.34) !important;
  border-radius: 50% !important;
  content: "" !important;
}

.document-archive-card-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  align-items: center !important;
}

.document-archive-folder-card .document-archive-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid #e3e9f2 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #42506a !important;
  -webkit-text-fill-color: #42506a !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 0.72rem !important;
  font-weight: 680 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.document-archive-folder-card .document-archive-action:hover,
.document-archive-folder-card .document-archive-action:focus-visible {
  border-color: rgba(23, 105, 224, 0.42) !important;
  background: #f7fbff !important;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
}

.document-archive-folder-card .document-archive-action.is-kakao {
  border-color: #f3df4f !important;
  background: #fee500 !important;
  color: #231815 !important;
  -webkit-text-fill-color: #231815 !important;
}

.document-archive-folder-card .document-archive-action.is-download {
  border-color: var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.document-archive-folder-card .document-archive-action.is-path {
  color: #667085 !important;
  -webkit-text-fill-color: #667085 !important;
}

.document-archive-folder-card .document-archive-action.is-share {
  border-color: rgba(23, 105, 224, 0.28) !important;
  background: #f7fbff !important;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
}

.document-archive-folder-card .document-archive-action.archive-icon-button {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  flex: 0 0 34px !important;
}

.document-archive-folder-card .document-archive-action.archive-icon-button:hover,
.document-archive-folder-card .document-archive-action.archive-icon-button:focus-visible {
  transform: translateY(-1px) !important;
}

.document-archive-folder-card .document-archive-action.is-kakao.archive-icon-button {
  border-color: #f0d738 !important;
  background: #fee500 !important;
  color: #2b2118 !important;
  -webkit-text-fill-color: #2b2118 !important;
}

.archive-icon-kakao {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 0.7rem !important;
  font-weight: 820 !important;
  letter-spacing: -0.04em !important;
}

.document-archive-folder-card .document-archive-action.is-download.archive-icon-button {
  border-color: var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.archive-icon-download {
  position: relative !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
}

.archive-icon-download::before {
  position: absolute !important;
  top: 2px !important;
  left: 7px !important;
  width: 2px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  content: "" !important;
}

.archive-icon-download::after {
  position: absolute !important;
  top: 7px !important;
  left: 4px !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #ffffff !important;
  border-bottom: 2px solid #ffffff !important;
  content: "" !important;
  transform: rotate(45deg) !important;
}

.document-archive-empty,
.document-archive-limit-note {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px dashed #d4deec !important;
  border-radius: 12px !important;
  background: #fbfdff !important;
  color: #7c889b !important;
  font-size: 0.82rem !important;
  font-weight: 560 !important;
}

.archive-list {
  grid-template-columns: repeat(2, minmax(230px, 1fr)) !important;
  gap: 14px !important;
  background: #fbfdff !important;
}

.archive-list .document-archive-item.document-archive-folder-card {
  min-height: 166px !important;
}

.archive-list .document-archive-empty {
  grid-column: 1 / -1 !important;
}

.info-viewer .cadastre-form-message {
  display: grid !important;
  gap: 10px !important;
  min-height: 150px !important;
  align-content: center !important;
  padding: 22px 18px !important;
  border-top: 1px solid rgba(23, 105, 224, 0.28) !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.28) !important;
  background: #ffffff !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  text-align: center !important;
}

.info-viewer .cadastre-form-message strong {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-size: 1rem !important;
  font-weight: 760 !important;
}

.info-viewer .cadastre-form-message span {
  color: #52627a !important;
  -webkit-text-fill-color: #52627a !important;
  font-size: 0.82rem !important;
  font-weight: 520 !important;
  line-height: 1.55 !important;
}

@media (max-width: 1480px) {
  .document-archive-shelf,
  .archive-list {
    grid-template-columns: 1fr !important;
  }
}

/* Final compact archive folders: five small folder tiles per row on wide screens. */
.document-archive-shelf {
  grid-template-columns: repeat(5, minmax(126px, 1fr)) !important;
  gap: 14px 10px !important;
  height: 330px !important;
  max-height: 330px !important;
  padding: 12px 10px 8px 2px !important;
}

.document-archive-item.document-archive-folder-card {
  min-height: 126px !important;
  padding: 18px 10px 10px !important;
  border-radius: 6px 12px 12px 12px !important;
  overflow: visible !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035) !important;
  cursor: pointer !important;
}

.document-archive-item.document-archive-folder-card:focus-visible {
  border-color: var(--app-logo-blue) !important;
  box-shadow:
    0 0 0 3px rgba(23, 105, 224, 0.14),
    0 12px 28px rgba(23, 105, 224, 0.12) !important;
  outline: none !important;
}

.document-archive-item.document-archive-folder-card.is-loading {
  opacity: 0.62 !important;
  pointer-events: none !important;
}

.document-archive-item.document-archive-folder-card::before {
  position: absolute !important;
  top: -10px !important;
  left: -1px !important;
  width: 68px !important;
  height: 18px !important;
  border: 1px solid #dbe6f5 !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  background: #eef5ff !important;
  content: "" !important;
}

.document-archive-item.document-archive-folder-card::after {
  position: absolute !important;
  top: 7px !important;
  right: 10px !important;
  left: 10px !important;
  height: 1px !important;
  background: rgba(23, 105, 224, 0.14) !important;
  content: "" !important;
}

.archive-delete-button {
  display: inline-grid !important;
  place-items: center !important;
  width: 27px !important;
  min-width: 27px !important;
  height: 27px !important;
  min-height: 27px !important;
  padding: 0 !important;
  border: 1px solid rgba(23, 105, 224, 0.24) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  line-height: 1 !important;
}

.archive-delete-button:hover,
.archive-delete-button:focus-visible {
  border-color: #1769e0 !important;
  background: #1769e0 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.archive-delete-button:disabled {
  opacity: 0.45 !important;
  cursor: wait !important;
}

.archive-icon-trash {
  position: relative !important;
  display: block !important;
  width: 12px !important;
  height: 13px !important;
  border: 1.8px solid currentColor !important;
  border-top: 0 !important;
  border-radius: 0 0 2px 2px !important;
}

.archive-icon-trash::before {
  position: absolute !important;
  top: -4px !important;
  left: -2px !important;
  width: 14px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  content: "" !important;
}

.archive-icon-trash::after {
  position: absolute !important;
  top: -6px !important;
  left: 3px !important;
  width: 6px !important;
  height: 3px !important;
  border: 1.6px solid currentColor !important;
  border-bottom: 0 !important;
  border-radius: 2px 2px 0 0 !important;
  content: "" !important;
}

.document-archive-item.document-archive-folder-card .archive-folder-tab {
  display: none !important;
}

.document-archive-card-body {
  gap: 7px !important;
  grid-template-rows: auto auto 1fr !important;
}

.document-archive-card-body > strong {
  min-height: 36px !important;
  font-size: 0.76rem !important;
  font-weight: 690 !important;
  line-height: 1.35 !important;
  -webkit-line-clamp: 2 !important;
}

.document-archive-meta {
  display: grid !important;
  gap: 2px !important;
  font-size: 0.61rem !important;
  line-height: 1.25 !important;
}

.document-archive-meta span {
  padding-left: 9px !important;
}

.document-archive-meta span::before {
  top: 0.35em !important;
  width: 4px !important;
  height: 4px !important;
  border-width: 1px !important;
}

.document-archive-card-actions {
  display: grid !important;
  grid-template-columns: 27px !important;
  gap: 5px !important;
  align-self: end !important;
  align-items: center !important;
  justify-content: end !important;
}

.document-archive-folder-card .document-archive-action {
  min-height: 25px !important;
  padding: 0 7px !important;
  border-radius: 7px !important;
  font-size: 0.62rem !important;
  font-weight: 680 !important;
}

.document-archive-folder-card .document-archive-action.archive-icon-button {
  width: 27px !important;
  min-width: 27px !important;
  height: 27px !important;
  min-height: 27px !important;
  flex-basis: 27px !important;
}

.document-archive-folder-card .document-archive-action.is-open {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.document-archive-folder-card .document-archive-action.is-share {
  grid-column: 2 / 4 !important;
  grid-row: 1 !important;
}

.document-archive-folder-card .document-archive-action.is-download {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.document-archive-folder-card .document-archive-action.is-path {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: start !important;
}

.document-archive-folder-card .document-archive-action.is-delete {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.archive-icon-kakao {
  font-size: 0.58rem !important;
}

.archive-icon-download {
  transform: scale(0.82) !important;
}

.document-archive-add-card {
  min-height: 126px !important;
  padding: 16px 12px 12px !important;
  border-radius: 6px 12px 12px 12px !important;
  background: linear-gradient(180deg, #f9fcff 0%, #ffffff 100%) !important;
}

.document-archive-add-card::before {
  position: absolute !important;
  top: -10px !important;
  left: -1px !important;
  width: 68px !important;
  height: 18px !important;
  border: 1px dashed rgba(23, 105, 224, 0.34) !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  background: #eef5ff !important;
  content: "" !important;
}

/* Cover page added from the first option in step 2. */
.paper.app-report-page.cover-report-page .report-document {
  position: relative !important;
  justify-content: flex-start !important;
  min-height: var(--report-base-height, 1074.286px) !important;
  height: auto !important;
  padding: 76px 60px 56px !important;
  border: 1.25px solid #0b1535 !important;
}

.cover-created-date {
  position: absolute !important;
  top: 42px !important;
  left: 48px !important;
  color: #344054 !important;
  -webkit-text-fill-color: #344054 !important;
  font-size: 0.66rem !important;
  font-weight: 560 !important;
  letter-spacing: 0 !important;
}

.cover-document-head {
  display: grid !important;
  gap: 14px !important;
  margin: 132px 0 0 !important;
  text-align: left !important;
}

.cover-document-head span {
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.96rem !important;
  font-weight: 740 !important;
  letter-spacing: 0 !important;
}

.paper.app-report-page.cover-report-page .cover-document-head h3 {
  margin: 0 !important;
  color: #071226 !important;
  -webkit-text-fill-color: #071226 !important;
  font-size: 2.86rem !important;
  font-weight: 820 !important;
  line-height: 1.08 !important;
  word-break: keep-all !important;
}

.cover-document-head p {
  margin: 0 !important;
  color: #344054 !important;
  -webkit-text-fill-color: #344054 !important;
  font-size: 1.08rem !important;
  font-weight: 620 !important;
}

.cover-document-body {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  flex: 1 1 auto !important;
  margin: 64px 0 0 !important;
  width: 100% !important;
  min-height: 0 !important;
}

.cover-office-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
  min-width: 220px !important;
  max-width: 330px !important;
  margin: 0 0 42px auto !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(7, 18, 38, 0.82) !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  text-align: right !important;
  line-height: 1.35 !important;
}

.cover-office-info strong {
  display: block !important;
  color: #1f6fe5 !important;
  -webkit-text-fill-color: #1f6fe5 !important;
  width: 100% !important;
  margin: 0 0 4px !important;
  font-size: 0.78rem !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}

.cover-office-info span,
.cover-office-info.is-empty {
  display: block !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  line-height: 1.38 !important;
  letter-spacing: 0 !important;
}

.cover-office-info span:first-of-type {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  margin-top: 2px !important;
  font-size: 0.62rem !important;
  line-height: 1.42 !important;
}

.paper.app-report-page .report-document > .office-footer,
.large-preview-shell .paper.app-report-page .report-document > .office-footer,
.basic-report-preview .paper.app-report-page .report-document > .office-footer {
  display: none !important;
}

.paper.app-report-page.cover-report-page .cover-office-info strong,
.large-preview-shell .paper.app-report-page.cover-report-page .cover-office-info strong,
.basic-report-preview .paper.app-report-page.cover-report-page .cover-office-info strong {
  color: #1f6fe5 !important;
  -webkit-text-fill-color: #1f6fe5 !important;
}

.paper.app-report-page.cover-report-page .cover-office-info span,
.large-preview-shell .paper.app-report-page.cover-report-page .cover-office-info span,
.basic-report-preview .paper.app-report-page.cover-report-page .cover-office-info span {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

.archive-add-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}

.document-archive-add-card strong {
  font-size: 0.82rem !important;
}

.document-archive-add-card small {
  font-size: 0.66rem !important;
  line-height: 1.42 !important;
}

.archive-list {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
}

.archive-list .document-archive-item.document-archive-folder-card {
  min-height: 132px !important;
}

@media (max-width: 1320px) {
  .document-archive-shelf {
    grid-template-columns: repeat(4, minmax(126px, 1fr)) !important;
  }
}

@media (max-width: 1060px) {
  .document-archive-shelf,
  .archive-list {
    grid-template-columns: repeat(3, minmax(126px, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .document-archive-shelf,
  .archive-list {
    grid-template-columns: repeat(2, minmax(126px, 1fr)) !important;
  }
}

/* Use downloaded SVG assets for controls instead of CSS-drawn symbols. */
.archive-svg-icon,
.map-control-icon,
.map-canvas .map-layer-tab .layer-icon {
  display: inline-block !important;
  width: 17px !important;
  height: 17px !important;
  background: currentColor !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.archive-svg-icon::before,
.archive-svg-icon::after,
.map-control-icon::before,
.map-control-icon::after,
.map-canvas .map-layer-tab .layer-icon::before,
.map-canvas .map-layer-tab .layer-icon::after {
  content: none !important;
}

.archive-icon-download {
  mask: url("./assets/icon-download.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-download.svg") center / contain no-repeat !important;
  transform: none !important;
}

.archive-icon-share {
  width: 16px !important;
  height: 16px !important;
  mask: url("./assets/icon-share.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-share.svg") center / contain no-repeat !important;
}

.archive-icon-trash {
  width: 16px !important;
  height: 16px !important;
  mask: url("./assets/icon-trash.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-trash.svg") center / contain no-repeat !important;
}

.map-canvas .map-layer-tab .layer-icon {
  width: 21px !important;
  height: 21px !important;
  mask: url("./assets/icon-layers-2.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-layers-2.svg") center / contain no-repeat !important;
}

.map-canvas .map-location-button .map-pinned-icon {
  width: 24px !important;
  height: 24px !important;
  mask: url("./assets/icon-map-pinned.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-map-pinned.svg") center / contain no-repeat !important;
}

.map-canvas .map-location-button span {
  border: 0 !important;
}

/* Final stabilization: align cadastral and current-location map controls. */
.map-canvas .map-actions {
  right: 18px !important;
  bottom: 18px !important;
  width: 58px !important;
  gap: 10px !important;
}

.map-canvas .map-layer-tab,
.map-canvas .map-location-button {
  width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 16px !important;
  padding: 0 !important;
}

.map-canvas .map-layer-tab {
  gap: 4px !important;
}

.map-canvas .map-location-button {
  right: 18px !important;
  bottom: 86px !important;
}

.map-canvas .map-layer-tab .layer-icon,
.map-canvas .map-location-button .map-pinned-icon {
  width: 22px !important;
  height: 22px !important;
}

.map-canvas .map-layer-tab span:last-child {
  font-size: 0.7rem !important;
  line-height: 1 !important;
}

@media (max-width: 920px) {
  .map-canvas .map-actions {
    right: 12px !important;
    bottom: 12px !important;
    width: 54px !important;
  }

  .map-canvas .map-layer-tab,
  .map-canvas .map-location-button {
    width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
  }

  .map-canvas .map-location-button {
    right: 12px !important;
    bottom: 76px !important;
  }

  .map-canvas .map-layer-tab .layer-icon,
  .map-canvas .map-location-button .map-pinned-icon {
    width: 21px !important;
    height: 21px !important;
  }
}

/* Cadastre output should read like a full A4 map sheet. */
.paper.app-report-page.cadastre-report-page .report-cadastre-document {
  padding: 30px 36px 38px !important;
}

.paper.app-report-page.cadastre-report-page .report-document-head {
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
}

.paper.app-report-page.cadastre-report-page .report-document-head h3 {
  font-size: 1.72rem !important;
}

.paper.app-report-page.cadastre-report-page .report-document-head p {
  font-size: 0.72rem !important;
}

.paper.app-report-page.cadastre-report-page .report-field-grid {
  flex: 0 0 auto !important;
  border-radius: 6px !important;
}

.paper.app-report-page.cadastre-report-page .report-cell {
  min-height: 29px !important;
  font-size: 0.72rem !important;
}

.paper.app-report-page.cadastre-report-page .report-cell strong,
.paper.app-report-page.cadastre-report-page .report-cell span {
  padding: 5px 8px !important;
  line-height: 1.18 !important;
}

.paper.app-report-page.cadastre-report-page .report-map {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 10px 0 10px !important;
  border-radius: 4px !important;
  background: #fbfdff !important;
}

.paper.app-report-page.cadastre-report-page .report-map figcaption {
  top: 10px !important;
  left: 10px !important;
  min-height: 24px !important;
  padding: 0 10px !important;
  font-size: 0.64rem !important;
}

.paper.app-report-page.cadastre-report-page .report-map img {
  object-fit: contain !important;
  object-position: center !important;
}

.paper.app-report-page.cadastre-report-page .report-footer {
  padding-top: 8px !important;
  font-size: 0.62rem !important;
}

/* Final step title rail: keep 1, 2, 3, 4 badges and text on the left edge. */
.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  color: #0b1535 !important;
  text-align: left !important;
}

.panel-title-block h1 .step-number,
.research-drawer > .panel-section > .section-label .step-number,
.info-viewer-panel > .section-label .step-number,
.viewer-title-block #documentTitle .step-number {
  flex: 0 0 18px !important;
  margin-right: 0 !important;
  transform: translateY(0) !important;
}

.viewer-title-block,
.viewer-header {
  justify-items: start !important;
  text-align: left !important;
}

/* Final vertical rail: step 2 and 3 titles sit on the same top line as 1 and 4. */
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label {
  height: 118px !important;
  min-height: 118px !important;
  align-items: flex-start !important;
  padding-top: 30px !important;
}

.research-drawer > .panel-section > .section-label .step-number,
.info-viewer-panel > .section-label .step-number {
  margin-top: 4px !important;
}

/* Document archive folders need clear row spacing so folder tabs never overlap. */
.document-archive-shelf,
.archive-list {
  row-gap: 34px !important;
  column-gap: 10px !important;
  align-content: start !important;
}

.document-archive-shelf {
  height: 410px !important;
  max-height: 410px !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  overflow-y: auto !important;
}

.document-archive-item.document-archive-folder-card,
.document-archive-add-card {
  margin-top: 6px !important;
}

/* Add-folder tile: show as a clean blue dashed rectangle, not a folder tab. */
.document-archive-add-card {
  border: 1.5px dashed rgba(23, 105, 224, 0.62) !important;
  border-radius: 8px !important;
  background: rgba(246, 250, 255, 0.78) !important;
  box-shadow: none !important;
}

.document-archive-add-card::before {
  display: none !important;
  content: none !important;
}

/* Archive folder action icon: keep only delete on each folder card. */
.document-archive-card-actions {
  display: grid !important;
  grid-template-columns: 27px !important;
  gap: 6px !important;
  justify-content: end !important;
}

.document-archive-folder-card .document-archive-action.archive-icon-button {
  display: inline-grid !important;
  grid-row: 1 !important;
  place-items: center !important;
  width: 27px !important;
  min-width: 27px !important;
  height: 27px !important;
  min-height: 27px !important;
  padding: 0 !important;
  border: 1px solid var(--app-logo-blue) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: 0 !important;
}

.document-archive-folder-card .document-archive-action.is-share {
  grid-column: 1 !important;
}

.document-archive-folder-card .document-archive-action.is-download {
  grid-column: 2 !important;
}

.document-archive-folder-card .document-archive-action.is-delete {
  grid-column: 1 !important;
}

.document-archive-folder-card .document-archive-action.is-share.archive-icon-button,
.document-archive-folder-card .document-archive-action.is-download.archive-icon-button,
.document-archive-folder-card .document-archive-action.is-delete.archive-icon-button {
  border-color: var(--app-logo-blue) !important;
  background: #ffffff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

.document-archive-folder-card .document-archive-action.archive-icon-button:hover,
.document-archive-folder-card .document-archive-action.archive-icon-button:focus-visible {
  border-color: var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* User supplied SVG icons for action buttons. */
#printButton,
#pdfSaveButton,
#deletePageButton,
#bookmarkReportButton,
#saveReportButton,
#exportPdfButton,
.map-search button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

#printButton::before,
#pdfSaveButton::before,
#deletePageButton::before,
#bookmarkReportButton::before,
#saveReportButton::before,
#exportPdfButton::before,
.map-search button::before {
  display: inline-block !important;
  flex: 0 0 15px !important;
  width: 15px !important;
  height: 15px !important;
  background: currentColor !important;
  content: "" !important;
}

#printButton::before {
  mask: url("./assets/icon-printer.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-printer.svg") center / contain no-repeat !important;
}

#deletePageButton::before {
  mask: url("./assets/icon-trash.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-trash.svg") center / contain no-repeat !important;
}

#bookmarkReportButton::before,
#saveReportButton::before {
  mask: url("./assets/icon-folder-down.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-folder-down.svg") center / contain no-repeat !important;
}

#pdfSaveButton::before,
#exportPdfButton::before {
  mask: url("./assets/icon-download.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-download.svg") center / contain no-repeat !important;
}

.map-search button::before {
  display: none !important;
  flex-basis: 0 !important;
  width: 0 !important;
  height: 0 !important;
  content: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}

.address-search::before,
.map-search::before {
  width: 16px !important;
  height: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--app-logo-blue) !important;
  mask: url("./assets/icon-search.svg") center / contain no-repeat !important;
  -webkit-mask: url("./assets/icon-search.svg") center / contain no-repeat !important;
  transform: translateY(-50%) !important;
}

.address-search::after,
.map-search::after {
  display: none !important;
  content: none !important;
}

/* Map search placement: keep the address search on the right and remove +/- controls. */
.map-canvas .map-search,
.map-canvas .address-search {
  top: 24px !important;
  right: 24px !important;
  left: auto !important;
  width: min(420px, calc(100% - 48px)) !important;
  max-width: calc(100% - 48px) !important;
}

.map-canvas .address-search-results {
  top: 82px !important;
  right: 24px !important;
  left: auto !important;
  width: min(420px, calc(100% - 48px)) !important;
  max-width: calc(100% - 48px) !important;
}

.map-zoom-controls {
  display: none !important;
}

/* Opinion page: saved text from the opinion modal is shown on an A4 sheet. */
.paper.opinion-report-page .opinion-document {
  display: flex !important;
  height: var(--report-base-height, 1074px) !important;
  min-height: var(--report-base-height, 1074px) !important;
  flex-direction: column !important;
  gap: 18px !important;
  overflow: hidden !important;
  padding: calc(38px * var(--report-scale, 1)) calc(44px * var(--report-scale, 1)) calc(34px * var(--report-scale, 1)) !important;
}

.paper.opinion-report-page .opinion-document-head {
  margin-bottom: 4px !important;
}

.paper.opinion-report-page .opinion-sheet-body {
  display: flex !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

.paper.opinion-report-page .opinion-editor {
  --opinion-line-step: calc(36px * var(--report-scale, 1));
  width: 100% !important;
  min-height: min(
    calc(780px * var(--report-scale, 1)),
    calc((var(--opinion-line-count, 18) + 2) * var(--opinion-line-step))
  ) !important;
  max-height: calc(780px * var(--report-scale, 1)) !important;
  padding: calc(17px * var(--report-scale, 1)) calc(24px * var(--report-scale, 1)) !important;
  border: 1px solid rgba(23, 105, 224, 0.22) !important;
  border-radius: 8px !important;
  background:
    repeating-linear-gradient(
      to bottom,
      #ffffff 0,
      #ffffff calc(var(--opinion-line-step) - 1px),
      rgba(23, 105, 224, 0.16) calc(var(--opinion-line-step) - 1px),
      rgba(23, 105, 224, 0.16) var(--opinion-line-step)
    ) !important;
  background-position-y: calc(10px * var(--report-scale, 1)) !important;
  color: #111827 !important;
  font-size: calc(15px * var(--report-scale, 1)) !important;
  font-weight: 500 !important;
  line-height: var(--opinion-line-step) !important;
  white-space: pre-wrap !important;
}

.paper.opinion-report-page .opinion-sheet-body:not(.has-opinion-images) .opinion-editor {
  min-height: calc(780px * var(--report-scale, 1)) !important;
}

.paper.opinion-report-page .opinion-editor[contenteditable="true"] {
  caret-color: var(--app-logo-blue) !important;
}

.paper.opinion-report-page .opinion-editor[contenteditable="true"]:focus {
  outline: 2px solid rgba(23, 105, 224, 0.42) !important;
  outline-offset: 4px !important;
}

.paper.opinion-report-page .opinion-editor:empty::before {
  color: #8a97aa !important;
  content: attr(data-placeholder) !important;
}

/* Clean header request: no copy under step 1, no decorative bar under step 4. */
.library .panel-title-block .panel-copy {
  display: none !important;
}

.viewer-header::after {
  display: none !important;
  content: none !important;
}

/* Archive folders should keep their card size on very wide screens. */
.document-archive-shelf {
  grid-template-columns: repeat(5, minmax(188px, 230px)) !important;
  column-gap: 18px !important;
  justify-content: start !important;
}

.document-archive-item.document-archive-folder-card,
.document-archive-add-card {
  width: 100% !important;
  max-width: 230px !important;
}

.document-archive-card-actions {
  grid-template-columns: 23px !important;
  gap: 5px !important;
  justify-content: end !important;
  justify-self: end !important;
  width: 100% !important;
}

.document-archive-folder-card .document-archive-action.archive-icon-button {
  width: 23px !important;
  min-width: 23px !important;
  height: 23px !important;
  min-height: 23px !important;
}

.document-archive-folder-card .archive-svg-icon {
  width: 12px !important;
  height: 12px !important;
}

@media (max-width: 1500px) {
  .document-archive-shelf {
    grid-template-columns: repeat(4, minmax(188px, 230px)) !important;
  }
}

@media (max-width: 1120px) {
  .document-archive-shelf {
    grid-template-columns: repeat(3, minmax(188px, 230px)) !important;
  }
}

@media (max-width: 760px) {
  .document-archive-shelf {
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
  }

  .document-archive-item.document-archive-folder-card,
  .document-archive-add-card {
    max-width: none !important;
  }
}

/* Step headings sit in the middle of each top header band. */
.library .panel-title-block,
.library .viewer-header,
.library .research-drawer > .panel-section > .section-label,
.library .info-viewer-panel > .section-label {
  min-height: var(--panel-header-height, 118px) !important;
}

.library .panel-title-block {
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.library .panel-title-block h1 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.library .research-drawer > .panel-section > .section-label,
.library .info-viewer-panel > .section-label {
  height: var(--panel-header-height, 118px) !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.library .research-drawer > .panel-section > .section-label .step-number,
.library .info-viewer-panel > .section-label .step-number {
  margin-top: 0 !important;
}

.library .viewer-header {
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.library .viewer-title-block {
  display: flex !important;
  align-items: center !important;
  min-height: 0 !important;
}

.library .viewer-title-block #documentKind {
  display: none !important;
}

.library .viewer-title-block #documentTitle {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Same vertical centering for step headings outside the left map panel. */
.panel-title-block,
.viewer-header,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label {
  min-height: var(--panel-header-height, 118px) !important;
}

.panel-title-block {
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.panel-title-block h1 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label {
  height: var(--panel-header-height, 118px) !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.research-drawer > .panel-section > .section-label .step-number,
.info-viewer-panel > .section-label .step-number {
  margin-top: 0 !important;
}

.viewer-header {
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.viewer-title-block {
  display: flex !important;
  align-items: center !important;
  min-height: 0 !important;
}

.viewer-title-block #documentKind {
  display: none !important;
}

.viewer-title-block #documentTitle {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Archive shelf: keep folder cards compact, but use the empty width on large screens. */
.document-archive-shelf {
  grid-template-columns: repeat(auto-fill, minmax(188px, 230px)) !important;
  column-gap: 18px !important;
  row-gap: 34px !important;
  justify-content: start !important;
}

.document-archive-card-body {
  display: grid !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.document-archive-item.document-archive-folder-card {
  grid-template-columns: 1fr !important;
}

.document-archive-card-actions {
  grid-template-columns: 23px !important;
  gap: 5px !important;
  justify-content: end !important;
  justify-self: stretch !important;
  align-self: end !important;
  width: 100% !important;
  margin-top: auto !important;
}


@media (max-width: 760px) {
  
}

/* Keep step 2, 3, and 4 title text on the same vertical line as step 1. */
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-header {
  height: 124px !important;
  min-height: 124px !important;
}

.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label {
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
}


.viewer-title-block,
.viewer-title-block #documentTitle {
  line-height: 1 !important;
}

/* Step 3 preview for the new surrounding-environment AI report. */
.info-viewer .environment-ai-message {
  display: grid !important;
  gap: 8px !important;
  min-height: 112px !important;
  align-content: center !important;
  padding: 18px 0 !important;
  border-top: 1px solid rgba(23, 105, 224, 0.24) !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.24) !important;
  background: #ffffff !important;
  text-align: left !important;
}

.info-viewer .environment-ai-message strong {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-size: 0.98rem !important;
  font-weight: 760 !important;
}

.info-viewer .environment-ai-message span {
  color: #52627a !important;
  -webkit-text-fill-color: #52627a !important;
  font-size: 0.82rem !important;
  font-weight: 520 !important;
  line-height: 1.55 !important;
}

.info-viewer .environment-ai-list {
  display: grid !important;
  gap: 0 !important;
  border-top: 1px solid rgba(23, 105, 224, 0.24) !important;
}

.info-viewer .environment-ai-item {
  display: grid !important;
  grid-template-columns: minmax(92px, 0.82fr) minmax(0, 1.65fr) !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 13px 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.18) !important;
}

.info-viewer .environment-ai-item span {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

.info-viewer .environment-ai-item strong {
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-size: 0.84rem !important;
  font-weight: 560 !important;
  line-height: 1.6 !important;
  word-break: keep-all !important;
}

.info-viewer .environment-ai-item .environment-ai-name {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-weight: 680 !important;
}

.paper.ai-report-page .report-document {
  background: #ffffff !important;
}

.paper.ai-report-page .report-cell strong {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
}

.paper.ai-report-page .report-cell .environment-ai-name {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  font-weight: 680 !important;
}

/* Enforcement calculator report page in the basic report preview. */
.paper.app-report-page.enforcement-report-page .report-document {
  gap: calc(11px * var(--report-scale, 1)) !important;
}

.paper.app-report-page.enforcement-report-page .report-document-head {
  margin-bottom: calc(8px * var(--report-scale, 1)) !important;
}

.paper.app-report-page.enforcement-report-page .report-document-head p {
  max-width: calc(280px * var(--report-scale, 1)) !important;
}

.enforcement-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: calc(7px * var(--report-scale, 1)) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.enforcement-summary > div {
  display: grid !important;
  gap: calc(4px * var(--report-scale, 1)) !important;
  min-height: calc(62px * var(--report-scale, 1)) !important;
  padding: calc(11px * var(--report-scale, 1)) calc(13px * var(--report-scale, 1)) !important;
  border: 1px solid #bfd6f8 !important;
  border-radius: calc(10px * var(--report-scale, 1)) !important;
  background: #fbfdff !important;
}

.enforcement-summary strong {
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: calc(0.84rem * var(--report-scale, 1)) !important;
  font-weight: 640 !important;
}

.enforcement-summary span {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: calc(0.88rem * var(--report-scale, 1)) !important;
  font-weight: 420 !important;
  line-height: 1.35 !important;
}

.enforcement-report-section {
  display: grid !important;
  gap: calc(5px * var(--report-scale, 1)) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.paper.app-report-page.enforcement-report-page .enforcement-report-section h4 {
  margin: calc(2px * var(--report-scale, 1)) 0 0 !important;
  color: #071226 !important;
  -webkit-text-fill-color: #071226 !important;
  font-size: calc(1.04rem * var(--report-scale, 1)) !important;
  font-weight: 640 !important;
  letter-spacing: 0 !important;
}

.paper.app-report-page.enforcement-report-page .report-field-grid {
  border-color: #bfd6f8 !important;
  border-radius: calc(8px * var(--report-scale, 1)) !important;
}

.paper.app-report-page.enforcement-report-page .report-cell {
  min-height: calc(42px * var(--report-scale, 1)) !important;
  font-size: calc(0.9rem * var(--report-scale, 1)) !important;
}

.paper.app-report-page.enforcement-report-page .report-cell strong {
  background: #f7fbff !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: calc(0.86rem * var(--report-scale, 1)) !important;
}

.paper.app-report-page.enforcement-report-page .report-cell span {
  font-size: calc(0.9rem * var(--report-scale, 1)) !important;
}

.enforcement-result-box {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: calc(4px * var(--report-scale, 1)) calc(11px * var(--report-scale, 1)) !important;
  margin-top: calc(2px * var(--report-scale, 1)) !important;
  min-height: calc(58px * var(--report-scale, 1)) !important;
  padding: calc(11px * var(--report-scale, 1)) calc(13px * var(--report-scale, 1)) !important;
  border: 1px solid #bfd6f8 !important;
  border-radius: calc(10px * var(--report-scale, 1)) !important;
  background: #f8fbff !important;
}

.enforcement-result-box strong {
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: calc(0.9rem * var(--report-scale, 1)) !important;
  font-weight: 650 !important;
}

.enforcement-result-box span {
  color: #071226 !important;
  -webkit-text-fill-color: #071226 !important;
  font-size: calc(0.92rem * var(--report-scale, 1)) !important;
  font-weight: 520 !important;
}

.enforcement-result-box p {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  color: #667085 !important;
  -webkit-text-fill-color: #667085 !important;
  font-size: calc(0.78rem * var(--report-scale, 1)) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

.enforcement-record-section {
  display: grid !important;
  flex: 1 1 auto !important;
  grid-template-rows: auto minmax(calc(100px * var(--report-scale, 1)), 1fr) !important;
  gap: calc(5px * var(--report-scale, 1)) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.paper.app-report-page.enforcement-report-page .enforcement-record-section h4 {
  margin: 0 !important;
  color: #071226 !important;
  -webkit-text-fill-color: #071226 !important;
  font-size: calc(1.04rem * var(--report-scale, 1)) !important;
  font-weight: 640 !important;
}

.enforcement-record-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(calc(48px * var(--report-scale, 1)), auto) !important;
  overflow: hidden !important;
  border: 1px solid #bfd6f8 !important;
  border-radius: calc(10px * var(--report-scale, 1)) !important;
  background: #ffffff !important;
}

.enforcement-record-grid > div {
  display: grid !important;
  align-content: start !important;
  gap: calc(4px * var(--report-scale, 1)) !important;
  padding: calc(11px * var(--report-scale, 1)) calc(13px * var(--report-scale, 1)) !important;
  border-right: 1px solid #d9e2ee !important;
  border-bottom: 1px solid #d9e2ee !important;
}

.enforcement-record-grid > div:nth-child(2n) {
  border-right: 0 !important;
}

.enforcement-record-grid > div:last-child {
  grid-column: 1 / -1 !important;
  min-height: calc(76px * var(--report-scale, 1)) !important;
  border-bottom: 0 !important;
}

.enforcement-record-grid strong {
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: calc(0.9rem * var(--report-scale, 1)) !important;
  font-weight: 650 !important;
}

.enforcement-record-grid span {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: calc(0.9rem * var(--report-scale, 1)) !important;
  font-weight: 420 !important;
  line-height: 1.45 !important;
}

/* Office info moved into step 2: it opens a form, not a report-output toggle. */
.research-drawer .calculator-launch-card {
  border-color: rgba(23, 105, 224, 0.28) !important;
  background: #ffffff !important;
  color: inherit !important;
  text-decoration: none !important;
  font-family: inherit !important;
  text-align: left !important;
}

.research-drawer .calculator-launch-card:hover,
.research-drawer .calculator-launch-card:focus-visible {
  border-color: var(--app-logo-blue) !important;
  background: #f8fbff !important;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.12) !important;
}

.research-drawer .calculator-launch-card .summary-title-action {
  border-color: rgba(23, 105, 224, 0.2) !important;
  background: rgba(23, 105, 224, 0.08) !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
}

/* Calculator modal: open the existing calculator inside this workspace. */
#calculatorModal.modal-backdrop {
  z-index: 82 !important;
  padding: 24px !important;
  background: rgba(248, 251, 255, 0.72) !important;
  backdrop-filter: blur(5px) !important;
}

#calculatorModal .calculator-modal {
  display: grid !important;
  grid-template-rows: 74px minmax(0, 1fr) !important;
  width: min(96vw, 1120px) !important;
  height: min(88vh, 820px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 105, 224, 0.42) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18) !important;
}

#calculatorModal .modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 68px !important;
  padding: 0 24px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.28) !important;
  background: #ffffff !important;
}

#calculatorModal .calculator-modal-title {
  display: grid !important;
  gap: 4px !important;
}

#calculatorModal .modal-header h3 {
  margin: 0 !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-size: 1.18rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
}

#calculatorModal .calculator-modal-title p {
  margin: 0 0 0 32px !important;
  color: #65758b !important;
  -webkit-text-fill-color: #65758b !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

#calculatorModal .modal-header h3::before {
  display: inline-grid !important;
  width: 21px !important;
  height: 21px !important;
  margin-right: 9px !important;
  border-radius: 999px !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  place-items: center !important;
  content: "￦" !important;
  font-size: 0.68rem !important;
  font-weight: 760 !important;
  vertical-align: 2px !important;
}

#calculatorModal .calculator-modal-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#calculatorModal .calculator-report-transfer {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  border: 1px solid var(--app-logo-blue) !important;
  border-radius: 8px !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#calculatorModal .calculator-report-transfer:hover,
#calculatorModal .calculator-report-transfer:focus-visible {
  background: #0d5fd1 !important;
  border-color: #0d5fd1 !important;
}

#calculatorModal .calculator-modal-close {
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid rgba(23, 105, 224, 0.22) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  place-items: center !important;
  font-size: 1.2rem !important;
  font-weight: 420 !important;
  line-height: 1 !important;
}

#calculatorFrame {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: #ffffff !important;
}

#coverModal.modal-backdrop {
  z-index: 83 !important;
  padding: 28px !important;
  background: rgba(248, 251, 255, 0.72) !important;
  backdrop-filter: blur(5px) !important;
}

#coverModal .cover-modal {
  display: grid !important;
  grid-template-rows: 74px minmax(0, 1fr) !important;
  width: min(94vw, 720px) !important;
  height: min(86vh, 780px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 105, 224, 0.42) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18) !important;
}

#coverModal .modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 68px !important;
  gap: 18px !important;
  padding: 0 24px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.28) !important;
  background: #ffffff !important;
}

#coverModal .cover-modal-title {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

#coverModal .modal-header h3 {
  margin: 0 !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-size: 1.18rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
}

#coverModal .modal-header h3::before {
  display: inline-grid !important;
  width: 21px !important;
  height: 21px !important;
  margin-right: 9px !important;
  border-radius: 999px !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  place-items: center !important;
  content: "1" !important;
  font-size: 0.68rem !important;
  font-weight: 760 !important;
  vertical-align: 2px !important;
}

#coverModal .cover-modal-title p {
  margin: 0 0 0 32px !important;
  color: #65758b !important;
  -webkit-text-fill-color: #65758b !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

#coverModal .cover-modal-actions {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
}

#coverModal .cover-report-transfer {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  border: 1px solid var(--app-logo-blue) !important;
  border-radius: 8px !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#coverModal .cover-report-transfer:hover,
#coverModal .cover-report-transfer:focus-visible {
  background: #0d5fd1 !important;
  border-color: #0d5fd1 !important;
}

#coverModal .cover-modal-close {
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid rgba(23, 105, 224, 0.22) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  place-items: center !important;
  font-size: 1.2rem !important;
  font-weight: 420 !important;
  line-height: 1 !important;
}

#coverModal .cover-modal-body {
  display: grid !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 24px !important;
  background: #f8fbff !important;
  place-items: center !important;
}

#coverModal .cover-modal-preview {
  display: grid !important;
  width: min(100%, 390px) !important;
  place-items: center !important;
}

#coverModal .cover-modal-sheet {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  aspect-ratio: 210 / 297 !important;
  flex-direction: column !important;
  padding: 34px 30px 32px !important;
  border: 1.5px solid #0b1535 !important;
  background: #ffffff !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12) !important;
}

#coverModal .cover-modal-sheet time {
  position: absolute !important;
  top: 24px !important;
  left: 28px !important;
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
  font-size: 0.62rem !important;
  font-weight: 520 !important;
}

#coverModal .cover-modal-sheet-title {
  display: grid !important;
  gap: 10px !important;
  margin: 118px auto 0 !important;
  text-align: center !important;
}

#coverModal .cover-modal-sheet-title span {
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.82rem !important;
  font-weight: 740 !important;
}

#coverModal .cover-modal-sheet-title strong {
  max-width: 300px !important;
  color: #071226 !important;
  -webkit-text-fill-color: #071226 !important;
  font-size: 1.42rem !important;
  font-weight: 820 !important;
  line-height: 1.18 !important;
  word-break: keep-all !important;
}

#coverModal .cover-modal-sheet-title em {
  color: #344054 !important;
  -webkit-text-fill-color: #344054 !important;
  font-size: 0.9rem !important;
  font-style: normal !important;
  font-weight: 620 !important;
}

#coverModal .cover-modal-office {
  display: grid !important;
  gap: 2px !important;
  max-width: 300px !important;
  margin: auto 0 42px auto !important;
  padding-top: 9px !important;
  border-top: 1px solid rgba(23, 105, 224, 0.55) !important;
  text-align: right !important;
  line-height: 1.3 !important;
}

#coverModal .cover-modal-office strong {
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.5rem !important;
  font-weight: 720 !important;
  line-height: 1.22 !important;
  margin: 0 0 2px !important;
}

#coverModal .cover-modal-office span,
#coverModal .cover-modal-office.is-empty {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: 0.42rem !important;
  font-weight: 500 !important;
  line-height: 1.32 !important;
}

#opinionModal.modal-backdrop {
  z-index: 84 !important;
  padding: 28px !important;
  background: rgba(248, 251, 255, 0.72) !important;
  backdrop-filter: blur(5px) !important;
}

#opinionModal .opinion-modal {
  display: grid !important;
  grid-template-rows: 74px minmax(0, 1fr) !important;
  width: min(94vw, 780px) !important;
  height: min(84vh, 720px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 105, 224, 0.42) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18) !important;
}

#opinionModal .modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 68px !important;
  gap: 18px !important;
  padding: 0 24px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.28) !important;
  background: #ffffff !important;
}

#opinionModal .opinion-modal-title {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

#opinionModal .modal-header h3 {
  margin: 0 !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-size: 1.18rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
}

#opinionModal .modal-header h3::before {
  display: inline-grid !important;
  width: 21px !important;
  height: 21px !important;
  margin-right: 9px !important;
  border-radius: 999px !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  place-items: center !important;
  content: "✎" !important;
  font-size: 0.67rem !important;
  font-weight: 760 !important;
  vertical-align: 2px !important;
}

#opinionModal .opinion-modal-title p {
  margin: 0 0 0 32px !important;
  color: #65758b !important;
  -webkit-text-fill-color: #65758b !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

#opinionModal .opinion-modal-actions {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
}

#opinionModal .opinion-modal-save,
#opinionModal .opinion-report-transfer {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#opinionModal .opinion-modal-save {
  border: 1px solid rgba(23, 105, 224, 0.32) !important;
  background: #ffffff !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
}

#opinionModal .opinion-report-transfer {
  border: 1px solid var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#opinionModal .opinion-report-transfer:hover,
#opinionModal .opinion-report-transfer:focus-visible {
  background: #0d5fd1 !important;
  border-color: #0d5fd1 !important;
}

#opinionModal .opinion-modal-close {
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid rgba(23, 105, 224, 0.22) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  place-items: center !important;
  font-size: 1.2rem !important;
  font-weight: 420 !important;
  line-height: 1 !important;
}

#opinionModal .opinion-modal-body {
  min-height: 0 !important;
  padding: 24px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

#opinionModal .opinion-modal-label {
  display: grid !important;
  height: 100% !important;
  gap: 10px !important;
}

#opinionModal .opinion-modal-label-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-width: 0 !important;
}

#opinionModal .opinion-modal-label span {
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.8rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
}

#opinionModal .opinion-save-message {
  margin: 0 !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.76rem !important;
  font-weight: 560 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#opinionModal .opinion-save-message[hidden] {
  display: none !important;
}

#opinionDraftInput {
  --opinion-modal-line-step: 36px;
  --opinion-modal-line-offset: 14px;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  resize: none !important;
  padding: 17px 22px !important;
  border: 1px solid rgba(23, 105, 224, 0.34) !important;
  border-radius: 0 !important;
  background:
    repeating-linear-gradient(
      to bottom,
      #ffffff 0,
      #ffffff calc(var(--opinion-modal-line-step) - 1px),
      rgba(23, 105, 224, 0.13) calc(var(--opinion-modal-line-step) - 1px),
      rgba(23, 105, 224, 0.13) var(--opinion-modal-line-step)
    ) !important;
  background-size: 100% var(--opinion-modal-line-step) !important;
  background-position-y: var(--opinion-modal-line-offset) !important;
  background-attachment: local !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-family: inherit !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: var(--opinion-modal-line-step) !important;
  outline: 0 !important;
}

#opinionDraftInput:focus {
  border-color: var(--app-logo-blue) !important;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 224, 0.18) !important;
}

#opinionModal .opinion-modal-body {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 12px !important;
}

#opinionModal .opinion-modal-label {
  height: auto !important;
  min-height: 0 !important;
}

#opinionModal .opinion-image-tools {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

#opinionModal .opinion-image-add {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  border: 1px solid rgba(23, 105, 224, 0.34) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.78rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

#opinionModal .opinion-image-preview {
  display: flex !important;
  min-height: 82px !important;
  max-height: 118px !important;
  min-width: 0 !important;
  gap: 8px !important;
  align-items: flex-start !important;
  padding: 8px 10px !important;
  border: 1px dashed rgba(23, 105, 224, 0.28) !important;
  background: #f8fbff !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin !important;
}

#opinionModal .opinion-image-empty {
  align-self: center !important;
  color: #728198 !important;
  -webkit-text-fill-color: #728198 !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
}

#opinionModal .opinion-image-card {
  position: relative !important;
  flex: 0 0 92px !important;
  min-height: 92px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 105, 224, 0.24) !important;
  background: #f8fbff !important;
}

#opinionModal .opinion-image-card img {
  display: block !important;
  width: 100% !important;
  height: 56px !important;
  object-fit: contain !important;
  background: #ffffff !important;
}

#opinionModal .opinion-image-card figcaption {
  position: static !important;
  padding: 4px 6px 0 !important;
  overflow: hidden !important;
  color: #627086 !important;
  -webkit-text-fill-color: #627086 !important;
  font-size: 0.58rem !important;
  font-weight: 620 !important;
  text-overflow: ellipsis !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}

#opinionModal .opinion-image-size-controls {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 5px 5px !important;
  background: #ffffff !important;
}

#opinionModal .opinion-image-size-controls button {
  display: grid !important;
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border: 1px solid rgba(23, 105, 224, 0.34) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  place-items: center !important;
  font-size: 0.68rem !important;
  font-weight: 760 !important;
  line-height: 1 !important;
}

#opinionModal .opinion-image-size-controls span {
  overflow: hidden !important;
  color: #66758c !important;
  -webkit-text-fill-color: #66758c !important;
  font-size: 0.62rem !important;
  font-weight: 620 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

#opinionModal .opinion-image-remove {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  display: grid !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 999px !important;
  background: rgba(23, 105, 224, 0.92) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  place-items: center !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

.paper.opinion-report-page .opinion-sheet-body {
  display: grid !important;
  align-content: start !important;
  gap: 16px !important;
  max-height: calc(872px * var(--report-scale, 1)) !important;
  overflow: hidden !important;
}

.paper.opinion-report-page .opinion-report-images {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.paper.opinion-report-page .opinion-report-image {
  width: var(--opinion-image-size, 100%) !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 105, 224, 0.22) !important;
  background: #ffffff !important;
}

.paper.opinion-report-page .opinion-report-image img {
  display: block !important;
  width: 100% !important;
  max-height: calc(210px * var(--report-scale, 1)) !important;
  object-fit: contain !important;
  background: #ffffff !important;
}

.paper.opinion-report-page .opinion-report-image figcaption {
  padding: 6px 8px !important;
  overflow: hidden !important;
  color: #627086 !important;
  -webkit-text-fill-color: #627086 !important;
  font-size: 0.58rem !important;
  font-weight: 520 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.research-drawer .office-summary-card {
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
  min-height: 42px !important;
  border-color: rgba(23, 105, 224, 0.22) !important;
  background: #ffffff !important;
}

.research-drawer .office-summary-card .tool-icon {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  opacity: 0.92 !important;
}

.research-drawer .office-summary-card strong {
  grid-column: 2 !important;
}

.research-drawer .office-summary-card > span:not(.summary-output-check) {
  display: none !important;
}

.research-drawer .office-summary-card:hover,
.research-drawer .office-summary-card:focus-visible {
  border-color: var(--app-logo-blue) !important;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.12) !important;
}

/* Office info modal: match the clean blue-line report workspace. */
#officeModal.modal-backdrop {
  z-index: 80 !important;
  padding: 28px !important;
  background: rgba(248, 251, 255, 0.72) !important;
  backdrop-filter: blur(5px) !important;
}

#officeModal .office-modal {
  width: min(94vw, 560px) !important;
  max-height: min(720px, calc(100vh - 56px)) !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 105, 224, 0.42) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16) !important;
}

#officeModal .modal-header {
  min-height: 76px !important;
  padding: 0 28px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.28) !important;
  background: #ffffff !important;
}

#officeModal .modal-header h3 {
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-size: 1.24rem !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}

#officeModal .modal-header h3::before {
  display: inline-grid !important;
  width: 21px !important;
  height: 21px !important;
  margin-right: 9px !important;
  border-radius: 999px !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  place-items: center !important;
  content: "i" !important;
  font-size: 0.72rem !important;
  font-weight: 780 !important;
  vertical-align: 2px !important;
}

#officeModal .modal-header button {
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid rgba(23, 105, 224, 0.22) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  place-items: center !important;
  font-size: 1.2rem !important;
  font-weight: 420 !important;
  line-height: 1 !important;
}

#officeModal .office-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 16px !important;
  padding: 26px 28px 28px !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(180deg, rgba(23, 105, 224, 0.06), rgba(23, 105, 224, 0)) border-box !important;
}

#officeModal .office-form label {
  display: grid !important;
  gap: 8px !important;
}

#officeModal .office-form label:nth-child(2),
#officeModal .office-form label:nth-child(5) {
  grid-column: 1 / -1 !important;
}

#officeModal .office-form span {
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.78rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
}

#officeModal .office-form input {
  min-height: 44px !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.38) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
}

#officeModal .office-form input:focus {
  border-color: var(--app-logo-blue) !important;
  outline: 0 !important;
  box-shadow: 0 6px 0 -5px var(--app-logo-blue) !important;
}

#officeModal .modal-actions {
  display: flex !important;
  grid-column: 1 / -1 !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 10px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(23, 105, 224, 0.18) !important;
}

#officeModal .modal-actions button {
  min-width: 92px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
}

#officeModal .modal-actions .secondary-action {
  border: 1px solid rgba(23, 105, 224, 0.3) !important;
  background: #ffffff !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
}

#officeModal .modal-actions .primary-action {
  border: 1px solid var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Make step 2 option labels lighter and cleaner. */
.research-drawer .summary-card .summary-title-main {
  font-weight: 560 !important;
}

.research-drawer .summary-card .summary-title-action {
  font-weight: 560 !important;
}

/* Step 2 final button layout: item button + "basic form add" label above the round check. */
.research-drawer .quick-list {
  display: grid !important;
  gap: 9px !important;
  padding: 0 16px 20px !important;
}

.research-drawer .summary-card {
  display: grid !important;
  min-height: 50px !important;
  grid-template-columns: minmax(0, 1fr) 52px !important;
  grid-template-rows: 18px 24px !important;
  column-gap: 10px !important;
  align-items: center !important;
  padding: 6px 10px 6px 13px !important;
  border: 1px solid rgba(23, 105, 224, 0.26) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: #0b1535 !important;
  text-align: left !important;
}

.research-drawer .summary-card:hover,
.research-drawer .summary-card:focus-visible,
.research-drawer .summary-card.is-selected,
.research-drawer .summary-card[aria-pressed="true"] {
  border-color: rgba(23, 105, 224, 0.72) !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

.research-drawer .summary-card .tool-icon,
.research-drawer .summary-card > span:not(.summary-output-check) {
  display: none !important;
}


.research-drawer .summary-card .summary-title-main {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: auto !important;
  min-width: 0 !important;
  align-self: center !important;
  overflow: hidden !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-size: 0.84rem !important;
  font-weight: 560 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

.research-drawer .summary-card[data-report-action] .summary-title-action {
  display: none !important;
}

.research-drawer .summary-card .summary-output-state {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: end !important;
  width: auto !important;
  margin: 0 0 1px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  cursor: pointer !important;
  font-size: 0.5rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.research-drawer .summary-card .summary-output-check {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  display: block !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: center !important;
  align-self: start !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  border: 1.4px solid #bdd1eb !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.research-drawer .summary-card .summary-output-check::after {
  top: 6px !important;
  left: 5px !important;
  width: 8px !important;
  height: 4px !important;
  border-bottom: 2px solid #ffffff !important;
  border-left: 2px solid #ffffff !important;
  opacity: 0 !important;
}

.research-drawer .summary-card.is-selected .summary-output-check,
.research-drawer .summary-card[aria-pressed="true"] .summary-output-check {
  border-color: var(--app-logo-blue) !important;
  background: var(--app-logo-blue) !important;
  box-shadow: 0 5px 12px rgba(23, 105, 224, 0.18) !important;
}


.research-drawer .office-summary-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: 1fr !important;
  min-height: 46px !important;
}

.research-drawer .office-summary-card .summary-title-main {
  grid-row: 1 !important;
}

.research-drawer .office-summary-card .summary-title-action {
  display: inline-flex !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  min-height: 22px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(23, 105, 224, 0.24) !important;
  border-radius: 999px !important;
  background: #f4f8ff !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.66rem !important;
  font-weight: 680 !important;
  line-height: 1 !important;
}

/* Keep the final Step 2 check marker visibly selected after older overrides. */
.research-drawer button.summary-card.is-selected > .summary-output-check,
.research-drawer button.summary-card[aria-pressed="true"] > .summary-output-check {
  border-color: #1769e0 !important;
  background: #1769e0 !important;
  background-color: #1769e0 !important;
  background-image: none !important;
  box-shadow:
    inset 0 0 0 20px #1769e0,
    0 5px 12px rgba(23, 105, 224, 0.18) !important;
}

/* Info viewer action row: document creation and direct basic-report transfer. */
.info-action-row {
  display: flex !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 14px !important;
}

.info-action-row [hidden] {
  display: none !important;
}

.info-action-row .make-document-button,
.info-action-row .basic-report-transfer-button {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-size: 0.84rem !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}

.info-action-row .make-document-button {
  border: 1px solid #1769e0 !important;
  background: #1769e0 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.info-action-row .basic-report-transfer-button {
  border: 1px solid rgba(23, 105, 224, 0.42) !important;
  background: #ffffff !important;
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
  cursor: pointer !important;
}

.info-action-row .make-document-button:hover,
.info-action-row .make-document-button:focus-visible,
.info-action-row .basic-report-transfer-button:hover,
.info-action-row .basic-report-transfer-button:focus-visible {
  border-color: #0d5fd1 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12) !important;
}

/* Step 2 now uses only the circular check; the actual add buttons live in modals or step 3. */
.research-drawer .summary-card .summary-output-state {
  display: none !important;
}

.research-drawer .summary-card .summary-output-check {
  grid-row: 1 / 3 !important;
  align-self: center !important;
}

/* Office modal header action aligned with cover/opinion/enforcement modals. */
#officeModal .office-modal-title {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

#officeModal .office-modal-title p {
  margin: 0 0 0 32px !important;
  color: #65758b !important;
  -webkit-text-fill-color: #65758b !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

#officeModal .office-modal-actions {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
}

#officeModal .office-report-transfer {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  border: 1px solid var(--app-logo-blue) !important;
  border-radius: 8px !important;
  background: var(--app-logo-blue) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#officeModal .office-report-transfer:hover,
#officeModal .office-report-transfer:focus-visible {
  background: #0d5fd1 !important;
  border-color: #0d5fd1 !important;
  outline: none !important;
}

#officeModal .office-modal-close {
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid rgba(23, 105, 224, 0.22) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  place-items: center !important;
  font-size: 1.2rem !important;
  font-weight: 420 !important;
  line-height: 1 !important;
}

/* Final step rail alignment: one blue rule under steps 1-4, with content below it. */
:root {
  --panel-header-height: 124px !important;
  --aligned-panel-header: 124px !important;
  --step-rail-gap: 12px;
  --step-rail-line: rgba(23, 105, 224, 0.34);
}

.library-header,
.research-drawer > .panel-section,
.info-viewer-panel,
.viewer {
  grid-template-rows: var(--panel-header-height) minmax(0, 1fr) !important;
  row-gap: var(--step-rail-gap) !important;
}

.panel-title-block,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-header {
  display: flex !important;
  width: 100% !important;
  min-height: var(--panel-header-height) !important;
  height: var(--panel-header-height) !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 1px solid var(--step-rail-line) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.panel-title-block h1,
.research-drawer > .panel-section > .section-label,
.info-viewer-panel > .section-label,
.viewer-title-block #documentTitle {
  align-items: center !important;
}

.panel-title-block h1 .step-number,
.research-drawer > .panel-section > .section-label .step-number,
.info-viewer-panel > .section-label .step-number,
.viewer-title-block #documentTitle .step-number {
  margin-top: 0 !important;
  transform: none !important;
}

.map-panel,
.research-drawer .quick-list,
.info-viewer-panel > .building-info-viewer,
.document-stage {
  margin-top: 0 !important;
}

.library-header {
  border-bottom: 0 !important;
}

.library > .library-header > .panel-title-block,
.research-drawer > .panel-section > .section-label,
.info-viewer > .info-viewer-panel > .section-label,
.viewer > .viewer-header {
  border-bottom-color: var(--step-rail-line) !important;
}

/* Final consolidated layout overrides
   This block keeps the latest visual decisions in one place so older experiments above
   cannot fight over rails, archive layout, selection buttons, or modal controls. */
:root {
  --workspace-blue-line: rgba(23, 105, 224, 0.34);
  --step-rail-line: rgba(23, 105, 224, 0.34);
}

/* Step 2 선택 버튼 */
.research-drawer .quick-list {
  gap: 9px !important;
}

.research-drawer .summary-card {
  display: grid !important;
  min-height: 50px !important;
  grid-template-columns: minmax(0, 1fr) 24px !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  column-gap: 10px !important;
  padding: 8px 11px 8px 13px !important;
  border: 1px solid rgba(23, 105, 224, 0.24) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease !important;
}

.research-drawer .summary-card:hover,
.research-drawer .summary-card:focus-visible {
  border-color: rgba(23, 105, 224, 0.46) !important;
  background: #f8fbff !important;
  outline: none !important;
}

.research-drawer .summary-card.is-loading {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.research-drawer .summary-card.is-loading::after {
  display: none !important;
  content: none !important;
}

.research-drawer .summary-card.is-current-view {
  border-color: rgba(23, 105, 224, 0.68) !important;
  background: #eef6ff !important;
  background-color: #eef6ff !important;
  background-image: none !important;
}

.research-drawer .summary-card strong {
  display: block !important;
  min-width: 0 !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.research-drawer .summary-card .summary-title-main {
  display: block !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-size: 0.84rem !important;
  font-weight: 560 !important;
  line-height: 1.22 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

.research-drawer .summary-card.is-current-view .summary-title-main {
  color: var(--app-logo-blue, #1769e0) !important;
  -webkit-text-fill-color: var(--app-logo-blue, #1769e0) !important;
}

.research-drawer .summary-card .summary-title-action,
.research-drawer .summary-card .summary-output-state,
.research-drawer .summary-card .tool-icon,
.research-drawer .summary-card > span:not(.summary-output-check) {
  display: none !important;
}

.research-drawer .summary-card .summary-output-check {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  display: block !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  justify-self: center !important;
  align-self: center !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  border: 1.4px solid rgba(23, 105, 224, 0.5) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.research-drawer .summary-card .summary-output-check::after {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  display: block !important;
  width: 8px !important;
  height: 4px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--app-logo-blue, #1769e0) !important;
  border-left: 2px solid var(--app-logo-blue, #1769e0) !important;
  opacity: 1 !important;
  content: "" !important;
  transform: rotate(-45deg) !important;
}

.research-drawer .summary-card.is-current-view .summary-output-check {
  border-color: var(--app-logo-blue, #1769e0) !important;
  background: var(--app-logo-blue, #1769e0) !important;
  background-color: var(--app-logo-blue, #1769e0) !important;
  background-image: none !important;
  box-shadow: 0 5px 12px rgba(23, 105, 224, 0.18) !important;
}

.research-drawer .summary-card.is-current-view .summary-output-check::after {
  border-bottom-color: #ffffff !important;
  border-left-color: #ffffff !important;
}

/* 1-4 작업 영역 선과 사각 프레임 */
.app-shell {
  position: relative !important;
  background: #ffffff !important;
}

.app-shell::before,
.app-shell::after {
  position: absolute !important;
  top: calc(var(--header-height, 56px) + 12px) !important;
  bottom: 0 !important;
  z-index: 60 !important;
  width: 1px !important;
  background: var(--workspace-blue-line) !important;
  content: "" !important;
  pointer-events: none !important;
}

.app-shell::before {
  left: 12px !important;
}

.app-shell::after {
  right: 12px !important;
}

.app-shell,
.workspace,
.library,
.research-drawer,
.info-viewer,
.viewer,
.archive-checklist-section,
.archive-checklist-panel,
.right-info-stack,
.subscription-panel,
.company-panel {
  border-radius: 0 !important;
  background-color: #ffffff !important;
}

.workspace {
  position: relative !important;
  margin-bottom: 0 !important;
  border-top: 1px solid var(--workspace-blue-line) !important;
  border-right: 1px solid var(--workspace-blue-line) !important;
  border-bottom: 0 !important;
  border-left: 1px solid var(--workspace-blue-line) !important;
  background: #ffffff !important;
  box-shadow: inset 1px 0 0 var(--workspace-blue-line), inset -1px 0 0 var(--workspace-blue-line) !important;
}

.workspace::after {
  position: absolute !important;
  top: var(--panel-header-height, 124px) !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 8 !important;
  height: 1px !important;
  background: var(--workspace-blue-line) !important;
  content: "" !important;
  pointer-events: none !important;
}

.library > .library-header > .panel-title-block,
.research-drawer > .panel-section > .section-label,
.info-viewer > .info-viewer-panel > .section-label,
.viewer > .viewer-header {
  border-bottom-color: transparent !important;
}

.viewer,
.viewer-header {
  overflow: visible !important;
}


.archive-scroll-cue {
  z-index: 30 !important;
}

/* 문서보관함 / 구독 / 회사정보 */
.archive-checklist-section {
  display: grid !important;
  grid-template-columns:
    var(--workspace-col-1)
    var(--workspace-col-2)
    var(--workspace-col-3)
    var(--workspace-col-4) !important;
  gap: 0 !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--workspace-blue-line) !important;
  border-right: 1px solid var(--workspace-blue-line) !important;
  border-bottom: 1px solid var(--workspace-blue-line) !important;
  border-left: 1px solid var(--workspace-blue-line) !important;
  background: #ffffff !important;
  box-shadow: inset 1px 0 0 var(--workspace-blue-line), inset -1px 0 0 var(--workspace-blue-line) !important;
}

.archive-checklist-panel,
.subscription-panel,
.company-panel {
  min-height: 430px !important;
  margin: 0 !important;
  padding: 22px 22px 28px !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.archive-checklist-panel {
  grid-column: 1 / 3 !important;
  width: 100% !important;
  border-right: 1px solid var(--workspace-blue-line) !important;
}

.right-info-stack {
  display: contents !important;
  background: #ffffff !important;
}

.subscription-panel {
  grid-column: 3 !important;
  border-right: 1px solid var(--workspace-blue-line) !important;
}

.company-panel {
  grid-column: 4 !important;
  border-right: 0 !important;
}

.company-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(23, 105, 224, 0.18) !important;
}

.company-links a {
  color: #1769e0 !important;
  font-size: 0.68rem !important;
  font-weight: 620 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.company-links a:hover,
.company-links a:focus-visible {
  text-decoration: underline !important;
}

.archive-checklist-head {
  display: grid !important;
  grid-template-columns: minmax(0, auto) minmax(260px, 1fr) !important;
  gap: 24px !important;
  align-items: end !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.22) !important;
}

.archive-checklist-head > span {
  max-width: 520px !important;
  justify-self: end !important;
  text-align: right !important;
}

.document-archive-shelf {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(144px, 168px)) !important;
  min-height: 250px !important;
  height: auto !important;
  max-height: none !important;
  padding: 22px 0 10px !important;
  column-gap: 16px !important;
  row-gap: 28px !important;
  overflow: visible !important;
}

.document-archive-item.document-archive-folder-card,
.document-archive-add-card {
  width: 100% !important;
  max-width: 168px !important;
  min-height: 112px !important;
}

.document-archive-card-body {
  min-height: 92px !important;
}

.document-archive-card-body > strong {
  font-size: 0.69rem !important;
  line-height: 1.35 !important;
}

.document-archive-meta {
  gap: 2px !important;
}

.document-archive-meta span {
  font-size: 0.58rem !important;
}

.document-archive-card-actions {
  grid-template-columns: 21px !important;
  justify-content: end !important;
  gap: 4px !important;
}

.document-archive-folder-card .document-archive-action.archive-icon-button {
  width: 21px !important;
  min-width: 21px !important;
  height: 21px !important;
  min-height: 21px !important;
}

.document-archive-folder-card .archive-svg-icon {
  width: 11px !important;
  height: 11px !important;
}

.archive-checklist-note {
  align-self: end !important;
  margin-top: 14px !important;
  text-align: right !important;
}

.subscription-status {
  border-color: rgba(23, 105, 224, 0.18) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.subscription-free-benefit {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.16) !important;
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}

.subscription-free-benefit strong {
  color: #0b1535 !important;
  font-size: 0.72rem !important;
  font-weight: 650 !important;
}

.subscription-free-benefit span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #6d7890 !important;
  font-size: 0.68rem !important;
  font-weight: 520 !important;
  white-space: nowrap !important;
}

.subscription-free-benefit b {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: rgba(23, 105, 224, 0.1) !important;
  color: var(--app-logo-blue, #1769e0) !important;
  font-size: 0.68rem !important;
  font-weight: 720 !important;
}

.subscription-list .is-highlight {
  color: var(--app-logo-blue, #1769e0) !important;
  font-weight: 680 !important;
}

.subscription-list .is-highlight::before {
  background: var(--app-logo-blue, #1769e0) !important;
}

.subscription-continue-note {
  margin: 7px 0 0 !important;
  color: #6d7890 !important;
  font-size: 0.68rem !important;
  font-weight: 450 !important;
  line-height: 1.45 !important;
}

/* 사무실정보 모달 */
#officeModal .office-modal-actions,
#opinionModal .opinion-modal-actions {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-left: auto !important;
}

#officeModal .modal-header .office-report-transfer,
#officeModal #officeModalSave,
#opinionModal .opinion-modal-save,
#opinionModal .opinion-report-transfer {
  display: inline-flex !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  border: 1px solid var(--app-logo-blue, #1769e0) !important;
  border-radius: 8px !important;
  background: var(--app-logo-blue, #1769e0) !important;
  background-color: var(--app-logo-blue, #1769e0) !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 680 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#officeModal .modal-header .office-report-transfer:hover,
#officeModal .modal-header .office-report-transfer:focus-visible,
#officeModal #officeModalSave:hover,
#officeModal #officeModalSave:focus-visible,
#opinionModal .opinion-modal-save:hover,
#opinionModal .opinion-modal-save:focus-visible,
#opinionModal .opinion-report-transfer:hover,
#opinionModal .opinion-report-transfer:focus-visible {
  border-color: #0d5fd1 !important;
  background: #0d5fd1 !important;
  background-color: #0d5fd1 !important;
  outline: none !important;
}

#officeModal .modal-header .office-modal-close,
#opinionModal .opinion-modal-close {
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid rgba(23, 105, 224, 0.22) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  place-items: center !important;
  font-size: 1.2rem !important;
  font-weight: 420 !important;
  line-height: 1 !important;
}

#officeModal .office-form {
  gap: 20px 16px !important;
  padding-top: 28px !important;
}

#officeModal .office-form label {
  display: grid !important;
  min-height: 64px !important;
  grid-template-rows: auto 34px !important;
  align-content: start !important;
  row-gap: 12px !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

#officeModal .office-form span {
  display: block !important;
  min-height: 16px !important;
  line-height: 1.35 !important;
}

#officeModal .office-form input {
  display: block !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  box-sizing: border-box !important;
  padding: 4px 2px 8px !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.38) !important;
  border-left: 0 !important;
  line-height: 1.35 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

#officeModal .office-form input:focus,
#officeModal .office-form input:focus-visible {
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid var(--app-logo-blue) !important;
  border-left: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* 의견작성 모달 */
#opinionModal .opinion-modal {
  grid-template-rows: 74px auto !important;
  height: auto !important;
  max-height: min(90vh, 680px) !important;
}

#opinionModal .opinion-modal-body {
  min-height: 0 !important;
  padding: 20px 24px 24px !important;
  overflow: auto !important;
}

#opinionModal .opinion-modal-label {
  height: auto !important;
  gap: 6px !important;
}

#opinionDraftInput {
  height: 260px !important;
  min-height: 220px !important;
  max-height: 300px !important;
  padding: 17px 18px !important;
  line-height: var(--opinion-modal-line-step) !important;
  background-size: 100% var(--opinion-modal-line-step) !important;
  background-position-y: var(--opinion-modal-line-offset) !important;
  box-sizing: border-box !important;
}

@media (min-width: 1180px) {
  .archive-checklist-panel,
  .subscription-panel,
  .company-panel {
    align-self: stretch !important;
    height: 100% !important;
  }
}

@media (max-width: 1179px) {
  .workspace::after {
    display: none !important;
  }

  .archive-checklist-section {
    grid-template-columns: 1fr !important;
  }

  .archive-checklist-panel,
  .right-info-stack,
  .subscription-panel,
  .company-panel {
    display: grid !important;
    grid-column: 1 !important;
  }

  .archive-checklist-panel,
  .subscription-panel {
    border-right: 0 !important;
    border-bottom: 1px solid var(--workspace-blue-line) !important;
  }

  .archive-checklist-head {
    grid-template-columns: 1fr !important;
  }

  .archive-checklist-head > span,
  .archive-checklist-note {
    justify-self: start !important;
    text-align: left !important;
  }
}

/* Authentication and my page */
.account-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.account-button {
  display: inline-flex;
  min-width: 74px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 105, 224, 0.28);
  background: #ffffff;
  color: var(--app-logo-blue, #1769e0);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.account-button.login-button {
  background: var(--app-logo-blue, #1769e0);
  color: #ffffff;
}

.account-button.mypage-button {
  background: #ffffff;
  color: var(--app-logo-blue, #1769e0);
}

.account-button.is-hidden {
  display: none;
}

.account-button:hover,
.account-button:focus-visible {
  border-color: var(--app-logo-blue, #1769e0);
  outline: none;
}

.auth-modal,
.mypage-modal {
  width: min(520px, calc(100vw - 36px));
  max-height: min(86vh, 760px);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  border: 1px solid rgba(23, 105, 224, 0.26);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(9, 22, 50, 0.18);
  color: #07152f;
}

.mypage-modal {
  width: min(640px, calc(100vw - 36px));
}

.auth-modal .modal-header,
.mypage-modal .modal-header {
  min-height: 74px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(23, 105, 224, 0.22);
}

.auth-modal h3,
.mypage-modal h3 {
  margin: 0 0 4px;
  font-size: 1.18rem;
  font-weight: 760;
}

.auth-modal p,
.mypage-modal p {
  margin: 0;
  color: #65758b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-modal-close,
.mypage-modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 105, 224, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #07152f;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 18px 24px 0;
}

.auth-tabs button {
  height: 38px;
  border: 1px solid rgba(23, 105, 224, 0.2);
  background: #ffffff;
  color: #23324d;
  font-size: 0.88rem;
  font-weight: 680;
  cursor: pointer;
}

.auth-tabs button.is-active {
  border-color: var(--app-logo-blue, #1769e0);
  background: rgba(23, 105, 224, 0.08);
  color: var(--app-logo-blue, #1769e0);
}

.auth-message {
  min-height: 24px;
  padding: 10px 24px 0;
}

.auth-message[data-tone="error"] {
  color: #c2410c;
}

.auth-form {
  display: none;
  gap: 14px;
  padding: 14px 24px 24px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  color: #27364f;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-form input {
  height: 42px;
  border: 1px solid rgba(23, 105, 224, 0.24);
  background: #ffffff;
  padding: 0 12px;
  color: #07152f;
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--app-logo-blue, #1769e0);
  outline: none;
}

.auth-primary-button,
.auth-secondary-button {
  height: 42px;
  border: 1px solid var(--app-logo-blue, #1769e0);
  background: var(--app-logo-blue, #1769e0);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
}

.auth-primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.social-login-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.social-login-button {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(9, 22, 50, 0.12);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 760;
}

.social-login-button.naver {
  background: #03c75a;
  color: #ffffff;
}

.social-login-button.kakao {
  background: #fee500;
  color: #191919;
}

.auth-help {
  padding-top: 2px;
}

.mypage-body {
  display: grid;
  gap: 12px;
  padding: 20px 24px;
  overflow: auto;
}

.mypage-card {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid rgba(23, 105, 224, 0.18);
  padding-bottom: 14px;
}

.mypage-card h4 {
  margin: 0;
  color: #07152f;
  font-size: 0.95rem;
  font-weight: 760;
}

.mypage-definition {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mypage-definition div,
.mypage-list li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: start;
}

.mypage-definition dt,
.mypage-list strong {
  color: var(--app-logo-blue, #1769e0);
  font-size: 0.82rem;
  font-weight: 720;
}

.mypage-definition dd,
.mypage-list span {
  margin: 0;
  color: #07152f;
  font-size: 0.84rem;
  font-weight: 560;
}

.mypage-list em {
  grid-column: 2;
  color: #b45309;
  font-size: 0.78rem;
  font-style: normal;
}

.mypage-payment-actions {
  grid-column: 2;
  display: flex;
  justify-content: flex-start;
}

.mypage-definition dd.is-warning,
.mypage-notice {
  color: #b45309;
}

.mypage-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mypage-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 24px;
}

.mypage-actions .auth-secondary-button {
  width: auto;
  min-width: 96px;
  height: 36px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--app-logo-blue, #1769e0);
}

.mypage-billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mypage-billing-actions .auth-primary-button,
.mypage-billing-actions .auth-secondary-button {
  width: auto;
  min-width: 112px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.mypage-billing-actions .auth-secondary-button {
  background: #ffffff;
  color: var(--app-logo-blue, #1769e0);
}

.mypage-billing-actions .auth-secondary-button.danger {
  border-color: rgba(185, 28, 28, 0.26);
  color: #b91c1c;
}

.mypage-payment-actions .auth-secondary-button {
  width: auto;
  min-width: 88px;
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.76rem;
}

@media (max-width: 720px) {
  .auth-modal,
  .mypage-modal {
    width: calc(100vw - 24px);
  }

  .mypage-definition div,
  .mypage-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Address search result hierarchy: complex name blue, addresses black. */
.address-search-result .address-search-result-title,
.address-search-result:hover .address-search-result-title,
.address-search-result:focus-visible .address-search-result-title {
  color: var(--app-logo-blue, #1769e0) !important;
  -webkit-text-fill-color: var(--app-logo-blue, #1769e0) !important;
  font-weight: 560 !important;
}

.address-search-result .address-search-result-parcel,
.address-search-result .address-search-result-road,
.address-search-result:hover .address-search-result-parcel,
.address-search-result:hover .address-search-result-road,
.address-search-result:focus-visible .address-search-result-parcel,
.address-search-result:focus-visible .address-search-result-road {
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
  font-weight: 430 !important;
}

/* Map selection: highlight the selected parcel itself instead of showing a marker. */
.map-canvas #mapPin,
.map-canvas .map-info-card,
.map-canvas .map-info-card.is-visible {
  display: none !important;
}

.map-panel.has-app-cadastre .cadastre-lines .cadastre-land-polygon {
  fill: rgba(23, 105, 224, 0.22) !important;
  stroke: none !important;
}

.map-panel.has-app-cadastre .cadastre-lines .cadastre-land-boundary {
  stroke: rgba(23, 105, 224, 0.96) !important;
  stroke-width: 2.1 !important;
  stroke-dasharray: none !important;
}

.map-panel.has-app-cadastre .cadastre-lines .cadastre-building-polygon {
  fill: rgba(23, 105, 224, 0.1) !important;
  stroke: rgba(23, 105, 224, 0.78) !important;
}

/* Step 2 visual state: only the item currently shown in step 3 should look pressed. */
.research-drawer .summary-card.is-selected:not(.is-current-view),
.research-drawer .summary-card[aria-pressed="true"]:not(.is-current-view) {
  border-color: #dbe7f6 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.research-drawer .summary-card.is-selected:not(.is-current-view) .summary-title-main,
.research-drawer .summary-card[aria-pressed="true"]:not(.is-current-view) .summary-title-main {
  color: #0b1535 !important;
  -webkit-text-fill-color: #0b1535 !important;
}

.research-drawer .summary-card.is-selected:not(.is-current-view) .summary-output-check,
.research-drawer .summary-card[aria-pressed="true"]:not(.is-current-view) .summary-output-check {
  border-color: rgba(23, 105, 224, 0.5) !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.research-drawer .summary-card.is-selected:not(.is-current-view) .summary-output-check::after,
.research-drawer .summary-card[aria-pressed="true"]:not(.is-current-view) .summary-output-check::after {
  border-bottom-color: var(--app-logo-blue, #1769e0) !important;
  border-left-color: var(--app-logo-blue, #1769e0) !important;
}

.room-overview-empty {
  padding: 18px 4px;
  border-top: 1px solid rgba(23, 105, 224, 0.28);
  border-bottom: 1px solid rgba(23, 105, 224, 0.28);
  color: #6b7890;
  font-size: 0.74rem;
  font-weight: 430;
  line-height: 1.55;
}


/* Building info floor/room overview: one source of truth for this section. */
.info-viewer .floor-overview-detail {
  margin: 12px 0 16px !important;
  border-top: 1px solid rgba(23, 105, 224, 0.22) !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.22) !important;
}

.info-viewer .floor-detail-row,
.info-viewer .room-area-row {
  display: grid !important;
  grid-template-columns: minmax(96px, 0.78fr) minmax(0, 1.22fr) !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.12) !important;
}

.info-viewer .floor-detail-row:last-child,
.info-viewer .room-area-row:last-child {
  border-bottom: 0 !important;
}

.info-viewer .floor-detail-row span,
.info-viewer .room-area-left span {
  color: #1769e0 !important;
  font-size: 0.72rem !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}

.info-viewer .floor-detail-row strong,
.info-viewer .room-area-left strong,
.info-viewer .room-area-right strong {
  color: #0b1535 !important;
  font-size: 0.74rem !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
}

.info-viewer .floor-detail-row strong,
.info-viewer .room-area-right {
  text-align: right !important;
}

.info-viewer .floor-overview-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 12px 0 10px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.28) !important;
  background: transparent !important;
}

.info-viewer .floor-overview-header strong {
  color: #0b1535 !important;
  font-size: 0.88rem !important;
  font-weight: 720 !important;
  line-height: 1.25 !important;
}

.info-viewer .floor-overview-header span {
  color: #1769e0 !important;
  font-size: 0.7rem !important;
  font-weight: 720 !important;
  line-height: 1.25 !important;
}

.info-viewer .floor-tabs,
.info-viewer .room-overview-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 3px 0 16px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.28) !important;
}

.info-viewer .floor-tabs button,
.info-viewer .room-overview-list button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 70px !important;
  min-height: 42px !important;
  padding: 8px 16px !important;
  border: 1px solid #d8e3f3 !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  color: #0b1535 !important;
  text-align: center !important;
  box-shadow: none !important;
}

.info-viewer .floor-tabs button strong,
.info-viewer .room-overview-list button strong {
  color: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 720 !important;
  line-height: 1.2 !important;
  -webkit-text-fill-color: currentColor !important;
}

.info-viewer .floor-tabs button span,
.info-viewer .room-overview-list button span {
  display: none !important;
}

.info-viewer .floor-tabs button.is-active,
.info-viewer .room-overview-list button.is-active {
  border-color: #1769e0 !important;
  background: #ffffff !important;
  color: #1769e0 !important;
  box-shadow: inset 0 -3px 0 #1769e0 !important;
}

.info-viewer .floor-tabs button.is-active strong,
.info-viewer .room-overview-list button.is-active strong {
  color: #1769e0 !important;
  -webkit-text-fill-color: #1769e0 !important;
}

.info-viewer .room-overview-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 16px 0 10px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(23, 105, 224, 0.28) !important;
  background: transparent !important;
}

.info-viewer .room-overview-header strong {
  color: #0b1535 !important;
  font-size: 0.88rem !important;
  font-weight: 720 !important;
  line-height: 1.25 !important;
}

.info-viewer .room-overview-detail {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.info-viewer .room-detail-title {
  display: none;
}

.info-viewer .room-area-table {
  border-top: 1px solid rgba(23, 105, 224, 0.15);
}

.info-viewer .room-area-left span,
.info-viewer .room-area-left strong,
.info-viewer .room-area-right strong,
.info-viewer .room-area-right span {
  display: block;
  word-break: keep-all;
}

.info-viewer .room-area-left strong {
  margin-top: 2px;
  color: #356d9a;
}

.info-viewer .room-area-right span {
  margin-top: 2px;
  color: #0b1535;
  font-size: 0.72rem;
  font-weight: 480;
  line-height: 1.35;
}

/* Report footer office information */
.paper.app-report-page .report-footer,
.paper.app-report-page.land-report-page .report-footer,
.large-preview-shell .paper.app-report-page .report-footer,
.large-preview-shell .paper.app-report-page.land-report-page .report-footer {
  display: grid !important;
  grid-template-areas: "title legal page" !important;
  grid-template-columns: minmax(68px, 0.8fr) minmax(0, 3fr) minmax(96px, 0.9fr) !important;
  align-items: center !important;
  gap: 3px 10px !important;
}

.paper.app-report-page .report-footer span,
.paper.app-report-page.land-report-page .report-footer span,
.large-preview-shell .paper.app-report-page .report-footer span,
.large-preview-shell .paper.app-report-page.land-report-page .report-footer span {
  min-width: 0;
}

.paper.app-report-page .report-footer-title,
.paper.app-report-page.land-report-page .report-footer-title,
.large-preview-shell .paper.app-report-page .report-footer-title,
.large-preview-shell .paper.app-report-page.land-report-page .report-footer-title {
  grid-area: title;
  text-align: left !important;
}

.paper.app-report-page .report-footer-legal,
.paper.app-report-page.land-report-page .report-footer-legal,
.large-preview-shell .paper.app-report-page .report-footer-legal,
.large-preview-shell .paper.app-report-page.land-report-page .report-footer-legal {
  grid-area: legal;
  line-height: 1.25;
  text-align: left !important;
}

.paper.app-report-page .report-footer-office,
.paper.app-report-page.land-report-page .report-footer-office,
.large-preview-shell .paper.app-report-page .report-footer-office,
.large-preview-shell .paper.app-report-page.land-report-page .report-footer-office {
  display: none !important;
  grid-area: office;
  overflow: visible;
  color: #475569;
  line-height: 1.22;
  overflow-wrap: anywhere;
  text-align: right !important;
  text-overflow: clip;
  white-space: pre-line;
  word-break: keep-all;
}

.paper.app-report-page .report-footer:not(.has-office-info) .report-footer-office,
.paper.app-report-page.land-report-page .report-footer:not(.has-office-info) .report-footer-office,
.large-preview-shell .paper.app-report-page .report-footer:not(.has-office-info) .report-footer-office,
.large-preview-shell .paper.app-report-page.land-report-page .report-footer:not(.has-office-info) .report-footer-office {
  display: none;
}

.paper.app-report-page .report-footer:not(.has-office-info),
.paper.app-report-page.land-report-page .report-footer:not(.has-office-info),
.large-preview-shell .paper.app-report-page .report-footer:not(.has-office-info),
.large-preview-shell .paper.app-report-page.land-report-page .report-footer:not(.has-office-info) {
  grid-template-areas: "title legal page" !important;
  grid-template-columns: minmax(68px, 0.8fr) minmax(0, 3fr) minmax(96px, 0.9fr) !important;
}

.paper.app-report-page.cover-report-page .report-footer,
.large-preview-shell .paper.app-report-page.cover-report-page .report-footer {
  grid-template-areas: "title legal page" !important;
  grid-template-columns: minmax(68px, 0.8fr) minmax(0, 3fr) minmax(96px, 0.9fr) !important;
}

.paper.app-report-page.cover-report-page .report-footer-office,
.large-preview-shell .paper.app-report-page.cover-report-page .report-footer-office {
  display: none !important;
}

.paper.app-report-page .report-footer-page,
.paper.app-report-page.land-report-page .report-footer-page,
.large-preview-shell .paper.app-report-page .report-footer-page,
.large-preview-shell .paper.app-report-page.land-report-page .report-footer-page {
  grid-area: page;
  text-align: right !important;
  white-space: nowrap;
}

/* Final stabilization: keep cover preview and enlarged preview identical. */
.paper.app-report-page.cover-report-page .report-document,
.basic-report-preview .paper.app-report-page.cover-report-page .report-document,
.large-preview-shell .paper.app-report-page.cover-report-page .report-document {
  height: var(--report-base-height, 1074.286px) !important;
  min-height: var(--report-base-height, 1074.286px) !important;
  max-height: var(--report-base-height, 1074.286px) !important;
  overflow: hidden !important;
}

.paper.app-report-page.cover-report-page .cover-office-info strong,
.basic-report-preview .paper.app-report-page.cover-report-page .cover-office-info strong,
.large-preview-shell .paper.app-report-page.cover-report-page .cover-office-info strong {
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.58rem !important;
  font-weight: 720 !important;
  line-height: 1.24 !important;
  margin: 0 0 3px !important;
}

.paper.app-report-page.cover-report-page .cover-office-info span,
.basic-report-preview .paper.app-report-page.cover-report-page .cover-office-info span,
.large-preview-shell .paper.app-report-page.cover-report-page .cover-office-info span {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: 0.48rem !important;
  font-weight: 500 !important;
  line-height: 1.34 !important;
}

.paper.app-report-page.cover-report-page .cover-office-info,
.basic-report-preview .paper.app-report-page.cover-report-page .cover-office-info,
.large-preview-shell .paper.app-report-page.cover-report-page .cover-office-info {
  gap: 2px !important;
  max-width: 300px !important;
  margin: 0 0 42px auto !important;
  padding-top: 10px !important;
  line-height: 1.32 !important;
  text-align: right !important;
}

.paper.app-report-page.cover-report-page .cover-office-info span:first-of-type,
.basic-report-preview .paper.app-report-page.cover-report-page .cover-office-info span:first-of-type,
.large-preview-shell .paper.app-report-page.cover-report-page .cover-office-info span:first-of-type {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: 0.48rem !important;
  line-height: 1.34 !important;
  margin-top: 2px !important;
}

/* Final stabilization: opinion editor lines and photo tray. */
#opinionModal .opinion-modal-body {
  overflow: auto !important;
}

#opinionDraftInput {
  --opinion-modal-line-step: 36px !important;
  --opinion-modal-line-offset: 7px !important;
  padding: 7px 18px 9px !important;
  line-height: var(--opinion-modal-line-step) !important;
  background-position-y: var(--opinion-modal-line-offset) !important;
}

#opinionModal .opinion-image-preview {
  max-height: 168px !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  align-items: flex-start !important;
}

#opinionModal .opinion-image-card {
  flex: 0 0 104px !important;
  min-height: 128px !important;
}

/* Final stabilization: cover modal preview matches the report cover office block. */
#coverModal .cover-modal-sheet .cover-modal-office {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
  max-width: 300px !important;
  margin: auto 0 42px auto !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(23, 105, 224, 0.55) !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  text-align: right !important;
  line-height: 1.32 !important;
}

#coverModal .cover-modal-sheet .cover-modal-office strong {
  display: block !important;
  width: 100% !important;
  color: var(--app-logo-blue) !important;
  -webkit-text-fill-color: var(--app-logo-blue) !important;
  font-size: 0.58rem !important;
  font-weight: 720 !important;
  line-height: 1.24 !important;
  margin: 0 0 3px !important;
}

#coverModal .cover-modal-sheet .cover-modal-office span,
#coverModal .cover-modal-sheet .cover-modal-office.is-empty {
  display: block !important;
  width: 100% !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: 0.48rem !important;
  font-weight: 500 !important;
  line-height: 1.34 !important;
  margin: 0 !important;
}

#coverModal .cover-modal-sheet .cover-modal-office span:first-of-type {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: 0.48rem !important;
  line-height: 1.34 !important;
  margin-top: 2px !important;
}

/* Final stabilization: center the basic report page navigation after removing bottom actions. */
.viewer .report-bottom-controls {
  justify-content: center !important;
}

.viewer .report-bottom-controls .page-control {
  width: auto !important;
  margin-inline: auto !important;
  justify-content: center !important;
}

/* Beta launch marker. */
.brand > div > .brand-beta-badge {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: none !important;
  margin-top: 5px !important;
  padding: 2px 7px !important;
  border: 1px solid rgba(23, 105, 224, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(23, 105, 224, 0.08) !important;
  color: var(--app-logo-blue, #1769e0) !important;
  -webkit-text-fill-color: var(--app-logo-blue, #1769e0) !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}
