:root,
html[data-hkm-theme="zee"] {
  --hkm-ink: #14212b;
  --hkm-muted: #5c6b78;
  --hkm-line: #d7e0e8;
  --hkm-bg: #eef3f7;
  --hkm-card: #ffffff;
  --hkm-accent: #1a4d6d;
  --hkm-accent-2: #2a7a6a;
  --hkm-warn: #c47a12;
  --hkm-danger: #b42318;
  --hkm-ok: #1f7a4d;
  --hkm-header-from: #163a52;
  --hkm-header-to: #1f5a4e;
  --hkm-radius: 14px;
  --hkm-tabbar: 68px;
  --hkm-safe-bottom: env(safe-area-inset-bottom, 0px);
  --hkm-font: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --hkm-theme-meta: #1a4d6d;
}

/* Alleen template-chrome; taakkleuren blijven uit PMS */
html[data-hkm-theme="kust"] {
  --hkm-ink: #122033;
  --hkm-muted: #5a6d82;
  --hkm-line: #d3dde8;
  --hkm-bg: #eef2f8;
  --hkm-card: #ffffff;
  --hkm-accent: #1e4f8c;
  --hkm-accent-2: #2f6f9e;
  --hkm-header-from: #163a66;
  --hkm-header-to: #1f5f8f;
  --hkm-theme-meta: #1e4f8c;
}

html[data-hkm-theme="tuin"] {
  --hkm-ink: #15241c;
  --hkm-muted: #5a6e63;
  --hkm-line: #d5e2da;
  --hkm-bg: #eef5f0;
  --hkm-card: #ffffff;
  --hkm-accent: #1f5c45;
  --hkm-accent-2: #3a8f6a;
  --hkm-header-from: #184a38;
  --hkm-header-to: #2a6e52;
  --hkm-theme-meta: #1f5c45;
}

html[data-hkm-theme="steen"] {
  --hkm-ink: #1c2228;
  --hkm-muted: #66707a;
  --hkm-line: #d8dde2;
  --hkm-bg: #f0f2f4;
  --hkm-card: #ffffff;
  --hkm-accent: #3d4a57;
  --hkm-accent-2: #5a6b7a;
  --hkm-header-from: #2f3944;
  --hkm-header-to: #4a5866;
  --hkm-theme-meta: #3d4a57;
}

html[data-hkm-theme="warm"] {
  --hkm-ink: #2a2118;
  --hkm-muted: #726555;
  --hkm-line: #e4dcd2;
  --hkm-bg: #f4f0ea;
  --hkm-card: #ffffff;
  --hkm-accent: #6b4f35;
  --hkm-accent-2: #8a6a45;
  --hkm-header-from: #4f3a28;
  --hkm-header-to: #6e5338;
  --hkm-theme-meta: #6b4f35;
}

html[data-hkm-theme="avond"] {
  --hkm-ink: #e8eef4;
  --hkm-muted: #9aa8b5;
  --hkm-line: #3a4654;
  --hkm-bg: #151b22;
  --hkm-card: #1e2732;
  --hkm-accent: #6eb0d6;
  --hkm-accent-2: #5ec4a8;
  --hkm-warn: #e0a24a;
  --hkm-danger: #e0726a;
  --hkm-ok: #5ec48a;
  --hkm-header-from: #0f141a;
  --hkm-header-to: #1a2836;
  --hkm-theme-meta: #151b22;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.hkm-body {
  min-height: 100dvh;
  font-family: var(--hkm-font);
  color: var(--hkm-ink);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(42, 122, 106, 0.12), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(26, 77, 109, 0.14), transparent 50%),
    var(--hkm-bg);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--hkm-tabbar) + var(--hkm-safe-bottom) + 8px);
}

.hkm-body--login {
  padding-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Login */
.hkm-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(160deg, rgba(22, 58, 82, 0.92), rgba(31, 90, 78, 0.88)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hkm-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--hkm-card);
  border-radius: 20px;
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: 0 18px 40px rgba(8, 24, 36, 0.28);
}

.hkm-login-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hkm-accent-2);
  font-weight: 700;
}

.hkm-login-brand h1 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--hkm-accent);
}

