:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-strong: #f0eff8;
  --ink: #102326;
  --muted: #58686b;
  --line: #dbe5e4;
  --brand: #2b285f;
  --brand-dark: #211f4a;
  --accent: #d97706;
  --danger: #b42318;
  --ok: #167a3f;
  --shadow: 0 14px 35px rgba(16, 35, 38, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  direction: rtl;
  text-align: right;
  background:
    linear-gradient(180deg, #efedf8 0, rgba(245, 247, 246, 0) 260px),
    var(--bg);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.boot-screen,
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: #fff;
}

.boot-screen {
  gap: 16px;
  align-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.88) 0 120px, rgba(255, 255, 255, 0) 260px),
    linear-gradient(155deg, #f4f1ff 0%, #ebe7fb 48%, #faf9ff 100%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-overlay[hidden] {
  display: none;
}

.loading-card {
  width: min(260px, calc(100vw - 40px));
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.loading-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.boot-logo,
.login-logo,
.topbar-logo {
  display: block;
  object-fit: contain;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.boot-logo {
  width: 84px;
  height: 84px;
  border-color: rgba(43, 40, 95, 0.12);
  box-shadow: 0 18px 45px rgba(43, 40, 95, 0.14);
}

.login-logo {
  margin-bottom: 12px;
}

.topbar-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dbe5e4;
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: spin 720ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(20px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));
}

.login-screen[hidden] {
  display: none;
}

.login-stack {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
}

.agreement-screen,
.password-change-screen,
.mfa-screen,
.privacy-request-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(20px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.82) 0 140px, rgba(255, 255, 255, 0) 320px),
    linear-gradient(155deg, #f4f1ff 0%, #ebe7fb 50%, #faf9ff 100%);
}

.agreement-screen[hidden] {
  display: none;
}

.password-change-screen[hidden] {
  display: none;
}

.mfa-screen[hidden] {
  display: none;
}

.privacy-request-screen[hidden] {
  display: none;
}

.login-card,
.agreement-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compact-card {
  padding: 16px;
}

.agreement-card {
  width: min(620px, 100%);
}

.agreement-exit {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
}

