:root {
  color-scheme: dark;
  --bg: #111311;
  --panel: #1d201d;
  --panel2: #20231f;
  --field: #151714;
  --text: #f5f5f1;
  --muted: #adb2a9;
  --border: #363a34;
  --accent: #d7f477;
  --accent-text: #d7f477;
  --icon-bg: #303627;
  --shadow: 0 12px 34px #0002;
  --brand: invert(1);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0e9;
  --panel: #fff;
  --panel2: #f7f8f4;
  --field: #f8f9f6;
  --text: #20241c;
  --muted: #525b4f;
  --border: #d3d8cc;
  --accent: #c5e766;
  --accent-text: #4d631e;
  --icon-bg: #edf2df;
  --brand: none;
  --shadow: 0 12px 34px #2a36200b;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}
body {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-text);
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
}
a {
  color: var(--accent-text);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p,
small {
  line-height: 1.6;
}
p {
  color: var(--muted);
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 0.82rem;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
svg {
  flex-shrink: 0;
}
button {
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.site {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 60% 10%, #8c9b6d09, transparent 55%), var(--bg);
}
.top {
  height: 86px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.top-inner,
.login-main,
.footer,
.work {
  width: min(1400px, calc(100% - clamp(40px, 8vw, 144px)));
  margin: 0 auto;
}
.top-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand,
.header-actions,
.head-date,
.secure,
.hero-toptag,
.hero-bottom span,
.footer div,
.footer-date,
.eyebrow,
.pair,
.toolbar,
.between,
.checkrow,
.contact-link {
  display: flex;
  align-items: center;
}
.brand {
  gap: 21px;
}
.brand img {
  display: block;
  width: 154px;
  height: auto;
  filter: var(--brand);
}
.brand-rule,
.mini-rule {
  height: 25px;
  width: 1px;
  background: var(--border);
}
.brand-name {
  font-size: 0.91rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.header-actions {
  gap: 10px;
}
.head-date,
.footer button {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--muted);
}
.head-date:hover,
.footer button:hover {
  color: var(--text);
}
.mini-rule {
  height: 20px;
  margin: 0 6px;
}
.round,
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
}
.round:hover,
.icon-btn:hover,
.secondary:hover {
  background: var(--icon-bg);
  border-color: var(--muted);
}
.login-main {
  padding-top: clamp(25px, 4vh, 50px);
  padding-bottom: 34px;
}
.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.43fr) minmax(350px, 1fr);
  gap: 22px;
}
.hero,
.login-panel,
.feature,
.surface,
.side {
  border: 1px solid var(--border);
  border-radius: 19px;
}
.hero {
  min-height: 518px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  padding: 30px 35px 24px;
  color: #fafbf8;
  background: #242824;
}
.hero-img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-img {
  object-fit: cover;
  object-position: 55% 46%;
  filter: saturate(0.63);
}
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 10, 7, 0.35), transparent 75%),
    linear-gradient(
      0deg,
      rgba(10, 15, 10, 0.98) 0%,
      rgba(11, 15, 11, 0.77) 31%,
      rgba(13, 18, 12, 0.26) 73%,
      rgba(15, 22, 13, 0.1) 100%
    );
}
.hero-toptag {
  align-self: flex-start;
  gap: 9px;
  font:
    600 0.68rem/1.2 ui-monospace,
    "Courier New",
    monospace;
  letter-spacing: 0.105em;
  padding: 8px 11px;
  background: #101610a6;
  border: 1px solid #fff3;
  border-radius: 6px;
  backdrop-filter: blur(12px);
}
.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7f477;
  box-shadow: 0 0 9px #c6ed7670;
}
.hero-copy {
  margin-top: auto;
  padding-top: 58px;
}
.eyebrow,
.side-title,
.section-kicker,
.access-code {
  font:
    600 0.69rem/1.5 "IBM Plex Mono",
    ui-monospace,
    "Courier New",
    monospace;
  letter-spacing: 0.14em;
}
.eyebrow {
  gap: 10px;
  color: var(--accent-text);
}
.eyebrow i {
  width: 25px;
  height: 2px;
  background: currentColor;
  display: block;
}
.hero .eyebrow {
  color: #dfefa9;
}
.hero h1 {
  font-size: clamp(3.7rem, 5.65vw, 6rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
  font-weight: 630;
  margin: 16px 0 17px;
}
.hero h1 em {
  font-style: normal;
  color: #dbf58c;
}
.hero-copy p {
  font-size: clamp(0.98rem, 1.16vw, 1.13rem);
  line-height: 1.55;
  color: #e2e5df;
  letter-spacing: -0.012em;
}
.hero-bottom {
  border-top: 1px solid #dce8d930;
  margin-top: 27px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-bottom span {
  gap: 8px;
  color: #c4cac0;
  font-size: 0.8rem;
}
.wire-sign {
  display: flex;
  gap: 4px;
  padding-right: 3px;
}
.wire-sign i {
  height: 15px;
  width: 3px;
  transform: skewX(-26deg);
  background: #d8ee9b;
}
.wire-sign i:nth-child(n + 4) {
  background: #809064;
}
.login-panel {
  background: linear-gradient(125deg, #ffffff03, transparent 44%), var(--panel);
  padding: clamp(25px, 2.65vw, 47px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}
.access-icon,
.feature-icon,
.detail-icon,
.list-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.access-icon {
  height: 45px;
  width: 45px;
  background: var(--icon-bg);
  color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent-text) 22%, transparent);
  border-radius: 12px;
}
.access-code {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
}
.login-panel h2 {
  font-size: clamp(1.85rem, 2.5vw, 2.7rem);
  font-weight: 630;
  line-height: 1.12;
}
.subtext {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
}
.login-panel form {
  margin-top: 25px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
label {
  font-size: 0.88rem;
  font-weight: 570;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
input:not([type="checkbox"]),
textarea,
select {
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 13px;
  width: 100%;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.3;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.76;
}
input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--accent-text);
  border-color: var(--accent-text);
}
textarea {
  resize: vertical;
}
.input-icon {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--field);
  border-radius: 9px;
  color: var(--muted);
}
.input-icon:focus-within {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-text) 12%, transparent);
}
.input-icon > svg,
.input-icon button svg {
  width: 17px;
  height: 17px;
}
.input-icon input:not([type="checkbox"]) {
  padding: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  border-radius: 0;
}
.input-icon button {
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  padding: 4px;
}
.remember,
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.remember {
  margin: -1px 0 2px;
}
.remember label,
.checkrow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}
.remember input,
.checkrow input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #6c7266;
  border-radius: 4px;
  margin: 0;
  background: var(--field);
  flex-shrink: 0;
}
.remember input:checked,
.checkrow input:checked {
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23222915' stroke-width='2'/%3E%3C/svg%3E")
    center/14px no-repeat;
}
.text-btn {
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font-weight: 550;
  font-size: 0.83rem;
  padding: 2px;
}
.primary,
.secondary,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 650;
  font-size: 0.9rem;
}
.primary {
  background: var(--accent);
  color: #202615;
}
.primary:hover {
  background: #e3ff91;
}
.secondary {
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
}
.wide {
  width: 100%;
}
.secure {
  gap: 7px;
  justify-content: center;
  margin-top: 19px;
  font-size: 0.76rem;
  color: var(--muted);
}
.secure svg {
  color: var(--muted);
}
.features {
  margin-top: 30px;
}
.section-kicker {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.66rem;
}
.section-kicker i {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.feature-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  background: var(--panel);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 18px;
  border-radius: 13px;
  min-height: 90px;
}
.feature:hover {
  background: var(--panel2);
  border-color: color-mix(in srgb, var(--accent-text) 45%, var(--border));
}
.feature-icon,
.list-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--accent-text);
}
.feature strong {
  display: block;
  font-size: 0.99rem;
  letter-spacing: -0.02em;
}
.feature small {
  display: block;
  margin-top: 4px;
  font-size: 0.79rem;
  line-height: 1.4;
}
.feature-more {
  margin-left: auto;
  color: var(--muted);
}
.footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  color: var(--muted);
  font-size: 0.76rem;
}
.footer div,
.footer-date {
  gap: 8px;
}
.footer-mark {
  width: 12px;
  height: 14px;
  background: var(--muted);
  mask: url("/brand/logo.svg") left center / 50px auto no-repeat;
}
.footer button {
  font-size: 0.76rem;
}
.footer-date {
  margin-left: auto;
  margin-right: 20px;
}
.modal {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 26px;
  width: min(480px, calc(100% - 30px));
  box-shadow: 0 20px 100px #0007;
  max-height: 86svh;
  overflow: auto;
}
.modal::backdrop {
  background: #0a0f0bc9;
  backdrop-filter: blur(6px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.modal p {
  margin: 12px 0;
}
.modal .detail-icon {
  width: 48px;
  height: 48px;
  background: var(--icon-bg);
  color: var(--accent-text);
  border-radius: 12px;
}
.modal .primary.wide {
  margin-top: 10px;
}
.info-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 15px;
}
.info-line > svg {
  color: var(--accent-text);
  width: 20px;
}
.info-line p {
  margin: 6px 0;
  font-size: 0.92rem;
}
.contact-link {
  gap: 9px;
  font-size: 0.9rem;
  margin: 18px 0;
}
.err,
.success {
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.err {
  color: #ffb6a7;
  background: #a33c261f;
  border: 1px solid #aa554766;
}
.success {
  color: var(--accent-text);
  background: var(--icon-bg);
  border: 1px solid var(--border);
}
[data-theme="light"] .err {
  color: #8c2818;
}
.work {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
  padding: 30px 0 40px;
}
.side {
  align-self: start;
  background: var(--panel);
  padding: 18px 12px;
  position: sticky;
  top: 18px;
}
.side-title {
  color: var(--muted);
  font-size: 0.64rem;
  margin: 0 10px 14px;
}
.side nav {
  display: grid;
  gap: 4px;
}
.side nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
}
.side nav .selected {
  color: var(--accent-text);
  background: var(--icon-bg);
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding: 16px 5px 0;
}
.profile > span {
  background: var(--icon-bg);
  color: var(--accent-text);
  border-radius: 50%;
  padding: 9px;
  font-size: 0.8rem;
}
.profile b,
.profile small,
.list-main b,
.list-main small {
  display: block;
}
.profile b {
  font-size: 0.84rem;
}
.work-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}
.work-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.work-heading h1 {
  font-size: clamp(2.1rem, 4vw, 3.75rem);
  letter-spacing: -0.065em;
  margin: 3px 0 5px;
}
.surface {
  padding: 24px;
  background: var(--panel);
  min-width: 0;
}
.surface h2 {
  margin-bottom: 13px;
}
.surface .between h2 {
  margin: 0;
}
.surface .between {
  margin-bottom: 16px;
}
.surface > p + .secondary {
  margin-top: 12px;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 17px;
}
.timer-card {
  background:
    linear-gradient(110deg, #151b13ef, #151c16ce),
    url("/brand/schaltschrank.webp") center 45% / cover;
  color: #f4f6f1;
}
.timer-card .eyebrow {
  color: #d7f477;
}
.timer-card p {
  color: #d0d6cd;
  margin-bottom: 17px;
}
.timer-number {
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(2.25rem, 4vw, 3.9rem);
  letter-spacing: -0.06em;
  margin: 14px 0 0;
}
.pair,
.toolbar {
  gap: 10px;
}
.summary-card h2 {
  font-size: 1.6rem;
  margin: 22px 0 5px;
}
.summary-card .secondary {
  margin-top: 16px;
}
.entry-list,
.stack {
  display: grid;
}
.entry-list button,
.person-row,
.setting {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.entry-list button:last-child,
.person-row:last-child,
.setting:last-child {
  border: 0;
}
.entry-list strong,
.person-row .pill {
  font-size: 0.82rem;
}
.list-main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.list-main b {
  font-weight: 600;
  font-size: 0.97rem;
}
.list-main small {
  font-size: 0.78rem;
}
.empty {
  padding: 18px 0;
  color: var(--muted);
}
.surface.empty {
  padding: 35px;
}
.empty svg,
.pair svg,
.setting > svg {
  width: 19px;
  color: var(--accent-text);
}
.pill {
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 13px;
  color: var(--muted);
}
.toolbar {
  flex-wrap: wrap;
}
.between select {
  width: auto;
  max-width: 55%;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.setting span {
  flex: 1;
}
.toggle {
  width: 36px;
  height: 22px;
  border-radius: 15px;
  background: var(--border);
  padding: 3px;
}
.toggle:before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
}
.toggle.on {
  background: #8bad3e;
}
.toggle.on:before {
  transform: translateX(14px);
}
.stack {
  gap: 10px;
  margin-top: 14px;
}
.dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.otp {
  display: block;
  padding: 15px;
  font: 1.3rem monospace;
  letter-spacing: 0.04em;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 7px;
  user-select: all;
}
.danger-btn {
  background: #b42f261c;
  border: 1px solid #b44e394f;
  color: #f6a28f;
}
[data-theme="light"] .danger-btn {
  color: #992b1a;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0;
}
.gallery a {
  display: grid;
  width: 90px;
}
.gallery img {
  width: 90px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
}
.gallery small {
  overflow-wrap: anywhere;
}
.spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .hero {
    min-height: 590px;
  }
  .hero-copy {
    padding-bottom: 5px;
  }
  .login-main {
    padding-top: 48px;
  }
}
@media (max-width: 1080px) {
  .login-grid {
    grid-template-columns: minmax(0, 1.14fr) minmax(325px, 1fr);
    gap: 16px;
  }
  .hero {
    padding: 24px;
    min-height: 495px;
  }
  .feature {
    gap: 11px;
    padding: 16px 13px;
  }
  .feature-more {
    display: none;
  }
  .feature-icon {
    width: 36px;
    height: 36px;
  }
  .work {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 18px;
  }
  .surface {
    padding: 18px;
  }
}
@media (max-width: 760px) {
  .top {
    height: 69px;
  }
  .top-inner,
  .login-main,
  .work,
  .footer {
    width: calc(100% - 32px);
  }
  .top-inner {
    gap: 8px;
  }
  .brand {
    gap: 12px;
  }
  .brand img {
    width: 121px;
  }
  .brand-name {
    font-size: 0.77rem;
  }
  .brand-rule {
    height: 22px;
  }
  .header-actions {
    gap: 7px;
  }
  .round {
    width: 34px;
    height: 34px;
  }
  .head-date,
  .mini-rule {
    display: none;
  }
  .login-main {
    padding-top: 17px;
    padding-bottom: 21px;
  }
  .login-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero {
    min-height: 255px;
    padding: 18px 21px;
    border-radius: 16px;
  }
  .hero-copy {
    padding-top: 23px;
  }
  .hero-toptag {
    font-size: 0.59rem;
    padding: 6px 8px;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.02;
    margin: 8px 0;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 em {
    margin-left: 0.19em;
  }
  .hero-copy p {
    font-size: 0.9rem;
    max-width: 340px;
  }
  .desktop-br {
    display: none;
  }
  .hero .eyebrow {
    font-size: 0.59rem;
  }
  .hero-bottom {
    margin-top: 13px;
    padding-top: 10px;
  }
  .hero-bottom span {
    font-size: 0.7rem;
  }
  .hero-img {
    object-position: 50% 40%;
  }
  .login-panel {
    padding: 23px;
    border-radius: 16px;
  }
  .panel-top {
    margin-bottom: 15px;
  }
  .access-icon {
    width: 38px;
    height: 38px;
  }
  .login-panel form {
    margin-top: 20px;
  }
  .features {
    margin-top: 24px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .feature {
    min-height: 69px;
    padding: 14px 16px;
  }
  .feature-more {
    display: block;
  }
  .feature small {
    margin-top: 2px;
  }
  .footer {
    min-height: 56px;
  }
  .footer-date {
    display: none;
  }
  .work {
    display: block;
    padding: 24px 0 42px;
  }
  .work + .footer {
    margin-bottom: 76px;
  }
  .side {
    position: fixed;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: max(7px, env(safe-area-inset-bottom));
    padding: 6px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    backdrop-filter: blur(18px);
    z-index: 7;
    box-shadow: 0 4px 25px #0003;
  }
  .side-title,
  .profile {
    display: none;
  }
  .side nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
  }
  .side nav button {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 7px 0;
    font-size: 0.63rem;
    min-width: 0;
  }
  .work-body {
    gap: 14px;
  }
  .work-heading h1 {
    font-size: 2.5rem;
  }
  .dash-grid {
    gap: 12px;
  }
  .timer-number {
    font-size: 2.05rem;
  }
  .surface h2 {
    font-size: 1.18rem;
  }
  .surface .eyebrow {
    font-size: 0.57rem;
  }
  .summary-card h2 {
    font-size: 1.45rem;
  }
  .entry-list .list-icon {
    display: none;
  }
  .toolbar button {
    flex: 1;
  }
  .feature-grid {
    margin-top: 10px;
  }
}
@media (max-width: 440px) {
  .brand-name {
    display: none;
  }
  .brand-rule {
    display: none;
  }
  .hero {
    min-height: 240px;
  }
  .hero-copy p {
    max-width: 260px;
  }
  .login-panel,
  .surface {
    padding: 19px;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .entry-list strong {
    font-size: 0.74rem;
  }
  .footer {
    font-size: 0.73rem;
  }
  .hero h1 {
    font-size: 2.55rem;
  }
  .secure {
    margin-top: 15px;
  }
  .modal {
    padding: 21px;
  }
  .person-row .pill {
    font-size: 0.71rem;
    padding: 3px 5px;
  }
  .list-icon {
    width: 32px;
    height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.setup-link {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--accent-text);
  font: inherit;
}
.login-panel {
  background:
    linear-gradient(135deg, #ffffff06 0%, transparent 46%, #d7f47703 100%),
    color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 #ffffff05,
    var(--shadow);
}

/* Translucent surfaces share an edge highlight and retain contrast in both themes. */
:root {
  --bg: #101619;
  --panel: #1d2629;
  --panel2: #263234;
  --field: #10191c;
  --muted: #b0bfc0;
  --border: #ffffff26;
  --icon-bg: #cce69f12;
  --frost: rgba(32, 44, 46, 0.68);
  --glass-edge: rgba(232, 248, 241, 0.17);
  --shine: rgba(241, 255, 248, 0.06);
  --deep: rgba(0, 11, 12, 0.23);
  --accent: #d7f58b;
  --accent-text: #d7f58b;
}
:root[data-theme="light"] {
  --bg: #e6edeb;
  --panel: #f5f9f7;
  --panel2: #eff5f1;
  --field: #fcfefc;
  --muted: #475b5b;
  --border: #213c3031;
  --icon-bg: #667d2914;
  --frost: rgba(251, 255, 252, 0.73);
  --glass-edge: #ffffffba;
  --shine: #ffffffca;
  --deep: #324d3912;
  --accent: #c5e884;
  --accent-text: #415d18;
}
.site {
  background:
    radial-gradient(ellipse at 90% 25%, #63a6ab18, transparent 42%),
    radial-gradient(ellipse at 10% 86%, #96b56814, transparent 38%), var(--bg);
  isolation: isolate;
}
.top {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.round,
.icon-btn {
  width: 42px;
  height: 42px;
}
.head-date {
  min-height: 44px;
}
.login-grid {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(350px, 0.8fr);
  gap: 3%;
  padding: clamp(20px, 2.2vw, 38px);
  border-radius: 27px;
  border: 1px solid #c3d4ca38;
  background: #152021;
  box-shadow:
    0 20px 65px var(--deep),
    inset 0 1px #fff2;
}
.login-grid > .hero-img {
  object-position: 50% 42%;
  filter: saturate(0.76);
  height: 100%;
  width: 100%;
}
.login-grid > .hero-shade {
  background:
    linear-gradient(90deg, #06111352 2%, #07141618 55%, #10212580 95%),
    linear-gradient(
      0deg,
      #091417f7 0%,
      #102023aa 39%,
      #101c2266 67%,
      #0b131930 100%
    );
}
.hero {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 465px;
  padding: 6px 13px 7px;
  isolation: auto;
}
.hero-toptag {
  border-radius: 999px;
  background: #0a171bb3;
  padding: 9px 13px;
}
.hero h1 {
  font-size: clamp(3.1rem, 5.2vw, 5.8rem);
  font-weight: 620;
  letter-spacing: -0.075em;
  margin: 14px 0 17px;
}
.hero h1 em {
  color: #d9f49b;
}
.hero-copy {
  padding-top: 50px;
}
.hero-copy p {
  font-size: 1.05rem;
  color: #f0f5f0;
}
.hero-bottom {
  max-width: 540px;
  gap: 18px;
}
.login-panel,
.surface,
.side,
.feature,
.modal,
.preview-banner {
  border: 1px solid var(--glass-edge);
  background:
    linear-gradient(140deg, var(--shine), transparent 48%), var(--frost);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  box-shadow:
    inset 0 1px 0 var(--shine),
    0 12px 32px var(--deep);
}
.login-panel {
  padding: clamp(24px, 2.4vw, 39px);
  border-radius: 21px;
  background:
    linear-gradient(145deg, #eafffa12, transparent 47%), rgba(19, 31, 34, 0.72);
  box-shadow:
    0 16px 42px #0004,
    inset 0 1px #fff2;
}
[data-theme="light"] .login-panel {
  background: linear-gradient(145deg, #fffffff2, transparent 55%), #eaf2eeed;
}
.login-panel .input-icon {
  background: color-mix(in srgb, var(--field) 73%, transparent);
  height: 49px;
}
.login-panel .primary {
  min-height: 46px;
}
.login-security,
.date-line,
.privacy-note,
.tile-title,
.timer-top,
.clock-status,
.stop-summary,
.cal-controls,
.segmented,
.calendar-tools,
.preview-banner,
.agenda-event small {
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-security {
  font-size: 0.79rem;
  color: var(--muted);
}
.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.feature {
  position: relative;
  align-items: flex-start;
  min-height: 120px;
  border-radius: 17px;
  flex-direction: column;
  gap: 11px;
}
.feature .feature-more {
  position: absolute;
  right: 16px;
  top: 19px;
}
.feature .feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.feature small {
  font-size: 0.85rem;
}
.feature:hover,
.preview-role:hover {
  transform: translateY(-3px);
  box-shadow:
    0 11px 26px var(--deep),
    inset 0 1px #fff2;
}
.work {
  grid-template-columns: 197px minmax(0, 1fr);
  gap: 25px;
}
.side nav button {
  min-height: 44px;
}
.side nav .mobile-more {
  display: none;
}
.work-body {
  gap: 18px;
}
.work-heading {
  min-height: 78px;
  gap: 14px;
}
.dash-welcome {
  background:
    linear-gradient(90deg, #122023f7 14%, #122223cb 56%, #172e2e80),
    url("/brand/schaltschrank.webp") right 43% / cover;
  border-radius: 21px;
  border: 1px solid #bbd8bf3d;
  padding: 23px 26px;
  color: #fff;
}
.date-line {
  color: #d3e3de;
  font-size: 0.85rem;
}
.dash-welcome h1 {
  margin: 10px 0 4px;
  line-height: 1.02;
}
.dash-welcome p {
  color: #d1dedb;
}
.manual-action {
  background: #f7fff01a;
  color: #fff;
  border-color: #e2ffdd45;
  backdrop-filter: blur(12px);
}
.manual-action:hover {
  background: #f7fff034;
}
.dash-grid {
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
}
.surface {
  border-radius: 18px;
}
.timer-card {
  background:
    linear-gradient(120deg, var(--shine), transparent 52%), var(--frost);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.timer-card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.timer-top {
  width: 100%;
  justify-content: space-between;
}
.tile-title {
  gap: 10px;
}
.tile-title h2,
.agenda .pair h2 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.03em;
}
.tile-icon {
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--accent-text);
  flex: none;
}
.clock-status {
  font-size: 0.76rem;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
}
.clock-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.clock-status.running {
  color: var(--accent-text);
}
.clock-status.running i {
  animation: clock-pulse 1.8s ease-in-out infinite;
}
.timer-number {
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 590;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.065em;
  margin: 23px 0 12px;
}
.timer-card .primary {
  margin-top: auto;
  min-width: 132px;
}
.week-summary {
  display: flex;
  flex-direction: column;
}
.week-total {
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  letter-spacing: -0.045em;
  margin: 13px 0 9px;
}
.week-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: auto;
}
.week-bars > div {
  min-width: 0;
  text-align: center;
}
.week-bars > div > span:first-child {
  height: 57px;
  display: flex;
  align-items: flex-end;
  background: color-mix(in srgb, var(--muted) 9%, transparent);
  border-radius: 6px;
  overflow: hidden;
}
.week-bars i {
  width: 100%;
  background: linear-gradient(0deg, #589b8c, #a8d4b5);
  border-radius: 5px;
  transition: height 0.35s;
}
.week-bars .current i {
  background: var(--accent);
}
.week-bars .current small {
  color: var(--accent-text);
  font-weight: bold;
}
.week-bars small {
  font-size: 0.75rem;
}
.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
.dashboard-agenda {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.dashboard-agenda > .text-btn {
  margin-left: auto;
}
.next-time {
  display: grid;
}
.next-time b {
  font-size: 0.92rem;
}
.toolbar .secondary,
.calendar-tools button,
.text-btn,
.more-menu button {
  min-height: 44px;
}
.time-fields,
.booking-form .dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.time-fields label,
.booking-form .dual label {
  display: grid;
  grid-template-rows: 1.3em 48px;
  min-width: 0;
  align-content: start;
  gap: 7px;
  background: color-mix(in srgb, var(--field) 51%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px;
  font-weight: 550;
  overflow: hidden;
}
.time-fields input,
.booking-form .dual input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 48px;
  line-height: 1.2;
  padding: 0 8px !important;
  font-variant-numeric: tabular-nums;
  border-radius: 8px;
}
.booking-form,
.time-fields {
  min-width: 0;
}
.booking-form input[type="file"] {
  font-size: 0.8rem;
}
.stop-summary {
  padding: 12px;
  border-radius: 11px;
  color: var(--accent-text);
  background: var(--icon-bg);
}
.stop-summary b {
  margin-left: auto;
}
.modal {
  background:
    linear-gradient(140deg, var(--shine), transparent 45%),
    color-mix(in srgb, var(--panel) 93%, transparent);
  border-radius: 21px;
}
.calendar-tools {
  gap: 10px;
  flex-wrap: wrap;
}
.calendar-tools > .primary {
  margin-left: auto;
}
.calendar-tools select {
  width: auto;
  max-width: 100%;
}
.segmented {
  background: var(--field);
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  gap: 3px;
}
.segmented button,
.segmented span {
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 0.86rem;
}
.segmented span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.segmented button[aria-pressed="true"] {
  background: var(--panel2);
  color: var(--text);
  box-shadow: 0 1px 4px var(--deep);
}
.calendar-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
}
.month-card,
.agenda {
  padding: 18px;
}
.month-card .between {
  flex-wrap: wrap;
}
.cal-controls {
  gap: 4px;
}
.cal-controls .icon-btn,
.cal-controls .secondary {
  height: 42px;
  min-height: 42px;
}
.cal-controls .secondary {
  padding: 5px 9px;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.dow {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 8px 0;
}
.day {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  gap: 3px;
  color: var(--text);
  font-size: 0.91rem;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.day > i {
  height: 4px;
  display: flex;
  gap: 2px;
}
.day i b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-text);
}
.day i .private-dot {
  background: #75adba;
}
.day.adjacent {
  color: var(--muted);
  opacity: 0.62;
}
.day.today {
  border-color: var(--accent-text);
}
.day:hover {
  background: var(--icon-bg);
}
.day.chosen {
  color: #19231d;
  background: var(--accent);
  font-weight: 700;
}
.day.chosen i b {
  background: #26392e;
}
.agenda .pair {
  margin-bottom: 16px;
}
.agenda-event {
  background: var(--icon-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-text);
  border-radius: 9px;
  padding: 12px 13px;
  display: grid;
  text-align: left;
  gap: 5px;
  width: 100%;
  margin: 9px 0;
  overflow-wrap: anywhere;
}
.agenda-event small,
.agenda-event span {
  color: var(--muted);
  font-size: 0.81rem;
}
.agenda-event.private-event {
  border-left-color: #78aebc;
}
.cal-empty {
  display: grid;
  place-items: center;
  gap: 9px;
  text-align: center;
  padding: 35px 6px;
}
.cal-empty svg {
  color: var(--accent-text);
}
.cal-empty small {
  font-size: 0.82rem;
}
.preview-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 13px;
  margin-top: 18px;
}
.preview-role {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 12px;
  padding: 18px;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  border-radius: 13px;
}
.preview-role > span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
}
.preview-banner {
  display: flex;
  gap: 12px;
  padding: 10px 18px;
  width: min(740px, calc(100% - 32px));
  margin: 18px auto 0;
  border-radius: 15px;
}
.preview-banner > div {
  display: grid;
}
.preview-banner .secondary {
  margin-left: auto;
  font-size: 0.8rem;
}
.more-menu {
  display: grid;
  gap: 7px;
}
.more-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--icon-bg);
}
.privacy-note {
  align-items: flex-start;
  line-height: 1.45;
}
@keyframes glass-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clock-pulse {
  50% {
    box-shadow: 0 0 0 5px #a4c76518;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .login-panel,
  .modal[open],
  .work-heading,
  .surface,
  .feature,
  .preview-banner {
    animation: glass-enter 0.32s ease-out both;
  }
  .feature:nth-child(2) {
    animation-delay: 35ms;
  }
  .feature:nth-child(3) {
    animation-delay: 70ms;
  }
  .feature:nth-child(4) {
    animation-delay: 100ms;
  }
}
@media (max-width: 1040px) {
  .calendar-cols {
    grid-template-columns: 1fr;
  }
  .work {
    grid-template-columns: 174px minmax(0, 1fr);
  }
  .week-bars {
    gap: 6px;
  }
  .feature-grid {
    gap: 10px;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
  }
}
@media (max-width: 760px) {
  .work {
    display: block;
  }
  .login-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 21px;
  }
  .hero {
    min-height: 215px;
    padding: 4px 7px 0;
  }
  .hero-copy {
    padding-top: 23px;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero h1 br {
    display: block;
  }
  .hero h1 em {
    margin-left: 0;
  }
  .hero-copy p {
    font-size: 0.92rem;
  }
  .hero-bottom {
    display: none;
  }
  .login-grid > .hero-img {
    height: 56%;
    object-position: 50% 30%;
  }
  .login-grid > .hero-shade {
    background: linear-gradient(
      0deg,
      #101d21 42%,
      #0b1c1fb3 73%,
      #1223245c 100%
    );
  }
  .login-panel {
    padding: 21px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .feature {
    min-height: 110px;
    padding: 15px;
    gap: 8px;
  }
  .feature-more {
    display: none;
  }
  .side nav .desktop-nav {
    display: none;
  }
  .side nav .mobile-more {
    display: flex;
  }
  .side {
    background: color-mix(in srgb, var(--panel) 84%, transparent);
  }
  .side nav button {
    min-height: 48px;
  }
  .dash-welcome {
    padding: 21px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .dash-welcome .manual-action {
    min-height: 42px;
  }
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-agenda {
    gap: 11px;
  }
  .day {
    min-height: 44px;
  }
  .time-fields label,
  .booking-form .dual label {
    padding: 7px;
  }
  .time-fields input,
  .booking-form .dual input,
  .booking-form input,
  .calendar-tools select {
    font-size: 1rem;
  }
  .calendar-cols {
    grid-template-columns: 1fr;
  }
  .calendar-tools select {
    max-width: 100%;
  }
  .footer {
    margin-top: auto;
  }
  .preview-banner {
    flex-wrap: wrap;
  }
  .work + .footer {
    padding-bottom: 10px;
  }
  .round,
  .icon-btn {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 530px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .timer-number {
    font-size: 3.45rem;
  }
  .calendar-tools > .primary {
    margin-left: 0;
  }
  .month-card {
    padding: 12px;
  }
  .day {
    padding: 0;
  }
  .month-grid {
    gap: 0;
  }
  .week-bars > div > span:first-child {
    height: 48px;
  }
  .preview-banner small {
    font-size: 0.75rem;
  }
}
.today-hours {
  display: block;
  margin: -4px 0 12px;
  font-size: 0.84rem;
}

:root {
  --top-height: calc(76px + env(safe-area-inset-top, 0px));
}
html {
  scroll-padding-top: calc(var(--top-height) + 12px);
}
.site {
  padding-top: var(--top-height);
}
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--top-height);
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 3px 18px var(--deep);
}
@media (min-width: 761px) {
  .side {
    top: calc(var(--top-height) + 14px);
    max-height: calc(100svh - var(--top-height) - 30px);
    overflow-y: auto;
  }
}
.portal-clock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--glass-edge);
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--frost);
  min-height: 38px;
}
.portal-clock > svg {
  color: var(--muted);
}
.portal-clock time {
  font:
    600 1rem/1.2 ui-monospace,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}
.sync-state {
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid var(--border);
  padding-left: 8px;
  font-size: 0.74rem;
  color: var(--muted);
}
.sync-state i,
.push-on:before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent-text);
}
.sync-state.retry i {
  background: #d9a75d;
}
.header-logout:hover {
  color: var(--accent-text);
}
.modal:has(.booking-form) {
  width: min(580px, calc(100% - 24px));
}
.stamp-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.stamp-tile {
  min-inline-size: 0;
  margin: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--shine), transparent 65%), var(--field);
  padding: 10px 13px 14px;
}
.stamp-tile legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  font-size: 0.92rem;
  font-weight: 650;
}
.stamp-tile legend svg {
  color: var(--accent-text);
}
.stamp-inputs {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.stamp-inputs label {
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 0.83rem;
}
.stamp-inputs input:not([type="checkbox"]),
.stamp-balance input:not([type="checkbox"]) {
  display: block;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
  width: 100%;
  height: 46px;
  padding: 0 10px;
  font-size: 1rem;
  line-height: normal;
  font-variant-numeric: tabular-nums;
  background: var(--panel2);
}
.stamp-inputs input::-webkit-date-and-time-value {
  text-align: left;
}
.stamp-balance {
  display: grid;
  grid-template-columns: minmax(100px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 16px;
}
.stamp-balance > div {
  display: grid;
  gap: 5px;
  text-align: right;
}
.stamp-balance small {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.stamp-balance strong {
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.booking-form > p {
  margin: 0;
}
.push-setting,
.push-setting > div,
.push-invite,
.push-on {
  display: flex;
  align-items: center;
  gap: 10px;
}
.push-setting {
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.push-setting svg,
.push-invite > svg {
  color: var(--accent-text);
}
.push-setting b {
  font-weight: 500;
}
.push-setting small {
  max-width: 29ch;
}
.push-on {
  font-size: 0.84rem;
  color: var(--accent-text);
  gap: 6px;
}
.push-invite {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--frost);
  font-size: 0.9rem;
}
.push-invite button {
  margin-left: auto;
}
.time-log details {
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.time-log summary {
  cursor: pointer;
}
.time-log summary small {
  display: block;
}
.time-log .audit-reason {
  padding: 9px 11px;
  background: var(--icon-bg);
  border-radius: 8px;
  color: var(--text);
  white-space: pre-wrap;
}
.time-log details div p {
  font-size: 0.9rem;
  margin: 3px 0 10px;
  overflow-wrap: anywhere;
}
.amend-actions {
  margin: 14px 0;
}
@media (max-width: 760px) {
  :root {
    --top-height: calc(65px + env(safe-area-inset-top, 0px));
  }
  .header-actions {
    gap: 5px;
  }
  .portal-clock {
    padding: 6px 8px;
    gap: 6px;
  }
  .portal-clock > svg {
    display: none;
  }
  .sync-state {
    font-size: 0;
    gap: 0;
  }
  .brand-name,
  .brand-rule {
    display: none;
  }
  .brand img {
    width: clamp(80px, 24vw, 125px);
  }
  .header-actions .round {
    width: 39px;
    height: 41px;
  }
  .work {
    padding-top: 16px;
  }
}
@media (max-width: 520px) {
  .stamp-tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .stamp-inputs {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
    gap: 9px;
  }
  .stamp-tile {
    padding: 8px 10px 12px;
  }
  .push-invite {
    flex-wrap: wrap;
  }
  .calendar-tools {
    min-width: 0;
  }
}
@media (max-width: 374px) {
  .top-inner {
    width: calc(100% - 16px);
  }
  .brand img {
    width: 74px;
  }
  .header-actions {
    gap: 3px;
  }
  .portal-clock time {
    font-size: 0.85rem;
  }
  .portal-clock {
    padding: 5px;
  }
  .header-actions .round {
    width: 36px;
  }
  .stamp-inputs {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .stamp-inputs input:not([type="checkbox"]) {
    padding: 0 4px;
  }
}
.osm-wrap {
  isolation: isolate;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.osm-map {
  height: clamp(210px, 32vh, 340px);
  background: var(--field);
}
.map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  min-height: 110px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
}
.geo-info,
.geo-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}
.geo-caption {
  font-size: 0.8rem;
  color: var(--muted);
}
.holiday-strip,
.drive-row,
.pending-project,
.news-remove {
  display: flex;
  align-items: center;
  gap: 12px;
}
.holiday-strip {
  flex-wrap: wrap;
}
.holiday-strip > span,
.drive-row > span {
  color: var(--muted);
  margin-left: auto;
}
.drive-row {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.pending-project {
  justify-content: space-between;
  flex-wrap: wrap;
}
.drive-date {
  max-width: 170px;
}
.news-remove {
  margin: 8px 0;
}
.osm-map .leaflet-control-attribution a {
  color: #145486;
}
.osm-map .leaflet-control-zoom a {
  color: #222;
}
.surface > p + form {
  margin-top: 16px;
}
.surface > p + .primary {
  margin-top: 16px;
}
.holiday-list {
  flex-basis: 100%;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.holiday-list summary {
  cursor: pointer;
  color: var(--accent-text);
  font-size: 0.85rem;
  padding: 6px 0;
}
.holiday-list > div {
  display: flex;
  gap: 18px;
  padding: 6px 0;
  font-size: 0.88rem;
}
.holiday-list time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.offline-link{color:var(--accent-text);font-size:.875rem;white-space:nowrap}

.offline-frame{position:fixed;inset:0;width:100%;height:100%;height:100dvh;border:0;background:#141714}
.offline-link{display:inline-flex;align-items:center;gap:4px;background:transparent;border:0;cursor:pointer;min-height:44px}
.offline-link i{width:7px;height:7px;border-radius:50%;background:#a9a9a9}
.offline-link i.ready{background:#75b445}
@media(max-width:650px){.offline-link span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.offline-link{padding:4px;min-width:32px}.top-inner{padding-inline:max(0px,env(safe-area-inset-left)) max(0px,env(safe-area-inset-right))}}
@media(max-width:360px){.header-actions{gap:2px}.header-actions .round{width:32px}.brand img{width:64px}}