.hkm-login-sub,
.hkm-login-hint {
  margin: 0;
  color: var(--hkm-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.hkm-login-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
}

.hkm-alert {
  margin: 1rem 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #fdecec;
  color: #7a1f1f;
  border: 1px solid #f3c1c1;
  font-size: 0.9rem;
}

.hkm-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.hkm-field {
  display: grid;
  gap: 0.35rem;
}

.hkm-field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hkm-muted);
}

.hkm-field input,
.hkm-date {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hkm-line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--hkm-ink);
}

.hkm-field input:focus,
.hkm-date:focus {
  outline: 2px solid rgba(26, 77, 109, 0.35);
  border-color: var(--hkm-accent);
}

.hkm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.hkm-btn-primary {
  background: linear-gradient(135deg, var(--hkm-accent), var(--hkm-accent-2));
  color: #fff;
}

.hkm-btn-block {
  width: 100%;
}

/* Header */
.hkm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, var(--hkm-header-from), var(--hkm-header-to));
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 30, 45, 0.18);
  padding-top: env(safe-area-inset-top, 0px);
}

.hkm-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.55rem;
}

.hkm-header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.hkm-theme-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hkm-theme-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hkm-theme-btn-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background:
    conic-gradient(
      from 0deg,
      var(--hkm-header-from) 0 33%,
      var(--hkm-accent) 33% 66%,
      var(--hkm-accent-2) 66% 100%
    );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.hkm-theme-panel {
  position: absolute;
  top: calc(100% - 0.25rem);
  right: 0.75rem;
  z-index: 50;
  width: min(17.5rem, calc(100vw - 1.5rem));
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--hkm-card);
  color: var(--hkm-ink);
  border: 1px solid var(--hkm-line);
  box-shadow: 0 14px 32px rgba(10, 24, 36, 0.22);
}

.hkm-theme-panel[hidden] {
  display: none !important;
}

.hkm-theme-panel-title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hkm-muted);
}

.hkm-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hkm-theme-option {
  width: 100%;
  min-height: 3.35rem;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.35rem;
  cursor: pointer;
  background: var(--hkm-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font: inherit;
  color: inherit;
}

.hkm-theme-option.is-active {
  border-color: var(--hkm-accent);
  box-shadow: 0 0 0 1px var(--hkm-accent);
}

.hkm-theme-option-preview {
  width: 100%;
  height: 1.35rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.hkm-theme-option-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--hkm-muted);
  line-height: 1;
}

.hkm-theme-option.is-active .hkm-theme-option-label {
  color: var(--hkm-accent);
}

.hkm-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.hkm-brand--grow {
  flex: 1;
}

.hkm-logo {
  max-height: 40px;
  max-width: 72px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 2px 4px;
}

.hkm-header-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.hkm-header-user {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
}

.hkm-icon-btn,
.hkm-back {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
}

.hkm-date-wrap {
  margin: 0;
}

.hkm-date {
  min-height: 40px;
  max-width: 10.5rem;
  border: 0;
  color: var(--hkm-ink);
}

.hkm-toolbar-stats {
  display: flex;
  gap: 1rem;
  padding: 0 1rem 0.85rem;
  font-size: 0.88rem;
}

.hkm-toolbar-stats strong {
  color: #9ef0c5;
}

.hkm-filters {
  display: flex;
  gap: 0.4rem;
  padding: 0 1rem 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hkm-filter {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
}

.hkm-filter.is-active {
  background: #fff;
  color: var(--hkm-accent);
}

/* Main */
.hkm-main {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 1rem 0.9rem 1.5rem;
}

.hkm-page-title {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.hkm-page-sub {
  margin: 0.2rem 0 1rem;
  color: var(--hkm-muted);
}

.hkm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.hkm-stat {
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: var(--hkm-radius);
  padding: 0.9rem 0.75rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.hkm-stat strong {
  display: block;
  font-size: 1.45rem;
  color: var(--hkm-warn);
}

.hkm-stat--ok strong {
  color: var(--hkm-ok);
}

.hkm-stat span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--hkm-muted);
}

.hkm-actions {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hkm-action-card {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: var(--hkm-radius);
  background: linear-gradient(135deg, #1a4d6d, #2a7a6a);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(26, 77, 109, 0.22);
}

.hkm-action-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.hkm-action-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.hkm-section {
  margin-bottom: 1.15rem;
}

.hkm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.hkm-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--hkm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hkm-section-head .hkm-section-title {
  margin: 0;
}

.hkm-section-link {
  font-size: 0.82rem;
  color: var(--hkm-accent);
  text-decoration: none;
  font-weight: 600;
}

.hkm-link-more {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--hkm-accent);
  font-weight: 600;
  text-decoration: none;
}

.hkm-empty {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--hkm-card);
  border: 1px dashed var(--hkm-line);
  border-radius: var(--hkm-radius);
  color: var(--hkm-muted);
}

.hkm-empty--sm {
  padding: 1.1rem 0.85rem;
}

/* Rooms */
.hkm-room-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.hkm-room-row,
.hkm-room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: var(--hkm-radius);
  text-decoration: none;
  color: inherit;
}

