@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&family=Source+Serif+4:wght@500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #171717;
  --muted: #6b6258;
  --line: #d0c3ac;
  --soft: #f5ecdc;
  --paper: #f5ecdc;
  --ledger-paper: #f5ecd0;
  --brand: #1f7f4c;
  --brand-2: #1e3a4c;
  --signal: #44a3b5;
  --sensor: #2fae6c;
  --bronze: #af7b3d;
  --brass: #b0a44a;
  --warn: #d49134;
  --danger: #a53f2d;
  --ok: #2fae6c;
  --info: #44a3b5;
  --navy: #0f1d26;
  --boiler: #171717;
  --shadow: 0 14px 34px rgba(23, 23, 23, 0.14);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(68, 163, 181, 0.12), transparent 34rem),
    linear-gradient(135deg, #eadfca 0%, #f5ecdc 48%, #d1c1a4 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(68, 163, 181, 0.08), transparent 18rem),
    #0f1d26;
  color: #f5ecd0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(176, 164, 74, 0.32);
}

.brand h1 {
  margin: 10px 0 0;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #f5ecd0;
}

.brand p {
  margin: 8px 0 0;
  color: #f5ecd0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand small {
  display: block;
  margin-top: 9px;
  color: #b8c5bd;
  font-size: 11px;
  line-height: 1.45;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: end center;
  border: 1px solid rgba(176, 164, 74, 0.55);
  background: #171717;
  box-shadow: inset 0 0 0 4px #0f1d26;
}

.brand-mark span,
.brand-mark span::before,
.brand-mark span::after {
  display: block;
  content: "";
  border: 2px solid var(--bronze);
  border-bottom: 0;
}

.brand-mark span {
  width: 22px;
  height: 42px;
  position: relative;
}

.brand-mark span::before {
  width: 36px;
  height: 30px;
  position: absolute;
  left: -9px;
  bottom: 0;
}

.brand-mark span::after {
  width: 8px;
  height: 52px;
  position: absolute;
  left: 5px;
  bottom: 0;
  background: var(--bronze);
  border-color: var(--bronze);
}

.nav {
  display: grid;
  gap: 4px;
}

