@font-face {
  font-family: DM Sans;
  src: url(assets/DMSans-Regular.ttf);
}
@font-face {
  font-family: DM Sans;
  src: url(assets/DMSans-Bold.ttf);
  font-weight: 700;
}
@font-face {
  font-family: Staatliches;
  src: url(assets/Staatliches-Regular.ttf);
}
:root {
  font-family: "DM Sans", sans-serif;
  color: #202e24;
  background: #f4f6f2;
  --green: #007233;
  --leaf: #78b826;
  --ink: #182c20;
  --mute: #56675a;
  --line: #dce3d9;
  --pale: #eaf3e8;
  --rail: 243px;
  line-height: 1.45;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
}
svg {
  height: 1.18rem;
  width: 1.18rem;
  flex: none;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
h1,
h2 {
  color: var(--ink);
}
h1 {
  font:
    400 clamp(3rem, 5vw, 4.5rem) / 0.98 Staatliches,
    sans-serif;
  letter-spacing: -0.015em;
}
h2 {
  font-size: 1.33rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #519b2c;
  outline-offset: 3px;
}
button,
a {
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.skip {
  position: fixed;
  left: 8px;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 5;
}
.skip:focus {
  top: 8px;
}
#rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: #fafbf8;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 2;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.brand img {
  width: 74px;
  height: 61px;
  object-fit: contain;
}
.brand span {
  font-weight: 700;
  color: var(--green);
  border-left: 1px solid #c9d4c5;
  padding-left: 0.95rem;
  font-size: 1.02rem;
}
nav {
  padding: 1.05rem 0.8rem;
}
nav h3,
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  font-weight: 700;
  text-transform: uppercase;
  color: #55705b;
}
nav h3 {
  margin: 1.15rem 0.75rem 0.28rem;
}
nav a {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.53rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  min-height: 38px;
}
nav a svg {
  color: #526659;
}
nav a:hover,
.hit:hover {
  background: #edf2e9;
}
nav a[aria-current] {
  color: var(--green);
  background: #e1efda;
  font-weight: 700;
}
nav a[aria-current] svg {
  color: var(--green);
}
.rail-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mute);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.rail-foot i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}
.workspace {
  margin-left: var(--rail);
}
.top {
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 3.5vw, 3.5rem);
}
.crumb {
  color: var(--mute);
  font-size: 0.89rem;
}
.crumb b {
  color: #b1bdaf;
  margin: 0 0.55rem;
}
.crumb strong {
  color: var(--ink);
}
.find {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  color: var(--mute);
  padding: 0.4rem 0.65rem;
  font-size: 0.88rem;
}
.find:before {
  content: "";
  width: 14px;
  height: 14px;
  background:
    radial-gradient(
      circle at 40% 40%,
      transparent 4px,
      #647667 4.5px 5.5px,
      transparent 6px
    ),
    linear-gradient(47deg, transparent 41%, #647667 43% 58%, transparent 60%)
      bottom right/6px 6px no-repeat;
}
.find kbd {
  font: inherit;
  font-size: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.23rem;
}
.avatar,
.round {
  display: grid;
  place-items: center;
  background: var(--pale);
  color: var(--green);
  font-weight: 700;
  border-radius: 50%;
}
.avatar {
  width: 36px;
  height: 36px;
  font-size: 0.82rem;
}
.round {
  min-width: 28px;
  height: 28px;
}
.mobile-only {
  display: none;
}
main {
  max-width: 1550px;
  padding: clamp(1rem, 2.6vw, 2.8rem) clamp(1rem, 3.5vw, 3.5rem) 3rem;
  margin: auto;
  outline: 0;
}
.hero {
  min-height: 225px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 16px;
  background: #164f2d url(assets/zabergaeu.jpg) right 53% / cover no-repeat;
  color: #fff;
  padding: clamp(1.3rem, 3.2vw, 3rem);
  animation: arrive 0.45s ease both;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #114328 1%,
    #13472ded 29%,
    #194b2ea6 53%,
    #193f2810 84%
  );
}
.hero-date {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e8f4d7;
  margin-bottom: 0.7rem;
}
.hero-date svg {
  width: 16px;
  height: 16px;
}
.hero h1 {
  color: white;
}
.hero p {
  margin: 0.4rem 0 1rem;
  color: #f0f8e9;
}
.hero-link,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.hero-link {
  background: #d8edb4;
  color: #1d4227;
}
.hero-link:hover {
  background: #ebf5d8;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #07592d;
}
.section-head,
.panel-head,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.section-head {
  margin: 1.6rem 0 0.8rem;
}
.caption,
.sub,
.dialog-meta,
.row-main small,
.metric small {
  color: var(--mute);
  font-size: 0.86rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.metric,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 5px #1b352006;
}
.metric {
  padding: 1.1rem;
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  animation: arrive 0.45s ease both;
}
.metric:nth-child(2) {
  animation-delay: 45ms;
}
.metric:nth-child(3) {
  animation-delay: 90ms;
}
.metric:nth-child(4) {
  animation-delay: 135ms;
}
.metric > span,
.op div > span {
  color: var(--mute);
  font-size: 0.9rem;
}
.metric strong {
  display: block;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.op {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.op:hover,
.work-row:hover {
  background: #f7faf4;
  border-color: #bed3b8;
}
.op:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #244d2410;
}
.metric-icon,
.row-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
}
.metric-icon,
.row-icon {
  background: #eaf3e5;
  color: var(--green) !important;
}
.tint1 .metric-icon {
  background: #eef2d7;
  color: #67792a !important;
}
.tint2 .metric-icon {
  background: #fff1db;
  color: #9a581b !important;
}
.tint3 .metric-icon {
  background: #e6f0ee;
  color: #39756e !important;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.home-grid {
  margin-top: 1.15rem;
}
.panel {
  padding: clamp(1rem, 1.7vw, 1.6rem);
  min-width: 0;
  animation: arrive 0.4s ease both;
}
.panel-head {
  margin-bottom: 1rem;
}
.panel-head .kicker,
.page-intro .kicker,
.insight .kicker {
  margin-bottom: 0.35rem;
}
.text-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  padding: 0.35rem 0;
}
.text-link:hover {
  text-decoration: underline;
}
.legend {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 1.1rem;
  color: var(--mute);
  font-size: 0.81rem;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--leaf);
}
.legend span + span i {
  background: var(--green);
}
.chart {
  display: grid;
  gap: 0.8rem;
}
.bar-group strong {
  font-size: 0.87rem;
}
.series {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.series > span {
  width: 2.3rem;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.track {
  flex: 1;
  height: 8px;
  border-radius: 3px;
  background: #f1f4ed;
}
.track b {
  display: block;
  border-radius: 3px;
  height: 100%;
  background: var(--leaf);
  transform-origin: left;
  animation: grow 0.78s cubic-bezier(0.17, 0.64, 0.26, 1) both;
}
.y2026 b {
  background: var(--green);
  animation-delay: 0.08s;
}
.bar-group:nth-child(2) b {
  animation-delay: 0.13s;
}
.bar-group:nth-child(3) b {
  animation-delay: 0.2s;
}
.work-row {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 0.75rem;
  padding: 0.87rem 0.35rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: white;
}
.row-main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row-main strong,
.row-main small {
  display: block;
}
.row-main small {
  margin-top: 0.2rem;
}
.row-main strong {
  font-size: 0.98rem;
}
.pill {
  flex: none;
  max-width: 100%;
  background: #edf2e8;
  color: #476341;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
}
.compact .row-icon {
  display: none;
}
.compact + .text-link {
  display: inline-flex;
  margin-top: 0.5rem;
}
.page-intro {
  margin: 0.35rem 0 1.5rem;
  animation: arrive 0.42s ease both;
}
.page-intro h1 {
  margin: 0.45rem 0 0.5rem;
}
.page-intro p,
.insight p {
  color: var(--mute);
}
.segment,
.filters,
.tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.segment {
  background: #e8eee4;
  padding: 3px;
  border-radius: 9px;
}
.segment button,
.filters button,
.tabs button {
  font-size: 0.9rem;
  font-weight: 700;
  background: transparent;
  border: 0;
}
.segment button[aria-pressed="true"] {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 3px #24372121;
}
.filters {
  margin: 0.35rem 0 1rem;
}
.filters button {
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.filters span {
  margin-left: 0.25rem;
}
.filters button[aria-pressed="true"] {
  background: var(--pale);
  color: #205e31;
  border-color: #a7c99b;
}
.tabs {
  margin: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  border-radius: 0;
  border-bottom: 3px solid transparent;
}
.tabs button[aria-pressed="true"] {
  border-color: var(--green);
  color: var(--green);
}
.big-number {
  display: block;
  font:
    400 3.9rem/1.25 Staatliches,
    sans-serif;
  color: var(--green);
  margin: 0.45rem 0;
}
.insight {
  background: #eff6e7;
}
.insight hr {
  border: 0;
  border-top: 1px solid #ccdabe;
  margin: 1rem 0;
}
.sub {
  margin: 0.3rem 0 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
td,
th {
  padding: 0.72rem 0.45rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
th:first-child {
  text-align: left;
}
thead {
  background: var(--pale);
}
tbody th {
  font-weight: 400;
}
.methods dt {
  font-weight: 700;
  margin: 1rem 0 0.2rem;
}
.methods dd {
  color: var(--mute);
  max-width: 85ch;
}
.empty {
  padding: 1rem;
  color: var(--mute);
}
dialog {
  width: min(530px, calc(100% - 1.6rem));
  max-height: 85dvh;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 25px 90px #0a301e30;
}
dialog[open] {
  animation: arrive 0.22s ease both;
}
dialog::backdrop {
  background: #142b20a6;
}
.dialog-head {
  margin-bottom: 1rem;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
}
.brief {
  margin: 1rem 0;
  background: var(--pale);
  padding: 1rem;
  border-radius: 9px;
}
.dialog-meta {
  line-height: 1.6;
}
dialog form,
dialog label {
  display: grid;
  gap: 0.4rem;
}
dialog form {
  gap: 1rem;
}
dialog label {
  font-weight: 700;
  font-size: 0.9rem;
}
input,
textarea,
select {
  width: 100%;
  font: inherit;
  border: 1px solid #b5c6b6;
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 0.65rem;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
dialog .primary {
  justify-self: start;
}
.hit {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  border-radius: 6px;
  padding: 0.7rem;
}
.hit svg {
  color: var(--green);
}
#results {
  padding-top: 0.6rem;
}
.error {
  color: #9b301d;
}
.error:empty {
  display: none;
}
dialog .brand,
dialog .rail-foot {
  display: none;
}
dialog nav {
  padding: 0;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #153e27;
  color: white;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  box-shadow: 0 4px 16px #12331b30;
  pointer-events: none;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (min-width: 1650px) {
  main {
    padding-top: 2.6rem;
  }
  .hero {
    min-height: 270px;
  }
}
@media (max-width: 1180px) {
  :root {
    --rail: 211px;
  }
  .brand {
    padding: 0.8rem 1rem;
  }
  .brand img {
    width: 62px;
    height: 52px;
  }
  nav {
    padding: 0.7rem 0.45rem;
  }
  nav a {
    font-size: 0.86rem;
  }
  .metric {
    padding: 0.85rem;
  }
  .op {
    gap: 0.55rem;
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  main {
    padding-inline: 1.4rem;
  }
  .compact .work-row {
    flex-wrap: wrap;
  }
  .compact .pill {
    font-size: 0.72rem;
  }
  .op div > span {
    font-size: 0.84rem;
  }
}
@media (max-width: 930px) {
  #rail {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .mobile-only {
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
    min-height: 44px;
    min-width: 44px;
  }
  .top {
    padding: 0 1rem;
    height: 60px;
  }
  .two-col {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  main {
    padding: 1rem 0.85rem 2rem;
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .hero {
    min-height: 208px;
    background-position: 62% center;
  }
  .hero:before {
    background: linear-gradient(90deg, #104327f5, #104327bd 65%, #183e3066);
  }
  .find kbd,
  .crumb b,
  .crumb strong {
    display: none;
  }
  .top {
    gap: 0.6rem;
  }
  .caption {
    font-size: 0.75rem;
  }
  .op {
    min-height: 82px;
  }
  .metric-icon {
    width: 32px;
    height: 32px;
  }
  .row-icon {
    width: 32px;
    height: 32px;
  }
  .row-main small {
    font-size: 0.76rem;
  }
  .work-row {
    gap: 0.45rem;
  }
  .filters button,
  .tabs button {
    min-height: 44px;
  }
  .tabs button {
    padding: 0.4rem 0.55rem;
  }
  .section-head {
    margin-top: 1.2rem;
  }
  .hero-date {
    font-size: 0.82rem;
  }
  .panel {
    border-radius: 12px;
  }
  td,
  th {
    font-size: 0.8rem;
    padding: 0.55rem 0.24rem;
  }
  .work-row .pill {
    max-width: 6.7rem;
  }
  .avatar {
    width: 32px;
    height: 32px;
  }
  .top .find {
    min-height: 40px;
  }
  dialog nav a {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0;
  min-width: 0;
  padding: 0.8rem;
}
legend {
  font-weight: 700;
  padding: 0 0.3rem;
}
.field-grid,
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.computed {
  margin-top: 0.65rem;
  color: var(--green);
  font-weight: 700;
}
.facts {
  background: var(--pale);
  padding: 0.8rem;
  border-radius: 9px;
}
.facts dt {
  font-size: 0.78rem;
  color: var(--mute);
}
.facts dd {
  font-weight: 700;
  margin-top: 0.2rem;
  font-size: 0.92rem;
}
@media (max-width: 480px) {
  .field-grid,
  .facts {
    grid-template-columns: 1fr;
  }
}
.rail-foot,
dialog .rail-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.9rem;
}
.rail-foot button {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 0.82rem;
  min-height: 40px;
}
.hero-link {
  border: 0;
}
.delivery-area {
  margin-top: 1rem;
}
.delivery-area details {
  border-top: 1px solid var(--line);
}
.delivery-area summary {
  cursor: pointer;
  padding: 0.75rem 0.25rem;
  color: var(--green);
}
.delivery-area summary:focus-visible {
  outline: 3px solid var(--leaf);
}
.delivery-area ul {
  columns: 16rem;
  padding-left: 1.4rem;
  margin: 0.2rem 0 1rem;
}
.delivery-area li {
  break-inside: avoid;
  overflow-wrap: anywhere;
  padding: 0.12rem 0.35rem;
}
#preview-banner:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  background: #e2efd9;
  padding: 0.65rem clamp(1rem, 3.5vw, 3.5rem);
  color: var(--green);
}
.admin-fields {
  display: grid;
  gap: 1rem;
  padding: 0;
  border: 0;
}
.admin-fields .role-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 38px;
}
.role-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
}
.grant {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}
.grant .scope {
  font-size: 0.8rem;
  color: var(--mute);
}
.grant [hidden] {
  display: none;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.access-list {
  list-style: none;
  padding: 0;
}
.access-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.access-list small {
  display: block;
  color: var(--mute);
}
dialog summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green);
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1rem;
}
.vehicle-tile {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  border-radius: 13px;
  background: white;
  text-align: left;
  min-width: 0;
}
button.vehicle-tile:hover {
  box-shadow: 0 7px 24px #193e2217;
  transform: translateY(-2px);
}
.vehicle-tile img {
  width: 100%;
  aspect-ratio: 2.14;
  object-fit: contain;
}
.vehicle-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.6rem 1.15rem 1.1rem;
  gap: 0.6rem;
}
.vehicle-caption small,
.vehicle-caption strong {
  display: block;
}
.vehicle-caption strong {
  font:
    2.2rem Staatliches,
    sans-serif;
  color: var(--green);
}
.vehicle-caption small {
  color: var(--mute);
}
dialog:has(#inspection) {
  width: min(1190px, calc(100% - 1.6rem));
  max-height: 92dvh;
}
#inspection {
  margin-top: 1rem;
}
.inspect-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(250px, 0.9fr);
  gap: 1rem;
}
.inspect-grid > div {
  min-width: 0;
}
.van-stage {
  position: relative;
  isolation: isolate;
  height: clamp(295px, 42vw, 500px);
  overflow: hidden;
  border-radius: 14px;
  background: #eaf0e8;
}
.van-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.van-stage.placing canvas {
  cursor: crosshair;
}
.van-stage.placing .van-pin {
  pointer-events: none;
}
.plan-calendar .calendar-entry {
  color: var(--green);
  border-color: var(--line);
  font-weight: 600;
}
.van-stage img {
  width: 100%;
  height: 75%;
  object-fit: contain;
}
.van-stage > span {
  display: block;
  text-align: center;
}
.van-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 33px;
  height: 33px;
  padding: 0;
  background: #173e2e;
  color: white;
  border: 2px solid white;
  box-shadow: 0 2px 12px #0005;
  font-weight: bold;
  font-size: 0.76rem;
}
.van-pin.damage {
  background: #b44720;
}
.van-pin[hidden] {
  display: none;
}
.orbit-tools,
.part-buttons > div,
.month-nav,
.cal-key,
.weekday-checks,
.account-head,
.leave-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.orbit-tools {
  margin-top: 0.5rem;
}
.orbit-tools span {
  font-size: 0.8rem;
  color: var(--mute);
  margin-right: auto;
}
.orbit-tools button {
  min-height: 40px;
}
.part-buttons h3,
.leave-title {
  margin: 0.85rem 0 0.45rem;
}
.part-buttons button {
  font-size: 0.86rem;
}
.part-buttons [aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.inspection-panel {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.wheel-history {
  padding-left: 1.2rem;
  font-size: 0.9rem;
}
.wheel-history li {
  margin: 0.4rem 0;
}
.wheel-form {
  margin-top: 0.8rem;
}
.plan-calendar {
  margin-bottom: 1rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar-grid > small {
  text-align: center;
  color: var(--mute);
  padding: 0.35rem;
}
.calendar-grid button {
  min-height: 58px;
  text-align: left;
  padding: 0.35rem 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.calendar-grid button span {
  font-size: 0.75rem;
}
.calendar-grid button[aria-pressed="true"] {
  border: 2px solid var(--green);
  background: var(--pale);
}
.cal-key {
  margin: 0.55rem 0 1rem;
  font-size: 0.82rem;
  color: var(--mute);
  gap: 1rem;
}
.shift-dot,
.leave-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--green);
  margin-right: 0.2rem;
}
.leave-dot {
  background: #da852c;
}
.conflict {
  font-size: 0.86rem;
  color: #824509;
}
.account-head,
.leave-row {
  justify-content: space-between;
  margin: 0.7rem 0;
}
.account-head > span {
  font-weight: bold;
}
.weekday-checks label {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.weekday-checks input {
  width: auto;
}
.weekday-checks {
  margin: 0.65rem 0;
}
.date-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.date-fields label {
  min-width: 0;
}
.month-nav button {
  min-width: 38px;
}
@media (max-width: 780px) {
  .inspect-grid {
    grid-template-columns: 1fr;
  }
  .van-stage {
    height: 300px;
  }
  .calendar-grid button {
    min-height: 46px;
    padding: 0.23rem;
  }
  .calendar-grid {
    gap: 2px;
  }
  .date-fields {
    grid-template-columns: 1fr;
  }
}
#shift-assignment fieldset {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
#shift-assignment .candidate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 400;
}
.candidate input {
  width: auto;
  flex: none;
  accent-color: var(--green);
}
.candidate:has(input:enabled) {
  cursor: pointer;
}
.candidate:has(input:checked) {
  background: var(--pale);
  border-color: var(--green) !important;
}
.candidate small {
  display: block;
  margin-top: 0.2rem;
}
.candidate .free {
  color: var(--green);
}
.candidate .occupied {
  color: #824509;
}
.plan-calendar .day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.directory-panel .panel-head {
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.directory-tools {
  display: flex;
  gap: 0.8rem;
  align-items: end;
  margin: 1rem 0 1.2rem;
}
.directory-tools label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.83rem;
  font-weight: 700;
}
.directory-tools label:first-child {
  flex: 1;
}
.directory-tools input,
.directory-tools select {
  min-height: 42px;
}
.directory-columns,
.directory-row {
  display: grid;
  grid-template-columns:
    minmax(145px, 1fr) minmax(150px, 1.15fr) minmax(66px, 0.4fr)
    16px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
}
.directory-columns {
  background: #f3f6f1;
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
}
.directory-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  background: white;
  min-height: 65px;
  font-weight: 400;
  font-size: 0.93rem;
}
.directory-row:hover,
.directory-row:focus-visible {
  background: var(--pale);
}
.directory-row strong,
.directory-row small,
.role-option strong,
.role-option small,
.profile-leave small {
  display: block;
}
.directory-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.directory-row small,
.role-option small,
.profile-leave small {
  color: var(--mute);
  font-weight: 400;
}
.person-initials {
  flex: none;
  width: 38px;
  height: 38px;
  background: #e8f1e6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #315a3c;
  font-weight: 700;
  font-size: 0.83rem;
}
.directory-roles {
  overflow-wrap: anywhere;
}
.person-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #33623a;
}
.person-status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.person-status.inactive,
.directory-arrow {
  color: var(--mute);
}
.directory-arrow {
  font-size: 1.35rem;
}
dialog:has(.directory-editor) {
  width: min(650px, calc(100% - 1.6rem));
}
.directory-editor {
  gap: 1rem;
}
.directory-editor h3,
.directory-editor .sub {
  margin: 0.4rem 0;
}
.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.editor-fold {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}
.editor-fold[open] > summary {
  margin-bottom: 0.75rem;
}
.role-options {
  padding: 0;
  border: 0;
  margin: 0;
  min-width: 0;
}
.role-options legend,
.directory-editor h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
}
.role-options,
.member-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
.directory-editor label.role-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.65rem;
  cursor: pointer;
}
.role-option:has(:checked) {
  background: var(--pale);
  border-color: var(--green) !important;
}
.role-option input {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  accent-color: var(--green);
}
.directory-editor .profile-leave,
.grant-line {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.profile-leave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.grant-controls {
  display: flex;
  gap: 0.6rem;
  align-items: end;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.grant-controls label {
  flex: 1;
  min-width: 110px;
  color: var(--mute);
  font-size: 0.8rem;
}
.grant-controls button {
  font-size: 0.8rem;
}
@media (max-width: 700px) {
  .directory-columns {
    display: none;
  }
  .directory-row {
    grid-template-columns: minmax(0, 1fr) auto 12px;
    gap: 0.15rem 0.5rem;
    padding: 0.7rem 0.2rem;
  }
  .directory-row > :first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .directory-roles {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.83rem;
    color: var(--mute);
  }
  .directory-row:has(.person-initials) .directory-roles {
    margin-left: calc(38px + 0.7rem);
  }
  .directory-row > :nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 0.82rem;
  }
  .directory-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .directory-tools {
    flex-wrap: wrap;
  }
  .directory-tools label {
    min-width: min(100%, 150px);
    flex: 1;
  }
}
@media (max-width: 480px) {
  .profile-fields,
  .member-options,
  .role-options {
    grid-template-columns: 1fr;
  }
  .profile-leave {
    flex-wrap: wrap;
  }
}
.mobile-dir-label {
  display: none;
}
.directory-editor details.grant-line {
  padding: 0;
}
.grant-line summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0.1rem;
  list-style: none;
  color: var(--ink);
}
.grant-line summary::-webkit-details-marker {
  display: none;
}
.grant-line summary::after {
  content: "⌄";
  font-size: 1.1rem;
  color: var(--green);
}
.grant-line[open] summary::after {
  transform: rotate(180deg);
}
.grant-line summary small,
.grant-line > span {
  display: block;
  color: var(--mute);
  font-weight: 400;
  font-size: 0.85rem;
}
.grant-line .grant-controls {
  margin: 0 0 0.8rem;
}
.directory-editor .admin-actions {
  position: sticky;
  bottom: -1px;
  background: #fff;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  z-index: 1;
}
@media (max-width: 700px) {
  .mobile-dir-label {
    display: inline;
  }
}
.hub-content {
  display: grid;
  gap: 1rem;
}
.hub-content h2,
.hub-content h3 {
  margin-top: 0;
}
.hub-content .panel-head {
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hub-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.hub-swatches > div,
.hub-type {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  min-width: 0;
}
.hub-swatch {
  height: clamp(56px, 7vw, 96px);
  border-radius: 8px;
  width: 100%;
  margin-bottom: 0.3rem;
}
.hub-content small {
  font-size: 0.83rem;
  color: var(--mute);
  display: block;
}
.hub-kit,
.hub-templates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.hub-logo {
  display: grid;
  place-items: center;
  background: #f5f7f3;
  padding: 1rem;
  border-radius: 8px;
  margin: 0.75rem 0;
}
.hub-logo img {
  height: 140px;
  max-width: 100%;
}
.hub-type {
  border-top: 1px solid var(--line);
  padding: 0.65rem 0;
}
.hub-type strong {
  font-size: 1.65rem;
}
.hub-headline {
  font-family: Staatliches, sans-serif;
}
.hub-type .text-link {
  margin-left: 0.55rem;
}
.hub-templates article {
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding: 1rem;
  border-radius: 8px;
}
.hub-templates article:last-child {
  border-top-color: var(--leaf);
}
.hub-templates h3 {
  margin: 0.25rem 0 0.9rem;
}
.hub-file,
.hub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.hub-file {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.hub-file span {
  min-width: 0;
  overflow-wrap: anywhere;
}
dialog:has(.hub-editor) {
  width: min(830px, calc(100% - 1.6rem));
}
.hub-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.hub-editor canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.hub-editor fieldset {
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.hub-editor .sub {
  margin: 0;
}
.hub-actions {
  margin-top: 1rem;
  justify-content: flex-start;
}
.hub-reveal {
  font-family: monospace;
  font-size: 1.2rem;
}
@media (max-width: 680px) {
  .hub-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-kit,
  .hub-templates,
  .hub-editor {
    grid-template-columns: 1fr;
  }
  .hub-editor canvas {
    max-height: 300px;
    width: auto;
    max-width: 100%;
    margin: auto;
  }
}
@media (max-width: 480px) {
  .hub-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-tabs button {
    text-align: center;
  }
}
.hub-login { max-width: 32rem; }
.hub-login form, .hub-login label { display: grid; gap: .4rem; }
.hub-login form { gap: 1rem; }
.hub-login button { justify-self: start; }
.hub-login label { font-weight: 700; }
.hub-notice { padding: .75rem 1rem; background: #fff2c9; border-radius: 6px; }
.hub-doc-form iframe { width: 100%; height: min(50vh, 32rem); border: 1px solid var(--line); }
.hub-content .hub-logo img { object-fit: contain; }
.hub-content h3 { margin-top: 1rem; }
body.signed-out .workspace { margin: 0; width: 100%; }
body.signed-out main { display: grid; min-height: 90vh; place-items: center; padding: 1.25rem; }
body.signed-out .top, body.signed-out #rail { display: none; }
.office-login {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 26rem);
}
.office-login img {
  display: block;
  width: 6.75rem;
  max-width: 100%;
  height: auto;
}
.office-login h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  line-height: 1.05;
}
.office-login .error:empty { display: none; }
.office-login form, .office-login label { display: grid; gap: .4rem; }
.office-login form { gap: 1rem; }
.office-login button { justify-self: start; }
.offline-page { width: min(100%, 46rem); margin-inline: auto; }
.offline-page > header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.offline-page form, .offline-page label, #offline-fields { display: grid; gap: .75rem; }
.offline-page form > button { justify-self: start; }
.offline-page .panel + .panel { margin-top: 1rem; }
#offline-history, .offline-history { list-style: none; padding: 0; }
.offline-entry { padding: .75rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.offline-entry p { margin: .3rem 0 0; }