.agreement-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.agreement-name {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.mfa-enrollment {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.mfa-enrollment[hidden] {
  display: none;
}

.mfa-qr {
  width: min(240px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.mfa-secret-row {
  width: 100%;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.mfa-secret-row code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
}

.segmented-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented-field legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.segmented-control label {
  position: relative;
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  min-height: 40px;
  place-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.segmented-control input:checked + span {
  background: var(--accent);
  color: #fff;
}

.segmented-control input:focus-visible + span {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
}

.agreement-name span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.agreement-name strong {
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.agreement-details {
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.55;
}

.agreement-details p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.agreement-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 20px 0 0;
}

.login-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.legal-links a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-action {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 14px calc(32px + env(safe-area-inset-bottom));
}

.legal-page {
  min-height: 100vh;
  padding: calc(22px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.86) 0 150px, rgba(255, 255, 255, 0) 330px),
    linear-gradient(155deg, #f4f1ff 0%, #ebe7fb 50%, #faf9ff 100%);
}

.legal-page-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(760px, 100%);
  margin: 0 auto 12px;
  padding: calc(8px + env(safe-area-inset-top)) 0 8px;
  background: #f4f5f7;
  border-bottom: 1px solid var(--line);
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
}

.legal-doc {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  line-height: 1.7;
}

.legal-doc h1,
.legal-doc h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.legal-doc h2 {
  margin-top: 20px;
  font-size: 1.1rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc .legal-warning {
  padding: 12px;
  border: 1px solid #b55b39;
  border-radius: 6px;
  background: #fff6f1;
  color: #6f2f1d;
}

.legal-doc ul {
  margin: 0;
  padding: 0 22px 0 0;
}

.legal-doc .login-logo {
  margin-bottom: 10px;
}

.legal-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.app-shell[hidden] {
  display: none;
}

.topbar,
.section-head,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.topbar {
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.topbar-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.brand-lockup > div {
  min-width: 0;
}

.topbar h1 {
  font-size: 1.65rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

#sessionLabel {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.section-head > div,
.workspace-grid > *,
.content-columns > *,
.panel,
.stack,
.form-grid,
label {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.tabbar {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.tab-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}

.tab-button {
  padding: 0 12px;
}

.tab-button.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(43, 40, 95, 0.22);
}

.role-view,
.assistant-panel {
  display: none;
}

.role-view.is-active,
.assistant-panel.is-active {
  display: block;
}

.admin-panel:not(.is-active) {
  display: none;
}

.admin-month-context {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
}

.section-head {
  align-items: flex-end;
  margin-bottom: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.compact-metrics .metric {
  min-height: 74px;
}

.compact-metrics .metric strong {
  font-size: 1.25rem;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: normal;
  overflow-wrap: anywhere;
}

.metric {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.65rem;
  line-height: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.workspace-grid,
.content-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.panel {
  container-type: inline-size;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.panel-head {
  flex-wrap: wrap;
  align-items: start;
  min-height: 38px;
  margin-bottom: 12px;
}

.panel-head > label {
  flex: 0 1 16rem;
  min-width: min(100%, 12rem);
}

.count-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
  padding-block: 4px;
}

.count-pill {
  width: max-content;
}

.status-pill.open {
  background: #fff4de;
  color: #995b00;
}

.status-pill.covered,
.status-pill.good {
  background: #e6f6ec;
  color: var(--ok);
}

.status-pill.closed,
.status-pill.neutral {
  background: #edf0f2;
  color: #536066;
}

.status-pill.mine {
  background: #e7f0ff;
  color: #1d4e89;
}

.status-pill.danger {
  background: #fee2e2;
  color: #991b1b;
}

.stack,
.form-grid {
  display: grid;
  gap: 10px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-actions button {
  flex: 1 1 140px;
}

.form-grid {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.field-hint {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.45;
}

.fixed-setting {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 800;
}

.field-help {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.45;
}

.checkbox-line {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.45;
}

.checkbox-line input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--brand);
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #788789;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  outline: 0;
  direction: rtl;
  text-align: right;
}

/* Safari date controls otherwise retain a minimum intrinsic width inside grids. */
input[type="date"],
input[type="month"] {
  -webkit-appearance: none;
  appearance: none;
  min-inline-size: 0;
  inline-size: 100%;
  max-inline-size: 100%;
}

input::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: right;
}

select {
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 34px;
  background-image: url("assets/icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: left 10px center;
}

textarea {
  resize: vertical;
  min-height: 108px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 40, 95, 0.16);
}

.month-picker,
.user-picker,
.inline-picker {
  min-width: 150px;
}

.panel-controls,
.filter-bar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-bar {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.filter-bar label {
  flex: 1 1 12rem;
}

.locked-user {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 850;
}

.month-picker.compact {
  min-width: 136px;
}

.inline-picker {
  grid-template-columns: auto minmax(130px, 1fr);
  align-items: center;
}

.inline-picker select {
  min-height: 38px;
}

.primary-action,
.ghost-action,
.danger-action,
.icon-action {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 850;
}

.primary-action {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.primary-action:hover {
  background: var(--brand-dark);
}

.ghost-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
}

.ghost-action.is-active {
  border-color: var(--brand);
  background: var(--surface-strong);
  color: var(--brand);
}

.show-more-action {
  width: 100%;
  margin-top: 12px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  text-decoration: none;
}

.danger-action {
  border: 1px solid #f3b7b2;
  background: #fff7f6;
  color: var(--danger);
}

.icon-action {
  width: 44px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.list {
  display: grid;
  gap: 8px;
}

.list-item {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notification-item.is-unread {
  border-color: #f0c56d;
  background: #fffaf0;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.focused-history-window,
.report-history-window {
  grid-column: 1 / -1;
}

.history-window {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding-block-start: 2px;
  border-top: 3px solid var(--brand);
}

.history-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-window-head h4 {
  margin: 0;
  font-size: 1rem;
}

.history-list .history-item {
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
}

.history-item .list-actions {
  grid-column: 2;
}

.history-marker {
  width: 8px;
  min-height: 100%;
  border-radius: 999px;
  background: #cddbd9;
}

.history-marker.shift,
.history-marker.need {
  background: var(--brand);
}

.history-marker.swap {
  background: #1d4e89;
}

.history-marker.cancel,
.history-marker.danger,
.history-marker.incident {
  background: var(--danger);
}

.history-marker.notification,
.history-marker.agreement,
.history-marker.audit {
  background: var(--accent);
}

.history-marker.off {
  background: #8a98a0;
}

.history-marker.user,
.history-marker.garden {
  background: var(--ok);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.report-grid span {
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.report-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.1;
}

.management-report-grid {
  display: grid;
  gap: 10px;
  align-items: start;
  align-content: start;
  grid-auto-rows: max-content;
}

.management-card {
  display: grid;
  align-self: start;
  gap: 10px;
  min-width: 0;
  height: max-content;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.management-card h4 {
  margin: 0;
  font-size: 0.98rem;
}

.management-card-note,
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.ranking-list,
.incident-stack {
  display: grid;
  gap: 8px;
}

.need-board-list {
  margin-bottom: 12px;
}

.need-board-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.need-board-item.is-open {
  border-color: #f0c56d;
  background: #fffaf0;
}

.need-board-item .list-actions {
  align-items: stretch;
}

.ranking-row,
.incident-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ranking-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 44px;
  padding: 9px;
  border: 1px solid #edf2f1;
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.ranking-row .ranking-name {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ranking-row strong,
.ranking-row small {
  grid-column: 2;
}

.ranking-row strong {
  color: var(--ink);
  font-size: 1rem;
}

.ranking-row small {
  color: var(--muted);
  font-weight: 700;
}

.availability-panel {
  align-self: start;
}

.availability-date-picker {
  width: 100%;
  margin-bottom: 14px;
}

.availability-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding-block: 12px;
  border-block: 1px solid var(--line);
}

.availability-stat {
  display: grid;
  grid-template-rows: minmax(2.6em, auto) auto;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.availability-stat dt {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
  font-weight: 750;
}

.availability-stat dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 850;
  direction: ltr;
  unicode-bidi: isolate;
}

.availability-panel .list-item {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.availability-panel .status-pill {
  justify-self: start;
}

.security-history-item {
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
}

.security-history-item .list-actions {
  grid-column: auto;
  align-self: center;
}

/* Keep history entries compact: the marker, details, and status share one clear layout. */
.history-item {
  min-height: 0;
  grid-template-columns: 8px minmax(0, 1fr);
  grid-template-areas:
    "marker main"
    "marker actions";
  align-items: start;
  gap: 6px 10px;
}

.history-list .history-item .history-marker {
  grid-area: marker;
}

.history-list .history-item .list-main {
  grid-area: main;
  text-align: right;
}

.history-list .history-item .list-actions {
  grid-area: actions;
  grid-column: auto;
  justify-content: flex-start;
  align-self: start;
}

@media (min-width: 680px) {
  .history-list .history-item {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    grid-template-areas: "marker main actions";
    align-items: start;
  }
}

.content-columns > .admin-panel[data-admin-section="gardens"] {
  grid-column: 1 / -1;
}

#gardenList {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

#gardenList .list-item {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  align-items: start;
}

#gardenList .list-subtitle {
  margin-block: 2px;
}

#gardenList .list-actions {
  grid-column: 1;
  justify-content: flex-start;
}

.report-list .empty,
#adminReportList .empty {
  min-height: 0;
}

.monthly-history-panel .panel-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
}

.workspace-grid > .monthly-history-panel,
.workspace-grid > .admin-panel[data-admin-section="reports"],
.workspace-grid > .admin-panel[data-admin-section="history"],
.workspace-grid > .admin-panel[data-admin-section="privacy"],
.workspace-grid > .admin-panel[data-admin-section="dashboard"] {
  grid-column: 1 / -1;
}

.monthly-history-panel .panel-head > h3,
.monthly-history-panel .panel-head > div:first-child {
  min-width: 0;
}

.monthly-history-panel .panel-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  align-items: end;
}

.monthly-history-panel .inline-picker {
  min-width: 0;
}

@media (max-width: 680px) {
  .monthly-history-panel .panel-controls {
    grid-template-columns: 1fr;
  }
}

.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--brand-dark);
  font-size: 0.75rem;
}

.ranking-row.open-need-row,
.ranking-row.incident-management-row {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  overflow-wrap: anywhere;
}

.ranking-row.open-need-row > *,
.ranking-row.incident-management-row > * {
  grid-column: 1;
  max-width: 100%;
}

.incident-row {
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.list-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.list-title {
  margin: 0;
  font-weight: 850;
}

.title-action {
  appearance: none;
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  text-align: right;
  font: inherit;
  cursor: pointer;
}

.title-action:hover {
  text-decoration: underline;
}

.list-item.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 40, 95, 0.12);
}

.list-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.list-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-actions button {
  min-height: 36px;
  padding: 0 10px;
}

.empty {
  margin: 0;
  padding: 14px;
  min-height: 0;
  border: 1px dashed #c9d7d5;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfc;
  text-align: center;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
}

.tabbar {
  position: sticky;
  top: 8px;
  z-index: 4;
  margin-bottom: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(245, 247, 246, 0.92);
  backdrop-filter: blur(12px);
}

.nav-menu {
  position: relative;
  min-width: 84px;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  display: grid;
  gap: 6px;
  width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-options a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
}

.nav-options a:hover {
  background: var(--surface-strong);
}

.calendar-scroll {
  overflow-x: auto;
  padding: 4px;
  margin-inline: -4px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 16rem;
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-align: center;
}

.calendar-day,
.calendar-blank {
  min-width: 0;
  min-height: 86px;
  border-radius: 8px;
}

.calendar-empty {
  grid-column: 1 / -1;
}

.calendar-blank {
  background: transparent;
}

.calendar-day {
  display: grid;
  grid-template-rows: 1.1em 2.3em 1.3em;
  align-content: start;
  gap: 5px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: right;
}

.schedule-context {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

button.calendar-day {
  width: 100%;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

button.calendar-day[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 40, 95, 0.16);
}

.calendar-day.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 40, 95, 0.16);
}

.calendar-day.has-open {
  background: #fffaf0;
  border-color: #f4cf86;
}

.calendar-day.has-mine {
  background: #f0eff8;
  border-color: #a9a4d8;
}

.calendar-day.has-covered {
  background: #eef8f2;
  border-color: #9cd8b3;
}

.calendar-day.has-off {
  background: #f3f5f6;
  border-color: #cbd5d8;
}

.day-number {
  font-weight: 900;
  line-height: 1;
}

.day-hebrew {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.day-meta {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.teacher-calendar-day .day-meta {
  color: var(--ink);
  font-size: 0.64rem;
}

.admin-garden-calendar-day .day-meta {
  color: var(--ink);
  font-size: 0.64rem;
}

.swap-form-container {
  display: none;
}

.swap-form-container.is-open {
  display: block;
}

.inline-assignment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 2px 8px;
}

.compact-select-label {
  width: min(240px, 100%);
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.compact-select-label select {
  width: 100%;
  min-height: 40px;
  font-size: 0.82rem;
}

.mini-action {
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 14px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #102326;
  color: #fff;
  box-shadow: 0 18px 35px rgba(16, 35, 38, 0.2);
  transition: opacity 160ms ease, transform 160ms ease;
  font-weight: 750;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 430px) {
  .topbar,
  .section-head,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head > .panel-controls {
    width: 100%;
  }

  .panel-head > .count-pill {
    align-self: flex-start;
  }

  .session-actions {
    justify-content: space-between;
  }

  .month-picker,
  .user-picker,
  .inline-picker {
    min-width: 100%;
  }

  .inline-picker {
    grid-template-columns: 1fr;
  }

  .panel-controls,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar label {
    flex-basis: auto;
  }

  .history-section-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric {
    min-height: 84px;
    padding: 11px;
  }

  .metric span {
    line-height: 1.25;
  }

  .metric strong {
    margin-top: 6px;
    font-size: 1.35rem;
  }

  #gardenList .list-item,
  #adminGardenCalendarDayList .list-item {
    grid-template-columns: minmax(0, 1fr);
  }

  #gardenList .list-title,
  #gardenList .list-subtitle {
    overflow-wrap: normal;
    word-break: normal;
  }

  .management-card {
    padding: 10px;
  }

  .ranking-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .ranking-row small {
    line-height: 1.35;
  }

  .admin-garden-calendar-day {
    min-height: 74px;
    padding: 7px 5px;
  }

  .need-board-item {
    grid-template-columns: 1fr;
  }

  .calendar-day,
  .calendar-blank {
    min-height: 62px;
  }
}

#adminMonthlyAttendance, #staffMonthlyAttendance {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #cad8db);
  min-width: 0;
}
.pilot-report-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}
.pilot-report-table table { min-width: 560px; width: 100%; }
.pilot-report-table caption { text-align: right; padding: 8px 0; }
.pilot-report-table th, .pilot-report-table td { padding: 10px; text-align: right; }
.pilot-dialog {
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #cad8db;
  border-radius: 8px;
}
.pilot-dialog h2 { font-size: 1.25rem; }
.pilot-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.pilot-dialog input, .pilot-dialog select { min-width: 0; max-width: 100%; width: 100%; }

.form-message {
  margin: 8px 0;
  padding: 10px 12px;
  border-inline-start: 3px solid #a52030;
  background: #fff1f2;
  color: #8d1d2b;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.clock-shifts, .clock-records { display: grid; gap: 12px; margin-block: 16px; }
.clock-shift { padding-block: 12px; border-block-end: 1px solid var(--line); }
.clock-shift p, .clock-record p { margin-block: 6px; color: var(--muted); }
.clock-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block-start: 14px; }
.clock-record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.clock-record dl { margin: 0; display: grid; gap: 8px; }
.clock-record dt { font-size: 0.8rem; color: var(--muted); }
.clock-record dd { margin: 0; font-weight: 700; }
.clock-range { margin-block: 20px 8px; align-items: end; }
.clock-location-form { margin-block-start: 14px; }
.clock-status { line-height: 1.5; }
.clock-location-map { height: 360px; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 6px; direction: ltr; isolation: isolate; z-index: 0; }
.clock-location-map.is-locked { pointer-events: none; }
.clock-location-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.clock-location-map .leaflet-control-attribution { font-size: 12px; line-height: 1.5; }
.clock-location-map .leaflet-marker-icon { max-width: none; }
.clock-location-map:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.clock-location-actions, .clock-map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.clock-location-actions button, .clock-map-actions button { flex: 1 1 160px; min-width: 0; white-space: normal; }
.clock-garden-address { overflow-wrap: anywhere; }
.clock-candidates { margin-block: 12px; min-width: 0; }
.clock-rules-form { padding-block-end: 20px; border-block-end: 1px solid var(--line); }
.clock-rule-fields { margin: 0; padding: 0; min-width: 0; border: 0; }
.clock-rule-fields legend { margin-block-end: 8px; font-weight: 700; }
.clock-rule-fields input { min-width: 0; direction: ltr; }
.clock-time-input { position: relative; display: block; }
.clock-time-placeholder { display: none; position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.clock-time-input input[data-empty="true"]:not(:focus) { color: transparent; }
.clock-time-input input[data-empty="true"]:not(:focus)::-webkit-datetime-edit { color: transparent; }
.clock-time-input input[data-empty="true"]:not(:focus) + .clock-time-placeholder { display: block; }
.app-update-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fff; }
@container (max-width: 580px) {
  .clock-range, .clock-location-form .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 380px) {
  .clock-record { grid-template-columns: minmax(0, 1fr); }
  .clock-record dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .tabbar { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(5.25rem, calc((100% - 8px) / 3))), 1fr)); grid-auto-flow: row; position: static; }
  .tabbar .tab-button { min-width: 0; white-space: normal; padding: 8px 4px; }
}

