:root {
  color-scheme: light;
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif;
  font-synthesis: none;
  color: #1b2d28;
  background: #f3f7f4;
  --page: #f3f7f4;
  --white: #fff;
  --line: #e3ebe5;
  --line-strong: #d5e1d8;
  --ink: #1b2d28;
  --muted: #54675e;
  --muted-dark: #40564c;
  --green: #126349;
  --green-hover: #0e503d;
  --mint: #e6f4ec;
  --panel-shadow: 0 1px 2px #1b3c2410;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; font-size: 1rem; line-height: 1.55; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; text-decoration: none; }
bdi, .mono { unicode-bidi: isolate; }
::selection { background: #cbeedb; color: #183e32; }
:focus-visible { outline: 2px solid #1b8a6a; outline-offset: 3px; }

.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; inset: 8px 8px auto auto; z-index: 9; padding: 10px 16px; border-radius: 8px; color: white; background: var(--green); }

.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100dvh;
  display: flex; flex-direction: column; padding: 26px 16px 16px;
  background: var(--white); border-inline-end: 1px solid var(--line);
}
.identity { display: flex; align-items: center; gap: 11px; padding-inline: 9px; margin-block-end: 40px; }
.identity img { display: block; }
.identity strong { display: block; font-size: 1.48rem; line-height: 1.05; color: #154b39; }
.identity span { color: var(--muted); font-size: .86rem; }
.navigation { display: flex; flex-direction: column; gap: 5px; }
.navigation a {
  display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 10px 12px;
  border-radius: 9px; color: var(--muted-dark); font-weight: 500; font-size: .95rem;
}
.navigation a:hover { background: #f4f8f5; color: var(--green); }
.navigation a[aria-current="page"] { background: var(--mint); color: var(--green); font-weight: 600; }
.navigation .icon { width: 18px; height: 18px; }
.sidebar-bottom { margin-top: auto; }
.install-card {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px;
  text-align: start; background: #f3f8f4; color: var(--ink); border: 1px solid var(--line); border-radius: 11px;
}
.install-card:hover { border-color: #b8d8c8; background: #eaf5ee; }
.install-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--white); color: var(--green); flex: none;
}
.install-icon .icon { width: 18px; height: 18px; }
.install-card strong, .install-card small { display: block; line-height: 1.4; }
.install-card strong { font-size: .85rem; font-weight: 600; }
.install-card small { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.local-label { display: flex; align-items: center; gap: 7px; padding: 14px 5px 0; font-size: .8rem; color: var(--muted); }
.local-label .icon { width: 15px; height: 15px; color: var(--green); }

.workspace { min-width: 0; }
.topbar {
  height: 68px; padding-inline: clamp(20px, 2.4vw, 38px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-block-end: 1px solid var(--line); background: var(--white);
}
.topbar-brand, .topbar-tools, .today-label { display: flex; align-items: center; }
.topbar-brand { gap: 11px; font-size: .97rem; color: var(--muted); }
.topbar-brand strong { font-weight: 600; color: var(--ink); }
.mobile-logo { display: none; }
.topbar-divider { color: #84958b; }
.topbar-tools { gap: 15px; }
.today-label { gap: 7px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.today-label .icon { width: 17px; height: 17px; color: #658076; }
.bell-button, .icon-button {
  display: grid; place-items: center; position: relative; color: var(--muted-dark);
  width: 40px; height: 40px; padding: 0; background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px;
}
.bell-button:hover, .icon-button:hover { color: var(--green); background: #f0f7f3; }
.bell-count {
  position: absolute; inset: -5px auto auto -5px; min-width: 19px; height: 19px; padding-inline: 3px;
  border: 2px solid white; border-radius: 12px; line-height: 15px; font-size: .75rem;
  background: #b23e32; color: white; font-weight: 600;
}
.main { padding: 26px clamp(20px, 2.4vw, 38px) 38px; max-width: 1440px; margin-inline: auto; }
.main:focus { outline: 0; }
.button {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; white-space: nowrap;
  font-size: .95rem; font-weight: 600; line-height: 1.35;
}
.button .icon { width: 17px; height: 17px; stroke-width: 1.9; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-hover); }
.secondary { border-color: var(--line-strong); background: white; color: var(--green); }
.secondary:hover { background: #f0f8f3; border-color: #bfd6c8; }
.danger { background: #a63830; color: white; }
.danger:hover { background: #872a25; }
.danger-secondary { border-color: #f1d6d2; background: white; color: #a0372e; }
.danger-secondary:hover { background: #fff0ed; border-color: #e7bcb7; }
.text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 5px 6px; border: 0; border-radius: 6px;
  color: var(--green); background: transparent; font-weight: 600; text-align: start;
}
.text-button:hover { background: #ebf5ee; }
.text-button .icon { width: 17px; height: 17px; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--panel-shadow); }
h2 { font-size: 1.26rem; line-height: 1.36; font-weight: 700; }
.page-head p { margin-top: 4px; font-size: .91rem; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 20px 15px; }
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted);
  width: min(100%, 244px); min-height: 40px; background: white; border: 1px solid var(--line-strong); border-radius: 8px;
}
.search:focus-within { outline: 2px solid #298f72; outline-offset: 1px; }
.search .icon { width: 17px; height: 17px; }
.search input { min-width: 0; width: 100%; padding: 8px 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: .9rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.directory-toolbar { justify-content: flex-start; padding-block: 16px; }
.directory-select select {
  min-height: 40px; max-width: 100%; padding: 6px 30px 6px 10px; padding-inline: 9px 32px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: white; color: var(--ink); font-size: .9rem;
}
.row-buttons { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 5px; }
.directory-status { color: var(--muted); font-size: .91rem; }
.activity-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 16px; }
.activity-filter-buttons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.activity-filters .form-error { grid-column: 1 / -1; margin: 0; }
.activity-table td { overflow-wrap: anywhere; }
.activity-time { display: grid; gap: 2px; }
.activity-time span:last-child, .activity-cut-date { color: var(--muted); font-size: .87rem; }
.activity-cut-date { display: block; }
.activity-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 13px; border-top: 1px solid var(--line); }
.removed-marker { color: #8b3c35; font-size: .8rem; }
.confirm-target { overflow-wrap: anywhere; }
.data-table { width: 100%; border-collapse: collapse; text-align: start; }
.data-table th {
  padding: 9px 12px; text-align: start; white-space: nowrap;
  background: #f3f7f4; border-block: 1px solid #edf2ee;
  color: var(--muted-dark); font-size: .86rem; font-weight: 600;
}
.data-table th:first-child, .data-table td:first-child { padding-inline-start: 20px; }
.data-table th:last-child, .data-table td:last-child { padding-inline-end: 20px; }
.followup-table th:first-child { border-start-start-radius: 14px; }
.followup-table th:last-child { border-start-end-radius: 14px; }
.data-table td { border-block-end: 1px solid #edf2ee; padding: 12px; vertical-align: middle; }
.data-table tr:last-child td { border-block-end: 0; }
.data-table tbody tr:hover { background: #fcfefc; }
.data-table tbody tr:last-child td:first-child { border-end-start-radius: 15px; }
.data-table tbody tr:last-child td:last-child { border-end-end-radius: 15px; }
.data-table .row-actions { text-align: end; white-space: nowrap; }
.row-actions .button { min-height: 36px; padding: 6px 10px; font-size: .85rem; }
.row-actions .icon { width: 15px; height: 15px; }
.feeder-cell { display: flex; align-items: center; gap: 9px; }
.feeder-icon {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  color: #4a7462; background: #edf5ef; border-radius: 8px;
}
.feeder-icon .icon { width: 18px; height: 18px; }
.feeder-label { min-width: 0; }
.feeder-name {
  display: block; max-width: 100%; padding: 0; color: var(--ink); background: none; border: 0;
  font-size: .98rem; line-height: 1.28; font-weight: 700; text-align: start; overflow-wrap: anywhere;
}
button.feeder-name:hover { color: var(--green); text-decoration: underline; }
.feeder-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 3px;
  color: var(--muted); font-size: .79rem; line-height: 1.35; overflow-wrap: anywhere;
}
.feeder-meta .icon { width: 13px; height: 13px; }
.cell-stack { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.cell-stack time { line-height: 1.3; font-size: .91rem; white-space: nowrap; }
.cell-due time { font-weight: 600; }
.permit, .status {
  display: inline-flex; flex: none; align-items: center; gap: 5px; border-radius: 5px;
  font-size: .79rem; font-weight: 600; line-height: 1.43; white-space: nowrap;
}
.permit { padding: 1px 6px; letter-spacing: .045em; background: #e7f4eb; color: #14674b; }
.permit.ptw { background: #f1edf7; color: #655080; }
.permit.past.loa { background: #edf1f3; color: #425e69; }
.status { padding: 3px 7px; border-radius: 20px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.overdue, .countdown.overdue { color: #a0372e; background: #fcede9; }
.status.soon, .countdown.soon, .completion.partial { color: #80540d; background: #fff2d9; }
.status.scheduled, .countdown.scheduled, .completion { color: #126449; background: #e6f4eb; }
.countdown {
  display: inline-grid; gap: 2px; max-width: 100%; padding: 5px 8px; border-radius: 8px;
  font-size: .86rem; font-weight: 600; line-height: 1.35;
}
.countdown-readout { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.countdown-value {
  font-variant-numeric: tabular-nums; white-space: nowrap;
  font-size: 1.05rem; font-weight: 700;
}
.completion {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  font-size: .86rem; font-weight: 600; white-space: nowrap;
}
.completion-unknown { font-size: .84rem; color: var(--muted); }
.cell-mobile-label { display: none; }
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 23px 16px 25px; }
.empty-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 4px; border-radius: 14px; color: var(--green); background: var(--mint); }
.empty-icon .icon { width: 24px; height: 24px; }
.empty h3 { font-size: 1.13rem; line-height: 1.35; }
.empty p { color: var(--muted); font-size: .93rem; }
.empty .text-button { font-size: .88rem; }

.page-head { min-height: 85px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 2px 20px; }
.page-head h1 { font-weight: 700; font-size: clamp(1.58rem, 3vw, 2.07rem); line-height: 1.2; }
.history-tools { padding-block: 16px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.history-note { max-width: 310px; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.settings-panel { padding: 20px; }
.settings-panel h2 { margin-block: 10px 7px; }
.settings-panel p { color: var(--muted); font-size: .95rem; margin-bottom: 13px; }
.settings-panel .push-status { margin: 10px 0 0; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#settings-form { display: grid; justify-items: start; gap: 13px; }
#settings-form input { width: 100%; max-width: 130px; }

.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 13px; margin-block-end: 12px; border: 1px solid #efdcb5; border-radius: 9px;
  background: #fff8e8; color: #684b15; font-size: .95rem;
}
.notice span { display: flex; align-items: center; gap: 7px; }
.notice .icon { width: 17px; height: 17px; }
.notice-error { background: #fff1ee; border-color: #f3c9c2; color: #902f29; }
dialog {
  border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); padding: 0;
  width: min(540px, calc(100% - 24px)); max-height: min(92dvh, 790px);
  box-shadow: 0 24px 75px #1e352547;
}
dialog::backdrop { background: #122b24a1; }
.dialog-header {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 19px; background: white; border-bottom: 1px solid var(--line);
}
.dialog-header h2 { font-size: 1.22rem; }
.dialog-header .icon-button { flex: none; width: 38px; height: 38px; }
.dialog-body { padding: 17px 19px 19px; }
.dialog-body > p { color: var(--muted); margin-bottom: 13px; }
.record-form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; min-width: 0; font-size: .92rem; font-weight: 600; }
.field-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field small, .field-meta, .helper-text { color: var(--muted); font-size: .84rem; font-weight: 400; }
.field-meta { margin-inline-start: 4px; }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; min-height: 42px; display: block; padding: 8px 10px;
  color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 1rem; font-weight: 400; line-height: 1.35;
}
.field input[type="date"] { text-align: start; }
.field textarea { resize: vertical; min-height: 66px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-inline-end: 33px; }
.select-wrap .icon { position: absolute; inset-inline-end: 9px; inset-block-start: 12px; width: 17px; height: 17px; pointer-events: none; }
.metadata-fields { display: grid; gap: 9px; }
.record-form fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.record-form legend { padding: 0; margin-bottom: 5px; font-size: .92rem; font-weight: 600; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: white; cursor: pointer;
}
.option:has(input:checked) { border-color: #77af94; background: #f0f8f3; }
.option input { accent-color: var(--green); margin: 0; flex: none; width: 15px; height: 15px; }
.option span { display: block; color: var(--muted); font-size: .81rem; line-height: 1.4; }
.option bdi { display: block; color: var(--ink); font-weight: 700; font-size: .88rem; }
.schedule-preview, .detail-summary {
  display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 10px;
  background: #edf7f1; color: #1e604b; border: 1px solid #dbeee3; border-radius: 8px;
}
.schedule-preview .icon, .detail-summary .icon { width: 19px; height: 19px; }
.schedule-preview strong, .detail-summary strong { font-weight: 700; }
.form-error { color: #9b332c; font-size: .9rem; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; padding-top: 3px; }
.dialog-actions-start { justify-content: flex-start; margin-top: 10px; }
.detail-title { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.detail-title .feeder-name { font-size: 1.18rem; }
.detail-summary { justify-content: space-between; flex-wrap: wrap; }
.detail-summary > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.detail-summary .status { border: 1px solid #fff; }
.detail-history { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 12px; }
.detail-history h3 { font-size: 1rem; margin-bottom: 6px; }
.detail-history ul, .reminder-list { list-style: none; padding: 0; margin: 0; }
.detail-history li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--line); padding: 8px 0;
}
.detail-history li:last-child { border: 0; }
.detail-history p { color: var(--muted); font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-history .text-button { flex: none; font-size: .87rem; min-height: 32px; }
.detail-history time { margin-inline-end: 6px; font-size: .94rem; font-weight: 600; }
.detail-history .completion, .detail-history .completion-unknown { margin-inline-start: 6px; }
.reminder-list li + li { margin-top: 7px; }
.reminder-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 11px; text-align: start; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink);
}
.reminder-row:hover { border-color: #b3d2c0; background: #f3faf5; }
.reminder-row strong { display: block; overflow-wrap: anywhere; }
.reminder-row small { display: block; color: var(--muted); font-size: .86rem; }
.install-lines { display: grid; gap: 10px; margin: 0; }
.install-lines div { padding: 8px 11px; background: #f2f7f3; border-radius: 8px; }
.install-lines dt { font-weight: 700; }
.install-lines dd { margin: 1px 0 0; color: var(--muted-dark); }
.toast {
  visibility: hidden; opacity: 0; position: fixed; z-index: 10; inset-inline-end: 20px; inset-block-end: 22px;
  max-width: min(420px, calc(100% - 40px)); padding: 11px 15px; color: white; background: #1b4f3d;
  border-radius: 9px; box-shadow: 0 4px 16px #1a382c30; transition: opacity .16s, visibility .16s;
}
.toast.visible { visibility: visible; opacity: 1; }
.toast.error { background: #87382f; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 187px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .data-table td, .data-table th { padding-inline: 8px; }
}

@media (max-width: 870px) {
  .shell { display: block; }
  .sidebar {
    position: fixed; inset: auto 0 0; height: auto; z-index: 4; padding: 4px 10px max(4px, env(safe-area-inset-bottom));
    border: 0; border-top: 1px solid var(--line-strong); box-shadow: 0 -2px 12px #1b3c2408;
  }
  .sidebar > .identity, .sidebar-bottom { display: none; }
  .navigation { flex-direction: row; max-width: 500px; margin: 0 auto; width: 100%; justify-content: space-around; gap: 4px; }
  .navigation a { flex: 1; min-width: 0; justify-content: center; flex-direction: column; gap: 2px; padding: 5px 4px; min-height: 51px; font-size: .81rem; line-height: 1.3; text-align: center; }
  .navigation .icon { width: 19px; height: 19px; }
  .mobile-logo { display: block; }
  .topbar { height: 61px; }
  .main { padding-block: 18px calc(82px + env(safe-area-inset-bottom)); }
  .toast { inset-block-end: calc(71px + env(safe-area-inset-bottom)); }
}

@media (max-width: 655px) {
  .topbar { padding-inline: 13px; }
  .main { padding-inline: 12px; }
  .topbar-brand { gap: 7px; font-size: .87rem; }
  .topbar-tools { gap: 8px; }
  .today-label { font-size: .8rem; gap: 4px; }
  .today-label .icon { width: 15px; height: 15px; }
  .toolbar { padding: 10px 13px 12px; align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .directory-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .directory-toolbar .search { grid-column: 1 / -1; }
  .directory-select select { width: 100%; }
  .data-table, .data-table tbody { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .data-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px 9px; padding: 11px 13px; border-top: 1px solid var(--line); }
  .data-table td, .data-table td:first-child, .data-table td:last-child { display: block; padding: 0; border: 0; border-radius: 0; }
  .data-table .row-actions { grid-column: 1 / -1; padding-block-start: 3px; }
  .directory-table .directory-status, .directory-table .cell-due { justify-self: end; text-align: end; }
  .followup-table td:first-child { grid-area: 1 / 1; }
  .followup-table .cell-countdown { grid-area: 1 / 2; justify-self: end; align-self: start; }
  .followup-table .cell-last { grid-column: 1; }
  .followup-table .cell-due { grid-column: 2; }
  .cell-last, .cell-due { margin-inline-start: 0; }
  .cell-last .cell-stack, .cell-due .cell-stack { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 3px 5px; }
  .cell-mobile-label { display: block; color: var(--muted); font-size: .83rem; font-weight: 500; margin-bottom: 2px; }
  .feeder-cell { gap: 6px; }
  .feeder-icon { width: 29px; height: 29px; }
  .feeder-icon .icon { width: 16px; height: 16px; }
  .feeder-meta { font-size: .75rem; }
  .row-actions .button { min-height: 40px; }
  .settings-grid { grid-template-columns: 1fr; gap: 10px; }
  .settings-panel { padding: 16px; }
  .history-table .history-note { grid-column: 1 / -1; }
  .page-head { min-height: 75px; gap: 8px; padding-bottom: 13px; }
  .page-head p { font-size: .87rem; }
  .page-head .button { padding-inline: 9px; font-size: .86rem; }
  .followup-head { flex-direction: column; align-items: stretch; }
  .history-tools { padding-block: 13px; }
  .history-tools .search { width: 100%; }
  .dialog-header, .dialog-body { padding-inline: 13px; }
}

@media (max-width: 365px) {
  .topbar-divider, .department-label, .today-label .icon { display: none; }
  .button { padding-inline: 9px; font-size: .89rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.login-body { min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.login-panel { width: min(100%, 435px); padding: clamp(20px, 6vw, 36px); }
.login-logo { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 1.35rem; margin-bottom: 18px; }
.login-panel h1 { font-size: 1.65rem; line-height: 1.3; margin-bottom: 5px; }
.login-panel p { color: var(--muted); margin-block-end: 16px; }
.login-panel p.form-error { margin: 0; color: #9b332c; }
.login-panel .owner-login { margin-block-start: 14px; font-size: .88rem; }

@media (max-width: 405px) {
  .topbar:has([data-action="sign-out"]:not([hidden])) .today-label { display: none; }
}
