:root {
  --navy: #152a45;
  --navy-soft: #223b59;
  --blue: #2865df;
  --blue-light: #edf3ff;
  --green: #13876d;
  --red: #e25258;
  --amber: #dc9c24;
  --ink: #20324a;
  --muted: #7c899a;
  --line: #e5eaf1;
  --surface: #f5f7fb;
  --radius: 14px;
  --sidebar: 244px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #80a8f4;
  outline-offset: 3px;
}
input,
textarea,
select {
  color: var(--ink);
  max-width: 100%;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.5;
  margin-bottom: 7px;
  font-weight: 750;
}
h2 {
  font-size: 16px;
  letter-spacing: 0.1px;
  margin-bottom: 0;
  font-weight: 700;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.8;
}
small {
  font-size: 11px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 16px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: #b0bfd1;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 18px;
  z-index: 40;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  padding: 0 13px 27px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 2px;
}
.brand small {
  font-size: 9px;
  color: #acbfd7;
  display: block;
  letter-spacing: 2.2px;
  margin-top: 5px;
  font-weight: 500;
}
.brand-mark {
  position: relative;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: 29px;
  line-height: 1;
  letter-spacing: -3px;
  padding-right: 3px;
  font-weight: 800;
  transform: skew(-3deg);
  box-shadow: 0 5px 15px #0002;
}
.brand-mark span {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #65dbbb;
  border-radius: 2px;
  right: 5px;
  bottom: 6px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 12px;
  background: #ffffff08;
  border: 1px solid #ffffff0b;
  border-radius: 9px;
  font-size: 12px;
  color: #e3ebf5;
  margin: 0 3px 10px;
}
.workspace-label .icon {
  color: #8aabc8;
}
.workspace-label small {
  display: block;
  color: #859bb5;
  font-size: 10px;
  margin-top: 5px;
}
.tiny-dot,
.live-dot {
  width: 6px;
  height: 6px;
  background: #4dc39e;
  border-radius: 50%;
  display: inline-block;
}
.tiny-dot {
  margin-left: auto;
}
.nav-section-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #7c93ae;
  padding: 22px 15px 9px;
  margin: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  margin: 3px 0;
  border-radius: 8px;
  font-size: 12px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: #ffffff0c;
  color: white;
}
.nav-link.is-active {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 12px #06193624;
}
.nav-link .icon {
  width: 18px;
  height: 18px;
}
.project-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  font-size: 11px;
  line-height: 1.7;
  color: #98acc3;
}
.project-nav-link:hover,
.project-nav-link.is-current {
  color: white;
}
.project-dot {
  width: 5px;
  height: 5px;
  background: #6d89a8;
  border-radius: 50%;
  flex: 0 0 auto;
}
.project-nav-link.is-current .project-dot {
  background: #54d7b6;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.sidebar-bottom .nav-link {
  font-size: 11px;
}
.demo-note {
  margin: 20px 10px 15px;
  padding: 16px 0 0;
  border-top: 1px solid #ffffff12;
}
.demo-note > span {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #64baa7;
}
.demo-note p {
  font-size: 10px;
  line-height: 1.9;
  margin: 7px 0;
  color: #8ca2bc;
}
.made-by {
  font-size: 9px;
  color: #6e879f;
  margin: 0 10px;
}
.made-by strong {
  color: #9cadc1;
  font-weight: 500;
}
.app-body {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 12px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-left {
  font-size: 11px;
  color: #7d899a;
  white-space: nowrap;
}
.topbar-company {
  color: #435369;
  font-weight: 700;
}
.crumb-separator {
  color: #d2d8e1;
}
.topbar-right {
  gap: 16px;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  padding: 6px 10px;
  border: 1px solid #d9e7ff;
  background: #f4f8ff;
  color: #5275ad;
  border-radius: 5px;
  white-space: nowrap;
}
.demo-pill .icon {
  width: 15px;
  height: 15px;
}
.icon-button {
  background: transparent;
  border: 1px solid transparent;
  width: 34px;
  height: 34px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #8492a5;
}
.icon-button:hover {
  color: var(--blue);
  background: var(--blue-light);
}
.user-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e9f1fa;
  border: 2px solid white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #5d7b9e;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.avatar.large {
  width: 42px;
  height: 42px;
  font-size: 16px;
}
.user-switcher select {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #526174;
  max-width: 190px;
  cursor: pointer;
  padding: 4px 0;
}
.main-content {
  max-width: 1640px;
  margin: auto;
  padding: 34px 35px 20px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 23px;
}
.page-heading.compact {
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8997a9;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}
.page-description {
  font-size: 12px;
  color: #8390a2;
  margin: 0;
  line-height: 1.9;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 3px 8px #2865df15;
}
.button.primary:hover {
  background: #2056c5;
}
.button.secondary {
  background: white;
  border-color: #dce3ed;
  color: #53657c;
}
.button.secondary:hover {
  background: #f7faff;
  border-color: #b1c6e6;
}
.button.small {
  font-size: 10px;
  min-height: 34px;
  padding: 7px 11px;
}
.button.full-width {
  width: 100%;
  margin-top: 12px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.context-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 10px;
  color: #64748b;
}
.context-line > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.context-line .icon {
  width: 15px;
  height: 15px;
}
.context-line .muted {
  margin-left: 6px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 25px;
}
.stat-card {
  padding: 19px 21px 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 8px #25395602;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px #25395608;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}
.stat-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.stat-icon .icon {
  width: 17px;
  height: 17px;
}
.red {
  color: var(--red);
  background: #fef0f0;
}
.amber {
  color: var(--amber);
  background: #fff7e6;
}
.green {
  color: var(--green);
  background: #eaf7f2;
}
.blue {
  color: var(--blue);
  background: var(--blue-light);
}
.stat-number {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.3;
  margin: 6px 0 13px;
  font-variant-numeric: tabular-nums;
}
.stat-number > small {
  font-size: 11px;
  letter-spacing: 0;
  color: #8b97a8;
  margin-left: 9px;
  font-weight: 400;
}
.stat-number.cost-number {
  font-size: 29px;
  padding-top: 6px;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
.stat-card p {
  font-size: 9px;
  color: #93a0b1;
  margin: 0;
  white-space: nowrap;
}
.red-text,
.overdue-text {
  color: #df5b60 !important;
}
.amber-text {
  color: #dca02e;
}
.metric-tag {
  display: inline-block;
  background: #e8f7ef;
  color: #2e9878;
  letter-spacing: 0;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 5px;
  margin-left: 12px;
  vertical-align: middle;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px #21314c02;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 23px 18px;
  gap: 12px;
}
.panel-heading h2 {
  font-size: 14px;
}
.panel-heading p {
  font-size: 10px;
  color: #98a2b1;
  margin: 6px 0 0;
  line-height: 1.6;
}
.panel-heading > .icon {
  color: #a9b4c4;
  width: 18px;
}
.text-link {
  color: #4777bd;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.text-link .icon {
  width: 14px;
  height: 14px;
}
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(310px, 1fr);
  gap: 23px;
  margin-bottom: 24px;
}
.map-preview {
  display: block;
  position: relative;
  margin: 0 18px;
  background: #fafbfd;
  overflow: hidden;
  border: 1px solid #edf1f5;
  border-radius: 9px;
  aspect-ratio: 1.72;
}
.map-preview > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.map-preview-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: #ffffffed;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #eff2f6;
  font-size: 10px;
  color: #718198;
}
.map-preview-caption > .icon {
  width: 13px;
  height: 13px;
}
.map-preview-caption > span {
  margin-left: auto;
  font-size: 8px;
  color: #aab4c0;
  letter-spacing: 1px;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
  color: white;
  box-shadow:
    0 1px 2px #13283840,
    0 0 0 1px #00000008;
  z-index: 3;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: box-shadow 0.15s;
}
.map-pin.before_review,
.small-pin.before_review {
  background: var(--red);
}
.map-pin.reviewed,
.small-pin.reviewed {
  background: #e2b23b;
  color: #fff;
}
.map-pin.improved,
.small-pin.improved {
  background: #239a7e;
}
.map-pin:hover,
.map-pin.selected {
  box-shadow:
    0 0 0 5px #2865df28,
    0 1px 7px #13283860;
  z-index: 4;
}
.preview-pin {
  min-width: 22px;
  height: 22px;
  font-size: 8px;
  border-width: 1.5px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 9px;
  color: #8795a7;
  padding: 15px 22px;
  flex-wrap: wrap;
}
.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.legend > .muted {
  margin-left: auto;
  font-size: 9px;
  color: #a3adba;
}
.red-dot,
.amber-dot,
.green-dot,
.blue-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.red-dot {
  background: var(--red);
}
.amber-dot {
  background: #e2b23b;
}
.green-dot {
  background: #239a7e;
}
.blue-dot {
  background: #5386e9;
}
.count-pill {
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  color: #8b99ad;
  background: #f3f5f8;
  padding: 6px 9px;
  border-radius: 5px;
}
.attention-panel .count-pill {
  background: #fff0f0;
  color: #d8797a;
}
.attention-list {
  padding: 0 23px;
}
.attention-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 0;
  border-bottom: 1px solid #eff2f6;
}
.attention-item:last-child {
  border-bottom: none;
}
.attention-item > div {
  flex: 1;
  min-width: 0;
}
.attention-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 7px;
}
.attention-dot.before_review {
  background: var(--red);
}
.attention-dot.reviewed {
  background: var(--amber);
}
.attention-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #95a1b0;
  margin-bottom: 6px;
  gap: 5px;
}
.attention-item h3 {
  font-size: 12px;
  margin: 0 0 5px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attention-item p {
  font-size: 9px;
  color: #95a1b0;
  margin: 0;
}
.attention-item > .icon {
  width: 13px;
  color: #bdc6d2;
}
.attention-item:hover h3 {
  color: var(--blue);
}
.panel-footer-link {
  display: block;
  text-align: center;
  padding: 14px;
  color: #7c94b5;
  font-size: 10px;
  border-top: 1px solid #eff2f6;
}
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 23px;
  margin-bottom: 24px;
}
.chart-legend {
  display: flex;
  gap: 15px;
  font-size: 9px;
  color: #8b98aa;
}
.chart-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.bar-chart {
  height: 175px;
  margin: 22px 27px 24px;
  display: flex;
  gap: 25px;
  justify-content: space-around;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 37px,
    #f2f4f8 38px,
    #f2f4f8 39px
  );
}
.chart-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  min-width: 0;
}
.bar-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 143px;
  width: 100%;
}
.chart-bar {
  width: 19px;
  max-width: 38%;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  position: relative;
}
.blue-bar {
  background: #7f9fe6;
}
.green-bar {
  background: #67bda7;
}
.chart-bar > span {
  font-size: 9px;
  position: absolute;
  top: -18px;
  text-align: center;
  left: 0;
  right: 0;
  color: #8392a5;
}
.chart-month {
  font-size: 9px;
  padding-top: 13px;
  color: #9aa6b5;
  background: white;
  width: 100%;
  text-align: center;
}
.activity-list {
  padding: 0 24px 11px;
}
.activity-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5fa;
  color: #87a0bd;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.activity-icon.improved {
  background: #ebf8f2;
  color: #50a88b;
}
.activity-icon .icon {
  width: 13px;
  height: 13px;
}
.activity-item > div {
  min-width: 0;
  flex: 1;
}
.activity-item p {
  font-size: 10px;
  line-height: 1.6;
  margin: 0 0 3px;
  color: #77869b;
}
.activity-item strong {
  color: #61758f;
  font-weight: 600;
}
.activity-item span:not(.activity-icon) {
  font-size: 9px;
  color: #a3adbb;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-item time {
  font-size: 8px;
  color: #a0acbc;
  white-space: nowrap;
  align-self: flex-start;
  padding-top: 3px;
}
.insight-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #eaf1fb;
  border: 1px solid #dde7f6;
  border-radius: 12px;
  padding: 20px 24px;
}
.insight-mark {
  width: 44px;
  height: 44px;
  background: #dce8fa;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #6b90c7;
  flex: 0 0 auto;
}
.insight-mark .icon {
  width: 24px;
  height: 24px;
}
.insight-banner h3 {
  font-size: 12px;
  color: #54739a;
  margin: 0 0 6px;
}
.insight-banner p {
  font-size: 10px;
  color: #86a0be;
  margin: 0;
}
.insight-banner > .button {
  margin-left: auto;
  font-size: 10px;
  min-height: 35px;
  padding: 8px 12px;
  background: #fff9;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 8px;
  color: #a3aebc;
  margin-top: 28px;
  line-height: 1.8;
}
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid #cee9db;
  background: #edf9f2;
  border-radius: 9px;
  color: #358966;
  font-size: 12px;
  margin-bottom: 20px;
}
.flash.alert,
.form-errors {
  background: #fff2f2;
  border-color: #f1d1d3;
  color: #bd565d;
}
.form-errors {
  padding: 18px;
  border: 1px solid #f1d1d3;
  border-radius: 9px;
  margin-bottom: 20px;
  font-size: 12px;
}
.form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}
.mobile-menu,
.mobile-bottom-nav {
  display: none;
}
.connection-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 20px;
  background: #fff1c7;
  color: #825d19;
  text-align: center;
  font-size: 12px;
}
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 15px;
}
.project-selector {
  display: flex;
  align-items: center;
  gap: 9px;
}
.project-selector > .icon {
  color: #8096af;
  width: 17px;
}
.project-selector select {
  border: 1px solid #dde4ee;
  background: white;
  padding: 11px 38px 11px 13px;
  border-radius: 7px;
  font-size: 12px;
  min-width: 300px;
  max-width: 100%;
}
.drawing-revision {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ba7b7;
  font-size: 10px;
}
.drawing-revision .icon {
  width: 14px;
}
.status-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  overflow-x: auto;
  padding: 2px;
}
.status-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid #e1e7ef;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  color: #7b899b;
}
.status-tab > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-tab.before_review > i {
  background: var(--red);
}
.status-tab.reviewed > i {
  background: var(--amber);
}
.status-tab.improved > i {
  background: var(--green);
}
.status-tab > span {
  font-weight: 700;
  color: #54677e;
  margin-left: 8px;
}
.status-tab.active {
  border-color: #b7ccef;
  background: #edf4ff;
  color: #3564a9;
}
.map-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.map-actions {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf1f7;
}
.map-actions > span {
  font-size: 10px;
  line-height: 1.8;
  color: #8a9bad;
  display: flex;
  gap: 6px;
  align-items: center;
}
.map-actions > span .icon {
  width: 14px;
  height: 14px;
}
.map-viewport {
  overflow: auto;
  max-height: 650px;
  padding: 8px;
  background: #fbfcfe;
  overscroll-behavior: contain;
}
.map-canvas {
  position: relative;
  width: 100%;
  min-width: 100%;
  line-height: 0;
}
.floor-drawing {
  display: block;
  width: 100%;
  user-select: none;
  pointer-events: none;
}
.map-canvas .map-pin {
  line-height: 1;
  min-width: 32px;
  height: 32px;
}
.selecting-location .map-canvas {
  cursor: crosshair;
  outline: 2px dashed #75a0e5;
  outline-offset: -3px;
}
.selecting-location .map-actions {
  background: #edf4ff;
}
.map-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf1f7;
  gap: 7px;
}
.map-bottom .legend {
  gap: 11px;
  padding: 15px;
  font-size: 8px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 1px;
  padding-right: 10px;
  font-size: 9px;
  color: #8898ac;
}
.zoom-controls .icon-button {
  width: 30px;
  height: 34px;
}
.zoom-controls .icon {
  width: 15px;
}
.zoom-controls > span {
  min-width: 40px;
  text-align: center;
}
.map-detail {
  max-height: 725px;
  overflow: auto;
}
.map-detail .panel-heading {
  padding: 18px;
}
.map-detail h2 {
  font-size: 13px;
}
.map-issue-list {
  padding: 0 16px 10px;
}
.map-issue-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #edf1f7;
}
.small-pin {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 9px;
  color: white;
  flex: 0 0 auto;
}
.map-issue-item > div {
  flex: 1;
  min-width: 0;
}
.map-issue-item h3 {
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 5px;
}
.map-issue-item p,
.map-issue-item div > span {
  font-size: 9px;
  color: #9aa6b5;
  margin: 0;
}
.map-issue-item > .icon {
  width: 12px;
  color: #b2bfcd;
}
.map-issue-item:hover h3 {
  color: var(--blue);
}
.selected-issue {
  padding: 0 18px 23px;
}
.record-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.record-id {
  font-size: 10px;
  font-weight: 650;
  color: #7892b0;
  letter-spacing: 0.6px;
}
.selected-issue h2 {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 13px;
}
.selected-issue > p {
  font-size: 12px;
  color: #8896a7;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 5px;
  white-space: nowrap;
}
.status-badge > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.before_review {
  background: #fff0f0;
  color: #dd6e72;
}
.status-badge.reviewed {
  background: #fff7e3;
  color: #c49533;
}
.status-badge.improved {
  background: #eaf7f1;
  color: #439e81;
}
.detail-definition {
  margin: 22px 0;
  font-size: 11px;
}
.detail-definition > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  line-height: 1.7;
}
.detail-definition dt {
  color: #96a2b2;
}
.detail-definition dd {
  margin: 0;
  text-align: right;
  color: #62748c;
}
.map-help {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #98a5b7;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 20px;
}
.map-help > .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}
.map-help p {
  margin: 0;
}
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 21px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.filter-bar select,
.filter-bar input[type="search"] {
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 10px;
  height: 38px;
  background: white;
}
.filter-bar select {
  max-width: 220px;
}
.filter-bar .button {
  min-height: 37px;
  padding: 8px 12px;
  font-size: 10px;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 175px;
}
.search-field > .icon {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 15px;
  height: 15px;
  color: #9aa9ba;
}
.search-field input {
  width: 100%;
  padding-left: 34px !important;
}
.subtle-link {
  font-size: 10px;
  color: #8c9bb0;
  white-space: nowrap;
}
.subtle-link:hover {
  color: var(--blue);
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 23px;
  font-size: 11px;
  color: #7a8a9f;
}
.list-toolbar strong {
  color: #465c79;
  font-size: 14px;
  margin-right: 4px;
}
.list-toolbar small {
  font-size: 9px;
  color: #a4afbd;
  margin-left: 8px;
}
.table-scroll {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.data-table th {
  padding: 12px 18px;
  background: #f9fbfd;
  color: #93a0b2;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f7;
  line-height: 1.8;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fafcff;
}
.data-table small {
  display: block;
  font-size: 9px;
  color: #9aa7b8;
  line-height: 1.7;
  margin-top: 4px;
}
.data-table .money {
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.issue-title-cell {
  min-width: 200px;
  font-weight: 550;
  max-width: 290px;
}
.data-table td:first-child {
  white-space: nowrap;
}
.data-table .icon-button {
  width: 26px;
  height: 26px;
}
.data-table .icon {
  width: 14px;
  height: 14px;
}
.mobile-record-list {
  display: none;
}
.empty-state {
  padding: 45px 20px;
  text-align: center;
  color: #9aa8ba;
  font-size: 12px;
}
.empty-state > .icon {
  width: 36px;
  height: 36px;
  color: #b5c4d8;
  margin-bottom: 14px;
}
.empty-state p {
  margin: 0 0 14px;
}
.empty-state h3 {
  color: #7b8fa9;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8c9bb0;
  margin-bottom: 22px;
}
.back-link > .icon {
  width: 15px;
  height: 15px;
}
.step-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #a2afbf;
  white-space: nowrap;
}
.step-indicator > span {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9eef5;
  color: #8ca0b9;
  font-size: 9px;
}
.step-indicator > span:first-child {
  background: #e2edff;
  color: #517ec5;
}
.step-indicator > i {
  display: block;
  width: 15px;
  height: 1px;
  background: #d9e1ed;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.form-section {
  position: relative;
  padding: 26px;
  margin-bottom: 22px;
}
.section-number {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #edf3fd;
  color: #7898c5;
  font-size: 10px;
  float: left;
  margin-right: 10px;
}
.form-section h2 {
  font-size: 15px;
  line-height: 25px;
  margin-bottom: 10px;
}
.section-description {
  clear: both;
  font-size: 11px;
  color: #97a5b7;
  margin: 9px 0 24px;
}
.field {
  margin-bottom: 20px;
  min-width: 0;
}
.field > label {
  display: block;
  font-size: 11px;
  color: #657992;
  font-weight: 600;
  margin-bottom: 9px;
}
.field label > em {
  font-size: 8px;
  font-style: normal;
  margin-left: 6px;
  color: #de7478;
  background: #fff0f0;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 400;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  padding: 12px 13px;
  font-size: 12px;
  line-height: 1.6;
  background: white;
  min-height: 43px;
  box-shadow: 0 1px 2px #24457402;
}
.field textarea {
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b0bbc9;
}
.field small,
.field-help {
  display: block;
  color: #a2adbd;
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.8;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.photo-upload {
  display: flex;
  gap: 15px;
  border: 1px dashed #ccd9ea;
  border-radius: 10px;
  padding: 23px 20px;
  background: #fafcff;
  align-items: flex-start;
}
.photo-upload > .icon {
  color: #8ca5c7;
  width: 25px;
  height: 25px;
}
.photo-upload strong {
  font-size: 12px;
  font-weight: 600;
  color: #6b829f;
}
.photo-upload p {
  font-size: 10px;
  margin: 6px 0 12px;
  color: #a1afc0;
}
.photo-upload input {
  font-size: 11px;
  width: 100%;
}
.photo-upload small {
  display: block;
  font-size: 9px;
  color: #a3afbe;
  margin-top: 10px;
}
.photo-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.photo-preview img {
  width: 90px;
  height: 80px;
  object-fit: cover;
  border-radius: 7px;
}
.form-side {
  position: sticky;
  top: 25px;
}
.location-section {
  padding: 20px;
}
.location-section h2,
.summary-map h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}
.location-section h2 > .icon,
.summary-map h2 > .icon {
  width: 17px;
  height: 17px;
  color: #8ca4c4;
}
.location-section > p {
  font-size: 10px;
  color: #92a2b6;
}
.location-map {
  position: relative;
  display: block;
  background: #f7f9fc;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  cursor: crosshair;
  line-height: 0;
  overflow: hidden;
}
.location-map > img {
  display: block;
  width: 100%;
  user-select: none;
}
.location-map .map-pin {
  min-width: 24px;
  height: 24px;
  font-size: 9px;
  border-width: 1.5px;
  line-height: 1;
  pointer-events: none;
}
.coordinate-fields {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.coordinate-fields .field {
  margin: 0;
  flex: 1;
}
.coordinate-fields .field input {
  padding: 8px;
  min-height: 36px;
  font-size: 11px;
}
.coordinate-fields label {
  font-size: 9px;
  font-weight: 400;
}
.form-guidance {
  padding: 26px 20px;
  color: #8ea0b9;
}
.form-guidance > .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 13px;
  color: #8faad0;
}
.form-guidance h3 {
  font-size: 12px;
  color: #7189a8;
  margin-bottom: 10px;
}
.form-guidance p {
  font-size: 10px;
  line-height: 2;
}
.form-guidance > div {
  border-top: 1px solid #dfe7f1;
  padding-top: 20px;
  margin-top: 23px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.form-guidance small {
  font-size: 9px;
  color: #a0aec1;
  display: block;
  margin-top: 9px;
}
.inline-info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f1f6fd;
  color: #7891b1;
  border-radius: 7px;
  padding: 13px 15px;
  font-size: 10px;
  line-height: 1.9;
  margin-bottom: 18px;
}
.inline-info > .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.form-section .inline-info {
  margin: 0;
}
.form-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: #f5f7fbf5;
  border-top: 1px solid #e0e7f0;
  padding: 18px 0;
  z-index: 15;
}
.status-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 25px;
}
.status-option {
  position: relative;
  cursor: pointer;
}
.status-option > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.status-option > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e0e6ef;
  background: #fff;
  border-radius: 8px;
  padding: 13px 9px;
  font-size: 11px;
  color: #8a98ab;
}
.status-option i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-option.before_review i {
  background: var(--red);
}
.status-option.reviewed i {
  background: var(--amber);
}
.status-option.improved i {
  background: var(--green);
}
.status-option input:checked + span {
  border-color: #86a9e4;
  background: #f0f5ff;
  color: #4e78b5;
  box-shadow: 0 0 0 1px #86a9e4;
}
.status-option input:focus-visible + span {
  outline: 3px solid #80a8f4;
}
.issue-detail-title {
  font-size: 24px;
  max-width: 850px;
  margin-top: 10px;
}
.risk-badge,
.neutral-badge {
  padding: 4px 7px;
  background: #eef1f5;
  color: #8a98ad;
  font-size: 9px;
  border-radius: 4px;
}
.risk-badge.high {
  background: #fff0f0;
  color: #cf7c80;
}
.issue-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 24px;
  align-items: start;
}
.prose {
  font-size: 12px;
  line-height: 1.9;
  color: #70839b;
  overflow-wrap: anywhere;
}
.prose p {
  margin-bottom: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 25px;
  border-top: 1px solid #e8eef5;
  padding-top: 23px;
  margin-top: 24px;
  font-size: 12px;
}
.detail-grid dt {
  font-size: 10px;
  color: #9cacc0;
  margin-bottom: 7px;
}
.detail-grid dd {
  margin: 0;
  color: #667c98;
  line-height: 1.8;
}
.photo-gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.photo-gallery img {
  width: 130px;
  height: 100px;
  object-fit: cover;
  border-radius: 7px;
}
.issue-summary {
  position: sticky;
  top: 24px;
}
.summary-card {
  padding: 23px;
  margin-bottom: 20px;
}
.summary-card h2 {
  font-size: 13px;
  margin-bottom: 20px;
}
.assignee-display {
  display: flex;
  gap: 11px;
  align-items: center;
}
.assignee-display strong {
  font-size: 12px;
  display: block;
}
.assignee-display small {
  font-size: 10px;
  display: block;
  color: #98a8bd;
  margin-top: 6px;
}
.cost-summary {
  border-top: 1px solid #e3eaf2;
  padding-top: 20px;
}
.cost-summary > span {
  display: block;
  font-size: 10px;
  color: #8fa1b9;
}
.cost-summary > strong {
  font-size: 29px;
  display: block;
  letter-spacing: -0.5px;
  margin: 12px 0;
  color: #304e77;
}
.cost-summary > p {
  margin: 0;
  color: #98a9be;
  font-size: 11px;
}
.summary-map {
  padding: 20px;
  margin-bottom: 20px;
}
.summary-map > .text-link {
  margin-top: 15px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 10px 25px 25px;
}
.timeline > li {
  display: flex;
  gap: 15px;
  position: relative;
  padding-bottom: 30px;
}
.timeline > li:before {
  content: "";
  position: absolute;
  width: 1px;
  top: 33px;
  bottom: 0;
  left: 16px;
  background: #e4edf6;
}
.timeline > li:last-child {
  padding-bottom: 0;
}
.timeline > li:last-child:before {
  display: none;
}
.timeline-node {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf3fc;
  color: #8ca5ca;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.timeline-node .icon {
  width: 15px;
  height: 15px;
}
.timeline-node.improved {
  background: #e7f7ef;
  color: #62a88d;
}
.timeline-node.reviewed {
  background: #fdf5e3;
  color: #c6a15a;
}
.timeline-content {
  flex: 1;
  padding-top: 6px;
  min-width: 0;
}
.timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.timeline-top > strong {
  font-size: 12px;
  color: #667d9a;
}
.timeline-top > time {
  font-size: 9px;
  color: #a0aec0;
}
.timeline-person {
  font-size: 10px;
  color: #96a7bc;
  margin: 8px 0 12px;
}
.event-cost {
  font-size: 10px;
  color: #9aa9be;
  margin: 15px 0;
}
.event-cost strong {
  font-size: 13px;
  color: #6885aa;
  margin-left: 12px;
}
.event-notification {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  background: #f2f7fc;
  font-size: 9px;
  color: #84a0c2;
  border-radius: 6px;
  line-height: 1.7;
}
.event-notification > .icon {
  width: 12px;
  height: 12px;
}
.event-snapshot {
  margin-top: 12px;
  font-size: 10px;
  color: #93a5bd;
}
.event-snapshot summary {
  cursor: pointer;
}
.event-snapshot dl {
  background: #f8fafc;
  padding: 12px;
  border-radius: 5px;
}
.event-snapshot dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 6px 0;
}
.event-snapshot dd {
  margin: 0;
}
.archive-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #9caabc;
  font-size: 10px;
  padding: 12px;
}
.archive-button .icon {
  width: 15px;
  height: 15px;
}
.master-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}
.master-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: #889ab2;
}
.master-tab > .icon {
  color: #9eafc5;
  width: 19px;
  height: 19px;
}
.master-tab > span {
  margin-left: auto;
  font-size: 11px;
  background: #f1f4f8;
  padding: 4px 7px;
  border-radius: 5px;
}
.master-tab.active {
  border-color: #a6c0eb;
  background: #f0f5ff;
  color: #4a78b9;
}
.master-tab.active > .icon {
  color: #5f86be;
}
.manager-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8ba1bc;
}
.manager-label > .icon {
  width: 16px;
  height: 16px;
}
.master-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.master-editor {
  position: sticky;
  top: 25px;
}
.master-form {
  padding: 0 22px 23px;
}
.master-form .field {
  margin-bottom: 17px;
}
.master-form .field input,
.master-form .field select {
  font-size: 11px;
  min-height: 40px;
  padding: 10px;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #7a90aa;
  line-height: 1.7;
  margin: 20px 0;
}
.checkbox-field input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.master-table strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6a809d;
}
.master-table .record-id {
  font-size: 9px;
  margin-bottom: 4px;
  display: block;
}
.master-table td {
  font-size: 10px;
  color: #7b90ab;
}
.active-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  white-space: nowrap;
  color: #5d9c83;
  background: #edf7f1;
  border-radius: 4px;
  padding: 4px 7px;
}
.active-badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.active-badge.inactive {
  background: #f0f2f5;
  color: #98a4b4;
}
.muted-row {
  opacity: 0.65;
}
.compact-filter {
  padding-top: 0;
  border: 0;
}
.single-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px;
}
.company-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  margin-bottom: 25px;
}
.company-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  background: #eff4fc;
  border-radius: 16px;
  flex: 0 0 auto;
  color: #6f91c1;
}
.company-icon > .icon {
  width: 32px;
  height: 32px;
}
.company-card h2 {
  font-size: 19px;
  margin-bottom: 10px;
}
.company-card p:not(.eyebrow) {
  font-size: 11px;
  color: #8f9eb2;
  margin-bottom: 13px;
}
.company-card > .text-link {
  margin-left: auto;
  align-self: flex-start;
}
.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-tags > span {
  font-size: 9px;
  color: #8ca0ba;
  background: #f4f7fb;
  padding: 5px 8px;
  border-radius: 5px;
}
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 25px;
}
.project-thumbnail {
  display: block;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: #fafdff;
  padding: 12px;
  aspect-ratio: 1.85;
  overflow: hidden;
}
.project-thumbnail > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.project-thumbnail > span {
  position: absolute;
  right: 15px;
  bottom: 13px;
  background: #fffffff0;
  border: 1px solid #dfe7f2;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 9px;
  color: #a0aec0;
}
.project-card-body {
  padding: 24px;
}
.project-card-body > p {
  font-size: 10px;
  color: #99a9be;
  margin-bottom: 8px;
}
.project-card-body > h2 {
  font-size: 17px;
  margin-bottom: 18px;
}
.project-card-meta {
  display: flex;
  gap: 18px;
  color: #a0afc2;
  font-size: 10px;
  margin-bottom: 22px;
}
.project-card-meta > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-card-meta .icon {
  width: 14px;
  height: 14px;
}
.project-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.project-card-actions .active-badge {
  margin-left: auto;
}
.notification-info {
  display: flex;
  gap: 13px;
  padding: 17px 20px;
  background: #edf4ff;
  border: 1px solid #dce8fa;
  border-radius: 10px;
  color: #829abb;
  font-size: 11px;
  margin-bottom: 24px;
}
.notification-info > .icon {
  margin-top: 2px;
  width: 17px;
  height: 17px;
}
.notification-info p {
  margin: 0;
}
.mailbox-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}
.mailbox-list {
  max-height: 920px;
  overflow: auto;
}
.mail-item {
  display: flex;
  gap: 13px;
  padding: 20px;
  border-top: 1px solid var(--line);
}
.mail-item.selected {
  background: #f0f5ff;
  border-left: 3px solid #7399d8;
  padding-left: 17px;
}
.mail-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #eef3fa;
  color: #8aa5ca;
  flex: 0 0 auto;
}
.mail-avatar > .icon {
  width: 16px;
  height: 16px;
}
.mail-item > div {
  min-width: 0;
  flex: 1;
}
.mail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  margin-bottom: 9px;
}
.mail-meta > strong {
  color: #6e87a8;
  font-weight: 600;
}
.mail-meta > time {
  font-size: 9px;
  color: #a3b1c4;
  white-space: nowrap;
}
.mail-item h3 {
  font-size: 11px;
  line-height: 1.8;
  color: #7b91ad;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}
.delivery-status {
  font-size: 9px;
  color: #ad9d75;
}
.delivery-status.delivered {
  color: #66a78a;
}
.delivery-status.failed {
  color: #ce7a7f;
}
.mail-preview-heading {
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background: #fdfefe;
}
.mail-preview-heading h2 {
  font-size: 16px;
  line-height: 1.8;
  margin: 14px 0 20px;
}
.mail-preview-heading dl {
  font-size: 10px;
  margin: 0;
  line-height: 1.9;
}
.mail-preview-heading dl > div {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.mail-preview-heading dt {
  min-width: 44px;
  color: #acb8c9;
}
.mail-preview-heading dd {
  margin: 0;
  color: #8b9db6;
  overflow-wrap: anywhere;
}
.email-body {
  padding: 25px 30px;
  font-size: 12px;
  color: #7288a6;
  line-height: 2;
  overflow-wrap: anywhere;
}
.email-body p {
  line-height: 2;
}
.mail-actions {
  padding: 0 28px 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.report-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  color: #7e94af;
  font-size: 11px;
}
.report-controls input {
  border: 1px solid #dce5f1;
  border-radius: 7px;
  padding: 10px;
  background: #fff;
  font-size: 12px;
}
.report-paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 35px;
}
.report-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 2px solid #e5edf8;
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.report-title h2 {
  font-size: 22px;
  margin: 10px 0;
}
.report-title p:not(.eyebrow) {
  font-size: 10px;
  color: #97a8c0;
  margin: 0;
}
.report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #f6f9fd;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 30px;
}
.report-stats > div {
  border-right: 1px solid #e1e9f4;
  padding-right: 15px;
}
.report-stats > div:last-child {
  border: 0;
}
.report-stats span {
  display: block;
  font-size: 10px;
  color: #96a9c1;
  margin-bottom: 12px;
}
.report-stats strong {
  font-size: 27px;
  color: #536f95;
}
.report-stats small {
  font-size: 10px;
  margin-left: 8px;
  font-weight: 400;
}
.report-stats .report-cost {
  font-size: 22px;
}
.report-paper > h3 {
  font-size: 13px;
  margin: 22px 0;
}
.report-table td {
  font-size: 10px;
  padding: 14px 12px;
}
.report-table td strong {
  font-weight: 500;
}
.report-footnote {
  font-size: 9px;
  color: #a0b0c5;
  margin-top: 30px;
  line-height: 1.9;
}
.legacy-content .page-shell {
  max-width: 100%;
}
.legacy-content .hero-panel,
.legacy-content .form-panel,
.legacy-content .content-panel,
.legacy-content .detail-panel {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
}
.legacy-content .hero-panel h1 {
  font-size: 24px;
}
.legacy-content .hero-copy {
  font-size: 12px;
  color: var(--muted);
}
.legacy-content .btn {
  display: inline-flex;
  padding: 10px 15px;
  background: var(--blue);
  color: white;
  border-radius: 6px;
  font-size: 12px;
  border: 0;
  margin-right: 6px;
  margin-bottom: 6px;
}
.legacy-content .btn-danger {
  background: #cd6a73;
}
.legacy-content .btn-ghost {
  background: #e7edf7;
  color: #6c829e;
}
.legacy-content .field input,
.legacy-content .field select,
.legacy-content .field textarea {
  width: 100%;
}
.legacy-content .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.legacy-content .field-full {
  grid-column: 1/-1;
}
.legacy-content table {
  border-collapse: collapse;
  width: 100%;
}
.legacy-content th,
.legacy-content td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}
.legacy-content .table-wrap {
  overflow: auto;
}
.legacy-content .stat-grid {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}
.legacy-content .stat-card {
  flex: 1;
}
.legacy-content .note-grid,
.legacy-content .factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.legacy-content .note-card,
.legacy-content .factory-card {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  background: white;
}
.legacy-content .status-chip {
  background: #eaf2fd;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 10px;
}
.legacy-content .form-actions {
  margin-top: 20px;
}
.legacy-content label {
  font-size: 12px;
}
.legacy-content .error-box {
  background: #fff0f0;
  color: #c25a61;
  padding: 20px;
}
.sidebar-scrim {
  position: fixed;
  inset: 0;
  background: #07162880;
  border: 0;
  z-index: 35;
}
@media (min-width: 1600px) {
  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);
  }
  .map-preview {
    aspect-ratio: 1.85;
  }
  .attention-item {
    padding: 20px 0;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebar: 216px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .main-content {
    padding: 28px 24px 20px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats-grid {
    gap: 13px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-number {
    font-size: 32px;
  }
  .stat-number.cost-number {
    font-size: 25px;
  }
  .metric-tag {
    margin-left: 7px;
    font-size: 8px;
  }
  .stat-card p {
    font-size: 8px;
  }
  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 1fr);
    gap: 18px;
  }
  .panel-heading {
    padding: 19px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .panel-heading .text-link {
    font-size: 9px;
  }
  .attention-list {
    padding: 0 19px;
  }
  .attention-item {
    padding: 12px 0;
  }
  .map-workspace {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .map-actions {
    flex-wrap: wrap;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .master-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .master-tab {
    padding: 17px 14px;
    font-size: 11px;
  }
  .master-tab > .icon {
    width: 16px;
    height: 16px;
  }
  .page-footer > span:last-child {
    max-width: 55%;
  }
  .issue-detail-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .step-indicator {
    display: none;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 200px;
  }
  :root {
    --sidebar: 200px;
  }
  .main-content {
    padding: 24px 19px 18px;
  }
  .topbar {
    padding: 0 19px;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-left {
    gap: 10px;
    font-size: 10px;
  }
  .user-switcher {
    padding-left: 10px;
    gap: 4px;
  }
  .user-switcher select {
    max-width: 150px;
    font-size: 10px;
  }
  .notification-shortcut {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card p {
    font-size: 10px;
  }
  .stat-number.cost-number {
    font-size: 30px;
  }
  .dashboard-main-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
  .map-preview {
    aspect-ratio: 1.8;
  }
  .attention-item {
    padding: 15px 0;
  }
  .map-workspace {
    grid-template-columns: 1fr;
  }
  .map-detail {
    max-height: 400px;
  }
  .map-issue-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .map-detail .selected-issue {
    max-width: none;
  }
  .selected-issue .detail-definition {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .form-layout,
  .issue-detail-layout {
    grid-template-columns: 1fr;
  }
  .form-side,
  .issue-summary {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .form-guidance {
    padding-top: 12px;
  }
  .location-section .location-map {
    max-height: 250px;
  }
  .form-main {
    min-width: 0;
  }
  .master-layout {
    grid-template-columns: 1fr;
  }
  .master-editor {
    position: static;
  }
  .master-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
  }
  .master-form > .inline-info,
  .master-form > .form-errors {
    grid-column: 1/-1;
  }
  .master-tabs {
    gap: 9px;
  }
  .master-tab {
    padding: 15px 12px;
    font-size: 10px;
    gap: 8px;
  }
  .master-tab > span {
    display: none;
  }
  .company-card {
    gap: 16px;
    padding: 22px;
  }
  .company-card h2 {
    font-size: 16px;
  }
  .company-card > .text-link {
    display: none;
  }
  .project-card-grid {
    gap: 16px;
  }
  .project-card-body {
    padding: 20px;
  }
  .project-card-body > h2 {
    font-size: 15px;
  }
  .project-card-meta {
    flex-direction: column;
    gap: 8px;
  }
  .project-card-actions .button {
    padding: 9px 12px;
    font-size: 10px;
  }
  .project-card-actions > .active-badge {
    display: none;
  }
  .mailbox-layout {
    grid-template-columns: 1fr;
  }
  .mailbox-list {
    max-height: 350px;
  }
  .report-stats {
    grid-template-columns: 1fr 1fr;
  }
  .report-stats > div:nth-child(2) {
    border: 0;
  }
  .report-paper {
    padding: 25px;
  }
  .insight-banner {
    padding: 18px;
  }
  .insight-banner > .button {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    padding: 26px 18px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-open {
    overflow: hidden;
  }
  .mobile-menu {
    display: inline-flex;
    color: #6381a7;
  }
  .topbar {
    height: 64px;
    padding: 0 15px;
    gap: 4px;
  }
  .topbar-left {
    gap: 7px;
  }
  .topbar-left > .topbar-company,
  .crumb-separator {
    display: none;
  }
  .topbar-left > span:last-child {
    font-size: 10px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-right > .demo-pill {
    font-size: 8px;
    padding: 4px 6px;
  }
  .user-switcher {
    border: 0;
    padding: 0;
    gap: 0;
  }
  .user-switcher .avatar {
    display: none;
  }
  .user-switcher select {
    font-size: 10px;
    max-width: 120px;
    padding: 10px 0;
    min-height: 40px;
  }
  .main-content {
    padding: 24px 16px 95px;
  }
  .page-heading {
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 23px;
    letter-spacing: -0.5px;
  }
  .page-heading > .button {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 10px;
    align-self: center;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
  }
  .page-description {
    font-size: 10px;
    line-height: 1.9;
  }
  .page-heading.compact {
    margin-bottom: 22px;
  }
  .context-line {
    font-size: 9px;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
  }
  .context-line > span:first-child {
    flex-wrap: wrap;
    gap: 5px;
    max-width: 60%;
  }
  .context-line .muted {
    margin: 0;
    display: block;
    width: 100%;
    padding-left: 19px;
    font-size: 8px;
  }
  .context-line > span:last-child {
    font-size: 8px;
    padding-top: 3px;
    white-space: nowrap;
  }
  .stats-grid {
    gap: 12px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 15px 16px 14px;
    border-radius: 12px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
  }
  .stat-icon .icon {
    width: 15px;
    height: 15px;
  }
  .stat-number {
    font-size: 34px;
    margin: 6px 0 10px;
  }
  .stat-number.cost-number {
    font-size: 25px;
    line-height: 1.6;
    padding-top: 3px;
  }
  .stat-number > small {
    font-size: 10px;
    margin-left: 6px;
  }
  .stat-card p {
    font-size: 8px;
    white-space: normal;
    line-height: 1.6;
  }
  .metric-tag {
    font-size: 8px;
    margin-left: 5px;
    padding: 3px 5px;
  }
  .dashboard-main-grid,
  .dashboard-bottom-grid {
    gap: 20px;
    margin-bottom: 20px;
  }
  .panel {
    border-radius: 12px;
  }
  .panel-heading {
    padding: 19px 18px 16px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .map-preview {
    margin: 0 12px;
    aspect-ratio: 1.5;
  }
  .map-preview-caption {
    padding: 10px 12px;
    font-size: 8px;
  }
  .map-preview-caption > span {
    font-size: 7px;
  }
  .legend {
    font-size: 8px;
    gap: 15px;
    padding: 13px 17px;
  }
  .legend > .muted {
    font-size: 8px;
  }
  .attention-list {
    padding: 0 18px;
  }
  .attention-item {
    padding: 15px 0;
  }
  .attention-item h3 {
    font-size: 12px;
  }
  .attention-item p {
    font-size: 9px;
  }
  .attention-meta {
    font-size: 9px;
  }
  .activity-list {
    padding: 0 18px 6px;
  }
  .activity-item {
    gap: 9px;
    margin-bottom: 17px;
  }
  .activity-item p {
    font-size: 10px;
  }
  .activity-item time {
    font-size: 8px;
  }
  .bar-chart {
    height: 165px;
    margin: 20px 22px;
  }
  .bar-pair {
    height: 133px;
  }
  .insight-banner {
    align-items: flex-start;
    padding: 18px;
    gap: 13px;
  }
  .insight-mark {
    width: 35px;
    height: 35px;
    border-radius: 9px;
  }
  .insight-mark .icon {
    width: 20px;
    height: 20px;
  }
  .insight-banner h3 {
    font-size: 11px;
    line-height: 1.8;
  }
  .insight-banner p {
    font-size: 9px;
    line-height: 1.9;
  }
  .page-footer {
    font-size: 8px;
    display: block;
    line-height: 1.9;
    margin-top: 22px;
  }
  .page-footer > span {
    display: block;
  }
  .page-footer > span:last-child {
    max-width: none;
    margin-top: 7px;
  }
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    background: #fffffffa;
    border-top: 1px solid #e1e8f2;
    z-index: 25;
    backdrop-filter: blur(12px);
  }
  .mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 5px 7px;
    margin: 0;
    font-size: 9px;
    color: #9aaabd;
    border-radius: 7px;
  }
  .mobile-bottom-nav .nav-link .icon {
    width: 19px;
    height: 19px;
  }
  .mobile-bottom-nav .nav-link.is-active {
    box-shadow: none;
    background: #f0f5ff;
    color: #5281c6;
  }
  .heading-actions {
    gap: 7px;
    flex-wrap: wrap;
  }
  .heading-actions .button {
    font-size: 10px;
    padding: 9px 11px;
    min-height: 38px;
  }
  .page-heading:has(.heading-actions) {
    flex-wrap: wrap;
  }
  .map-toolbar {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .project-selector {
    width: 100%;
  }
  .project-selector select {
    min-width: 0;
    width: 100%;
    font-size: 11px;
    padding: 12px 8px;
    min-height: 44px;
  }
  .drawing-revision {
    font-size: 9px;
    margin-left: 25px;
  }
  .status-tabs {
    gap: 7px;
    flex-wrap: wrap;
    overflow-x: visible;
    margin-bottom: 16px;
    padding-bottom: 5px;
  }
  .status-tab {
    padding: 10px 12px;
    font-size: 10px;
    gap: 7px;
    min-height: 44px;
  }
  .status-tab > span {
    margin-left: 1px;
  }
  .map-workspace {
    gap: 18px;
  }
  .map-actions {
    padding: 12px;
    gap: 9px;
    flex-direction: column;
    align-items: flex-start;
  }
  .map-actions > span {
    font-size: 9px;
    line-height: 1.8;
  }
  .map-actions .button {
    min-height: 39px;
    width: 100%;
    font-size: 10px;
  }
  .map-viewport {
    padding: 3px;
    max-height: 550px;
  }
  .map-canvas .map-pin {
    min-width: 29px;
    height: 29px;
    font-size: 9px;
    border-width: 1.5px;
  }
  .map-bottom {
    flex-wrap: wrap;
  }
  .map-bottom .legend {
    font-size: 8px;
    padding: 11px 12px;
    gap: 10px;
  }
  .zoom-controls {
    margin-left: auto;
    padding-right: 7px;
  }
  .zoom-controls .icon-button {
    width: 34px;
    height: 38px;
  }
  .map-issue-list {
    display: block;
    padding: 0 17px 7px;
  }
  .map-issue-item {
    padding: 15px 0;
  }
  .map-issue-item h3 {
    font-size: 12px;
  }
  .map-issue-item p,
  .map-issue-item div > span {
    font-size: 10px;
  }
  .map-detail {
    max-height: none;
  }
  .map-detail .panel-heading {
    padding: 17px;
  }
  .selected-issue .detail-definition {
    display: block;
  }
  .map-help {
    font-size: 9px;
  }
  .desktop-record-table {
    display: none;
  }
  .mobile-record-list {
    display: block;
  }
  .mobile-record-card {
    padding: 19px 18px;
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .mobile-record-card:last-child {
    border-bottom: 0;
  }
  .mobile-record-card .record-meta {
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .mobile-record-card h3 {
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 8px;
  }
  .mobile-record-card > p {
    font-size: 10px;
    color: #9aaabd;
    margin: 0 0 13px;
  }
  .mobile-record-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 10px;
    color: #8a9fb9;
  }
  .mobile-record-bottom > strong {
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
  }
  .mobile-record-bottom .icon {
    width: 13px;
    height: 13px;
    color: #aebdd0;
  }
  .filter-bar {
    padding: 16px;
    gap: 9px;
  }
  .filter-bar .search-field {
    flex-basis: 100%;
  }
  .filter-bar select {
    flex: 1;
    min-width: 125px;
    max-width: none;
    font-size: 11px;
    min-height: 42px;
  }
  .filter-bar input[type="search"] {
    font-size: 12px;
    min-height: 42px;
  }
  .search-field > .icon {
    top: 14px;
  }
  .filter-bar .button {
    min-height: 40px;
    font-size: 11px;
  }
  .list-toolbar {
    padding: 15px 18px;
    font-size: 10px;
  }
  .list-toolbar small {
    display: none;
  }
  .back-link {
    margin-bottom: 18px;
    font-size: 10px;
  }
  .form-layout {
    gap: 0;
  }
  .form-section {
    padding: 20px 18px;
    margin-bottom: 19px;
  }
  .form-section h2 {
    font-size: 14px;
  }
  .section-description {
    font-size: 10px;
    margin-bottom: 22px;
  }
  .field-grid {
    gap: 0 14px;
  }
  .field {
    margin-bottom: 20px;
  }
  .field > label {
    font-size: 11px;
    margin-bottom: 9px;
  }
  .field input:not([type="checkbox"]):not([type="radio"]),
  .field textarea,
  .field select {
    font-size: 16px;
    padding: 11px 12px;
    min-height: 47px;
  }
  .field small,
  .field-help {
    font-size: 10px;
  }
  .field label > em {
    font-size: 8px;
  }
  .photo-upload {
    padding: 19px 14px;
    gap: 12px;
  }
  .photo-upload p {
    line-height: 1.8;
  }
  .photo-upload input {
    font-size: 12px;
    max-width: 230px;
  }
  .form-side {
    display: block;
    margin-bottom: 20px;
  }
  .location-section {
    padding: 20px 18px;
  }
  .location-section h2 {
    font-size: 13px;
  }
  .location-section > p {
    font-size: 11px;
  }
  .location-section .location-map {
    max-height: none;
  }
  .coordinate-fields .field input {
    font-size: 16px;
    min-height: 44px;
  }
  .coordinate-fields label {
    font-size: 10px;
  }
  .form-guidance {
    display: none;
  }
  .form-action-bar {
    bottom: 63px;
    padding: 13px 0;
    gap: 9px;
    justify-content: stretch;
  }
  .form-action-bar > .button {
    font-size: 11px;
    padding: 12px;
    min-height: 45px;
  }
  .form-action-bar > input {
    flex: 1;
    min-width: 0;
  }
  .status-choice {
    gap: 8px;
  }
  .status-option > span {
    font-size: 10px;
    padding: 13px 7px;
    gap: 6px;
    min-height: 44px;
  }
  .status-option i {
    width: 6px;
    height: 6px;
  }
  .issue-detail-title {
    font-size: 22px !important;
    line-height: 1.8;
    margin-top: 14px;
  }
  .issue-detail-layout {
    gap: 0;
  }
  .issue-summary {
    display: block;
  }
  .summary-card {
    padding: 22px;
  }
  .detail-grid {
    gap: 20px 15px;
  }
  .timeline {
    padding: 10px 18px 23px;
  }
  .timeline > li {
    gap: 12px;
  }
  .timeline-top {
    align-items: flex-start;
    gap: 10px;
  }
  .timeline-top > time {
    font-size: 8px;
    white-space: nowrap;
    padding-top: 2px;
  }
  .timeline-person {
    line-height: 1.8;
  }
  .timeline-content .prose {
    font-size: 11px;
  }
  .event-notification {
    font-size: 9px;
    align-items: flex-start;
    line-height: 1.8;
  }
  .event-notification > .icon {
    margin-top: 3px;
  }
  .photo-gallery img {
    width: 105px;
    height: 88px;
  }
  .summary-map .location-map {
    max-height: 270px;
  }
  .master-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .master-tab {
    padding: 17px 13px;
    font-size: 11px;
    gap: 10px;
  }
  .master-tab > span {
    display: block;
    font-size: 9px;
  }
  .master-form {
    display: block;
    padding: 0 18px 22px;
  }
  .master-form .field input,
  .master-form .field select {
    font-size: 16px;
    min-height: 46px;
  }
  .manager-label {
    font-size: 9px;
  }
  .manager-label > .icon {
    width: 15px;
    height: 15px;
  }
  .master-table {
    min-width: 510px;
  }
  .master-table td {
    padding: 16px;
  }
  .checkbox-field {
    font-size: 11px;
  }
  .checkbox-field input {
    width: 20px;
    height: 20px;
  }
  .company-card {
    padding: 21px;
    align-items: flex-start;
    gap: 13px;
  }
  .company-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
  }
  .company-icon > .icon {
    width: 25px;
    height: 25px;
  }
  .company-card h2 {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 9px;
  }
  .company-card .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
    margin-bottom: 5px;
  }
  .company-card p:not(.eyebrow) {
    font-size: 10px;
    line-height: 1.8;
  }
  .product-tags {
    gap: 5px;
  }
  .product-tags > span {
    font-size: 8px;
    padding: 4px 6px;
  }
  .project-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card-body {
    padding: 22px;
  }
  .project-card-body > h2 {
    font-size: 17px;
  }
  .project-card-meta {
    flex-direction: row;
    gap: 15px;
    font-size: 9px;
  }
  .project-card-actions .button {
    font-size: 11px;
    min-height: 42px;
  }
  .single-form {
    padding: 22px 18px;
  }
  .mailbox-layout {
    gap: 20px;
  }
  .mailbox-list {
    max-height: 390px;
  }
  .mail-item {
    padding: 17px 16px;
    gap: 11px;
  }
  .mail-item.selected {
    padding-left: 13px;
  }
  .mail-preview-heading {
    padding: 23px 20px;
  }
  .mail-preview-heading h2 {
    font-size: 14px;
  }
  .mail-preview-heading dl {
    font-size: 10px;
  }
  .email-body {
    padding: 22px 20px;
    font-size: 11px;
  }
  .mail-actions {
    padding: 0 20px 23px;
  }
  .notification-info {
    padding: 15px;
    font-size: 10px;
    gap: 10px;
  }
  .notification-info > .icon {
    width: 15px;
    height: 15px;
  }
  .report-paper {
    padding: 22px 17px;
  }
  .report-title {
    gap: 10px;
  }
  .report-title .eyebrow {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .report-title h2 {
    font-size: 18px;
    line-height: 1.7;
  }
  .report-title p:not(.eyebrow) {
    font-size: 9px;
    line-height: 1.9;
  }
  .report-title > .demo-pill {
    font-size: 7px;
    padding: 4px 5px;
  }
  .report-stats {
    padding: 19px 15px;
    gap: 22px 15px;
  }
  .report-stats span {
    font-size: 9px;
  }
  .report-stats strong {
    font-size: 25px;
  }
  .report-stats .report-cost {
    font-size: 20px;
  }
  .report-table {
    min-width: 600px;
  }
  .report-controls input {
    font-size: 16px;
    max-width: 175px;
  }
  .report-controls {
    gap: 10px;
    font-size: 10px;
  }
  .report-controls .button {
    font-size: 10px;
  }
  .legacy-content .form-grid,
  .legacy-content .note-grid,
  .legacy-content .factory-grid {
    grid-template-columns: 1fr;
  }
  .legacy-content .stat-grid {
    flex-wrap: wrap;
  }
  .legacy-content .stat-card {
    min-width: 42%;
  }
  .legacy-content .hero-panel {
    padding: 20px;
  }
  .legacy-content .detail-grid {
    grid-template-columns: 1fr;
  }
  .connection-banner {
    font-size: 10px;
    line-height: 1.7;
    padding: 9px 15px;
  }
  .flash {
    font-size: 11px;
    padding: 13px;
    align-items: flex-start;
    line-height: 1.8;
  }
  .flash .icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
  }
  .form-errors {
    font-size: 11px;
    line-height: 1.8;
  }
  .issue-form .form-errors {
    margin-bottom: 18px;
  }
}
@media (max-width: 380px) {
  .topbar-left > span:last-child {
    max-width: 85px;
  }
  .topbar-right > .demo-pill {
    display: none;
  }
  .stat-card {
    padding: 13px;
  }
  .stat-number {
    font-size: 30px;
  }
  .stat-number.cost-number {
    font-size: 22px;
  }
  .metric-tag {
    font-size: 7px;
    padding: 3px;
    margin-left: 4px;
  }
  .page-heading > .button {
    padding: 10px;
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 21px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .status-choice {
    gap: 6px;
  }
  .project-card-meta {
    flex-direction: column;
  }
  .map-bottom .legend {
    gap: 7px;
  }
  .zoom-controls {
    padding-right: 2px;
  }
  .zoom-controls .icon-button {
    width: 28px;
  }
  .user-switcher select {
    max-width: 135px;
  }
}
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  .sidebar,
  .topbar,
  .mobile-bottom-nav,
  .page-footer,
  .page-heading,
  .report-controls,
  .flash,
  .connection-banner {
    display: none !important;
  }
  .app-body {
    margin: 0;
  }
  .main-content {
    padding: 0;
    max-width: none;
  }
  .report-paper {
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .report-table {
    min-width: 0;
    font-size: 9px;
  }
  .table-scroll {
    overflow: visible;
  }
  .report-title {
    break-after: avoid;
  }
  .report-stats {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .report-stats strong {
    font-size: 23px;
  }
  .report-table th,
  .report-table td {
    padding: 9px 6px;
  }
  .status-badge {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .report-footnote {
    font-size: 8px;
  }
  tr {
    break-inside: avoid;
  }
  @page {
    size: A4 landscape;
    margin: 15mm;
  }
}
/* Keep Japanese headline phrases intact at narrow widths. */
.page-heading h1 > span {
  display: inline-block;
}
@media (max-width: 900px) {
  .page-heading:not(.compact) {
    flex-wrap: wrap;
  }
  .page-heading:not(.compact) > div {
    width: 100%;
  }
  .page-heading:not(.compact) > .button {
    margin-left: auto;
    margin-top: 1px;
  }
  .page-description {
    color: #7a899d;
  }
  .field-help,
  .field small {
    color: #7d8da3;
  }
  .stat-card p {
    color: #8391a4;
  }
}
