:root {
  color-scheme: dark;
  --bg: #0b1018;
  --card: #141d29;
  --line: #293443;
  --text: #f0f4fa;
  --muted: #9aaabc;
  --blue: #75b6ff;
  --orange: #f6ad68;
  --green: #7bdec6;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 17px;
  color: var(--text);
  background: #1a2635;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #2c3d51;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
button.primary {
  background: var(--blue);
  color: #081625;
  border: 0;
}
.primary:hover {
  background: #a2ceff;
}
button.subtle {
  background: transparent;
}
.danger-outline {
  color: #ffbdac;
}
header {
  height: 95px;
  max-width: 1450px;
  margin: auto;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
  font-size: 34px;
  letter-spacing: -3px;
  font-weight: 700;
}
.brand span {
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 1.7px;
  font-weight: 400;
}
.brand b {
  color: var(--muted);
  font-weight: 400;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.pill {
  border: 1px solid #3c4e62;
  border-radius: 30px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  white-space: nowrap;
}
.pill.ok {
  color: var(--green);
  border-color: #365e57;
}
.pill.error {
  color: #ffb4a1;
  border-color: #80574a;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 52px 4% 0;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
}
h1 {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -2.5px;
  line-height: 1.06;
  margin: 17px 0;
}
p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 10px 0 22px;
  letter-spacing: -0.4px;
}
.intro-meta {
  display: grid;
  text-align: right;
  gap: 9px;
  padding-bottom: 8px;
}
.intro-meta span {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 2px;
}
.intro-meta b {
  font-size: 24px;
  font-weight: 400;
}
.intro-meta small {
  font-size: 11px;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 28px;
  align-items: start;
}
.preview-card,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
}
.preview-card {
  position: sticky;
  top: 24px;
  background: linear-gradient(160deg, #192636, #101923 70%);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}
.section-title h2 {
  margin-bottom: 25px;
}
.section-title .pill {
  margin-top: 15px;
}
.building {
  margin: 18px 0 0;
  position: relative;
  padding: 0 26px;
}
.roof {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1b2633;
  border: 1px solid #3e4b59;
  border-bottom: 0;
  padding: 21px;
  letter-spacing: 5px;
}
.roof span {
  font-size: 8px;
  color: #b9c8da;
}
.roof b {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 9px;
  margin: 7px 0 0 9px;
}
.floor {
  display: flex;
  gap: 0;
  position: relative;
  border: 1px solid #4c5965;
  border-top: 8px solid #45515b;
  background: #0b1118;
  padding: 11px 12px 0;
  min-height: 111px;
  box-shadow: inset 0 -15px 20px #0008;
}
.floor-label {
  position: absolute;
  left: -37px;
  top: 43px;
  transform: rotate(-90deg);
  font-size: 8px;
  letter-spacing: 1px;
  color: #8c9cae;
}
.window {
  width: 33.333%;
  height: 88px;
  position: relative;
  border: 1px solid #344453;
  overflow: hidden;
}
.window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% -15%,
    var(--glow, #000) 0%,
    transparent 75%
  );
  opacity: 0.8;
}
.lamp {
  position: absolute;
  top: 0;
  height: 3px;
  background: var(--glow, #000);
  width: 12px;
  box-shadow: 0 5px 16px 3px var(--glow, #000);
}
.lamp:nth-child(1) {
  left: 16%;
}
.lamp:nth-child(2) {
  left: 46%;
}
.lamp:nth-child(3) {
  left: 76%;
}
.car {
  position: absolute;
  width: 80%;
  height: 26px;
  border-radius: 45% 45% 18% 15%;
  background: linear-gradient(#6d7e8d, #1e2b3a);
  bottom: 19px;
  left: 10%;
  box-shadow: 0 3px 9px #000a;
}
.car::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 16px;
  left: 23%;
  top: -8px;
  background: #1e2d3d;
  transform: skew(25deg);
  border: 1px solid #698195;
  border-radius: 40% 40% 0 0;
}
.wheel {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid #0c1119;
  background: #8494a7;
  border-radius: 50%;
  bottom: -3px;
}
.wheel.left {
  left: 10%;
}
.wheel.right {
  right: 9%;
}
.floor.active {
  border-left-color: var(--blue);
  border-right-color: var(--blue);
}
.pavement {
  height: 43px;
  display: grid;
  place-items: center;
  background: linear-gradient(#37414b, #26303b);
  border-top: 7px solid #66717a;
}
.pavement span {
  font-size: 7px;
  letter-spacing: 3px;
  color: #9fa9b4;
}
.preview-caption {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: start;
  gap: 8px;
  line-height: 1.5;
  margin: 20px 0;
}
.dot {
  background: var(--orange);
  height: 6px;
  width: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.preview-info {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 20px 0 5px;
  gap: 9px;
}
.preview-info div {
  display: grid;
  gap: 7px;
}
.preview-info small,
small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.preview-info b {
  font-size: 13px;
  font-weight: 500;
}
.action-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.controls {
  display: grid;
  gap: 22px;
}
label {
  display: grid;
  gap: 8px;
  color: #b9c6d7;
  font-size: 12px;
  margin-bottom: 18px;
}
input,
select {
  border: 1px solid #364659;
  border-radius: 6px;
  color: var(--text);
  background: #0e1723;
  min-width: 0;
  width: 100%;
  padding: 11px;
}
select {
  height: 42px;
}
input[type="color"] {
  height: 42px;
  padding: 6px;
  width: 100%;
}
input[type="range"] {
  accent-color: var(--blue);
  padding: 0;
}
label output {
  float: right;
  color: var(--text);
}
.field-row {
  display: flex;
  gap: 12px;
}
.field-row label {
  flex: 1;
  min-width: 0;
}
.hint {
  font-size: 11px;
  margin-top: 0;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.simulation {
  margin-top: 25px;
  border-top: 1px dashed #46515c;
  padding-top: 22px;
}
.simulation .eyebrow {
  color: var(--orange);
  font-size: 9px;
}
.sim-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.sim-buttons button {
  padding: 8px 10px;
  font-size: 10px;
}
.schedule-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 22px;
  margin-bottom: 22px;
  align-items: center;
}
.schedule-strip div {
  display: grid;
  gap: 8px;
}
.schedule-strip small {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.schedule-strip b {
  font-size: 12px;
  font-weight: 500;
}
.schedule-strip > span {
  color: #52657d;
}
.draft {
  font-size: 11px;
  color: var(--orange);
}
.activity {
  border-top: 1px solid var(--line);
  padding: 35px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
  margin-top: 40px;
}
.activity ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}
.activity li {
  padding: 10px 0;
  border-bottom: 1px solid #1b2939;
  line-height: 1.6;
}
.activity time {
  display: block;
  font-size: 10px;
  color: #71879e;
}
.notice {
  padding: 15px 18px;
  border: 1px solid #7d6041;
  background: #392e20;
  color: #ffcc93;
  font-size: 13px;
  border-radius: 8px;
  margin-bottom: 22px;
  line-height: 1.6;
}
.notice.success {
  color: var(--green);
  background: #152e29;
  border-color: #365e57;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 9px;
  letter-spacing: 1px;
  color: #71859e;
  gap: 20px;
}
footer span {
  letter-spacing: 0;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 70% 20%, #1d354c, #0b1018 65%);
}
.login-card {
  width: 100%;
  max-width: 520px;
  background: #111c29;
  border: 1px solid var(--line);
  padding: 44px;
  border-radius: 16px;
}
.login-card h1 {
  font-size: 37px;
  letter-spacing: -1.4px;
  margin: 28px 0 18px;
}
.login-card label {
  margin-top: 28px;
}
.login-card button {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.login-card small {
  display: block;
  margin-top: 28px;
}
#login-error {
  color: #ffb4a1;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  background: var(--card);
  max-width: 440px;
  color: var(--text);
}
dialog::backdrop {
  background: #030810bb;
}
dialog h2 {
  margin: 0;
}
dialog p {
  font-size: 14px;
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .preview-card {
    position: static;
  }
  .building {
    max-width: 480px;
    margin: 20px auto 0;
  }
  .intro h1 {
    font-size: 48px;
  }
}
@media (max-width: 600px) {
  header {
    padding: 0 6%;
    height: 80px;
  }
  .brand {
    font-size: 28px;
    gap: 12px;
  }
  .brand span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .header-right {
    gap: 8px;
  }
  .header-right .pill {
    font-size: 9px;
    padding: 7px;
  }
  .header-right button {
    padding: 8px;
    font-size: 10px;
  }
  main {
    padding: 32px 5% 0;
  }
  .intro {
    display: block;
  }
  .intro h1 {
    font-size: 42px;
  }
  .intro-meta {
    display: flex;
    text-align: left;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 26px;
    gap: 14px;
  }
  .intro-meta b {
    font-size: 17px;
  }
  .intro-meta small {
    display: none;
  }
  .preview-card,
  .card {
    padding: 22px 18px;
  }
  .preview-card h2 {
    font-size: 19px;
  }
  .section-title .pill {
    font-size: 9px;
  }
  .building {
    padding: 0 22px;
  }
  .field-row {
    gap: 8px;
  }
  .field-row label {
    font-size: 10px;
  }
  .activity {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  footer {
    display: grid;
  }
  .login-card {
    padding: 30px;
  }
  .login-card h1 {
    font-size: 31px;
  }
  .action-row button {
    font-size: 11px;
    padding: 12px;
  }
  .preview-info small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