.hkm-room-card {
  display: block;
}

.hkm-room-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hkm-room-name {
  font-weight: 700;
  font-size: 1rem;
}

.hkm-room-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--hkm-muted);
}

.hkm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.hkm-badge.is-clean {
  background: #d9f5e5;
  color: #146c43;
}

.hkm-badge.is-dirty {
  background: #fde8d8;
  color: #9a4d0d;
}

.hkm-badge.is-inspect {
  background: #e4eefc;
  color: #1d4f91;
}

/* Tasks */
.hkm-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.hkm-task {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  min-height: 56px;
  padding: 0.45rem 0.55rem 0.45rem 0.5rem;
  border: 1px solid var(--task-border, var(--hkm-line));
  border-radius: var(--hkm-radius);
  background: var(--task-bg, var(--hkm-card));
  color: var(--task-fg, inherit);
  font: inherit;
  font-weight: 600;
}

.hkm-task.is-done {
  opacity: 0.9;
  border-color: color-mix(in srgb, var(--hkm-ok, #16a34a) 55%, var(--task-border, var(--hkm-line)));
}

.hkm-task.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.hkm-task-check {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 2px solid rgba(22, 163, 74, 0.45);
  background: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  padding: 0;
  color: #fff;
}

.hkm-task-check:disabled {
  cursor: default;
  opacity: 0.55;
}

.hkm-task.is-done .hkm-task-check {
  background: var(--hkm-ok, #16a34a);
  border-color: var(--hkm-ok, #16a34a);
}

.hkm-task.is-done .hkm-task-check::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  width: 8px;
  height: 14px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.hkm-task-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
  min-height: 44px;
}

.hkm-task-label {
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.35;
  min-width: 0;
}

.hkm-task.is-done .hkm-task-label {
  text-decoration: line-through;
  opacity: 0.85;
}

.hkm-task-persons {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: color-mix(in srgb, var(--task-fg, #374151) 14%, transparent);
  color: var(--task-fg, #374151);
}

/* Reservation detail sheet */
.hkm-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 32, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.hkm-sheet-backdrop[hidden] {
  display: none !important;
}

.hkm-sheet {
  width: min(100%, 32rem);
  max-height: min(82vh, 40rem);
  overflow: auto;
  background: #fff;
  color: var(--hkm-ink);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(10, 24, 36, 0.28);
  padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.hkm-sheet-handle {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #d1d5db;
  margin: 0.15rem auto 0.75rem;
}

.hkm-sheet-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.hkm-sheet-sub {
  margin: 0 0 0.85rem;
  color: var(--hkm-muted);
  font-size: 0.9rem;
}

.hkm-sheet-dl {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.hkm-sheet-row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hkm-muted);
}

.hkm-sheet-row dd {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  line-height: 1.4;
}

.hkm-sheet-list {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.hkm-sheet-empty {
  color: var(--hkm-muted);
  font-size: 0.92rem;
}

.hkm-sheet-close {
  margin-top: 1rem;
  width: 100%;
}

/* Status buttons */
.hkm-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .hkm-status-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hkm-status-btn {
  min-height: 52px;
  border: 2px solid var(--hkm-line);
  border-radius: var(--hkm-radius);
  background: var(--hkm-card);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hkm-status-btn.is-clean.is-selected {
  border-color: var(--hkm-ok);
  background: #d9f5e5;
  color: #146c43;
}

.hkm-status-btn.is-dirty.is-selected {
  border-color: var(--hkm-warn);
  background: #fde8d8;
  color: #9a4d0d;
}

.hkm-status-btn.is-inspect.is-selected {
  border-color: #1d4f91;
  background: #e4eefc;
  color: #1d4f91;
}

.hkm-meta-list {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: var(--hkm-radius);
}

.hkm-meta-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.hkm-meta-list dt {
  margin: 0;
  color: var(--hkm-muted);
  font-size: 0.88rem;
}

.hkm-meta-list dd {
  margin: 0;
  font-weight: 600;
}

/* Bottom tabs */
.hkm-tabbar {
  position: fixed;
  overflow-x: auto;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  min-height: calc(var(--hkm-tabbar) + var(--hkm-safe-bottom));
  padding: 0.35rem 0.4rem calc(0.35rem + var(--hkm-safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--hkm-line);
  backdrop-filter: blur(10px);
}

.hkm-tab {
  display: flex;
  min-width: 4.1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--hkm-muted);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.35rem 0.25rem;
}

.hkm-tab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.hkm-tab.is-active {
  color: var(--hkm-accent);
  background: rgba(26, 77, 109, 0.08);
}

.hkm-action-card--alt {
  background: linear-gradient(135deg, #1f5a4e, #2a7a6a);
}

/* Week calendar */
.hkm-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem 0.65rem;
}

.hkm-week-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.hkm-week-nav-today {
  flex: 1;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hkm-week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.hkm-week-strip-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.2rem 0.45rem;
  border-radius: 12px;
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  text-decoration: none;
  color: inherit;
  min-height: 64px;
  position: relative;
}

.hkm-week-strip-wd {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hkm-muted);
  font-weight: 700;
}

.hkm-week-strip-num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.hkm-week-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hkm-muted);
  margin-top: 0.1rem;
}

.hkm-week-strip-day.has-pending .hkm-week-strip-dot {
  background: var(--hkm-warn);
}

.hkm-week-strip-day.has-done .hkm-week-strip-dot {
  background: var(--hkm-ok);
}

.hkm-week-strip-day.has-broodjes .hkm-week-strip-dot {
  background: #fd7e14;
}

.hkm-week-strip-day.has-waste .hkm-week-strip-dot {
  background: #059669;
}

.hkm-week-strip-day.is-today {
  border-color: var(--hkm-accent);
  box-shadow: 0 0 0 2px rgba(26, 77, 109, 0.18);
}

.hkm-week-strip-day.is-today .hkm-week-strip-num {
  color: var(--hkm-accent);
}

.hkm-week-strip-day.is-past {
  opacity: 0.72;
}

.hkm-week-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.hkm-week-day-card {
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: var(--hkm-radius);
  padding: 0.85rem 0.85rem 0.95rem;
  scroll-margin-top: 7.5rem;
}

.hkm-week-day-card.is-today {
  border-color: rgba(26, 77, 109, 0.45);
  background: linear-gradient(180deg, #f4f9fc, #fff);
}

.hkm-week-day-card.is-past {
  opacity: 0.9;
}

.hkm-week-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hkm-week-day-left {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.hkm-week-day-wd {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(26, 77, 109, 0.1);
  color: var(--hkm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hkm-week-day-card.is-today .hkm-week-day-wd {
  background: var(--hkm-accent);
  color: #fff;
}

.hkm-week-day-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.hkm-week-day-date {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--hkm-muted);
}

.hkm-week-today-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hkm-accent);
  background: rgba(26, 77, 109, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.hkm-week-day-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.hkm-week-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.hkm-week-pill--pending {
  background: #fde8d8;
  color: #9a4d0d;
}

.hkm-week-pill--done {
  background: #d9f5e5;
  color: #146c43;
}

.hkm-week-pill--mute {
  background: #eef2f5;
  color: var(--hkm-muted);
}

.hkm-week-empty-day {
  margin: 0;
  padding: 0.35rem 0.15rem 0.15rem;
  color: var(--hkm-muted);
  font-size: 0.88rem;
}

.hkm-week-room-block {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--hkm-line);
}

.hkm-week-room-block:first-of-type {
  margin-top: 0.15rem;
}

.hkm-week-room-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.hkm-week-room-title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--hkm-ink);
}

.hkm-week-room-head .hkm-week-room-title {
  margin: 0;
}

.hkm-broodjes-block {
  background: rgba(253, 126, 20, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.8rem 0.85rem;
  border: 1px solid rgba(253, 126, 20, 0.22);
  border-top: 1px solid rgba(253, 126, 20, 0.22) !important;
}

.hkm-waste-block {
  background: rgba(5, 150, 105, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.8rem 0.85rem;
  border: 1px solid rgba(5, 150, 105, 0.22);
  border-top: 1px solid rgba(5, 150, 105, 0.22) !important;
}

.hkm-week-service-row {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.hkm-week-service-row.breakfast-only,
.hkm-week-service-row.waste-only {
  grid-template-columns: 1fr;
}

.hkm-week-service-row.has-waste {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .hkm-week-service-row.has-waste {
    grid-template-columns: 1fr;
  }
}

.hkm-week-service-row .hkm-week-room-block {
  margin: 0;
}

.hkm-breakfast-block {
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.8rem 0.85rem;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-top: 1px solid rgba(59, 130, 246, 0.22) !important;
}

.hkm-breakfast-total {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.35rem 0 0.45rem;
  font-size: 0.95rem;
  color: var(--hkm-muted);
}

.hkm-breakfast-total strong {
  font-size: 1.55rem;
  line-height: 1;
  color: var(--hkm-ink);
  font-weight: 800;
}

.hkm-breakfast-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
  font-size: 0.84rem;
  color: var(--hkm-ink);
}

.hkm-breakfast-gf {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(59, 130, 246, 0.35);
}

.hkm-breakfast-gf-title {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hkm-muted);
}

.hkm-waste-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.hkm-waste-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  color: #1f2937;
}

.hkm-waste-chip-name {
  font-size: 0.95rem;
}

.hkm-waste-chip-note {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.85;
}

.hkm-broodjes-meta {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--hkm-muted);
}

.hkm-broodjes-totals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.hkm-broodjes-totals li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.hkm-broodjes-totals--card {
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: var(--hkm-radius);
  padding: 0.85rem 0.95rem;
  gap: 0.55rem;
}

.hkm-broodjes-qty {
  font-weight: 800;
  color: #c45f0c;
  min-width: 2.2rem;
}

.hkm-broodjes-name {
  flex: 1;
  font-weight: 600;
  color: var(--hkm-ink);
}

.hkm-broodjes-note {
  display: block;
  width: 100%;
  margin-top: 0.15rem;
  margin-left: 2.75rem;
  font-size: 0.8rem;
  color: var(--hkm-muted);
  font-style: italic;
}

.hkm-broodjes-orders {
  display: grid;
  gap: 0.65rem;
}

.hkm-broodjes-order {
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: var(--hkm-radius);
  padding: 0.85rem 0.95rem;
}

.hkm-broodjes-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.hkm-broodjes-order-guest {
  margin: 0;
  font-weight: 750;
  font-size: 0.98rem;
}

.hkm-broodjes-order-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--hkm-muted);
}

.hkm-broodjes-order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.hkm-broodjes-order-lines li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.hkm-alert--ok {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.hkm-btn-ghost {
  background: transparent;
  color: var(--hkm-accent);
  border: 1px solid var(--hkm-line);
}

.hkm-form--tight {
  margin-top: 0.5rem;
}

.hkm-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
}

.hkm-choice input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.hkm-choice--remember {
  margin: 0.25rem 0 0.75rem;
}

.hkm-field--choice {
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
}

.hkm-field--choice legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hkm-muted);
  margin-bottom: 0.35rem;
}