@media (min-width: 680px) {
  .app-shell {
    padding-right: 22px;
    padding-left: 22px;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .management-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid .wide {
    grid-column: 1 / -1;
  }

  .list-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .toast {
    right: auto;
    left: 22px;
    width: min(360px, calc(100vw - 44px));
  }
}

@media (min-width: 1020px) {
  .app-shell {
    padding-top: 28px;
  }

  .workspace-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.menu-toggle,
.menu-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-dark);
  line-height: 1;
}

.menu-toggle img,
.menu-close img {
  display: block;
  width: 24px;
  height: 24px;
}

.admin-menu-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 340px);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100%;
  margin: 0;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: -18px 0 40px rgba(16, 35, 38, 0.2);
}

.admin-menu-dialog::backdrop {
  background: rgba(16, 35, 38, 0.34);
}

.admin-menu-dialog[open] {
  animation: menu-enter 180ms ease-out;
}

@keyframes menu-enter {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.admin-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.admin-menu .tab-button {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.menu-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

body.menu-open {
  position: fixed;
  top: var(--menu-scroll-top, 0);
  width: 100%;
  overflow: hidden;
}

.menu-toggle:focus-visible,
.menu-close:focus-visible,
.admin-menu .tab-button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-primary {
    align-items: flex-start;
    width: 100%;
  }

  .brand-lockup {
    flex: 1;
    gap: 8px;
  }

  .topbar-logo {
    width: 44px;
    height: 44px;
  }

  .topbar h1 {
    font-size: 1.25rem;
  }

  .section-head h2 {
    font-size: 1.125rem;
    overflow-wrap: anywhere;
  }

  .session-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #sessionLabel {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 4px 10px;
  }

  .session-actions .ghost-action {
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 0.82rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .month-picker,
  .user-picker,
  .inline-picker {
    min-width: 0;
    max-width: 100%;
  }

  input,
  select,
  textarea {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .skip-link, .boot-screen {
    transition: none;
  }
  .admin-menu-dialog[open] {
    animation: none;
  }
}

/* Layout follows the panel width, including narrow desktop columns. */
.garden-search {
  display: grid;
  gap: 6px;
  margin-block-end: 12px;
}
.pilot-dialog .form-message:empty { display: none; }
.pilot-sessions button { align-self: start; }
.pilot-report-mobile { display: none; }
@media (max-width: 640px) {
  .pilot-report-table { display: none; }
  .pilot-report-mobile { display: block; }
  .pilot-report-mobile > p { font-size: .875rem; color: var(--muted); }
  .pilot-report-mobile article { border-block-start: 1px solid var(--line); padding-block: 14px; }
  .pilot-report-mobile h4 { margin: 0 0 12px; overflow-wrap: anywhere; }
  .pilot-report-mobile dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; }
  .pilot-report-mobile dt { font-size: .875rem; }
  .pilot-report-mobile dd { margin: 4px 0 0; font-size: 1.125rem; font-weight: 700; }
}
@container (max-width: 580px) {
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-head > label {
    flex: none;
    width: 100%;
  }

  .list-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .history-list .history-item {
    grid-template-columns: 8px minmax(0, 1fr);
    grid-template-areas: "marker main" "marker actions";
  }

  .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  }
}