.nav button {
  min-height: 40px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #f5ecd0;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav button:hover,
.nav button.active {
  background: rgba(245, 236, 208, 0.1);
  color: #ffffff;
}

.nav button.active {
  box-shadow: inset 3px 0 0 var(--bronze);
}

.nav .nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(245, 236, 208, 0.09);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-count {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f1d26;
  background: var(--sensor);
  font-size: 11px;
  font-weight: 800;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  color: #d8d7cb;
  background: rgba(68, 163, 181, 0.1);
  border: 1px solid rgba(68, 163, 181, 0.28);
  border-radius: var(--radius);
  font-size: 12px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(245, 236, 220, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar h2 {
  margin: 0;
  font-size: 20px;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.top-actions,
.row-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content {
  padding: 18px 20px 32px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid > *,
.split > *,
.map-shell > * {
  min-width: 0;
}

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

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

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

.panel,
.card {
  min-width: 0;
  background: linear-gradient(180deg, #fff8ec, var(--ledger-paper));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 16px;
}

.signal-panel {
  background:
    linear-gradient(180deg, rgba(68, 163, 181, 0.12), rgba(15, 29, 38, 0.02)),
    #f5ecd0;
  border-color: rgba(68, 163, 181, 0.35);
}

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

.panel-header h3,
.card h3 {
  margin: 0;
  font-size: 15px;
}

.panel-header p,
.card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.metric {
  min-height: 116px;
  display: grid;
  align-content: space-between;
}

.metric-value {
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-foot {
  color: var(--muted);
  font-size: 12px;
}

.setup-logo-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.setup-logo {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #f5ecd0;
  border: 1px dashed #b0a44a;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
}

.setup-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5ecd0;
}

.btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #171717;
  background: #f5ecd0;
  border: 1px solid #b0a44a;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.btn:hover {
  background: #fff7df;
}

.btn.primary {
  color: #171717;
  background: linear-gradient(180deg, #d8a14c, var(--bronze));
  border-color: #8b5a24;
}

.btn.dark {
  color: #f5ecd0;
  background: var(--navy);
  border-color: #284557;
}

.btn.warn {
  color: #171717;
  background: var(--warn);
  border-color: var(--warn);
}

.btn.danger {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn.icon {
  width: 36px;
  padding: 0;
}

.status,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: #efe5cf;
  color: var(--muted);
}

.status.normal,
.status.working,
.status.available,
.status.completed,
.status.ok {
  color: #0d5f38;
  background: #d9f2e5;
}

.status.warning,
.status.watch,
.status.maintenance-due,
.status.in-progress,
.status.in-process,
.status.waiting-on-materials,
.status.waiting-on-vendor,
.status.active,
.status.monitoring,
.status.due,
.status.urgent,
.status.priority-2,
.status.needs-credentials,
.status.configured-draft,
.status.pilot-ready,
.status.needs-legal {
  color: #825019;
  background: #f4dbb7;
}

.status.critical,
.status.blocked,
.status.not-working,
.status.maintenance-overdue,
.status.emergency,
.status.priority-1,
.status.overdue,
.status.launch-blocker,
.status.exit-blocker {
  color: #7d2618;
  background: #efd2c9;
}

.status.offline,
.status.pending-supervisor-review,
.status.deferred,
.status.regular-route,
.status.scheduled,
.status.plugin-prepared {
  color: #475b62;
  background: #d8dde0;
}

.status.simulated {
  color: #0b6172;
  background: #d7f1f5;
}

.status.delivered {
  color: #115b26;
  background: #daf1df;
}

.status.queued {
  color: #0b6172;
  background: #d7f1f5;
}

.status.failed {
  color: #8a1f1f;
  background: #ffd8d8;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--muted);
  background: #eadcc1;
  font-size: 11px;
  text-transform: uppercase;
}

tr:hover td {
  background: #fff7e8;
}

.kit-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(176, 164, 74, 0.5);
  font-size: 12px;
}

.kit-line:last-child {
  border-bottom: 0;
}

.kit-line strong {
  color: var(--navy);
  font-family: "Space Grotesk", Inter, sans-serif;
}

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

.field {
  display: grid;
  gap: 5px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c9b893;
  border-radius: 7px;
  background: #fffaf0;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(68, 163, 181, 0.28);
  border-color: var(--signal);
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.supervisor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
}

.floor-map {
  position: relative;
  height: clamp(340px, 58vh, 560px);
  max-height: calc(100vh - 240px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(30, 58, 76, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(30, 58, 76, 0.1) 1px, transparent 1px),
    #f1e4ca;
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.floor-outline {
  position: absolute;
  inset: 26px;
  border: 3px solid var(--brand-2);
  background: rgba(245, 236, 208, 0.48);
}

.floor-outline::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.floor-outline.wing-single-core-rectangle {
  inset: 58px 78px;
}

.floor-outline.wing-right-wing {
  clip-path: polygon(8% 22%, 60% 22%, 60% 8%, 96% 8%, 96% 42%, 60% 42%, 60% 82%, 8% 82%);
}

.floor-outline.wing-left-wing {
  clip-path: polygon(40% 22%, 92% 22%, 92% 82%, 40% 82%, 40% 42%, 4% 42%, 4% 8%, 40% 8%);
}

.floor-outline.wing-left-and-right-wings {
  clip-path: polygon(32% 10%, 68% 10%, 68% 34%, 96% 34%, 96% 66%, 68% 66%, 68% 90%, 32% 90%, 32% 66%, 4% 66%, 4% 34%, 32% 34%);
}

.floor-outline.wing-three-wing-u-shape {
  clip-path: polygon(8% 8%, 35% 8%, 35% 60%, 45% 60%, 45% 35%, 55% 35%, 55% 60%, 65% 60%, 65% 8%, 92% 8%, 92% 90%, 8% 90%);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
    rgba(245, 236, 208, 0.48);
}

.floor-outline.wing-three-wing-u-shape::after {
  content: "";
  left: 43%;
  top: 8%;
  width: 14%;
  height: 84%;
  border-left: 2px dashed rgba(30, 58, 76, 0.4);
  border-right: 2px dashed rgba(30, 58, 76, 0.4);
  background: rgba(241, 228, 202, 0.45);
  opacity: 0.9;
}

.floor-outline.wing-four-wing-square-courtyard,
.floor-outline.wing-three-extra-wings-square {
  inset: 30px;
}

.floor-outline.wing-four-wing-square-courtyard::after,
.floor-outline.wing-three-extra-wings-square::after {
  left: 34%;
  top: 30%;
  width: 32%;
  height: 32%;
  border: 2px dashed rgba(30, 58, 76, 0.5);
  background: rgba(241, 228, 202, 0.92);
}

.room {
  position: absolute;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 7px;
  border: 2px solid rgba(30, 58, 76, 0.55);
  background: rgba(255, 250, 240, 0.9);
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.room.selected {
  outline: 3px solid rgba(68, 163, 181, 0.28);
  border-color: var(--signal);
}

.room small {
  color: var(--muted);
}

.room.mechanical-room {
  background: #e7f2fb;
}

.room.apartment {
  background: #f6f1e8;
}

.room.laundry-room {
  background: #e8f5f1;
}

.room.hallway,
.room.service-corridor,
.room.elevator-lobby {
  justify-content: center;
  align-content: center;
  text-align: center;
  background: rgba(255, 250, 240, 0.92);
  border-style: dashed;
}

.room.electrical-room {
  background: #fff2c7;
}

.room.elevator {
  color: #ffffff;
  background: #2f4050;
  border-color: #1e3a4c;
}

.room.boiler-room,
.room.chiller-room {
  background: #ddebf5;
}

.room.office,
.room.store,
.room.restaurant {
  background: #f7ead8;
}

.room.gym,
.room.club,
.room.party-room,
.room.party-area {
  background: #efe8fa;
}

.room.pool,
.room.pool-room {
  background: #dff4f7;
}

.room.maintenance-shop,
.room.storage,
.room.utility {
  background: #e8ecef;
}

.room.garden-landscape,
.room.courtyard,
.room.exterior {
  background: #e6f2dc;
}

.room.trash-compactor,
.room.trash-chute {
  background: #ece7f4;
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--brand-2);
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.map-pin.issue {
  background: var(--danger);
}

.map-pin.utility-point {
  background: #0f766e;
}

.map-pin.utility-point.warning,
.map-pin.utility-point.watch {
  background: #b7791f;
}

.map-pin.utility-point.critical,
.map-pin.utility-point.offline,
.map-pin.utility-point.isolated {
  background: var(--danger);
}

.map-tools {
  display: grid;
  gap: 12px;
}

.list {
  display: grid;
  gap: 8px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.permission-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.74);
}

.permission-check input {
  margin-top: 3px;
}

.permission-check strong,
.permission-check small {
  display: block;
}

.permission-check small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.permission-check.all-permissions {
  border-color: rgba(175, 126, 48, 0.55);
  background: rgba(175, 126, 48, 0.12);
}

.list-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
}

button.list-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

button.list-item.selected {
  border-color: var(--signal);
  box-shadow: inset 3px 0 0 var(--signal);
}

.list-item h4 {
  margin: 0;
  font-size: 13px;
}

.list-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.asset-card {
  padding: 13px;
  display: grid;
  gap: 10px;
}

.asset-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.qr {
  width: 82px;
  height: 82px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid #cfd9d7;
}

.qr span {
  background: #ffffff;
}

.qr .on {
  background: #101719;
}

.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px;
  font-size: 12px;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  font-weight: 700;
}

.bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  gap: 5px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8d7cb;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sensor), var(--signal));
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.sign-card {
  padding: 10px;
  display: grid;
  gap: 10px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.print-sign {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3 / 4;
  display: block;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d0d8d7;
}

.sign-print-wrap {
  display: grid;
  place-items: center;
  padding: 16px;
  background: #eadfca;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sign-print-wrap .print-sign {
  max-width: min(540px, 100%);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  position: relative;
  padding-left: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
}

.timeline-item strong {
  display: block;
  font-size: 13px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-frame {
  max-width: 440px;
  min-height: 720px;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid var(--boiler);
  border-radius: 28px;
  background: #0f1d26;
  box-shadow: var(--shadow);
}

.mobile-top {
  padding: 18px 16px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f1d26, #173a46);
}

.mobile-top h3 {
  margin: 0;
}

.mobile-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.mobile-job {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5ecd0;
}

.reference-card {
  background: #fff8ec;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.mini-list div {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
}

.mini-list small {
  color: var(--muted);
}

.chat-box {
  display: grid;
  gap: 10px;
}

.recipient-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.report-box {
  min-height: 420px;
  padding: 16px;
  white-space: pre-wrap;
  color: #171717;
  background:
    repeating-linear-gradient(0deg, rgba(176, 164, 74, 0.08) 0, rgba(176, 164, 74, 0.08) 1px, transparent 1px, transparent 26px),
    #f5ecd0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.45;
}

.report-box.compact {
  max-height: 360px;
  min-height: 220px;
  overflow: auto;
  font-size: 12px;
}

.bulletin-paper {
  min-height: 520px;
  padding: 22px;
  color: #1d292b;
  background:
    linear-gradient(rgba(245, 236, 208, 0.9), rgba(245, 236, 208, 0.9)),
    repeating-linear-gradient(0deg, #f5f1e8 0, #f5f1e8 8px, #efe8d8 8px, #efe8d8 9px);
  border: 1px solid #d6c9ac;
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(64, 48, 24, 0.12);
}

.bulletin-masthead {
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 3px double #263638;
}

.bulletin-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bulletin-masthead h2 {
  margin: 4px 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.05;
}

.bulletin-masthead p,
.bulletin-footer {
  margin: 0;
  color: #5a5145;
  font-size: 12px;
}

.bulletin-google-card,
.bulletin-editor {
  padding: 12px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bulletin-google-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bulletin-google-card span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.bulletin-google-card a {
  color: var(--brand-2);
  font-weight: 900;
  text-decoration: none;
}

.bulletin-columns {
  columns: 2 260px;
  column-gap: 24px;
}

.bulletin-section {
  break-inside: avoid;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(38, 54, 56, 0.18);
}

.bulletin-section h3 {
  margin: 0 0 8px;
  padding: 4px 6px;
  color: #ffffff;
  background: #263638;
  font-size: 13px;
  text-transform: uppercase;
}

.bulletin-section article {
  margin: 0 0 10px;
}

.bulletin-section h4 {
  margin: 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.bulletin-section p {
  margin: 0;
  color: #263638;
  font-size: 13px;
  line-height: 1.45;
}

.bulletin-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 3px double #263638;
  text-align: center;
}

.proposal-report {
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.5;
}

.report-brand {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.report-brand img,
.report-logo-placeholder {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.report-logo-placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--brand);
  font-size: 24px;
  font-weight: 900;
}

.report-brand h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.report-brand p {
  margin: 2px 0;
  color: #344447;
}

.proposal-report h2 {
  margin: 0 0 8px;
}

.proposal-report h3 {
  margin: 18px 0 6px;
}

.proposal-report p,
.proposal-report li {
  color: #263638;
  font-size: 13px;
}

.code-sample {
  max-width: 100%;
  overflow-x: auto;
  margin: 8px 0 0;
  padding: 8px;
  color: #213033;
  background: #f1f5f4;
  border-radius: 6px;
  font-size: 11px;
  white-space: pre-wrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
}

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #edf2f1;
}

.photo-card div {
  padding: 8px;
  display: grid;
  gap: 2px;
  font-size: 12px;
}

.photo-card span {
  color: var(--muted);
}

.empty {
  padding: 16px;
  color: var(--muted);
  background: #f7faf9;
  border: 1px dashed #cbd6d4;
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 360px;
  padding: 12px 14px;
  color: #ffffff;
  background: #1f3336;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 24, 26, 0.55);
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: min(780px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0;
}

.modal-body {
  padding: 16px;
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .split,
  .map-shell,
  .supervisor-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 14px 12px 28px;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .floor-map {
    height: 440px;
  }

  .kv {
    grid-template-columns: 1fr;
  }
}