.hkm-factor-setup {
  display: grid;
  gap: 0.35rem;
}

.hkm-totp-setup {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  margin: 0.25rem 0 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--hkm-line);
  border-radius: var(--hkm-radius);
  background: color-mix(in srgb, var(--hkm-card) 92%, var(--hkm-bg));
}

.hkm-totp-qr {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem;
}

.hkm-totp-secret {
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  word-break: break-word;
  color: var(--hkm-ink);
}

.hkm-login-hint a {
  color: var(--hkm-accent);
  font-weight: 600;
}

.hkm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.hkm-header-actions form {
  margin: 0;
}

.hkm-muted {
  color: var(--hkm-muted);
  font-size: 0.92rem;
}

.hkm-settings-brand {
  display: grid;
  gap: 1rem;
}

.hkm-settings-brand-card {
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: var(--hkm-radius);
  padding: 0.9rem;
}

.hkm-settings-label {
  margin: 0 0 0.55rem;
  font-weight: 700;
}

.hkm-settings-preview {
  display: block;
  margin: 0 0 0.75rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--hkm-line);
  border-radius: 10px;
}

.hkm-settings-preview--logo {
  max-width: 100%;
  max-height: 72px;
  padding: 0.5rem;
}

.hkm-settings-preview--favicon {
  width: 48px;
  height: 48px;
  padding: 0.35rem;
}