@container (max-width: 480px) {
  .calendar-weekdays,
  .calendar-grid {
    gap: 2px;
  }

  .calendar-day {
    grid-template-rows: 1.1em 1.3em;
    min-height: 64px;
    padding: 8px 2px;
  }

  .day-hebrew {
    display: none;
  }

  .day-meta {
    font-size: 0.65rem;
  }
}

@media (max-width: 430px) {
  .tabbar {
    position: static;
    grid-auto-flow: row;
  }

  .tabbar .tab-button {
    min-width: 0;
    padding: 8px 2px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* Phone activation uses the same form rhythm on desktop and narrow screens. */
.passkey-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid #cbd9da;
  border-radius: 8px;
  padding: 24px;
  color: #14292c;
  background: #fff;
  text-align: start;
}
.passkey-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.passkey-dialog h2, #phoneSetup h1 { font-size: 1.5rem; line-height: 1.4; }
#phoneSetup input, #loginForm input { width: 100%; min-width: 0; box-sizing: border-box; }
#phoneSetup input[name="code"] { text-align: center; font-size: 1.5rem; letter-spacing: 0; }

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

#gardenClockLocation > .field-hint a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.passkey-dialog .form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.passkey-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #d7e1e3; padding-block: 12px; }
.passkey-row strong { overflow-wrap: anywhere; min-width: 0; }
:root .sms-service-notice:not([hidden]) {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #fff5dc;
  border-inline-start: 4px solid #9b6700;
  color: #493300;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
