:root {
  color-scheme: light;
  --ink: #172939;
  --muted: #526776;
  --line: #dce5eb;
  --paper: #f4f7fa;
  --primary: #07665a;
  --loan: #5874b2;
  --reserved: #ad6918;
  --free: #09816e;
}
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 system-ui, sans-serif; }
.shell { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.top { background: white; border-bottom: 1px solid var(--line); }
.nav-layout, .nav-links, .identity, .actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.nav-layout { min-height: 4.5rem; justify-content: space-between; padding-block: .65rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.28rem; font-weight: 800; }
.brand span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .7rem; background: var(--primary); color: white; }
.nav-links a { color: var(--muted); text-decoration: none; padding: .45rem .65rem; font-weight: 600; border-radius: .55rem; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--primary); background: #e8f4ef; }
.identity, .demo-badge { font-size: .875rem; font-weight: 650; }
.demo-badge { background: #e8f4ef; border-radius: 1rem; color: var(--primary); padding: .25rem .75rem; }
.btn { font-weight: 650; border-radius: .55rem; }
.btn-primary { --bs-btn-bg: #07665a; --bs-btn-border-color: #07665a; --bs-btn-hover-bg: #064d45; --bs-btn-hover-border-color: #064d45; --bs-btn-active-bg: #064d45; --bs-btn-active-border-color: #064d45; }
.btn-quiet { color: var(--muted); }
.btn-quiet:hover { background: var(--paper); }
.form-control, .form-select { border-color: #bccbd5; }
.status { margin-top: 1rem; }
.hero { margin-top: 2rem; padding: clamp(1.4rem, 4vw, 3.2rem); border-radius: 1.25rem; color: white; background: radial-gradient(ellipse at 92% 15%, #266358, transparent 65%), #16383b; }
.eyebrow { display: flex; align-items: center; gap: .5rem; font-size: .875rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 750; color: var(--primary); }
.hero .eyebrow { color: #a8e2ce; }
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.06; font-weight: 800; letter-spacing: -.055em; margin: .5rem 0 .65rem; }
.hero p { color: #e1eeeb; font-size: 1.08rem; margin-bottom: 1.7rem; }
.welcome { padding-block: clamp(2.5rem, 8vw, 7rem); }
.welcome .btn-primary { --bs-btn-bg: #a4e7ce; --bs-btn-border-color: #a4e7ce; --bs-btn-color: #123c36; --bs-btn-hover-bg: #caf4e4; --bs-btn-hover-color: #123c36; --bs-btn-hover-border-color: #caf4e4; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.metric { display: flex; gap: .65rem; align-items: center; background: #ffffff12; border: 1px solid #ffffff30; border-radius: .8rem; padding: .7rem .9rem; }
.metric i { font-size: 1.3rem; }
.metric.loan i { color: #c1d2ff; }
.metric.reserved i { color: #ffdba4; }
.metric.free i { color: #a8e2ce; }
.metric span, .metric strong { display: block; }
.metric span { font-size: .875rem; color: #e1eeeb; }
.metric strong { font-size: 1.55rem; line-height: 1.15; }
.catalog { padding-top: 2rem; }
.section-head, .terminal-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
h2 { font-size: 1.45rem; font-weight: 780; letter-spacing: -.025em; margin: 0; }
.filter { display: flex; gap: .65rem; flex-wrap: wrap; align-items: end; }
label { font-size: .9rem; font-weight: 650; color: var(--muted); }
label > :is(input, textarea, select) { margin-top: .25rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1rem; }
.tabs a { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--line); color: var(--muted); background: white; padding: .45rem .8rem; border-radius: 1.25rem; text-decoration: none; font-size: .9rem; font-weight: 650; }
.tabs a:hover, .tabs a.selected { background: #dcefe8; color: #07594d; border-color: #baddcf; }
.tabs img { width: 1rem; height: 1rem; object-fit: cover; border-radius: .25rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.device-card, .panel { background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 4px 13px #17394a09; }
.device-card { overflow: hidden; display: flex; flex-direction: column; }
.art { display: grid; place-items: center; height: 8rem; overflow: hidden; background: linear-gradient(135deg, #dbeee8, #f1f9f6); color: #237c6c; font-size: 3.2rem; }
.art.headphones { background: linear-gradient(135deg, #e2ebfa, #f2f6fd); color: #4466a1; }
.art.speaker { background: linear-gradient(135deg, #f1e7f9, #faf4ff); color: #775391; }
.art.projector { background: linear-gradient(135deg, #f9ebdb, #fff8ef); color: #9a5e22; }
.art img { width: 100%; height: 8rem; object-fit: cover; }
.device-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.device-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .875rem; }
h3 { font-size: 1.25rem; font-weight: 780; margin: .35rem 0 1rem; }
.segments { display: flex; height: .55rem; border-radius: .5rem; overflow: hidden; background: var(--paper); }
.segments .loan, .legend .loan i { background: var(--loan); }
.segments .reserved, .legend .reserved i { background: var(--reserved); }
.segments .free, .legend .free i { background: var(--free); }
.legend { display: flex; flex-wrap: wrap; column-gap: .65rem; row-gap: .2rem; margin: .65rem 0 1rem; color: var(--muted); font-size: .875rem; }
.legend i { display: inline-block; height: .55rem; width: .55rem; border-radius: 50%; margin-right: .25rem; }
.reserve { display: flex; gap: .55rem; margin-top: auto; }
.reserve input { width: 4.2rem; }
.reserve button { flex: 1; }
.page-heading { margin-block: 2rem 1.25rem; }
.panel { padding: clamp(1rem, 3vw, 1.5rem); margin-bottom: 1rem; }
.panel h2 { margin-bottom: 1rem; }
.empty, .table { margin-bottom: 0; }
.empty, .table small { color: var(--muted); }
.table th { white-space: nowrap; }
.booking-form, .stock-form, .kiosk { display: grid; gap: .65rem; align-content: start; }
.booking-form { max-width: 31rem; }
.scan-field { display: flex; gap: .55rem; }
.scan-field button { white-space: nowrap; }
.stock-grid, .terminal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.terminal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kiosk .btn, .kiosk input { min-height: 3rem; }
.kiosk .btn { margin-top: .25rem; }
.unlock { max-width: 31rem; }
.footer { display: flex; justify-content: space-between; gap: .5rem; margin-block: 2rem 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; width: min(32rem, 100% - 2rem); }
dialog::backdrop { background: #10232bc9; }
.camera-preview {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  width: min(100%, 64dvh); margin: .5rem auto; border-radius: .55rem;
  background: #14292c;
}
.camera-preview video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--camera-zoom, 1));
}
.camera-frame {
  position: absolute; inset: 30% 6%; outline: 2px solid #fff;
  border-radius: .35rem; box-shadow: 0 0 0 100vmax #071820a8;
  pointer-events: none;
}
#camera-dialog[data-frame="square"] .camera-frame {
  inset: 50% auto auto 50%; height: 72%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.camera-status { margin-block: .6rem; }
.camera-controls { display: flex; align-items: center; gap: .65rem; }
.camera-controls input { flex: 1; min-width: 0; min-height: 44px; }
.camera-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.camera-heading h2 { margin: 0; }
.camera-heading button { min-width: 44px; min-height: 44px; }
.camera-format {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: 0; min-height: 44px; margin: 0; cursor: pointer; white-space: nowrap;
}
.camera-format .form-check-input { flex: 0 0 auto; float: none; width: 2.5rem; height: 1.3rem; margin: 0; }
@media (max-width: 380px) {
  .camera-controls { flex-wrap: wrap; }
  .camera-format { flex-basis: 100%; }
}
@media (max-width: 1000px) { .cards, .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .shell { width: calc(100% - 1.5rem); }
  .nav-links { order: 3; width: 100%; gap: .2rem; }
  .nav-links a { padding-inline: .45rem; font-size: .9rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .stock-grid, .terminal-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { margin-top: 1rem; }
  .filter input { max-width: 9rem; }
}

.booking-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  max-width: none;
  gap: .75rem;
}
.booking-row > label { flex: 1 1 11rem; }
.booking-row > div:not(.actions) { flex: 1 1 15rem; }
.terminal-active .top, .terminal-active .footer { display: none; }
.terminal-active main.shell {
  width: calc(100% - 2 * clamp(.75rem, 2.2vw, 3rem));
  min-height: 100dvh;
  padding-bottom: clamp(1rem, 3vw, 2.5rem);
}
.terminal-toolbar { display: flex; gap: .5rem; justify-content: end; padding-block: 1rem; }
.terminal-toolbar .btn { min-width: 3rem; min-height: 3rem; }
.terminal-active .terminal-grid { align-items: start; }
.terminal-active .kiosk { gap: .8rem; padding: clamp(1rem, 4vw, 2rem); }
.terminal-active .kiosk h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .25rem; }
.terminal-active .kiosk input, .terminal-active .kiosk .btn { min-height: 3.75rem; font-size: 1.2rem; }
.terminal-active .kiosk .scan-field .btn { min-width: 3.75rem; margin: 0; }
:fullscreen { background: var(--paper); overflow: auto; }
:fullscreen .terminal-demo { display: none; }
@media (max-width: 640px) {
  .terminal-active .terminal-toolbar { padding-block: .5rem; }
  .terminal-active .terminal-grid { gap: .75rem; }
  .terminal-active .kiosk { margin-bottom: 0; }
}
.terminal-expanded { position: fixed; inset: 0; overflow: auto; }
.terminal-expanded .terminal-demo { display: none; }
[data-filter-submit][hidden], .terminal-toolbar [hidden] { display: none; }
#terminal-exit-link {
  display: grid;
  place-items: center;
  align-self: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .45rem;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
}
#terminal-exit-link:hover, #terminal-exit-link:focus-visible { background: #e4ebef; }

.object-card {
  display: grid;
  gap: .45rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--paper);
}
.object-card-static { margin-bottom: 1rem; }
.object-identity { display: flex; align-items: center; gap: .65rem; min-height: 2.5rem; }
.object-identity > i {
  display: grid;
  place-items: center;
  flex: 0 0 2.25rem;
  height: 2.25rem;
  border-radius: .6rem;
  background: #dcefe8;
  color: var(--primary);
  font-size: 1.2rem;
}
.object-identity strong, .object-identity small { display: block; overflow-wrap: anywhere; }
.object-identity small, .object-label { color: var(--muted); }
.object-identity small:empty { display: none; }
.object-card[data-object-state="invalid"] .object-identity small { color: #9c3c24; }
.object-card .form-control { min-width: 0; }

.plan-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.plan-class-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.plan-class-filter a {
  padding: .4rem .75rem; color: var(--muted); text-decoration: none; background: white;
  border: 1px solid var(--line); border-radius: 1.25rem; font-size: .9rem; font-weight: 650;
}
.plan-class-filter a:hover, .plan-class-filter a.selected { background: #dcefe8; color: var(--primary); border-color: #baddcf; }
.month-panel { background: white; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.month-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .85rem 1rem; }
.month-scroll { overflow-x: auto; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 49rem; }
.month-weekday {
  color: var(--muted); padding: .45rem .7rem; font-size: .875rem; font-weight: 700;
  background: var(--paper); border-top: 1px solid var(--line);
}
.month-weekday abbr { text-decoration: none; }
.month-day {
  display: block; min-height: 6.6rem; padding: .45rem .5rem .6rem; color: var(--ink); text-decoration: none;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.month-day:nth-child(7n) { border-right: 0; }
.month-day.is-weekend, .month-day.is-past { background: #f8fafc; }
.month-day.is-outside { background: #edf2f6; }
.month-day:hover:not(.is-outside), .month-day:focus-visible { background: #eef7f3; outline-offset: -2px; }
.month-day time {
  display: inline-grid; min-width: 1.7rem; height: 1.7rem; place-items: center;
  border-radius: .4rem; font-weight: 750; margin-bottom: .2rem;
}
.month-day.is-past time { color: var(--muted); }
.month-day.is-today time { color: #fff; background: var(--primary); }
.plan-marks { display: flex; flex-wrap: wrap; gap: .25rem .55rem; align-items: center; }
.month-day .plan-marks { display: grid; grid-template-columns: 1fr; justify-items: start; }
.plan-mark { display: inline-flex; align-items: center; gap: .16rem; color: var(--muted); line-height: 1.2; }
.plan-mark > i { font-size: .87rem; width: 1rem; text-align: center; }
.plan-class-name { color: var(--ink); font-size: .875rem; margin-right: .15rem; }
.plan-count {
  display: inline-block; min-width: 1.3rem; padding: .12rem .2rem; border-radius: .28rem;
  text-align: center; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.plan-count.free { background: #dcefe8; color: #07594d; }
.plan-count.partial { background: #e7e9ed; color: #46515e; }
.month-availability-key { display: flex; flex-wrap: wrap; gap: .2rem .7rem; margin-top: .25rem; font-size: .875rem; color: var(--muted); }
.month-availability-key span { display: inline-flex; align-items: center; gap: .3rem; }
.month-availability-key i { min-width: .75rem; height: .75rem; padding: 0; }
.plan-back { color: var(--primary); font-weight: 650; text-decoration: none; }
.day-timeline { display: grid; gap: .45rem; border-left: 3px solid #cfe5df; padding-left: .65rem; }
.timeline-slot {
  display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; align-items: center; gap: .65rem;
  text-decoration: none; background: white; color: var(--ink); border: 1px solid var(--line);
  border-radius: .7rem; padding: .65rem .8rem;
}
.timeline-slot.is-selected, a.timeline-slot:hover { background: #eaf5ef; border-color: #afd1c6; color: var(--ink); }
.timeline-slot.is-elapsed { background: #eef2f6; color: var(--muted); }
.timeline-label { display: flex; gap: .55rem; align-items: center; font-weight: 750; }
.timeline-label small { display: block; font-weight: 500; color: var(--muted); }
.plan-devices { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.plan-device-list { margin-top: .75rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem; align-items: start; }
.plan-device { margin: 0; }
.plan-device-header, .plan-device-name { display: flex; justify-content: space-between; gap: .55rem; align-items: center; }
.plan-device-header { flex-wrap: wrap; margin-bottom: .75rem; }
.plan-device-name > i { color: var(--primary); font-size: 1.4rem; }
.plan-device h3 { margin: .12rem 0 0; }
.plan-device small { color: var(--muted); }
.plan-issue { margin-top: .75rem; }
.plan-issue summary { color: var(--primary); font-weight: 650; }
@media (max-width: 640px) {
  .timeline-slot { grid-template-columns: 1fr; }
  .month-day { min-height: 5.5rem; }
}
.legend .pause i { background: #89929d; }
.plan-device.has-pause { border-left: .3rem solid #a2aab4; }
.plan-device.is-paused { background: #eef1f4; }
#pausenregeln, #regel-editor { scroll-margin-top: .75rem; }
#pausenregeln .table form { margin: 0; }

.wizard-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .6rem; }
.wizard-steps { display: flex; gap: .45rem; padding: 0; margin: 0; list-style: none; flex-wrap: wrap; }
.wizard-steps li { padding: .35rem .7rem; border-radius: 1rem; color: var(--muted); font-weight: 650; }
.wizard-steps li[aria-current] { background: #dcefe8; color: var(--primary); }
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); gap: 1rem; align-items: start; }
.wizard-deck { position: relative; overflow: hidden; min-width: 0; }
.wizard-card { width: 100%; margin-bottom: 0; transition: transform .28s ease, visibility .28s; }
.wizard-card[inert] { position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; }
.wizard-card[data-step-panel="what"][inert] { transform: translateX(-103%); }
.wizard-card[data-step-panel="when"][inert] { transform: translateX(103%); }
.wizard-basket { position: sticky; top: .75rem; margin: 0; z-index: 1; max-height: min(75vh, 34rem); overflow: auto; }
.wizard-basket h2 { display: flex; align-items: center; gap: .45rem; }
.wizard-basket h2 small { margin-left: auto; color: var(--primary); font-size: .85rem; }
.wizard-basket-items { list-style: none; padding: 0; margin: 0; }
.wizard-basket-items li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.wizard-basket-items .wizard-quantity { margin-top: .25rem; }
.wizard-quantity { display: flex; align-items: center; gap: .35rem; }
.wizard-quantity input { width: 4.3rem; flex: 0 0 4.3rem; }
.wizard-category + .wizard-category { margin-top: 1.15rem; }
.wizard-category h3 { color: var(--primary); margin: 0 0 .3rem; font-size: 1.05rem; }
.wizard-device { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .7rem; justify-content: space-between; border-top: 1px solid var(--line); padding: .55rem 0; }
.wizard-device small { display: block; color: var(--muted); }
.wizard-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: space-between; margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.wizard-card[data-step-panel="what"] .wizard-actions { justify-content: end; }
.wizard-plan-heading h2 { margin: 0; }
.wizard-plan-heading { margin-bottom: .75rem; }
.wizard-day { margin-top: 1.15rem; scroll-margin-top: 1rem; }
.month-day.is-chosen { background: #e4f1e9; box-shadow: inset 0 0 0 2px #82b9a9; }
.operation-heading th { background: #eaf5ef; color: var(--primary); }
@media (max-width: 760px) {
  .wizard-layout { grid-template-columns: minmax(0, 1fr); }
  .wizard-basket { grid-row: 1; max-height: 30vh; top: .25rem; }
  .wizard-basket h2 { margin-bottom: .35rem; }
  .wizard-day { scroll-margin-top: 32vh; }
}
@media (prefers-reduced-motion: reduce) { .wizard-card { transition: none; } }

.station-login {
  width: min(100%, 64rem);
  padding: clamp(2rem, 6vw, 5rem);
  margin: clamp(2rem, 12vh, 8rem) auto 0;
  text-align: center;
}
.station-login h1 { margin-bottom: 1.5rem; }
.station-login .btn { min-height: 3.75rem; font-size: clamp(1.15rem, 2vw, 1.6rem); }
.station-active main.shell {
  display: flex; flex-direction: column; min-height: 100dvh;
  padding-block: .5rem; gap: .45rem;
}
.station-toolbar { order: 1; padding-block: 0; margin-top: auto; flex-wrap: wrap; }
.station-keyboard:not([hidden]) {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; margin: 0; padding: 0 .4rem; cursor: pointer;
}
.station-keyboard .form-check-input { float: none; width: 2.5rem; height: 1.3rem; margin: 0; }
#station-content { display: flex; flex-direction: column; gap: .5rem; }
.station-owner-form { order: 2; }
.station-modes { justify-content: center; order: -1; }
.station-modes .btn, .station-owner-form .btn, .station-owner-form select { min-height: 44px; }
.station-interactive #station-submit,
.station-interactive [data-object-editor] button[name="search"] { display: none; }
#station-issue[data-active-card="person"] [data-object-kind="device"] .object-suggestions,
#station-issue[data-active-card="device"] [data-object-kind="person"] .object-suggestions { display: none; }
.station-pages { display: flex; gap: .45rem; }
.station-pages button { flex: 1; }

.station-feedback {
  display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.65rem);
  padding: .55rem .85rem; margin-bottom: .5rem;
  min-height: 3.75rem; border: 2px solid #b8c7d1; border-radius: .9rem; background: white;
}
.station-feedback strong { display: block; font-size: clamp(1.3rem, 3vw, 2.15rem); line-height: 1.05; }
.station-feedback span { display: block; font-size: clamp(1rem, 1.5vw, 1.35rem); }
.station-feedback[data-state="error"] { color: white; background: #a61b22; border-color: #781119; }
.station-feedback[data-state="success"] { color: white; background: #086a4b; border-color: #07553d; }
.station-light {
  width: clamp(1.5rem, 3vw, 2.5rem); aspect-ratio: 1; flex: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 50%; background: #a2b3bf;
}
.station-feedback[data-state="error"] .station-light { background: #ff9092; box-shadow: 0 0 0 .25rem #ffffff36; }
.station-feedback[data-state="success"] .station-light { background: #90edc0; box-shadow: 0 0 0 .25rem #ffffff36; }
.station-form { padding: .5rem; margin-bottom: 0; }
.station-form .terminal-grid { gap: .5rem; }
.station-form .object-card { width: 100%; padding: .5rem; gap: .35rem; }
.station-form .object-identity strong { font-size: clamp(1rem, 2vw, 1.4rem); }
.station-form .btn, .station-form .form-control, .station-form .object-suggestion {
  min-height: 44px; font-size: clamp(1rem, 1.6vw, 1.25rem);
}
.station-form .scan-field .btn { min-width: 44px; }
.station-form .scan-field input { min-width: 0; }
.station-form .object-suggestion { padding: .25rem .55rem; line-height: 1.2; }

.object-card [hidden] { display: none; }
.object-card[data-object-fixed] { border-color: #8dbdaf; background: #eef7f3; }
.object-change { justify-self: start; }
.issue-step .object-card { max-width: 34rem; }
.issue-unit-table small { color: var(--muted); font-weight: 400; }
.issue-unit-form { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.issue-unit-form .object-card { flex: 1 1 15rem; }

.stock-status { display: inline-block; padding: .2rem .45rem; border-radius: .4rem; font-size: .82rem; font-weight: 700; }
.stock-status-available { color: #07594d; background: #dcefe8; }
.stock-status-loaned { color: #294983; background: #e6edf9; }
.stock-status-reserved { color: #79450e; background: #faecd7; }
.stock-status-paused { color: #46515e; background: #e7e9ed; }
.stock-status-time { display: block; margin-top: .15rem; color: var(--muted); }

.timeline-day-controls { display: flex; flex-direction: column; align-items: start; gap: .35rem; }
.timeline-day-link { color: var(--ink); text-decoration: none; }
.timeline-day-link:hover { color: var(--primary); text-decoration: underline; }
.timeline-date-form { display: flex; align-items: end; flex-wrap: wrap; gap: .35rem; }
.timeline-date-form label { display: grid; gap: .15rem; }
.timeline-date-form input { padding-block: .25rem; }

.stock-bookability { width: min(25rem, 100%); }
.object-suggestions { display: grid; gap: .25rem; margin-top: .35rem; }
.object-suggestions:empty { display: none; }
.object-suggestion {
  display: grid; gap: .1rem; padding: .4rem .55rem; text-align: left; color: var(--ink);
  background: white; border: 1px solid var(--line); border-radius: .45rem;
}
.object-suggestion:hover, .object-suggestion:focus-visible { border-color: var(--primary); background: #eaf5ef; }
.object-suggestion small { color: var(--muted); }

.station-form .object-suggestion[data-reservation-mark] { background: #fff4df; border-color: #d3ae73; }
.station-form .object-suggestion[data-reservation-mark]:is(:hover, :focus-visible) { background: #f7e3bf; }
.station-form .object-card[data-object-fixed][data-reservation-mark] { background: #fff4df; border-color: #d3ae73; }

.station-owner-form { margin: 0; padding: .35rem .5rem; gap: .5rem; }
.station-owner-form label { max-width: 29rem; }
@media (max-height: 570px) and (orientation: landscape) {
  .station-form .terminal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .station-owner-form label { display: flex; align-items: center; gap: .5rem; }
  .station-owner-form select { width: auto; min-width: 0; }
}

.station-form .object-suggestion:disabled { cursor: default; opacity: .72; }

.booking-notice { font-size: 1.05rem; font-weight: 700; }
body[data-booking-feedback="issue"] { --booking-flash: #13884f; }
body[data-booking-feedback="return"] { --booking-flash: #2467ce; }
body[data-booking-feedback="error"] { --booking-flash: #c4232d; }
body[data-booking-feedback]::after {
  content: ""; position: fixed; inset: 0; z-index: 1500; pointer-events: none;
  background: var(--booking-flash); animation: booking-feedback 1s ease-out both;
}
@keyframes booking-feedback {
  0%, 24% { opacity: .30; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-booking-feedback]::after { animation-duration: .65s; animation-timing-function: steps(1, end); }
}
.station-feedback[data-state="returned"] { color: white; background: #164a94; border-color: #123c78; }
.station-feedback[data-state="returned"] .station-light { background: #9cceff; box-shadow: 0 0 0 .25rem #ffffff36; }