.hkm-task-type-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.hkm-choice--task-type {
  align-items: center;
  padding: 0.65rem 0.7rem;
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: 12px;
}

.hkm-choice--task-type.is-inactive {
  opacity: 0.72;
}

.hkm-task-type-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.hkm-task-type-name {
  flex: 1;
  font-weight: 600;
}

.hkm-task-type-badge {
  font-size: 0.72rem;
  color: var(--hkm-muted);
  font-weight: 500;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hkm-haccp-date input {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  font: inherit;
}

.hkm-haccp-list,
.hkm-haccp-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hkm-haccp-list li,
.hkm-haccp-clean li {
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}

.hkm-haccp-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hkm-haccp-list small,
.hkm-haccp-clean small {
  display: block;
  color: var(--hkm-muted);
  font-weight: 500;
}

.hkm-haccp-clean p {
  margin: 0.25rem 0 0;
  color: var(--hkm-muted);
  font-size: 0.85rem;
}

.hkm-haccp-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hkm-haccp-form textarea,
.hkm-haccp-form select,
.hkm-haccp-form input[type="text"],
.hkm-haccp-form input[type="number"] {
  width: 100%;
}

.hkm-haccp-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.hkm-haccp-sections a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--hkm-ink);
  background: var(--hkm-card);
  border: 2px solid var(--hkm-line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  text-decoration: none;
}

