:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0c2333;
  background: #eef3f4;
  --muted: #4a606b;
  --line: #d5e1e4;
  --action: #09645f;
  --accent: #dff3ef;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
a { color: var(--action); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #187f78; outline-offset: 3px; }

.owner-layout {
  display: grid;
  grid-template-columns: minmax(320px, 48fr) minmax(450px, 52fr);
  min-height: 100vh;
}
.terminal {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #091e28;
}
.terminal picture, .terminal picture::after, .terminal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.terminal img { object-fit: cover; object-position: 51% center; }
.terminal picture::after {
  content: "";
  background: linear-gradient(155deg, rgba(4, 22, 34, .85) 0%, rgba(5, 23, 30, .18) 52%, rgba(8, 28, 40, .18) 100%);
}
.brand {
  position: absolute;
  top: clamp(26px, 5vw, 64px);
  left: clamp(26px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 740;
  letter-spacing: -.045em;
}
.brand span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #b5d9d3;
  border-radius: 12px;
  background: #0d3b41;
}
.brand svg, .seat svg, .primary svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.owner-panel {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 38px clamp(25px, 5vw, 88px);
  background: #fdfefe;
}
.owner-content { width: min(100%, 510px); }
.owner-intro { margin-bottom: 22px; }
h1 { font-size: clamp(31px, 4.4vw, 58px); line-height: 1; letter-spacing: -.055em; margin: 0; }
.back-to-work { display: inline-block; margin-top: 12px; font-size: .9rem; }

fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend, #enter-code label { margin-bottom: 12px; padding: 0; font-weight: 680; }
.workplaces { display: grid; gap: 9px; }
.workplace { position: relative; cursor: pointer; }
.workplace input { position: absolute; opacity: 0; inset-inline-start: 15px; top: 26px; }
.seat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.workplace input:checked + .seat { border-color: #358079; background: #f1faf8; }
.workplace input:focus-visible + .seat { outline: 3px solid #187f78; outline-offset: 2px; }
.workplace:hover .seat { border-color: #358079; }
.seat strong { display: block; line-height: 1.25; }
.seat small { display: block; margin-top: 2px; color: var(--muted); line-height: 1.32; font-size: .82rem; }
.seat-icon, .seat-selection { display: grid; place-items: center; color: #0b6862; }
.seat-icon { width: 37px; height: 37px; border-radius: 9px; background: var(--accent); }
.seat-selection { visibility: hidden; }
.workplace input:checked + .seat .seat-selection { visibility: visible; }

.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 49px;
  margin-top: 16px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  background: var(--action);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.primary:hover { background: #074f4b; }
.primary:disabled { cursor: wait; opacity: .65; }
.secondary {
  min-height: 42px;
  margin-top: 7px;
  padding: 3px 0;
  color: var(--action);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.otp-hint, .staff-note { color: var(--muted); line-height: 1.5; }
#enter-code label { display: block; }
#owner-code {
  width: 100%;
  min-height: 57px;
  padding: 9px 14px;
  border: 1px solid #879a9f;
  border-radius: 10px;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .23em;
}
#owner-message { min-height: 1.5em; margin: 9px 0 7px; color: #36535a; line-height: 1.45; }
.staff-login { display: inline-block; font-size: .9rem; margin-top: 6px; }
.staff-action { margin-bottom: 16px; }

@media (max-width: 850px) {
  .owner-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: clamp(120px, 25vw, 218px) 1fr; }
  .terminal img { object-position: center 55%; }
  .brand { top: 20px; left: 21px; }
  .brand span { width: 39px; height: 39px; }
  .owner-panel { align-items: start; padding: 27px clamp(16px, 5vw, 48px) 24px; }
  .owner-intro { margin-bottom: 18px; }
}

@media (max-width: 370px) {
  .seat { min-height: 61px; padding: 8px 10px; gap: 9px; }
  .seat-icon { width: 32px; height: 32px; }
}