.hkm-haccp-sections a.is-active {
  color: #fff;
  background: var(--hkm-accent);
  border-color: var(--hkm-accent);
}

.hkm-haccp-sections small {
  color: var(--hkm-muted);
  font-size: 0.74rem;
}

.hkm-haccp-sections a.is-active small {
  color: rgba(255, 255, 255, 0.82);
}

.hkm-haccp-period {
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.hkm-haccp-ranges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.hkm-haccp-range {
  text-align: center;
  text-decoration: none;
  color: var(--hkm-ink);
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: 999px;
  padding: 0.4rem 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.hkm-haccp-range.is-active {
  color: #fff;
  background: var(--hkm-accent);
  border-color: var(--hkm-accent);
}

.hkm-haccp-filter {
  margin-bottom: 0.85rem;
}

.hkm-haccp-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hkm-haccp-entry {
  background: var(--hkm-card);
  border: 1px solid var(--hkm-line);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
}

.hkm-haccp-entry.is-deviation {
  border-color: var(--hkm-danger);
}

.hkm-haccp-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.hkm-haccp-entry-head strong,
.hkm-haccp-entry-head small {
  display: block;
}

.hkm-haccp-entry-head small {
  color: var(--hkm-muted);
  font-weight: 500;
}

.hkm-haccp-lines {
  margin: 0.55rem 0 0;
}

.hkm-haccp-lines div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.28rem 0;
  border-top: 1px solid var(--hkm-line);
  font-size: 0.86rem;
}

.hkm-haccp-lines dt {
  margin: 0;
  color: var(--hkm-muted);
}

.hkm-haccp-lines dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.hkm-haccp-action {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
}

.hkm-btn-tiny {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
  text-decoration: none;
}

@media (min-width: 768px) {
  .hkm-main {
    padding-top: 1.25rem;
  }

  .hkm-task,
  .hkm-room-card,
  .hkm-room-row {
    min-height: 60px;
  }

  .hkm-week-strip-day {
    min-height: 72px;
  }

  .hkm-settings-brand {
    grid-template-columns: 1fr 1fr;
  }
}
