:root {
  color-scheme: light;
  --page: #f7f8f3;
  --surface: #fffefa;
  --surface-soft: #f4eee4;
  --text: #20201d;
  --muted: #66645f;
  --line: #ded7ca;
  --primary: #008c78;
  --primary-dark: #007261;
  --primary-light: #77decf;
  --primary-foreground: #ffffff;
  --primary-light-foreground: #16473f;
  --primary-ink: #008c78;
  --primary-border: #40a99a;
  --theme-color: #008c78;
  --theme-color-dark: #007261;
  --theme-foreground: #ffffff;
  --theme-border: #40a99a;
  --navigation-color: #008c78;
  --navigation-color-dark: #007261;
  --navigation-accent: #77decf;
  --navigation-foreground: #ffffff;
  --navigation-accent-foreground: #16473f;
  --accent: #c47a2c;
  --danger: #b42318;
  --success: #187348;
  --shadow: 0 18px 48px rgb(27 31 35 / 16%);
  --nav-height: 78px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.generic-sheet-settings-form .generic-sheet-mode-control label {
  display: grid;
  gap: 0;
}

.generic-sheet-settings-form .generic-sheet-mode-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.generic-sheet-settings-form .generic-sheet-layout-control label,
.generic-sheet-settings-form .generic-sheet-credentials-grid label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.generic-sheet-settings-form .generic-sheet-layout-control input,
.generic-sheet-settings-form .generic-sheet-credentials-grid input {
  width: 20px;
  height: 20px;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.generic-sheet-year-field {
  width: max-content;
  display: grid;
  grid-template-columns: auto 104px;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  color: #4d4b48;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generic-sheet-year-field select {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  border: 1px solid #cfd7d4;
  border-radius: 5px;
  background: white;
  color: #24231f;
  padding: 0 9px;
  font: inherit;
}

.generic-sheet-settings-content {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 26px 20px 42px;
}

.generic-sheet-settings-form {
  gap: 0;
  background: white;
}

.generic-sheet-settings-section {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid #e1e3df;
}

.generic-sheet-settings-section h2,
.generic-sheet-settings-heading p {
  margin: 0;
}

.generic-sheet-settings-section h2 {
  color: #2d2c28;
  font-size: 1.04rem;
  line-height: 1.25;
}

.generic-sheet-mode-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid #c9d6d2;
  border-radius: 6px;
  background: #edf3f1;
  padding: 5px;
}

.generic-sheet-mode-control label {
  position: relative;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #4d5552;
  cursor: pointer;
  font-weight: 900;
}

.generic-sheet-mode-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.generic-sheet-mode-control label:has(input:checked) {
  background: var(--theme-color);
  color: var(--theme-foreground);
  box-shadow: 0 2px 6px rgb(0 0 0 / 14%);
}

.generic-sheet-schedule-settings {
  display: grid;
}

.generic-sheet-layout-control {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.generic-sheet-layout-control legend {
  margin-bottom: 9px;
  color: #4d4b48;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generic-sheet-layout-control label,
.generic-sheet-credentials-grid label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #353430;
  font-weight: 800;
  cursor: pointer;
}

.generic-sheet-layout-control input,
.generic-sheet-credentials-grid input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--theme-color);
}

.generic-sheet-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.generic-sheet-credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

.generic-sheet-configuration-warning {
  margin: 0;
  border-left: 4px solid #b96400;
  background: #fff4e4;
  color: #71420b;
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.generic-sheet-settings-form > .form-hint {
  margin: 16px 22px 0;
}

.generic-sheet-settings-form > .standard-submit-button {
  width: auto;
  margin: 18px 22px 22px;
}

.generic-sheet-cell.is-schedule-cell {
  padding: 0;
  vertical-align: middle;
}

.generic-sheet-cell.is-schedule-inactive {
  background: #eceeeb;
}

.generic-sheet-cell.is-schedule-assignment {
  padding: calc(5px * var(--sheet-zoom, 1)) calc(7px * var(--sheet-zoom, 1));
}

.generic-sheet-schedule-control {
  width: 100%;
  height: 100%;
  min-height: calc(30px * var(--sheet-zoom, 1));
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: calc(3px * var(--sheet-zoom, 1));
  font: inherit;
  font-weight: inherit;
  text-align: inherit;
}

select.generic-sheet-schedule-control {
  cursor: pointer;
}

.generic-sheet-time-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(4px * var(--sheet-zoom, 1));
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.generic-sheet-time-button .lucide {
  width: calc(15px * var(--sheet-zoom, 1));
  height: calc(15px * var(--sheet-zoom, 1));
  flex: 0 0 auto;
}

.generic-sheet-time-card {
  width: min(100%, 460px);
}

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

.generic-sheet-time-form .form-hint,
.generic-sheet-time-form .modal-actions {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .generic-sheet-settings-content {
    padding: 14px 10px 28px;
  }

  .generic-sheet-settings-section {
    padding: 17px 14px;
  }

  .generic-sheet-settings-grid,
  .generic-sheet-credentials-grid,
  .generic-sheet-time-form {
    grid-template-columns: 1fr;
  }

  .generic-sheet-settings-form > .form-hint {
    margin-inline: 14px;
  }

  .generic-sheet-settings-form > .standard-submit-button {
    margin-inline: 14px;
  }

  .generic-sheet-time-form .form-hint,
  .generic-sheet-time-form .modal-actions {
    grid-column: auto;
  }
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent 38%),
    linear-gradient(315deg, rgb(196 122 44 / 13%), transparent 36%),
    var(--page);
  color: var(--text);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.informative-required-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  color: var(--primary);
  isolation: isolate;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

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

.splash-screen::after {
  content: none;
}

.splash-image {
  display: block;
  width: 168px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center center;
  border-radius: 34px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 15%);
}

.splash-wordmark {
  display: none;
}

@media (min-width: 640px) {
  .splash-image {
    width: 220px;
    border-radius: 42px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-screen,
.password-reset-screen {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 26px;
  padding: clamp(28px, 7vh, 90px) 30px 36px;
  background: #ffffff;
}

.login-card {
  width: min(100%, 680px);
  min-height: min(76vh, 930px);
  display: grid;
  align-content: start;
  justify-items: stretch;
  padding: clamp(42px, 7vw, 86px) clamp(32px, 6vw, 64px) 44px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 28px;
  background: #35d6c7;
  box-shadow:
    0 7px 11px rgb(0 0 0 / 28%),
    inset 0 0 0 1px rgb(255 255 255 / 28%);
  color: #075e56;
}

.password-reset-card {
  min-height: 0;
}

.access-requirements-screen {
  align-content: start;
  padding-top: clamp(22px, 5vh, 56px);
  padding-bottom: clamp(28px, 5vh, 56px);
  background: #f4f7f5;
}

.access-requirements-card {
  min-height: 0;
  gap: 0;
  padding: clamp(28px, 5vw, 48px);
  border-color: #d7dedb;
  border-radius: 8px;
  background: #ffffff;
  color: #272a28;
  box-shadow: 0 8px 24px rgb(23 38 33 / 12%);
}

.access-requirements-card .login-wordmark {
  margin-bottom: 22px;
  color: #008c78;
  font-size: clamp(2rem, 7vw, 3.1rem);
}

.access-requirements-card .login-title {
  margin-bottom: 10px;
}

.access-requirements-intro {
  margin: 0 0 24px;
  color: #5d625f;
  text-align: center;
  line-height: 1.5;
}

.access-requirement-section {
  display: grid;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid #dfe4e1;
}

.access-requirement-section[hidden] {
  display: none;
}

.access-requirement-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.access-requirement-heading .lucide {
  width: 28px;
  height: 28px;
  color: #008c78;
}

.access-requirement-heading h2 {
  margin: 0 0 3px;
  color: #242825;
  font-size: 1.08rem;
}

.access-requirement-heading p {
  margin: 0;
  color: #666c68;
  font-size: 0.9rem;
  line-height: 1.4;
}

.access-field {
  display: grid;
  gap: 7px;
  color: #444945;
  font-size: 0.9rem;
  font-weight: 800;
}

.access-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #cfd7d3;
  border-radius: 6px;
  background: #ffffff;
  color: #242825;
  font-size: 1rem;
  outline: 0;
}

.access-field input:focus {
  border-color: #008c78;
  box-shadow: 0 0 0 3px rgb(0 140 120 / 14%);
}

.access-requirement-section > .field-action-button {
  width: 100%;
}

.legal-confirmation-card {
  display: grid;
  gap: 12px;
  padding: 16px 0 4px;
  border-top: 1px solid #e4e8e6;
}

.legal-confirmation-card > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #006f61;
  font-weight: 900;
  text-decoration: none;
}

.legal-confirmation-card > a .lucide {
  width: 19px;
  height: 19px;
}

.legal-confirmation-card > label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #343936;
  line-height: 1.4;
}

.legal-confirmation-card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #008c78;
}

.access-requirements-card > .login-submit {
  width: 100%;
  margin-top: 16px;
}

.access-requirements-card > .login-submit:disabled {
  background: #aeb5b2;
  color: #ffffff;
  box-shadow: none;
}

.access-requirements-card > .plain-login-action {
  margin: 14px 0 0;
}

.login-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  color: white;
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.sync-badge {
  width: 0.92em;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  margin: 0 0.08em;
  border-radius: 8px;
  background: #f1c33b;
  color: white;
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / 22%);
  font-size: 0.62em;
}

.login-title {
  margin: 0 0 clamp(42px, 7vw, 68px);
  text-align: center;
  color: #077168;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-form {
  display: grid;
  gap: 28px;
}

.login-form input {
  width: 100%;
  min-height: 76px;
  border: 0;
  border-radius: 8px;
  background: white;
  box-shadow: 0 0 12px rgb(255 255 255 / 54%);
  color: var(--text);
  font-size: 1.28rem;
  outline: 0;
  padding: 0 22px;
}

.login-form input::placeholder {
  color: #a8a8a8;
}

.login-form input:focus {
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent),
    0 0 12px rgb(255 255 255 / 54%);
}

.login-password-field {
  position: relative;
  width: 100%;
}

.login-password-field input {
  padding-right: 76px;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #077168;
  transform: translateY(-50%);
}

.login-password-toggle .lucide {
  width: 27px;
  height: 27px;
  stroke-width: 2.8;
}

.login-submit,
.login-alt-button,
.create-account-button,
.install-button,
.plain-login-action {
  border: 0;
  letter-spacing: 0;
}

.login-submit {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--theme-color);
  color: var(--theme-foreground);
  box-shadow: 0 7px 12px rgb(0 0 0 / 20%);
  font-size: 1.08rem;
  font-weight: 950;
  text-transform: uppercase;
}

.login-submit.has-credentials {
  background: #2cc8b9;
  color: #073f3a;
}

.plain-login-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 28px;
  padding: 6px 12px;
  background: transparent;
  color: #077168;
  font-size: 1.08rem;
  font-weight: 900;
}

.login-divider {
  margin-bottom: 26px;
  text-align: center;
  color: #063d39;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.login-alt-button,
.create-account-button {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgb(0 0 0 / 16%);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.login-alt-button {
  margin-bottom: 28px;
  background: white;
  color: #262626;
}

.login-alt-button .google-symbol {
  width: 30px;
  background: white;
}

.no-account-text {
  margin: 0 0 14px;
  text-align: center;
  color: #077168;
  font-size: 1rem;
  font-weight: 900;
}

.create-account-button {
  background: #80e4d8;
  color: #090909;
}

.install-button {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 40px auto 0;
  background: transparent;
  color: #087066;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
}

.install-button .lucide {
  width: 48px;
  height: 48px;
  stroke-width: 3.5;
  fill: currentColor;
}

#signed-out {
  padding-bottom: 18px;
}

.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 6px;
  margin-top: 28px;
  color: #075e56;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.login-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-legal-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.login-footnote {
  width: min(100%, 620px);
  margin: 0;
  color: #191919;
  text-align: center;
  font-size: 1rem;
  line-height: 1.28;
}

@media (min-width: 640px) {
  .login-legal-links {
    font-size: 14px;
  }

  .login-wordmark {
    font-size: 4.5rem;
  }

  .login-title {
    font-size: 2.15rem;
  }

  .login-form input {
    font-size: 1.95rem;
  }

  .login-submit {
    font-size: 1.58rem;
  }

  .plain-login-action {
    font-size: 1.52rem;
  }

  .login-divider {
    font-size: 1.3rem;
  }

  .login-alt-button,
  .create-account-button {
    font-size: 1.38rem;
  }

  .no-account-text {
    font-size: 1.36rem;
  }

  .install-button {
    font-size: 1.62rem;
  }

  .install-button .lucide {
    width: 70px;
    height: 70px;
  }

  .login-footnote {
    font-size: 1.48rem;
  }
}

.login-shell {
  width: min(1040px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 28px;
  padding: 32px 0;
}

.brand-panel,
.auth-panel,
.profile-card,
.announcement-card,
.search-box,
.feature-item,
.raised-action,
.home-action-button {
  background: rgb(255 254 250 / 94%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgb(27 31 35 / 12%);
}

.profile-card,
.announcement-card,
.search-box,
.feature-item,
.raised-action {
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgb(0 0 0 / 19%);
}

.brand-panel {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(32 32 29 / 8%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(32 32 29 / 8%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent 0%, black 36%, black 100%);
}

.brand-mark {
  position: absolute;
  top: clamp(28px, 4vw, 42px);
  left: clamp(28px, 4vw, 42px);
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 8px;
  background: var(--theme-color);
  color: var(--theme-foreground);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
}

.brand-panel > * {
  position: relative;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.brand-panel h1 {
  max-width: 9ch;
  margin-bottom: 18px;
  font-size: 5.6rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
  letter-spacing: 0;
}

.lead {
  max-width: 460px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.status-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(246 243 237 / 72%);
}

.status-list dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.status-list dd {
  margin: 0;
  font-weight: 800;
}

.auth-panel {
  padding: 28px;
}

.panel-heading {
  margin-bottom: 28px;
}

.button {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.primary-button {
  margin-top: 10px;
  background: var(--theme-color);
  border-color: var(--theme-border);
  color: var(--theme-foreground);
}

.primary-button:hover:not(:disabled) {
  background: var(--theme-color-dark);
}

.google-button {
  background: white;
}

.google-symbol {
  width: 26px;
  aspect-ratio: 1;
  display: block;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: white;
  padding: 4px;
  flex: 0 0 auto;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.form {
  display: grid;
  gap: 10px;
}

.form label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

.turnus-app {
  min-height: 100vh;
  background: #fbfbf8;
  padding-bottom: var(--nav-height);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 86px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right));
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  box-shadow: 0 4px 8px -2px rgb(0 0 0 / 28%);
}

.navigation-theme-picker {
  position: relative;
  justify-self: end;
}

.navigation-theme-toggle[aria-expanded="true"] {
  background: rgb(0 0 0 / 12%);
}

.navigation-theme-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 70;
  width: min(304px, calc(100vw - 28px));
  max-height: min(520px, calc(100dvh - 110px));
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #d8d5cd;
  border-radius: 8px;
  background: #fffefa;
  color: var(--text);
  box-shadow: 0 18px 42px rgb(0 0 0 / 24%);
}

.navigation-theme-popover::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 100%;
  width: 14px;
  height: 14px;
  border-top: 1px solid #d8d5cd;
  border-left: 1px solid #d8d5cd;
  background: #fffefa;
  transform: translateY(7px) rotate(45deg);
}

.navigation-theme-popover-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.navigation-theme-popover-header strong {
  font-size: 0.96rem;
}

.navigation-theme-popover-header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.navigation-theme-popover-header button:hover {
  background: #eeeae2;
}

.navigation-theme-popover-header .lucide {
  width: 20px;
  height: 20px;
}

.navigation-theme-swatches {
  display: grid;
  grid-template-columns: repeat(5, 42px);
  justify-content: space-between;
  gap: 10px;
}

.navigation-theme-swatches button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 3px solid #fffefa;
  border-radius: 50%;
  background: var(--swatch-color, var(--primary));
  box-shadow: 0 0 0 1px #c9c4ba;
}

.navigation-theme-swatches button[aria-pressed="true"] {
  box-shadow:
    0 0 0 2px #fffefa,
    0 0 0 5px var(--swatch-ring-color, var(--swatch-color, var(--primary)));
}

.navigation-theme-custom {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid #e4e0d8;
  font-size: 0.9rem;
  font-weight: 750;
}

.navigation-theme-custom input {
  width: 62px;
  height: 38px;
  padding: 2px;
  border: 1px solid #bdb8ae;
  border-radius: 6px;
  background: white;
}

.wordmark,
.drawer-wordmark {
  color: inherit;
  justify-self: center;
  text-decoration: none;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: 0;
}

.wordmark span,
.drawer-wordmark span {
  display: inline-block;
  margin: 0 3px;
}

.icon-button {
  width: 44px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
}

.icon-button:hover {
  background: rgb(255 255 255 / 14%);
}

.icon-button.ghost {
  opacity: 0.84;
}

.lucide {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.icons-ready .icon-fallback {
  display: none;
}

.home-content {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px clamp(14px, 3vw, 28px) 24px;
}

.profile-card {
  position: relative;
  min-height: 138px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 160px 14px 18px;
}

.profile-photo-button {
  width: 112px;
  aspect-ratio: 1;
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
}

.profile-photo-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: 4px;
}

.profile-photo {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--theme-color);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#profile-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--theme-foreground);
  font-size: 2.6rem;
  font-weight: 900;
}

.profile-photo-edit {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 10px rgb(0 0 0 / 20%);
}

.profile-photo-edit .lucide {
  width: 21px;
  height: 21px;
  stroke-width: 3;
}

.profile-info {
  min-width: 0;
}

.profile-info p {
  margin: 0;
}

#profile-name {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--primary);
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

#home-auth-provider {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-badge-cluster {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-completeness-badge,
.profile-status-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #c8362d;
  border-radius: 50%;
  background: #c8362d;
  color: #ffffff;
  font: inherit;
  box-shadow: 0 3px 8px rgb(0 0 0 / 18%);
}

.profile-status-badge {
  border-color: #168552;
  background: #168552;
}

.profile-status-badge[data-status="descanso"],
.profile-status-badge[data-status="recesso"],
.profile-status-badge[data-status="feriadao"] {
  border-color: #c8362d;
  background: #c8362d;
}

.profile-status-badge[data-status="aniversario"],
.profile-status-badge.is-birthday {
  border-color: #56bde8;
  background: #56bde8;
  color: #12384b;
}

.profile-completeness-badge[data-complete="true"] {
  border-color: #168552;
  background: #168552;
  color: #ffffff;
}

.profile-completeness-badge .lucide,
.profile-status-badge .lucide {
  width: 23px;
  height: 23px;
  stroke-width: 3;
}

.profile-account-panel {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #deddd9;
}

.profile-account-panel h2 {
  margin: 0;
  color: #363532;
  font-size: 1.08rem;
}

.profile-legal-links,
.profile-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-legal-links a,
.profile-account-actions button {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--navigation-color) 28%, #d9d9d9);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navigation-color);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.profile-account-actions button.is-danger {
  border-color: #e0b3ae;
  color: #a62d24;
}

.profile-legal-links .lucide,
.profile-account-actions .lucide {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.profile-edit {
  width: 42px;
  aspect-ratio: 1;
  align-self: end;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
}

.profile-edit:hover {
  background: color-mix(in srgb, var(--primary) 9%, transparent);
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  margin: 16px 0 14px;
}

.raised-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
  text-align: center;
  text-transform: uppercase;
}

.raised-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 9px rgb(0 0 0 / 22%);
}

.announcement-rail {
  display: grid;
  grid-auto-columns: minmax(304px, 468px);
  grid-auto-flow: column;
  gap: clamp(14px, 3vw, 28px);
  margin-bottom: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding: 4px 2px 14px;
}

.announcement-card {
  display: grid;
  grid-template-rows: 104px auto 88px;
  align-content: start;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}

.announcement-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.announcement-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #dfe8e3;
}

.announcement-media {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  background: #dfe8e3;
}

.announcement-media img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}

.announcement-heading {
  display: grid;
  grid-template-rows: 39px 36px;
  align-content: center;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  gap: 3px;
  padding: 10px 12px;
  text-align: left;
  color: #123b34;
  background: rgb(255 255 255 / 96%);
  pointer-events: none;
}

.announcement-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.announcement-subtitle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.announcement-caption {
  display: grid;
  align-content: center;
  box-sizing: border-box;
  min-width: 0;
  gap: 5px;
  padding: 15px 18px 17px;
  color: #3d3d3a;
}

.announcement-caption strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.1rem;
}

.announcement-caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
}

.search-box {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  margin-bottom: 20px;
  padding: 0 16px;
  color: #a3a19b;
}

.search-box input {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
}

.search-box input::placeholder {
  color: transparent;
}

.search-placeholder-marquee {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  color: #8b8f8b;
  pointer-events: none;
  white-space: nowrap;
}

.search-placeholder-marquee > span {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  animation: search-placeholder-marquee 11s linear infinite;
}

.search-box:focus-within .search-placeholder-marquee,
.search-box:has(input:not(:placeholder-shown)) .search-placeholder-marquee {
  visibility: hidden;
}

@keyframes search-placeholder-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .search-placeholder-marquee > span {
    padding-left: 0;
    animation: none;
  }
}

.function-guide-results {
  display: grid;
  gap: 8px;
  margin: -8px 0 20px;
  padding: 14px;
  border: 1px solid #c9d8d5;
  border-radius: 6px;
  background: #f7faf9;
}

.function-guide-results[hidden] { display: none; }
.function-guide-intro { margin: 0 0 2px; color: #405a55; font-size: .92rem; }
.function-guide-result {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 24px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #b9cbc7;
  border-radius: 5px;
  background: #fff;
  color: #263f3a;
  text-align: left;
}
.function-guide-result > span { display: grid; gap: 3px; min-width: 0; }
.function-guide-result strong { font-size: .96rem; }
.function-guide-result span span { color: #58706b; font-size: .82rem; line-height: 1.35; }
.function-guide-result > svg:first-child { color: var(--navigation-color,#008c78); }
.function-guide-result:hover,.function-guide-result:focus-visible { border-color: var(--navigation-color,#008c78); background: #edf8f5; }

.home-feature-row { position: relative; min-width: 0; }
.home-feature-row:has(> .feature-item[hidden]) { display: none; }
.home-feature-row > .feature-item { width: 100%; }
.home-feature-row .has-home-help { padding-right: 54px; }
.home-help-button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; padding: 8px; border: 0; background: transparent; color: var(--navigation-color, #008c78); }
.home-help-button span { display: none; }
.home-help-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-item {
  min-height: 124px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 14px 24px 14px 18px;
  border: 0;
  box-shadow: 0 3px 8px rgb(0 0 0 / 19%);
  text-align: left;
}

.feature-item img,
.thumb-graphic {
  width: 112px;
  aspect-ratio: 1.14 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.feature-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.feature-title {
  min-width: 0;
  color: var(--primary);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.feature-subtitle {
  color: #55524d;
  font-size: 1.05rem;
  line-height: 1.25;
}

.thumb-graphic {
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(135deg, rgb(0 140 120 / 84%), rgb(12 51 82 / 88%)),
    #0d5f65;
}

.thumb-graphic .lucide {
  width: 46px;
  height: 46px;
}

.generated-thumb.finance .thumb-graphic {
  background:
    linear-gradient(135deg, rgb(196 122 44 / 92%), rgb(0 140 120 / 82%)),
    #af6c2a;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 24px 0 16px;
}

.home-action-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border: 0;
  background: var(--theme-color);
  color: var(--theme-foreground);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-action-button:hover {
  background: var(--theme-color-dark);
}

.admin-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 26px;
  min-height: 26px;
  padding: 3px 7px;
  border-radius: 13px;
  background: #b3261e;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}
.admin-count-badge[hidden] { display: none; }
.home-action-button[data-action="admin"] { position: relative; }
.home-action-button > .admin-count-badge { position: absolute; top: -10px; right: 0; }
#admin-menu > [data-admin-mode="requests"],
#admin-menu > [data-admin-mode="invites"] {
  grid-template-columns: 112px minmax(0, 1fr) auto;
}

.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  box-shadow: 0 -4px 16px rgb(0 0 0 / 15%);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.98rem;
}

.bottom-nav button[aria-current="page"] {
  background: rgb(0 0 0 / 8%);
}

.bottom-nav .lucide {
  width: 28px;
  height: 28px;
}

.reg-nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.reg-nav-icon svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: currentColor;
}

.bottom-brand-icon {
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 50%;
  background: white;
  object-fit: contain;
  box-shadow: 0 2px 6px rgb(0 0 0 / 18%);
}

.bottom-brand-icon + .icon-fallback {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(0 0 0 / 24%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.side-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: min(84vw, 420px);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 44px 24px 0;
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  box-shadow: 22px 0 50px rgb(0 0 0 / 26%);
  transform: translateX(-102%);
  transition: transform 220ms ease;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-open .drawer-backdrop {
  opacity: 1;
}

.drawer-open .side-drawer {
  transform: translateX(0);
}

.drawer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--navigation-foreground) 68%, transparent);
}

.drawer-wordmark {
  justify-self: start;
}

.drawer-menu {
  display: grid;
  align-content: start;
  gap: clamp(14px, 3.3vh, 28px);
  padding-top: 24px;
}

.drawer-menu button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 1.16rem;
  font-weight: 800;
}

.drawer-menu .lucide {
  width: 29px;
  height: 29px;
}

.procedure-box {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--navigation-foreground) 72%, transparent);
  border-radius: 8px;
  text-align: center;
}

.procedure-box p {
  margin: 0;
  font-weight: 700;
}

.procedure-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--navigation-accent);
  color: var(--navigation-accent-foreground);
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-account {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 8px -24px 0;
  padding: 18px 24px;
  background: var(--navigation-accent);
  color: var(--navigation-accent-foreground);
  font-size: 1.04rem;
  font-weight: 800;
}

.drawer-account-photo {
  position: relative;
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  font-size: 1.1rem;
  font-weight: 900;
}

.drawer-account-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-account-photo > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.drawer-account span {
  overflow-wrap: anywhere;
}

.drawer-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: calc(64px + max(14px, env(safe-area-inset-bottom)));
  margin: -16px -24px 0;
  padding: 4px 24px max(16px, env(safe-area-inset-bottom));
  border: 0;
  background: rgb(0 0 0 / 22%);
  color: inherit;
  font-weight: 800;
}

.drawer-logout > * {
  transform: translateY(6px);
}

.turnus-form-page,
.turnus-list-page,
.turnus-informative-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  color: #494744;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 34;
  height: 76px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  box-shadow: 0 3px 10px rgb(0 0 0 / 22%);
}

.page-header::after {
  content: "";
}

.page-header-with-action::after {
  content: none;
}

.page-header-with-action {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.page-header h1 {
  margin: 0;
  color: inherit;
  font-size: 1.46rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

#generic-spreadsheet-page > .page-header,
#service-schedule-page > .page-header {
  height: auto;
  min-height: 76px;
  padding-block: 8px;
}

#generic-sheet-title,
#service-schedule-page > .page-header h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.generic-sheet-heading .eyebrow,
.generic-sheet-print-heading strong,
#generic-sheet-time-modal .modal-eyebrow {
  overflow-wrap: anywhere;
}

.page-back-button {
  width: 52px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.page-back-button .lucide {
  width: 30px;
  height: 30px;
}

.page-header-action {
  width: 52px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.page-header-action .lucide {
  width: 30px;
  height: 30px;
  stroke-width: 3;
}

.page-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  padding-right: 4px;
}

.page-header-actions .page-header-action {
  width: 44px;
}

.menu-feature-content {
  width: min(100%, 760px);
  min-height: calc(100dvh - 76px - var(--nav-height) - env(safe-area-inset-bottom));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.menu-feature-empty {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 48px 24px;
  border-top: 1px solid #dededb;
  border-bottom: 1px solid #dededb;
  background: #f7f8f7;
  text-align: center;
}

.menu-feature-icon {
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  box-shadow: 0 5px 14px rgb(0 0 0 / 16%);
}

.menu-feature-icon .lucide {
  width: 34px;
  height: 34px;
  stroke-width: 2.4;
}

.menu-feature-empty h2 {
  max-width: 520px;
  margin: 0;
  color: #4a4946;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.addresses-map-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.addresses-map-content {
  height: calc(100vh - 76px - var(--nav-height) - env(safe-area-inset-bottom));
  height: calc(100dvh - 76px - var(--nav-height) - env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #f5f7f5;
}

.addresses-map-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #d9ddd9;
  background: #ffffff;
  box-shadow: 0 3px 10px rgb(0 0 0 / 10%);
}

.addresses-map-search {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
  margin: 0 auto;
}

.addresses-map-search .page-search-box {
  min-height: 50px;
  box-shadow: none;
}

.addresses-map-search-button,
.addresses-map-actions button,
.addresses-map-view-options button,
.addresses-map-type-field {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--navigation-color) 55%, #d7dad7);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navigation-color-dark);
  font-weight: 850;
}

.addresses-map-search-button {
  min-height: 50px;
  background: var(--navigation-color);
  color: var(--navigation-foreground);
}

.addresses-map-search-button .lucide,
.addresses-map-actions .lucide,
.addresses-map-view-options .lucide,
.addresses-map-type-field .lucide {
  width: 21px;
  height: 21px;
  stroke-width: 2.6;
}

.addresses-map-actions {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 auto;
}

.addresses-map-view-options {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, 0.85fr);
  gap: 8px;
  margin: 0 auto;
}

.addresses-map-view-options button {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--navigation-color) 55%, #d7dad7);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navigation-color-dark);
  font-weight: 850;
}

.addresses-map-view-options button[aria-pressed="true"] {
  border-color: var(--navigation-color);
  background: color-mix(in srgb, var(--navigation-color) 13%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--navigation-color) 35%, transparent);
}

.addresses-map-view-options button[aria-pressed="false"] {
  color: #77736e;
  opacity: 0.78;
}

.addresses-map-layer-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px currentColor;
}

.addresses-map-layer-dot.is-home {
  background: #2276d2;
  color: #185ca8;
}

.addresses-map-layer-dot.is-work {
  background: #d06a22;
  color: #a94e0d;
}

.addresses-map-type-field {
  padding: 0 10px;
}

.addresses-map-type-field select {
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 850;
}

.addresses-map-status {
  width: min(100%, 920px);
  min-height: 18px;
  margin: 0 auto;
  color: #65635f;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.25;
}

.addresses-map-status[data-tone="error"] {
  color: var(--danger);
}

.addresses-map-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.addresses-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: #e5e9e5;
}

.addresses-map-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  background: rgb(247 248 247 / 94%);
  color: #5a5854;
  text-align: center;
}

.addresses-map-empty .lucide {
  width: 42px;
  height: 42px;
  color: var(--navigation-color);
}

.addresses-map-legend {
  position: absolute;
  left: 12px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  gap: 5px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #d5d8d5;
  border-radius: 6px;
  background: rgb(255 255 255 / 95%);
  color: #454440;
  box-shadow: 0 4px 12px rgb(0 0 0 / 18%);
  font-size: 0.82rem;
}

.addresses-map-legend-item {
  display: grid;
  grid-template-columns: 12px auto minmax(18px, auto);
  align-items: center;
  gap: 7px;
}

.addresses-map-legend-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.addresses-map-legend-dot.is-home {
  background: #2276d2;
  box-shadow: 0 0 0 1px #185ca8;
}

.addresses-map-legend-dot.is-work {
  background: #d06a22;
  box-shadow: 0 0 0 1px #a94e0d;
}

.work-locations-content {
  padding-bottom: 34px;
}

.work-locations-list {
  display: grid;
  gap: 12px;
}

.work-location-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgb(0 0 0 / 17%);
}

.work-location-open {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.work-location-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff0e5;
  color: #b55312;
}

.work-location-icon .lucide {
  width: 27px;
  height: 27px;
  stroke-width: 2.4;
}

.work-location-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.work-location-copy strong,
.work-location-copy span,
.work-location-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.work-location-copy strong {
  color: #343330;
  font-size: 0.96rem;
  line-height: 1.25;
}

.work-location-copy span {
  color: #66635f;
  font-size: 0.82rem;
  line-height: 1.35;
}

.work-location-copy small {
  color: #7b7771;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.work-location-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-location-actions button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--navigation-color) 42%, #d9d9d9);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navigation-color);
}

.work-location-actions button[data-work-location-delete] {
  border-color: #e1aaa5;
  color: #b13227;
}

.work-location-actions .lucide {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

.turnus-map-info {
  max-width: 290px;
  padding: 3px 1px 2px;
  color: #302f2c;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.turnus-map-info h2 {
  margin: 0 0 8px;
  color: var(--navigation-color-dark);
  font-size: 1rem;
  line-height: 1.2;
}

.turnus-map-info ul {
  display: grid;
  gap: 4px;
  margin: 0 0 9px;
  padding: 0;
  list-style: none;
}

.turnus-map-info li,
.turnus-map-info p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.turnus-map-info a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid var(--navigation-color);
  border-radius: 5px;
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.contacts-content {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 30px 18px 28px;
}

.contacts-hero-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  box-shadow: 0 5px 14px rgb(0 0 0 / 16%);
}

.contacts-hero-icon .lucide {
  width: 43px;
  height: 43px;
  stroke-width: 2.3;
}

.contact-category-list,
.contact-list {
  display: grid;
  gap: 12px;
}

.contact-category-item {
  width: 100%;
  min-height: 98px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 3px 8px rgb(0 0 0 / 19%);
  text-align: left;
}

.contact-category-item > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-category-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--navigation-color) 12%, #f5f7f6);
  color: var(--navigation-color);
}

.contact-category-icon .lucide {
  width: 35px;
  height: 35px;
  stroke-width: 2.2;
}

.contact-category-item > .lucide {
  width: 25px;
  height: 25px;
  justify-self: end;
}

.contact-list-content {
  padding-bottom: 34px;
}

.contact-search-box {
  margin-bottom: 14px;
}

.contact-list-status,
.contact-form-status {
  margin: 0 0 14px;
  color: #66635f;
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-list-status[data-tone="error"],
.contact-form-status[data-tone="error"] {
  color: #a8291d;
}

.contact-import-dialog .contact-form-status {
  margin: 0;
  white-space: pre-line;
}

.contact-list-item {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgb(0 0 0 / 17%);
}

.contact-list-open {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.contact-list-open:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--navigation-color) 52%, transparent);
  outline-offset: 5px;
}

.contact-list-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 8px;
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  font-size: 1.18rem;
  font-weight: 900;
}

.contact-list-avatar img {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.contact-list-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.contact-list-copy > :empty {
  display: none;
}

.contact-list-copy strong {
  min-width: 0;
  color: #343330;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.25;
}

.contact-list-copy span {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #6c6965;
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.contact-list-copy small {
  color: #77736e;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-status-badges {
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-list-avatar > .contact-status-badges {
  position: absolute;
  right: -5px;
  bottom: -5px;
  z-index: 2;
  flex-direction: row-reverse;
  pointer-events: none;
}

.contact-status-badge {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #168552;
  color: #ffffff;
}

.contact-status-badge[data-status="descanso"],
.contact-status-badge[data-status="recesso"],
.contact-status-badge[data-status="feriadao"] {
  background: #c8362d;
}

.contact-status-badge[data-status="aniversario"],
.contact-status-badge.is-birthday {
  background: #56bde8;
  color: #12384b;
}

.contact-status-badge .lucide {
  width: 15px;
  height: 15px;
  stroke-width: 2.8;
}

.contact-list-actions {
  display: grid;
  grid-template-columns: 44px;
  align-items: center;
  gap: 6px;
}

.contact-list-actions a,
.contact-photo-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--navigation-color) 30%, #d9d9d9);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navigation-color);
}

.contact-photo-toggle { flex: 0 0 44px; padding: 0; cursor: pointer; }
.contact-photo-toggle .lucide { width: 21px; height: 21px; }
.contact-detail-avatar-status > .contact-photo-toggle { margin: 8px auto 0; }
.contact-photo-silhouette { display: grid; place-items: center; width: 100%; height: 100%; background: #e7eceb; color: #657571; }
.contact-photo-silhouette .lucide { width: 65%; height: 65%; fill: #657571; stroke-width: 1; }

.contact-list-actions .lucide {
  width: 21px;
  height: 21px;
  stroke-width: 2.4;
}

.contact-form-content {
  padding-bottom: 34px;
}

.contact-resident-fields {
  display: grid;
  gap: 20px;
}

.contact-photo-preview-frame {
  width: 132px;
  height: 132px;
  margin: -4px auto 0;
  overflow: hidden;
  border: 1px solid #deddd9;
  border-radius: 50%;
  background: #f4f4f2;
  box-shadow: 0 4px 12px rgba(44, 43, 40, 0.12);
}

.contact-photo-preview-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.turnus-standard-form .contact-account-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--navigation-color) 32%, #d9d9d9);
  border-radius: 6px;
  background: color-mix(in srgb, var(--navigation-color) 7%, #ffffff);
  cursor: pointer;
}

.turnus-standard-form .contact-account-toggle input {
  width: 22px;
  height: 22px;
  min-height: 0;
  flex: 0 0 auto;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--navigation-color);
}

.contact-account-toggle > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-account-toggle small {
  color: #686560;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.contact-account-fields {
  display: grid;
  gap: 20px;
}

.contact-detail-content {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 28px 20px 36px;
}

.contact-detail-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-bottom: 26px;
  text-align: center;
}

.contact-detail-avatar-status {
  position: relative;
  width: fit-content;
  display: grid;
  justify-items: center;
}

.contact-detail-status-badges {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  display: grid;
  gap: 7px;
  transform: translateY(-50%);
}

.contact-detail-status-badges[hidden] {
  display: none;
}

.contact-detail-status-badges .contact-status-badge {
  width: 38px;
  height: 38px;
  box-shadow: 0 3px 9px rgb(0 0 0 / 18%);
  cursor: pointer;
}

.contact-detail-status-badges .contact-status-badge .lucide {
  width: 21px;
  height: 21px;
}

.contact-detail-avatar {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 8px;
  background: var(--navigation-color);
  box-shadow: 0 4px 13px rgb(0 0 0 / 20%);
  color: var(--navigation-foreground);
  font-size: 2rem;
  font-weight: 900;
}

.contact-detail-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.contact-detail-hero h2 {
  max-width: 100%;
  margin: 5px 0 0;
  color: #2f2e2b;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  line-height: 1.25;
}

.contact-detail-hero p {
  max-width: 100%;
  margin: 0;
  color: var(--navigation-color);
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.contact-detail-fields {
  margin: 0;
  border-top: 1px solid #deddd9;
}

.contact-detail-fields > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  padding: 17px 4px;
  border-bottom: 1px solid #deddd9;
}

.contact-detail-fields dt,
.contact-detail-fields dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.contact-detail-fields > div.is-private dd {
  color: #9b9892;
  font-style: italic;
}

.contact-detail-fields dt {
  color: #64615d;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-detail-fields dd {
  color: #302f2c;
  white-space: pre-line;
}

.contact-detail-fields a {
  color: var(--navigation-color);
  font-weight: 800;
  text-decoration: none;
}

.contact-detail-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding-top: 24px;
}

.contact-detail-actions[hidden] {
  display: none;
}

.contact-detail-actions button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
}

.contact-detail-edit-button {
  border: 1px solid var(--navigation-color);
  background: var(--navigation-color);
  color: var(--navigation-foreground);
}

.contact-detail-access-button {
  border: 1px solid #166b55;
  background: #ffffff;
  color: #166b55;
}

.contact-detail-delete-button {
  border: 1px solid #ba2e24;
  background: #ffffff;
  color: #a8291d;
}

.contact-detail-actions .lucide {
  width: 20px;
  height: 20px;
}

.adalo-header-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.adalo-header-icon svg {
  width: 36px;
  height: 36px;
  display: block;
  fill: currentColor;
}

.page-form-content,
.list-page-content {
  width: min(100%, 760px);
  margin: 0 auto;
}

.page-form-content {
  padding: 34px 22px 26px;
}

.informative-content {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 22px 42px;
}

.informative-side-navigation {
  position: fixed;
  top: 50%;
  z-index: 32;
  width: 46px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgb(0 0 0 / 10%);
  border-radius: 6px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 3px 10px rgb(0 0 0 / 18%);
  color: var(--primary);
}

.informative-side-navigation.is-previous {
  left: max(8px, calc((100vw - 860px) / 2));
}

.informative-side-navigation.is-next {
  right: max(8px, calc((100vw - 860px) / 2));
}

.informative-side-navigation:disabled {
  cursor: default;
  opacity: 0.24;
}

.informative-side-navigation .lucide {
  width: 34px;
  height: 34px;
  stroke-width: 3;
}

.informative-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  background: #ffffff;
}

.informative-heading-band {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: #ffffff;
  color: #123b34;
  text-align: left;
  flex-shrink: 0;
}

.informative-heading-band h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.informative-heading-band p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.informative-copy {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 18px 2px 30px;
  text-align: center;
}

.informative-copy h2 {
  max-width: 100%;
  margin: 0;
  color: #20201d;
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.informative-access-button {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
}

.informative-access-button:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.informative-access-button[aria-disabled="true"] {
  opacity: 0.68;
}

.informative-access-button .lucide {
  width: 64px;
  height: 64px;
  stroke-width: 2.6;
}

.informative-subtitle {
  max-width: 100%;
  margin: 0;
  color: var(--primary);
  font-size: 1.12rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.informative-body {
  width: min(100%, 680px);
  min-height: 0;
  margin-top: 18px;
  color: #585652;
  font-size: 1.04rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.informative-form-content {
  display: grid;
  gap: 22px;
}

.informative-form-image-preview-frame {
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f2f1;
  box-shadow: 0 3px 10px rgb(0 0 0 / 16%);
}

.informative-form-image-preview-frame img {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
}

.informative-viewers-content {
  padding: 24px 18px 34px;
}

.informative-viewers-heading {
  margin-bottom: 18px;
  text-align: center;
}

.informative-viewers-heading h2,
.informative-viewers-heading p {
  margin: 0;
}

.informative-viewers-heading h2 {
  color: var(--primary);
  font-size: 1.24rem;
  overflow-wrap: anywhere;
}

.informative-viewers-heading #informative-viewers-summary {
  margin-top: 7px;
  color: #66635f;
}

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

.announcement-empty-state {
  flex: 0 0 100%;
  margin: 18px 0;
}

.announcement-empty-create {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 3px 8px rgb(0 0 0 / 19%);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.announcement-empty-create svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.5;
  flex: 0 0 auto;
}

.announcement-empty-create:hover {
  box-shadow: 0 4px 10px rgb(0 0 0 / 23%);
}

.announcement-empty-create:disabled {
  color: #686763;
  box-shadow: 0 3px 8px rgb(0 0 0 / 19%);
  cursor: default;
  opacity: 1;
}

.announcement-empty-create:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.announcement-rail.is-empty {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: minmax(0, 1fr);
  margin-right: 0;
  overflow-x: hidden;
  padding-right: 2px;
}

.informative-viewer-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 9px rgb(0 0 0 / 16%);
  padding: 12px;
}

.informative-viewer-avatar {
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: var(--theme-color);
  color: var(--theme-foreground);
  font-weight: 900;
}

.informative-viewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.informative-viewer-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.informative-viewer-copy strong {
  color: #302f2c;
  overflow-wrap: anywhere;
}

.informative-viewer-copy span {
  color: #686560;
  font-size: 0.86rem;
}

.turnus-standard-form {
  display: grid;
  gap: 20px;
}

.admin-credentials-fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 16px;
}

.admin-credentials-fieldset legend {
  padding: 0 6px;
  color: #4b4946;
  font-size: 1.08rem;
  font-weight: 500;
}

.admin-credential-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.turnus-standard-form .admin-credential-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: #3f3d3a;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

.turnus-standard-form .admin-credential-option input {
  width: 21px;
  height: 21px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}

.turnus-standard-form .admin-credential-option:has(input:disabled) {
  cursor: default;
  opacity: 0.68;
}

.admin-credentials-fieldset .form-hint {
  display: block;
  margin-top: 10px;
}

.institution-role-other-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.institution-role-other-field span {
  color: #4b4946;
  font-size: 0.92rem;
  font-weight: 600;
}

.institution-role-other-field input {
  width: 100%;
  min-height: 46px;
}

.account-form-fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 16px;
}

.account-form-fieldset legend {
  padding: 0 6px;
  color: #4b4946;
  font-size: 1.08rem;
  font-weight: 600;
}

.turnus-standard-form .compact-check-option,
.compact-check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: #56534f;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.turnus-standard-form .compact-check-option input,
.compact-check-option input {
  width: 21px;
  height: 21px;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--navigation-color);
}

.account-address-grid,
.account-credential-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.account-address-grid .wide-field {
  grid-column: 1 / -1;
}

.turnus-standard-form .account-credential-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: #3f3d3a;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

.turnus-standard-form .account-credential-option input {
  width: 21px;
  height: 21px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}

.account-credentials-fieldset .form-hint {
  display: block;
  margin-top: 10px;
}

.account-photo-editor {
  display: grid;
  gap: 14px;
}

.account-photo-editor[hidden] {
  display: none;
}

.account-form-section-title {
  margin: 0;
  color: #4b4946;
  font-size: 1.08rem;
  font-weight: 600;
}

.account-profile-preview {
  min-height: 138px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / 19%);
}

.account-profile-preview canvas,
.account-profile-preview img {
  width: 112px;
  height: 112px;
  border-radius: 6px;
  background: #e9efed;
  object-fit: cover;
}

.account-profile-preview strong {
  min-width: 0;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-photo-adjustments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.turnus-standard-form .account-photo-adjustments .range-field {
  gap: 6px;
  font-size: 0.92rem;
}

.turnus-standard-form .account-photo-adjustments input[type="range"] {
  min-height: 24px;
  border: 0;
  padding: 0;
  box-shadow: none;
  accent-color: var(--primary);
}

@media (max-width: 899px) {
  .generic-sheet-desktop-only {
    display: none !important;
  }
}

.email-verification-field {
  display: grid;
  gap: 10px;
}

.turnus-standard-form label {
  display: grid;
  gap: 10px;
  color: #4b4946;
  font-size: 1.08rem;
  font-weight: 500;
}

.turnus-standard-form input,
.turnus-standard-form textarea,
.turnus-standard-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: white;
  color: #3e3c39;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 3%);
  outline: none;
  padding: 0 16px;
  font-size: 1.08rem;
}

.turnus-standard-form input {
  min-height: 56px;
}

.form-password-field {
  position: relative;
  width: 100%;
}

.turnus-standard-form .form-password-field input {
  padding-right: 62px;
}

.form-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--theme-color);
  transform: translateY(-50%);
}

.form-password-toggle .lucide {
  width: 23px;
  height: 23px;
  stroke-width: 2.4;
}

.turnus-standard-form select {
  min-height: 56px;
  appearance: auto;
}

.turnus-standard-form input[type="file"] {
  min-height: 0;
  padding: 14px;
}

.turnus-standard-form textarea {
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.35;
}

.turnus-standard-form input::placeholder,
.turnus-standard-form textarea::placeholder {
  color: #a8a8a8;
}

.turnus-standard-form input:focus,
.turnus-standard-form textarea:focus,
.turnus-standard-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.standard-submit-button {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--theme-color);
  color: var(--theme-foreground);
  box-shadow: 0 5px 12px rgb(0 0 0 / 18%);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.standard-submit-button:hover {
  background: var(--theme-color-dark);
}

.standard-submit-button:disabled,
.field-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.account-request-message {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.4;
}

.account-request-message[data-tone="error"] {
  border-color: rgb(180 35 24 / 35%);
  background: rgb(180 35 24 / 5%);
  color: var(--danger);
}

.account-request-message[data-tone="success"] {
  border-color: rgb(24 115 72 / 35%);
  background: rgb(24 115 72 / 5%);
  color: var(--success);
}

.field-action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 10px rgb(27 31 35 / 9%);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field-action-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--primary) 8%, white);
}

.verify-code-button {
  margin-top: -8px;
}

.readonly-email-line {
  margin: 0 0 20px;
  color: #4d4b48;
  font-size: 1rem;
  line-height: 1.35;
}

.readonly-email-line strong {
  color: var(--primary);
  overflow-wrap: anywhere;
}

.readonly-profile-grid {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.readonly-profile-grid .readonly-email-line {
  margin: 0;
}

.profile-edit-photo-panel {
  display: grid;
  justify-items: center;
  margin: 0 0 24px;
}

.profile-edit-photo-button {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 320px);
  border: 0;
  background: transparent;
  color: var(--primary);
  text-align: center;
}

.profile-edit-photo-frame {
  position: relative;
  width: clamp(180px, 56vw, 230px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 6px solid white;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-light-foreground);
  box-shadow: 0 9px 22px rgb(0 0 0 / 18%);
  font-size: 2.7rem;
  font-weight: 900;
}

.profile-edit-photo-pencil {
  position: absolute;
  right: -9px;
  bottom: -4px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary);
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 24%));
  z-index: 2;
}

.profile-edit-photo-pencil .lucide {
  width: 31px;
  height: 31px;
  stroke-width: 4;
}

.profile-edit-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 7px;
}

.profile-edit-photo-copy {
  display: grid;
  gap: 3px;
}

.profile-edit-photo-copy strong {
  color: var(--primary);
  font-size: 1.08rem;
  text-transform: uppercase;
}

.profile-edit-photo-copy span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.turnus-gallery-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f8fb;
  color: #35414d;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

.gallery-page-content {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 22px 16px 30px;
}

.gallery-account-header {
  display: grid;
  grid-template-columns: minmax(230px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.gallery-current-photo,
.gallery-control-panel,
.gallery-admin-panel,
.profile-gallery-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgb(27 31 35 / 10%);
}

.gallery-current-photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  min-height: 260px;
  color: white;
}

.gallery-current-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e9efed;
}

.gallery-current-photo img[hidden] + .gallery-current-initial,
.gallery-current-initial:not([hidden]) {
  display: grid;
}

.gallery-current-initial {
  position: absolute;
  inset: 12px;
  display: none;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary-light-foreground);
  font-size: 4rem;
  font-weight: 900;
}

.gallery-control-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.gallery-control-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.34rem;
  line-height: 1.18;
}

.gallery-control-panel p {
  margin: 0;
  color: var(--muted);
}

.gallery-photo-form,
.gallery-crop-editor {
  display: grid;
  gap: 12px;
}

.gallery-photo-form label,
.gallery-admin-select,
.gallery-create-user-form label {
  display: grid;
  gap: 8px;
  color: #35414d;
  font-weight: 800;
}

.gallery-photo-form input[type="file"],
.gallery-admin-select select,
.gallery-create-user-form input,
.gallery-create-user-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: white;
  color: #3e3c39;
  outline: none;
  padding: 12px 14px;
  font-size: 1rem;
}

.gallery-admin-select select,
.gallery-create-user-form input {
  min-height: 48px;
}

.gallery-create-user-form textarea {
  resize: vertical;
}

.gallery-crop-canvas {
  width: min(360px, 100%);
  height: auto;
  aspect-ratio: 1;
  background: #edf3f7;
  border: 1px solid var(--line);
}

.range-field {
  display: grid;
  gap: 4px;
}

.range-field input {
  width: 100%;
  accent-color: var(--primary);
}

.form-hint.success {
  color: var(--success);
}

.gallery-admin-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
}

.gallery-create-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.gallery-create-user-form .wide-field {
  grid-column: 1 / -1;
}

.gallery-section {
  display: grid;
  gap: 14px;
}

.gallery-count {
  align-self: end;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.gallery-search-box {
  width: 100%;
  margin-bottom: 2px;
  background: white;
}

.profile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}

.profile-gallery-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.profile-gallery-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #edf3f7;
}

.profile-gallery-photo-button img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile-gallery-info {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.profile-gallery-info h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.18;
}

.profile-gallery-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-gallery-actions {
  display: grid;
  gap: 7px;
}

.profile-gallery-actions button,
.profile-gallery-actions a {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-gallery-actions .secondary-modal-button,
.gallery-control-panel .secondary-modal-button,
.gallery-admin-panel .secondary-modal-button {
  border: 1px solid var(--primary);
  background: white;
  color: var(--primary);
}

.profile-gallery-actions .primary-modal-button {
  border: 0;
  background: var(--theme-color);
  color: var(--theme-foreground);
}

.danger-action-button {
  min-height: 42px;
  border: 1px solid #f0b7b3;
  border-radius: 8px;
  background: #fff;
  color: var(--danger);
  font-weight: 900;
  text-transform: uppercase;
}

.page-bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 35;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  display: grid;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navigation-color);
  color: var(--navigation-foreground);
  box-shadow: 0 -4px 16px rgb(0 0 0 / 15%);
}

.page-bottom-nav.two-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-bottom-nav.three-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-bottom-nav.four-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-bottom-nav.five-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.page-bottom-nav button {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.88rem;
}

.page-bottom-nav button[aria-current="page"] {
  background: rgb(0 0 0 / 8%);
}

.page-bottom-nav .lucide {
  width: 27px;
  height: 27px;
  stroke-width: 3;
}

.service-bottom-nav .adalo-nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.service-bottom-nav .adalo-nav-icon svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: currentColor;
}

.service-bottom-nav button {
  gap: 2px;
  white-space: nowrap;
}

.service-bottom-nav.five-actions button {
  font-size: 0.78rem;
}

.list-page-content {
  padding: 22px 12px 28px;
}

.service-schedule-content {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 34px 12px 28px;
}

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

.service-month-item {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  width: 100%;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: white;
  color: var(--primary);
  text-align: center;
  box-shadow: 0 3px 8px rgb(0 0 0 / 19%);
}

.service-month-item span {
  min-width: 0;
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.turnus-sheet-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f7f8f3;
  color: #282723;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

.generic-sheet-content {
  width: min(100%, 1220px);
  min-height: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  padding: 12px 10px 16px;
}

.generic-sheet-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
  padding: 12px;
}

.generic-sheet-toolbar:has(#generic-sheet-announce:not([hidden])) > .generic-sheet-heading > .eyebrow { padding-right:48px; }
#generic-sheet-announce { position:absolute; top:10px; right:12px; width:40px; height:40px; }
@media(min-width: 769px) {
 .generic-sheet-toolbar:has(#generic-sheet-announce:not([hidden])) > .sheet-tool-menu:first-of-type { margin-right:48px; }
}

#generic-sheet-edit-mode {
  justify-self: start;
  width: 152px;
  max-width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 13px;
}
.generic-sheet-agenda-edit-actions { display:inline-flex; align-items:center; gap:8px; }
.generic-sheet-toolbar:not(.is-editing-cells) .sheet-tool-menu { display:none !important; }
.generic-sheet-year-actions { display:flex; flex-wrap:nowrap; align-items:flex-end; gap:8px; }
.generic-sheet-year-actions .generic-sheet-year-field { margin:0; }
#generic-sheet-swap { width:130px; min-height:40px; }
.sheet-swap-panel { grid-column:1 / -1; border-top:1px solid var(--line); padding-top:10px; }
.sheet-swap-panel[hidden] { display:none; }
.sheet-swap-panel .sheet-swap-receipt { color:#15803d; font-weight:700; margin:12px 0 0; }
.sheet-swap-panel .sheet-swap-actions button.sheet-swap-recommended { background:#15803d; border-color:#15803d; color:#fff; }
.sheet-swap-panel .sheet-swap-actions button.sheet-swap-recommended:hover { background:#166534; border-color:#166534; color:#fff; }
.sheet-swap-panel > button { margin-right:8px; }
.sheet-swap-actions {display:grid;grid-template-columns:repeat(4,minmax(0,170px));gap:8px;margin-top:8px;}
.sheet-swap-actions > .field-action-button {box-sizing:border-box;width:100%;min-width:0;height:48px;min-height:48px;margin:0;padding:6px 8px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:1.2;}
.sheet-swap-actions > [hidden] {display:none;}
@media(max-width:760px){.sheet-swap-actions {grid-template-columns:repeat(2,minmax(0,1fr));}}
.sheet-swap-details { display:flex; flex-wrap:wrap; gap:8px 20px; }
.sheet-swap-details p { margin:4px 0; overflow-wrap:anywhere; }
.generic-sheet-cell.sheet-swap-first { outline:3px solid #087e68; outline-offset:-3px; }
.generic-sheet-cell.sheet-swap-second { outline:3px solid #c45113; outline-offset:-3px; }

#generic-sheet-embed-panel { width: 100%; background: white; }
.external-schedule-embed { display: block; width: 100%; height: 75dvh; min-height: 420px; border: 0; background: white; }
.service-schedule-content:has(.external-schedule-embed) { width: min(100%, 1320px); }
.service-month-list:has(.external-schedule-embed) > button { justify-self: start; }
#generic-sheet-embed-panel iframe { display: block; width: 100%; height: 75dvh; min-height: 420px; border: 0; background: white; }
.has-embedded-sheet .generic-sheet-zoom,
.has-embedded-sheet #generic-sheet-highlight-panel,
.has-embedded-sheet #generic-sheet-admin-actions,
.has-embedded-sheet #generic-sheet-selection-panel,
.has-embedded-sheet #generic-sheet-desktop-tools,
.has-embedded-sheet #generic-sheet-reference-bar,
.has-embedded-sheet #generic-sheet-top-scroll,
.has-embedded-sheet .generic-sheet-page-scroll-zone,
.has-embedded-sheet #generic-sheet-grid { display: none !important; }
.has-embedded-sheet .generic-sheet-scroll-frame { display: block; }
.has-embedded-sheet #generic-sheet-shell { width: 100%; overflow: hidden; scrollbar-gutter: auto; border: 0; border-radius: 0; box-shadow: none; cursor: default; }
.generic-sheet-tool-actions:not(:has(button, details)) { display: none; }

.sheet-tool-menu { position: relative; justify-self: start; min-width: 0; }
.sheet-tool-menu[hidden] { display:none !important; }
.sheet-tool-menu > summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 4px; color: var(--nav-color, #008577); background: white;
  font-size: 14px; font-weight: 600;
}
.sheet-tool-menu > summary::-webkit-details-marker { display: none; }
.sheet-tool-menu > summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.sheet-tool-menu > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.sheet-tool-menu[open] > summary { background: #edf5f3; }
.sheet-tool-menu-content {
  position: fixed; z-index: 1200; display: flex; flex-direction: column; gap: 4px;
  width: max-content; min-width: 210px; max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px); overflow: auto; padding: 8px;
  border: 1px solid var(--line); border-radius: 6px; background: white;
  box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
}
.sheet-tool-menu:not([open]) > .sheet-tool-menu-content { display: none; }
.sheet-tool-menu-content .field-action-button { justify-content: flex-start; width: 100%; }
.sheet-tool-menu-content label:has(#generic-sheet-insert-count) { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
#generic-sheet-insert-count { width: 72px; min-width: 0; height: 40px; padding: 6px; box-sizing: border-box; }
.multi-year-settings { min-width:0; display:grid; gap:12px; border:1px solid #c8d5d2; padding:12px; }
.multi-year-settings select { display:block; width:100%; min-height:42px; margin-top:6px; }
.multi-year-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); gap:8px; max-height:240px; overflow:auto; }
.multi-year-options label { display:flex; align-items:center; gap:8px; min-height:36px; }
.sheet-formula-catalog { width: min(420px, calc(100vw - 24px)); max-height: min(520px, 70vh); overflow:auto; }
.sheet-formula-catalog input { width:100%; min-height:40px; box-sizing:border-box; }
.sheet-formula-catalog section { padding:12px 0; border-bottom:1px solid #d8e3e1; }
.sheet-formula-catalog p { margin:6px 0; line-height:1.4; }
.sheet-formula-catalog code { display:block; overflow-wrap:anywhere; white-space:normal; }
#generic-sheet-show-formulas[aria-pressed="true"] { background:#e0f2ed; }
.sheet-tool-menu-content.generic-sheet-selection-actions { flex-direction: column; align-items: stretch; }
.sheet-tool-menu-content .generic-sheet-zoom { width: min(340px, calc(100vw - 44px)); }

.generic-sheet-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.generic-sheet-heading h2,
.generic-sheet-heading p,
.generic-sheet-status {
  margin: 0;
}

.generic-sheet-heading h2 {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.12;
}

.generic-sheet-heading p:not(.eyebrow),
.generic-sheet-status {
  color: #5b5955;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.generic-sheet-zoom {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(260px, 1fr) 58px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 14px;
}

.generic-sheet-zoom label {
  grid-column: 1 / -1;
  grid-row: 1;
  color: #4d4b48;
  font-size: 0.92rem;
  font-weight: 900;
}

.generic-sheet-zoom label strong {
  color: var(--primary);
}

.generic-sheet-zoom input {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-height: 54px;
  appearance: none;
  background: transparent;
  accent-color: var(--primary);
  cursor: pointer;
}

.generic-sheet-zoom input::-webkit-slider-runnable-track {
  height: 16px;
  border-radius: 999px;
  border: 1px solid #c1d3cf;
  background: #d7e4e1;
}

.generic-sheet-zoom input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  margin-top: -13px;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 2px 6px rgb(0 0 0 / 24%);
}

.generic-sheet-zoom input::-moz-range-track {
  height: 16px;
  border-radius: 999px;
  border: 1px solid #c1d3cf;
  background: #d7e4e1;
}

.generic-sheet-zoom input::-moz-range-thumb {
  width: 38px;
  height: 38px;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 2px 6px rgb(0 0 0 / 24%);
}

.generic-sheet-zoom button {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--primary);
}

.generic-sheet-zoom button .lucide {
  width: 27px;
  height: 27px;
  stroke-width: 3;
}

#generic-sheet-zoom-out {
  grid-column: 1;
  grid-row: 2;
}

#generic-sheet-zoom-in {
  grid-column: 3;
  grid-row: 2;
}

.generic-sheet-highlight-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(180px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e2e2dc;
  padding-top: 10px;
}

.generic-sheet-highlight-panel label {
  color: #4d4b48;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generic-sheet-highlight-panel select {
  min-height: 40px;
  min-width: 0;
  border: 1px solid #cfd7d4;
  border-radius: 6px;
  background: white;
  color: #24231f;
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
}

.generic-sheet-highlight-panel p {
  margin: 0;
  color: #5b5955;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.generic-sheet-admin-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #e2e2dc;
  padding-top: 10px;
}

.generic-sheet-admin-actions .field-action-button,
.generic-sheet-selection-actions .field-action-button {
  width: auto;
  min-width: 132px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: none;
}

.generic-sheet-admin-actions .lucide,
.generic-sheet-selection-actions .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.generic-sheet-download-actions {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.generic-sheet-download-actions .field-action-button {
  width: 100%;
  min-width: 0;
}

@media (min-width: 901px) {
  .generic-sheet-toolbar .generic-sheet-heading { grid-template-columns: 1fr auto; align-items: center; }
  .generic-sheet-toolbar .generic-sheet-heading > .eyebrow { grid-column: 1 / -1; }
  .generic-sheet-toolbar .generic-sheet-download-actions { flex: 0 1 auto; }
  .generic-sheet-toolbar #generic-sheet-view-agenda { justify-self: start; width: auto; }
  .generic-sheet-toolbar .generic-sheet-highlight-panel { grid-column: auto; border-top: 0; padding-top: 0; }
}

.generic-sheet-upload-card {
  width: min(100%, 520px);
}

.generic-sheet-upload-source-card {
  width: min(100%, 560px);
}

.generic-sheet-upload-source-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.generic-sheet-upload-source-button {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 36%, #c9cfcd);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  padding: 16px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.generic-sheet-upload-source-button:hover:not(:disabled),
.generic-sheet-upload-source-button:focus-visible {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, white);
}

.generic-sheet-upload-source-button:disabled {
  cursor: default;
  opacity: 0.48;
}

.generic-sheet-upload-source-button .lucide {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.generic-sheet-upload-file-name,
.generic-sheet-upload-tabs-summary,
.generic-sheet-upload-warning {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.generic-sheet-upload-file-name {
  border: 1px solid #d8dfdc;
  border-radius: 6px;
  background: #f5f8f7;
  color: #343330;
  padding: 12px 14px;
  font-weight: 800;
}

.generic-sheet-upload-tabs-summary {
  max-height: 180px;
  overflow: auto;
  border: 1px solid #d8dfdc;
  border-radius: 6px;
  background: white;
  color: #474541;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: pre-line;
}

.generic-sheet-upload-warning {
  color: #67645f;
  font-size: 0.9rem;
  font-weight: 650;
}

@media (max-width: 520px) {
  .generic-sheet-upload-source-actions {
    grid-template-columns: 1fr;
  }

  .generic-sheet-upload-source-button {
    min-height: 72px;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }
}

.generic-sheet-selection-panel {
  display: none !important;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e2e2dc;
  padding-top: 10px;
}

.generic-sheet-selection-panel p {
  margin: 0;
  color: #4d4b48;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.generic-sheet-selection-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.generic-sheet-selection-actions .field-action-button {
  min-height: 40px;
  width: auto;
  min-width: 132px;
  box-shadow: none;
}

.generic-sheet-selection-actions .danger-outline-button {
  border-color: #b43a31;
  color: #9f2f27;
}

.generic-sheet-selection-actions .danger-outline-button:not(:disabled):hover {
  background: #fff3f1;
}

.generic-sheet-print-heading {
  display: none;
}

.generic-sheet-desktop-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e2e2dc;
  padding-top: 10px;
}

.generic-sheet-tool-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: #4d4b48;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.generic-sheet-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.generic-sheet-color-swatch {
  width: 32px;
  height: 32px;
  border: 2px solid white;
  border-radius: 6px;
  background: var(--swatch-color, #fff);
  box-shadow: 0 0 0 1px #cfcfcf, 0 2px 5px rgb(0 0 0 / 16%);
}

.generic-sheet-color-swatch:disabled {
  opacity: 0.45;
}

.generic-sheet-color-swatch.is-clear {
  background:
    linear-gradient(135deg, transparent 0 45%, #b42318 46% 54%, transparent 55%),
    #fff;
}

.generic-sheet-format-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.generic-sheet-format-controls label {
  display: grid;
  gap: 4px;
  color: #4d4b48;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generic-sheet-format-controls select,
.generic-sheet-format-controls input {
  min-height: 34px;
  border: 1px solid #cfd7d4;
  border-radius: 6px;
  background: white;
  color: #24231f;
  padding: 0 9px;
  font: inherit;
  font-weight: 800;
}

.generic-sheet-format-controls select {
  width: 152px;
}

.generic-sheet-format-controls input {
  width: 74px;
}

.generic-sheet-format-controls input[type="color"] {
  width: 46px;
  min-width: 46px;
  padding: 3px;
}

.generic-sheet-font-color-label,
.generic-sheet-color-label {
  min-width: 74px;
}

.generic-sheet-color-picker {
  width: 46px;
  height: 34px;
  border: 1px solid #9caaa6;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--swatch-color, #fff);
}

.generic-sheet-color-picker:disabled { opacity: 0.45; }
.generic-sheet-color-picker:focus-visible,
.generic-sheet-color-palette button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
dialog.generic-sheet-color-dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; border: 0; border-radius: 8px; }
.generic-sheet-color-dialog:not([open]) { display: none; }
.generic-sheet-color-dialog::backdrop { background: transparent; backdrop-filter: none; }
.generic-sheet-context-tools {
  position: fixed;
  z-index: 1400;
  width: min(620px, calc(100vw - 16px));
  max-height: calc(100dvh - 168px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid #b6ceca;
  border-radius: 8px;
  background: white;
  box-shadow: 0 6px 24px #0003;
}
.generic-sheet-context-tools[hidden] { display: none; }
.generic-sheet-context-tools > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.generic-sheet-context-tools .generic-sheet-selection-panel { grid-template-columns: 1fr; margin-top: 12px; }
.generic-sheet-context-tools .generic-sheet-selection-actions { justify-content: flex-start; }
.generic-sheet-context-tools .generic-sheet-desktop-tools { margin-top: 12px; }
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-admin-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-download-actions,
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-agenda-edit-actions { display:contents; }
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-admin-actions > .sheet-tool-menu,
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-download-actions .field-action-button { width:100%; min-width:0; max-width:none; }
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-admin-actions :is(summary,.field-action-button) { box-sizing:border-box; height:40px; min-height:40px; max-height:40px; padding:4px 8px; line-height:15px; justify-content:center; align-items:center; font-size:12px; }
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-desktop-tools { grid-template-columns:minmax(0,1fr); gap:6px; margin-top:8px; padding-top:8px; }
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-tool-row { gap:6px; align-items:end; }
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-tool-row :is(button,input,select) { box-sizing:border-box; height:34px; min-height:34px; }
#generic-spreadsheet-page .generic-sheet-context-tools .generic-sheet-tool-row button { width:34px; min-width:34px; padding:5px; }
@media print { .generic-sheet-context-tools { display: none; } }
.generic-sheet-color-dialog h2 { font-size: 1.15rem; margin: 0; }
.generic-sheet-color-dialog .form-hint { margin: 0; }
.generic-sheet-color-palette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.generic-sheet-color-palette button { aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid #9caaa6; border-radius: 4px; background: var(--swatch-color); }
.generic-sheet-color-palette button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #fff; outline: 2px solid var(--primary); }
.generic-sheet-custom-color { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.generic-sheet-custom-color label { min-width: 0; }
.generic-sheet-custom-color input { width: 100%; min-width: 0; height: 42px; }
.generic-sheet-custom-color input[type="color"] { padding: 3px; }
.generic-sheet-color-dialog .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.generic-sheet-format-buttons {
  display: flex;
  gap: 5px;
}

.generic-sheet-format-buttons button {
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd7d4;
  border-radius: 6px;
  background: white;
  color: var(--primary);
}

.generic-sheet-format-buttons button:disabled {
  opacity: 0.45;
}

.generic-sheet-format-buttons button.is-active {
  border-color: var(--theme-border);
  background: var(--theme-color);
  color: var(--theme-foreground);
}

.generic-sheet-format-buttons button .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.generic-sheet-bold-letter,
.generic-sheet-style-letter {
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.generic-sheet-style-letter.is-underlined {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.generic-sheet-tool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.generic-sheet-tool-actions .field-action-button {
  min-height: 40px;
  width: auto;
  min-width: 120px;
  box-shadow: none;
}

.generic-sheet-tabs-toolbar {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.generic-sheet-tabs {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #d7e4e1;
}

.generic-sheet-tab {
  --sheet-tab-color: var(--primary);
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--sheet-tab-color) 74%, #777);
  border-bottom: 4px solid var(--sheet-tab-color);
  border-radius: 6px 6px 0 0;
  background: color-mix(in srgb, var(--sheet-tab-color) 11%, white);
  color: #302f2c;
  padding: 0 14px 1px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.generic-sheet-tab[aria-selected="true"] {
  background: var(--sheet-tab-color);
  border-color: var(--sheet-tab-color);
  color: white;
}

.generic-sheet-tab-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
  padding-bottom: 2px;
}

.generic-sheet-tab-actions button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #bfd0cc;
  border-radius: 6px;
  background: white;
  color: var(--primary);
  cursor: pointer;
}

.generic-sheet-tab-actions button:disabled {
  cursor: default;
  opacity: 0.38;
}

.generic-sheet-tab-actions .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.generic-sheet-tab-color-field input[type="color"] {
  width: 100%;
  min-height: 52px;
  padding: 5px;
}

.generic-sheet-top-scroll {
  min-height: 18px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #cfd7d4;
  border-radius: 6px;
  background: #eef5f3;
  scrollbar-color: var(--primary) #d7e4e1;
  scrollbar-width: thin;
}

.generic-sheet-top-scroll::-webkit-scrollbar {
  height: 14px;
}

.generic-sheet-top-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #d7e4e1;
}

.generic-sheet-top-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #d7e4e1;
  border-radius: 999px;
  background: var(--primary);
}

.generic-sheet-top-scroll-spacer {
  height: 1px;
}

.generic-sheet-scroll-frame {
  min-width: 0;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
  overflow: visible;
}

.generic-sheet-page-scroll-zone {
  min-height: 100%;
  border: 1px solid #d9e2df;
  border-radius: 6px 0 0 6px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 10%, transparent), rgb(255 255 255 / 70%)),
    #f6faf8;
  touch-action: pan-y;
}

.generic-sheet-shell {
  min-height: 0;
  height: auto;
  min-width: 0;
  flex: 0 0 auto;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #cfcfcf;
  border-radius: 0 6px 6px 0;
  background: white;
  box-shadow: 0 8px 20px rgb(0 0 0 / 11%);
  overscroll-behavior-x: contain;
  cursor: grab;
  scrollbar-gutter: stable;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.generic-sheet-shell.is-panning {
  cursor: grabbing;
}

.generic-sheet-shell.has-frozen-rows { max-height: calc(100dvh - 180px); overflow-y: auto; }
.generic-sheet-shell.has-frozen-panes { isolation: isolate; }
.generic-sheet-table .sheet-frozen-cell { background-color: #fff; background-clip: border-box; }
@media screen {
 .generic-sheet-table .sheet-frozen-bottom { border-bottom: 3px solid #737b83 !important; }
 .generic-sheet-table .sheet-frozen-right { border-right: 3px solid #737b83 !important; }
}
@media print { .generic-sheet-shell.has-frozen-rows { max-height:none;overflow:visible; } .generic-sheet-table .sheet-frozen-cell { position:static !important; } }

.generic-sheet-shell.is-selecting-cells .generic-sheet-cell {
  cursor: crosshair;
  user-select: none;
}

.generic-sheet-shell.is-filling-cells,
.generic-sheet-shell.is-filling-cells .generic-sheet-cell {
  cursor: crosshair;
  user-select: none;
}

.generic-sheet-grid {
  position: relative;
  width: max-content;
  min-width: 100%;
}

.generic-sheet-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #222;
  font-size: calc(0.86rem * var(--sheet-zoom, 1));
  line-height: 1.18;
}

.generic-sheet-table th,
.generic-sheet-table td {
  position: relative;
  box-sizing: border-box;
  border-right: 1px solid #c8c8c8;
  border-bottom: 1px solid #c8c8c8;
  background: white;
  padding: calc(5px * var(--sheet-zoom, 1)) calc(7px * var(--sheet-zoom, 1));
  overflow: hidden;
  text-align: left;
  vertical-align: top;
  white-space: pre-wrap;
}

.generic-sheet-add-columns-header,
.generic-sheet-add-columns-cell,
.generic-sheet-add-rows-row td,
.generic-sheet-add-rows-marker {
  background: #f4f8f7;
}

.generic-sheet-add-columns-header {
  min-width: calc(132px * var(--sheet-zoom));
  padding: 4px;
}

.generic-sheet-table td.generic-sheet-add-columns-cell {
  border: 0;
}

.generic-sheet-add-rows-row td {
  height: calc(48px * var(--sheet-zoom));
  padding: 5px 10px;
  text-align: left;
  vertical-align: middle;
}

.generic-sheet-add-rows-marker {
  color: var(--primary);
  font-weight: 800;
}

.generic-sheet-extent-button {
  width: 100%;
  min-width: 0;
  min-height: calc(34px * var(--sheet-zoom));
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: white;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.generic-sheet-extent-button:not(:disabled):hover {
  background: #e7f5f2;
}

.generic-sheet-extent-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.generic-sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ededed;
  color: #4f4d49;
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
  overflow: visible;
}

.generic-sheet-table th[role="button"] {
  cursor: pointer;
  user-select: none;
}

.generic-sheet-corner.is-selected,
.generic-sheet-column-header.is-selected,
.generic-sheet-row-header.is-selected {
  background: var(--theme-color);
  color: var(--theme-foreground);
  box-shadow: inset 0 0 0 2px var(--theme-border);
}

.generic-sheet-corner {
  left: 0;
  z-index: 7;
}

.generic-sheet-row-header {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #ededed;
  color: #4f4d49;
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
  overflow: visible !important;
}

.generic-sheet-unhide-button {
  position: absolute;
  z-index: 12;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--theme-color);
  box-shadow: 0 2px 6px rgb(0 0 0 / 24%);
  color: var(--theme-foreground);
  padding: 0;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.generic-sheet-unhide-button.is-column {
  top: 50%;
  transform: translateY(-50%);
}

.generic-sheet-unhide-button.is-column.is-before {
  left: -12px;
}

.generic-sheet-unhide-button.is-column.is-after {
  right: -12px;
}

.generic-sheet-unhide-button.is-row {
  left: 50%;
  transform: translateX(-50%);
}

.generic-sheet-unhide-button.is-row.is-before {
  top: -12px;
}

.generic-sheet-unhide-button.is-row.is-after {
  bottom: -12px;
}

.generic-sheet-resize-card {
  max-width: 420px;
}

.generic-sheet-cell {
  min-width: 0;
  background: #fff;
  cursor: default;
}

.generic-sheet-cell[contenteditable]:not([contenteditable="false"]) {
  cursor: text;
}

.generic-sheet-cell[contenteditable]:not([contenteditable="false"]):focus {
  z-index: 3;
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px white;
}

.generic-sheet-cell.is-cell-selected {
  z-index: 2;
  outline: 0;
  box-shadow: inset 0 0 0 2px rgb(42 109 244 / 42%);
}

.generic-sheet-copy-outline {
  position: absolute;
  z-index: 14;
  box-sizing: border-box;
  border: 2px dashed #2a6df4;
  pointer-events: none;
}

.generic-sheet-cell.is-fill-preview {
  background-image: linear-gradient(rgb(42 109 244 / 10%), rgb(42 109 244 / 10%));
  box-shadow: inset 0 0 0 2px rgb(42 109 244 / 58%);
}

.generic-sheet-fill-handle {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 10;
  width: 12px;
  height: 12px;
  min-width: 0;
  min-height: 0;
  border: 2px solid white;
  border-radius: 2px;
  background: #2a6df4;
  box-shadow: 0 0 0 1px #194aa8;
  padding: 0;
  cursor: crosshair;
  touch-action: none;
}

.generic-sheet-cell.is-user-highlighted {
  background-color: #fff !important;
  color: #ff0000 !important;
  font-weight: 900 !important;
}

.generic-sheet-cell.is-outside-month,
.generic-sheet-cell.is-outside-month .generic-sheet-schedule-control {
  background-color: #ededed !important;
  color: #ededed !important;
}

.generic-sheet-cell.is-merged {
  text-align: center;
  vertical-align: middle;
}

.generic-sheet-cell[aria-readonly="true"] {
  background: #fcfcfb;
  color: #3f3d3a;
}

.page-search-box {
  min-height: 56px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  border: 1px solid #d2d2d2;
  border-radius: 5px;
  background: white;
  box-shadow: 0 3px 8px rgb(0 0 0 / 16%);
  color: #8f8d89;
  padding: 0 12px;
}

.page-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2f2e2b;
  font-size: 1.18rem;
}

.page-search-box input::placeholder {
  color: #aaa7a1;
}

.admin-menu .feature-title {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.admin-menu .feature-item:focus-visible {
  outline: 3px solid var(--navigation-color);
  outline-offset: 3px;
}

#admin-list-title {
  margin: 0 0 20px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.profile-status-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-status-options button {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #c8362d;
  color: #ffffff;
  font: inherit;
  font-weight: 850;
}

.profile-status-options button[data-profile-status="trabalhando"] {
  background: #168552;
}

.profile-status-options button[data-profile-status="aniversario"] {
  background: #56bde8;
  color: #12384b;
}

.profile-status-options button[aria-checked="true"] {
  border-color: #272623;
  box-shadow: 0 0 0 2px #ffffff inset;
}

.deletion-reason-options {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
}

.deletion-reason-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.deletion-reason-options input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #a62d24;
}

.permanent-delete-warning {
  margin: 0;
  padding: 14px;
  border: 1px solid #e0b3ae;
  border-radius: 6px;
  background: #fff4f2;
  color: #84281f;
  line-height: 1.5;
}

.birthday-dialog {
  justify-items: center;
  text-align: center;
}

.birthday-dialog > .lucide {
  width: 58px;
  height: 58px;
  color: #168db8;
}

.birthday-dialog h2,
.birthday-dialog p {
  margin: 0;
}

.birthday-dialog h2 {
  color: #168db8;
}

.profile-completeness-dialog-message,
.contact-export-dialog-message {
  margin: 0;
  color: #575550;
  line-height: 1.55;
}

.contact-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-export-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.contact-export-actions .lucide {
  width: 20px;
  height: 20px;
}

.contact-import-source-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-import-source-actions button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.contact-import-source-actions .lucide {
  width: 21px;
  height: 21px;
}

.contact-import-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--navigation-color) 28%, #d9d9d9);
  border-radius: 6px;
  background: color-mix(in srgb, var(--navigation-color) 6%, #ffffff);
}

.contact-import-preview[hidden] {
  display: none;
}

.contact-import-preview > div {
  display: grid;
  gap: 4px;
}

.contact-import-preview strong,
.contact-import-preview span,
.contact-import-preview p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-import-preview strong {
  color: #343330;
}

.contact-import-preview span,
.contact-import-preview p,
.contact-import-help {
  margin: 0;
  color: #686560;
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-import-confirm-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-page-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
}

.reg-communications-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-first-access-dialog {
  width: min(100%, 620px);
  overflow-y: auto;
}

.admin-page-toolbar p {
  margin: 0;
  color: #5b5955;
  font-size: 0.92rem;
  font-weight: 700;
}

.page-refresh-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.page-refresh-button .lucide {
  width: 17px;
  height: 17px;
}

.modal-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(16 20 18 / 48%);
  backdrop-filter: blur(5px);
}

.modal-card {
  width: min(100%, 680px);
  max-height: min(92vh, 860px);
  display: grid;
  gap: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.request-card {
  width: min(100%, 760px);
}

.modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: start;
  gap: 16px;
}

.modal-eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 950;
  text-transform: uppercase;
}

.modal-close {
  width: 42px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

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

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

.request-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.request-form label span {
  color: var(--primary);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.request-form input,
.request-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  outline: none;
  padding: 12px 13px;
}

.request-form input {
  min-height: 46px;
}

.request-form textarea {
  resize: vertical;
  line-height: 1.35;
}

.request-form input:focus,
.request-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.wide-field,
.modal-actions,
.recovery-result {
  grid-column: 1 / -1;
}

.form-hint {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.form-hint[data-tone="success"] {
  color: var(--success);
}

.form-hint[data-tone="error"],
.recovery-result[data-tone="error"] {
  color: var(--danger);
}

.recovery-result {
  margin: 0;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  color: var(--primary-dark);
  font-weight: 750;
  line-height: 1.35;
}

.modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-top: 4px;
}

.primary-modal-button,
.secondary-modal-button {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.informative-admin-dialog,
.informative-delete-dialog {
  width: min(100%, 480px);
}

.informative-admin-dialog-name,
.informative-delete-message {
  margin: 0;
  color: #514f4b;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.informative-admin-dialog-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.informative-admin-dialog-actions button {
  min-width: 0;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
}

.informative-admin-dialog-actions .lucide {
  width: 20px;
  height: 20px;
}

.danger-confirm-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #d92d20;
  color: white;
  font-weight: 900;
}

.informative-required-modal {
  z-index: 110;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  background: rgb(22 24 23 / 52%);
  backdrop-filter: blur(2px);
}

.informative-required-modal.is-admin-confirmable {
  cursor: pointer;
}

.informative-required-modal.is-admin-confirmable .informative-required-card {
  cursor: default;
}

.informative-required-card {
  width: min(100%, 520px);
  max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
  display: grid;
  gap: 0;
  overflow: auto;
  border: 1px solid #e2e2df;
  border-radius: 6px;
  background: white;
  box-shadow: 0 12px 36px rgb(0 0 0 / 32%);
}

.informative-required-media {
  position: relative;
  min-height: 240px;
  background: #eceeed;
}

.informative-required-media img {
  width: 100%;
  max-height: min(52dvh, 520px);
  display: block;
  object-fit: contain;
  background: white;
}

.informative-required-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.informative-required-actions button {
  min-width: 88px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  box-shadow: 0 3px 8px rgb(0 0 0 / 22%);
  color: white;
  font-size: 1rem;
  font-weight: 900;
}

.informative-required-logout {
  background: #e33c32;
}

.informative-required-ok {
  background: #28cf56;
}

.informative-required-ok:disabled {
  background: #9aa09c;
  cursor: default;
  opacity: 0.9;
}

.informative-required-actions .lucide {
  width: 25px;
  height: 25px;
}

.informative-required-copy {
  display: grid;
  gap: 14px;
  padding: 20px 24px 16px;
  text-align: center;
}

.informative-required-copy h2,
.informative-required-copy p,
.informative-required-copy div {
  margin: 0;
  overflow-wrap: anywhere;
}

.informative-required-copy h2 {
  color: var(--primary);
  font-size: 1.36rem;
}

.informative-required-copy p {
  color: var(--primary);
  font-size: 1rem;
}

.informative-required-copy div {
  color: #55524e;
  line-height: 1.45;
  white-space: pre-line;
}

.informative-required-status {
  min-height: 0;
  margin: -8px 24px 20px;
  text-align: center;
}

.informative-required-status[data-tone="error"] {
  color: var(--danger);
}

.primary-modal-button {
  border: 0;
  background: var(--theme-color);
  color: var(--theme-foreground);
}

.secondary-modal-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--primary);
}

.danger-action-button {
  min-height: 46px;
  border: 1px solid rgb(180 35 24 / 34%);
  border-radius: 8px;
  background: white;
  color: var(--danger);
  font-weight: 900;
  letter-spacing: 0;
}

.admin-request-list {
  display: grid;
  gap: 11px;
}

.admin-request-card {
  min-height: 120px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  border: 1px solid #efefed;
  border-radius: 5px;
  background: white;
  box-shadow: 0 4px 10px rgb(0 0 0 / 13%);
  padding: 14px;
}

.admin-avatar {
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--theme-color);
  color: var(--theme-foreground);
  font-size: 1.18rem;
  font-weight: 950;
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-request-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-request-card h3 {
  margin: 0;
  color: #4a4946;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.18;
  text-transform: uppercase;
}

.admin-request-subtitle {
  margin: 0;
  color: #4d4b48;
  font-size: 1rem;
  line-height: 1.2;
}

.admin-request-meta {
  display: grid;
  gap: 2px;
  color: #5d5b57;
  font-size: 0.92rem;
  line-height: 1.22;
}

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

.admin-card-actions .primary-modal-button,
.admin-card-actions .secondary-modal-button {
  min-height: 38px;
  font-size: 0.84rem;
}

.admin-card-actions .danger-action-button {
  min-height: 38px;
  font-size: 0.84rem;
}

.admin-card-actions:has(button:only-child) {
  grid-template-columns: 1fr;
}

.admin-card-actions:has(select) {
  grid-template-columns: 1fr;
}

.admin-status-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  padding: 0 10px;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-map-link {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.admin-map-link:hover {
  text-decoration: underline;
}

.procedure-report-page {
  background: #ffffff;
}

.service-swap-page {
  background: #f8f8f6;
}

.service-swap-content {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  margin-inline: auto;
}

.service-swap-description,
.service-swap-intro,
.service-swap-form {
  border: 1px solid #deded9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgb(0 0 0 / 10%);
}

.service-swap-description {
  display: grid;
  gap: 12px;
  border-left: 4px solid var(--theme-color);
  padding: 16px 18px 14px;
  color: #55534f;
}

.service-swap-description-copy {
  position: relative;
  overflow: visible;
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-swap-description-title {
  margin: 0;
  color: var(--theme-color-dark);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.service-swap-description-copy p {
  margin: 0;
  text-align: justify;
}

.service-swap-description-copy p + p {
  margin-top: 12px;
}

.service-swap-description.is-collapsed .service-swap-description-copy {
  max-height: 112px;
  overflow: hidden;
}

.service-swap-description.is-collapsed .service-swap-description-copy::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
}

.service-swap-description-toggle {
  width: max-content;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--theme-color) 35%, #d7d7d2);
  border-radius: 6px;
  background: color-mix(in srgb, var(--theme-color) 8%, #ffffff);
  color: var(--theme-color-dark);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-swap-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.service-swap-intro > div:first-child,
.service-swap-user-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.service-swap-intro span {
  color: #716f6b;
  font-size: 0.84rem;
}

.service-swap-intro strong {
  color: #343330;
  overflow-wrap: anywhere;
}

.service-swap-user-meta {
  justify-items: end;
  text-align: right;
}

.service-swap-user-meta span:first-child {
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 900;
}

.service-swap-form {
  padding: 20px;
}

.turnus-standard-form .service-swap-double-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-color) 35%, #d9d9d9);
  border-radius: 6px;
  background: color-mix(in srgb, var(--theme-color) 7%, #ffffff);
  padding: 14px;
}

.service-swap-double-toggle label {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.turnus-standard-form .service-swap-double-toggle label input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--theme-color);
}

.service-swap-info-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--theme-color);
  border-radius: 50%;
  background: #ffffff;
  color: var(--theme-color);
  font: 900 1rem/1 Arial, sans-serif;
}

.service-swap-double-info {
  border: 1px solid color-mix(in srgb, var(--theme-color) 32%, #d9d9d9);
  border-left: 4px solid var(--theme-color);
  border-radius: 6px;
  background: color-mix(in srgb, var(--theme-color) 5%, #ffffff);
  color: #3f4542;
  padding: 13px 14px;
  font-size: 0.86rem;
  line-height: 1.42;
}

.service-swap-double-info p {
  margin: 7px 0 0;
}

.service-swap-double-toggle span {
  display: grid;
  gap: 4px;
}

.service-swap-double-toggle small {
  color: #6c6a66;
  font-size: 0.82rem;
  line-height: 1.35;
}

.service-swap-fields,
.service-swap-double-fields,
.service-swap-mode-fields {
  display: grid;
  gap: 18px;
}

.service-swap-mode-fields {
  border-top: 1px solid #e4e4e0;
  padding-top: 18px;
}

.service-swap-fields {
  border-top: 1px solid #e4e4e0;
  padding-top: 18px;
}

.service-swap-fields h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.02rem;
  text-transform: uppercase;
}

.service-swap-section-description {
  margin: -8px 0 0;
  color: #66645f;
  font-size: 0.84rem;
  line-height: 1.45;
}

.turnus-standard-form label .service-swap-field-description {
  color: #716f6a;
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.4;
}

.service-swap-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-swap-status {
  margin: 0;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #f7f7f5;
  color: #66645f;
  padding: 13px 14px;
  line-height: 1.4;
}

.service-swap-status[data-tone="success"] {
  border-color: #9ccdbb;
  background: #eef8f3;
  color: #126348;
}

.service-swap-status[data-tone="error"] {
  border-color: #e0aaa5;
  background: #fff3f2;
  color: #a3261d;
}

.service-swap-lookup-status {
  margin: -4px 0 0;
  border-left: 3px solid color-mix(in srgb, var(--theme-color) 55%, #b8b8b4);
  background: color-mix(in srgb, var(--theme-color) 5%, #ffffff);
  color: #686661;
  padding: 9px 11px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.service-swap-lookup-status[data-tone="success"] {
  border-left-color: #16805c;
  color: #126348;
}

.service-swap-lookup-status[data-tone="error"] {
  border-left-color: #bd3d33;
  background: #fff7f6;
  color: #9d2d24;
}

.service-swap-field-warning,
.service-swap-auto-info {
  white-space: pre-line;
}

.service-swap-field-warning {
  color: #a3261d;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.38;
}

.service-swap-auto-info {
  margin: -5px 0 0;
  border-radius: 5px;
  background: #eef8f3;
  color: #126348;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.42;
}

.service-swap-auto-info[data-tone="error"] {
  background: #fff3f2;
  color: #9d2d24;
}

.service-swap-status > strong,
.service-swap-status > p {
  display: block;
  margin: 0;
}

.service-swap-status > p {
  margin-top: 5px;
}

.service-swap-analysis-card {
  margin-top: 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: rgb(255 255 255 / 65%);
  padding: 12px;
}

.service-swap-analysis-card h3,
.service-swap-analysis-card p {
  margin: 0;
}

.service-swap-analysis-card h3 {
  margin-bottom: 7px;
  font-size: 0.95rem;
}

.service-swap-analysis-card p {
  margin-top: 4px;
}

.service-swap-analysis-card ul {
  margin: 9px 0 0;
  padding-left: 20px;
}

.service-swap-analysis-card li + li {
  margin-top: 5px;
}

.service-swap-whatsapp-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.service-swap-whatsapp-action,
.service-swap-whatsapp-primary,
.service-swap-whatsapp-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.service-swap-whatsapp-action,
.service-swap-whatsapp-primary {
  border: 1px solid #16865b;
  background: #16865b;
  color: #ffffff;
}

.service-swap-whatsapp-action svg {
  width: 20px;
  height: 20px;
}

.service-swap-whatsapp-secondary {
  border: 1px solid color-mix(in srgb, var(--theme-color) 45%, #cfcfc9);
  background: #ffffff;
  color: var(--theme-color-dark);
}

.service-swap-whatsapp-preview {
  border: 1px solid #a7cdbf;
  border-radius: 6px;
  background: #f1f8f5;
  padding: 15px;
  color: #2f423b;
}

.service-swap-whatsapp-preview > strong {
  display: block;
  margin-bottom: 10px;
  color: #155f45;
}

.service-swap-whatsapp-preview pre {
  max-height: 300px;
  overflow: auto;
  margin: 0;
  border: 1px solid #d4e4de;
  border-radius: 5px;
  background: #ffffff;
  padding: 12px;
  color: #3f403d;
  font: inherit;
  font-size: 0.83rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.service-swap-whatsapp-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.service-swap-whatsapp-editor {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.service-swap-whatsapp-editor[hidden] {
  display: none;
}

@media (max-width: 620px) {
  .service-swap-location-grid {
    grid-template-columns: 1fr;
  }

  .service-swap-intro {
    align-items: flex-start;
  }

  .service-swap-whatsapp-preview-actions {
    grid-template-columns: 1fr;
  }
}

.procedure-report-content {
  display: grid;
  gap: 22px;
}

.procedure-instructions,
.procedure-report-form {
  border: 1px solid #ededeb;
  border-radius: 6px;
  background: white;
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
  padding: 18px;
}

.procedure-instructions {
  display: grid;
  gap: 7px;
  line-height: 1.28;
}

.procedure-instructions strong {
  color: var(--danger);
  text-align: center;
  font-size: 1.05rem;
}

.procedure-instructions p {
  margin: 0;
  color: #4d4b48;
  font-size: 0.92rem;
}

.procedure-report-form h2 {
  margin: 0;
  color: #4a4946;
  font-size: 1.22rem;
  line-height: 1.22;
}

.procedure-message,
.procedure-location {
  margin: 0;
  font-weight: 900;
  line-height: 1.35;
}

.procedure-message {
  color: var(--success);
}

.procedure-message[data-tone="error"] {
  color: var(--danger);
}

.procedure-location {
  color: var(--danger);
  overflow-wrap: anywhere;
}

.procedure-location a {
  color: #1267d8;
  text-decoration: underline;
}

.procedure-whatsapp-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.procedure-email-input {
  margin-top: 18px;
}

.procedure-email-button {
  min-height: 48px;
}

.status-message {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 18px);
  z-index: 70;
  width: min(640px, calc(100% - 28px));
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 30px rgb(27 31 35 / 18%);
  transform: translateX(-50%);
}

.status-message[data-tone="error"] {
  border-color: rgb(180 35 24 / 35%);
  color: var(--danger);
}

.status-message[data-tone="success"] {
  border-color: rgb(24 115 72 / 35%);
  color: var(--success);
}

body[data-screen="login"] .status-message,
body[data-screen="reset-password"] .status-message {
  bottom: 22px;
}

body[data-screen="admin-approval"] .status-message,
body[data-screen="admin-edit"] .status-message,
body[data-screen="profile-edit"] .status-message,
body[data-screen="profile-gallery"] .status-message,
body[data-screen="procedure-report"] .status-message,
body[data-screen="informative"] .status-message,
body[data-screen="informative-form"] .status-message,
body[data-screen="informative-viewers"] .status-message,
body[data-screen="generic-spreadsheet"] .status-message {
  bottom: calc(var(--nav-height) + 16px);
}

@media (min-width: 920px) {
  .turnus-app {
    padding-bottom: 0;
  }

  .app-header {
    height: 78px;
  }

  .home-content {
    padding-bottom: 106px;
  }

  .profile-card {
    grid-template-columns: 130px minmax(0, 1fr) minmax(148px, auto);
  }

  .announcement-rail {
    grid-auto-columns: minmax(360px, 468px);
  }

  .bottom-nav {
    left: 50%;
    bottom: 20px;
    width: min(560px, calc(100% - 32px));
    border-radius: 8px;
    overflow: hidden;
    transform: translateX(-50%);
  }
}

@media (max-width: 820px) {
  .login-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 20px 0;
  }

  .gallery-account-header {
    grid-template-columns: 1fr;
  }

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

  .brand-panel {
    min-height: 330px;
  }

  .brand-panel h1 {
    max-width: 11ch;
    font-size: 3.5rem;
  }
}

@media (max-width: 520px) {
  :root {
    --nav-height: 70px;
  }

  body[data-screen="login"],
  body[data-screen="reset-password"] {
    overflow: hidden;
    background: #ffffff;
  }

  body[data-screen="access-requirements"] {
    overflow: auto;
    background: #f4f7f5;
  }

  body[data-screen="access-requirements"] .access-requirements-screen {
    min-height: 100dvh;
    align-content: start;
    padding: 12px 10px max(18px, env(safe-area-inset-bottom));
  }

  .access-requirements-card {
    width: 100%;
    padding: 24px 18px 16px;
  }

  .access-requirements-card .login-wordmark {
    margin-bottom: 14px;
  }

  .access-requirement-section {
    padding: 18px 0;
  }

  body[data-screen="login"] .login-screen,
  body[data-screen="reset-password"] .password-reset-screen {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    align-content: center;
    gap: 8px;
    padding: 10px 20px max(10px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  body[data-screen="login"] {
    overflow-y: auto;
  }

  body[data-screen="login"] #login-screen {
    height: auto;
    overflow: visible;
  }

  .login-card {
    width: min(100%, 390px);
    min-height: 0;
    padding: 22px 28px 18px;
    border-radius: 22px;
  }

  .login-wordmark {
    margin-bottom: 16px;
    font-size: 2.15rem;
  }

  .sync-badge {
    border-radius: 6px;
  }

  .login-title {
    margin-bottom: 22px;
    font-size: 1.05rem;
  }

  .login-form {
    gap: 11px;
  }

  .login-form input {
    min-height: 48px;
    padding: 0 15px;
    font-size: 0.95rem;
  }

  .login-password-field input {
    padding-right: 54px;
  }

  .login-password-toggle {
    right: 6px;
    width: 42px;
    height: 42px;
  }

  .login-password-toggle .lucide {
    width: 21px;
    height: 21px;
  }

  .login-submit {
    min-height: 48px;
    gap: 9px;
    margin-top: 2px;
    font-size: 0.8rem;
    box-shadow: 0 5px 10px rgb(0 0 0 / 18%);
  }

  .plain-login-action {
    min-height: 46px;
    margin: 22px 0 20px;
    padding: 5px 8px;
    font-size: 0.86rem;
  }

  .login-divider {
    margin-bottom: 12px;
    font-size: 0.82rem;
  }

  .login-alt-button,
  .create-account-button {
    min-height: 46px;
    gap: 10px;
    font-size: 0.78rem;
  }

  .login-alt-button {
    margin-bottom: 14px;
  }

  .login-alt-button .google-symbol {
    width: 26px;
  }

  .page-header {
    height: 66px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .page-header-with-action {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .page-header h1 {
    font-size: 1.1rem;
  }

  .page-header-actions .page-header-action {
    width: 38px;
  }

  .menu-feature-content {
    min-height: calc(100dvh - 66px - var(--nav-height) - env(safe-area-inset-bottom));
    padding: 24px 18px;
  }

  .menu-feature-empty {
    padding: 40px 18px;
  }

  .addresses-map-content {
    height: calc(100vh - 66px - var(--nav-height) - env(safe-area-inset-bottom));
    height: calc(100dvh - 66px - var(--nav-height) - env(safe-area-inset-bottom));
  }

  .addresses-map-toolbar {
    gap: 8px;
    padding: 9px 10px 8px;
  }

  .addresses-map-search {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 6px;
  }

  .addresses-map-search .page-search-box,
  .addresses-map-search-button {
    min-height: 46px;
  }

  .addresses-map-search .page-search-box {
    grid-template-columns: 31px minmax(0, 1fr);
    padding: 0 9px;
  }

  .addresses-map-search .page-search-box input {
    font-size: 0.94rem;
  }

  .addresses-map-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .addresses-map-actions button {
    min-height: 42px;
    gap: 4px;
    padding: 4px 3px;
    font-size: 0.68rem;
    line-height: 1.05;
  }

  .addresses-map-actions .lucide {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  .addresses-map-view-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .addresses-map-view-options button,
  .addresses-map-type-field {
    min-height: 40px;
    gap: 5px;
    padding: 4px 7px;
    font-size: 0.7rem;
    line-height: 1.05;
  }

  .addresses-map-type-field select {
    height: 36px;
  }

  .addresses-map-status {
    min-height: 16px;
    font-size: 0.74rem;
  }

  .addresses-map-legend {
    left: 8px;
    bottom: 14px;
  }

  .work-location-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-location-actions {
    justify-content: flex-end;
  }

  .page-back-button {
    width: 44px;
  }

  .page-back-button .lucide {
    width: 27px;
    height: 27px;
  }

  .page-header-action {
    width: 44px;
  }

  .page-header-action .lucide {
    width: 27px;
    height: 27px;
  }

  .page-form-content {
    padding: 28px 22px 22px;
  }

  .profile-edit-photo-panel {
    margin-bottom: 18px;
  }

  .profile-edit-photo-frame {
    width: clamp(176px, 54vw, 210px);
  }

  .gallery-page-content {
    padding: 16px 12px 24px;
  }

  .gallery-account-header {
    gap: 12px;
    margin-bottom: 14px;
  }

  .gallery-control-panel {
    padding: 14px;
  }

  .gallery-admin-panel {
    padding: 14px;
  }

  .profile-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-gallery-info {
    padding: 10px;
  }

  .profile-gallery-actions button,
  .profile-gallery-actions a {
    min-height: 34px;
    font-size: 0.68rem;
  }

  .turnus-standard-form {
    gap: 18px;
  }

  .admin-credential-options {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-credentials-fieldset legend {
    font-size: 0.96rem;
  }

  .account-form-fieldset {
    padding: 14px;
  }

  .account-form-fieldset legend {
    font-size: 0.96rem;
  }

  .account-address-grid,
  .account-credential-options {
    gap: 12px 10px;
  }

  .account-profile-preview {
    min-height: 96px;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .account-profile-preview canvas,
  .account-profile-preview img {
    width: 68px;
    height: 68px;
  }

  .account-profile-preview strong {
    font-size: 1rem;
  }

  .account-photo-adjustments {
    grid-template-columns: 1fr;
  }

  .turnus-standard-form label {
    gap: 8px;
    font-size: 0.96rem;
  }

  .turnus-standard-form input {
    min-height: 52px;
    font-size: 0.98rem;
  }

  .turnus-standard-form select {
    min-height: 52px;
    font-size: 0.98rem;
  }

  .turnus-standard-form textarea {
    min-height: 104px;
    font-size: 0.98rem;
  }

  .service-swap-content {
    padding-inline: 12px;
  }

  .service-swap-intro {
    align-items: flex-start;
    padding: 14px;
  }

  .service-swap-user-meta span:last-child {
    max-width: 42vw;
    overflow-wrap: anywhere;
  }

  .service-swap-form {
    padding: 16px 14px;
  }

  .service-swap-location-grid {
    grid-template-columns: 1fr;
  }

  .informative-content {
    padding: 10px 42px 30px;
  }

  .informative-side-navigation {
    width: 36px;
    height: 50px;
  }

  .informative-side-navigation.is-previous {
    left: 3px;
  }

  .informative-side-navigation.is-next {
    right: 3px;
  }

  .informative-side-navigation .lucide {
    width: 27px;
    height: 27px;
  }

  .informative-image {
    max-height: none;
  }

  .informative-copy {
    gap: 17px;
    padding-top: 15px;
  }

  .informative-copy h2 {
    font-size: 1.18rem;
  }

  .informative-access-button {
    width: 66px;
    height: 66px;
  }

  .informative-access-button .lucide {
    width: 56px;
    height: 56px;
  }

  .informative-subtitle {
    font-size: 1rem;
  }

  .informative-body {
    margin-top: 14px;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .informative-form-content,
  .informative-viewers-content {
    padding-inline: 16px;
  }

  .informative-admin-dialog-actions {
    grid-template-columns: 1fr;
  }

  .informative-required-modal {
    place-items: center;
    padding-inline: 7px;
  }

  .informative-required-card {
    max-height: calc(100dvh - max(14px, env(safe-area-inset-top)) - max(14px, env(safe-area-inset-bottom)));
  }

  .informative-required-media {
    min-height: 190px;
  }

  .informative-required-media img {
    max-height: 43dvh;
  }

  .informative-required-actions button {
    min-width: 78px;
    min-height: 54px;
    font-size: 0.9rem;
  }

  .informative-required-copy {
    gap: 10px;
    padding: 16px 16px 13px;
  }

  .informative-required-copy h2 {
    font-size: 1.15rem;
  }

  .informative-required-status {
    margin: -6px 16px 16px;
  }

  .standard-submit-button {
    min-height: 50px;
    font-size: 0.86rem;
  }

  .field-action-button {
    min-height: 44px;
    font-size: 0.78rem;
  }

  .readonly-email-line {
    margin-bottom: 16px;
    font-size: 0.88rem;
  }

  .page-bottom-nav button {
    font-size: 0.78rem;
  }

  .page-bottom-nav.five-actions button {
    font-size: 0.7rem;
  }

  .page-bottom-nav .lucide {
    width: 24px;
    height: 24px;
  }

  .service-bottom-nav .adalo-nav-icon,
  .service-bottom-nav .adalo-nav-icon svg {
    width: 30px;
    height: 30px;
  }

  .service-bottom-nav.five-actions button {
    font-size: 0.68rem;
  }

  .list-page-content {
    padding: 18px 10px 20px;
  }

  .page-search-box {
    min-height: 52px;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 0 10px;
  }

  .page-search-box input {
    font-size: 1rem;
  }

  .admin-page-toolbar {
    gap: 8px;
    margin: 14px 0 10px;
  }

  .admin-menu .feature-title {
    font-size: 17px;
  }

  .admin-page-toolbar p {
    font-size: 0.78rem;
  }

  .page-refresh-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .admin-request-list {
    gap: 9px;
  }

  .admin-request-card {
    min-height: 108px;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .admin-avatar {
    width: 76px;
  }

  .admin-request-card h3 {
    font-size: clamp(0.82rem, 3.45vw, 0.94rem);
  }

  .admin-request-subtitle {
    font-size: 0.84rem;
  }

  .admin-request-meta {
    font-size: 0.8rem;
  }

  .admin-request-meta span:nth-child(3),
  .admin-request-meta span:nth-child(4) {
    display: none;
  }

  .admin-card-actions {
    gap: 7px;
    margin-top: 6px;
  }

  .admin-card-actions .primary-modal-button,
  .admin-card-actions .secondary-modal-button {
    min-height: 34px;
    font-size: 0.74rem;
  }

  .admin-card-actions .danger-action-button {
    min-height: 34px;
    font-size: 0.74rem;
  }

  .no-account-text {
    margin-bottom: 8px;
    font-size: 0.82rem;
  }

  .install-button {
    gap: 4px;
    margin-top: 14px;
    font-size: 0.8rem;
    line-height: 1.05;
  }

  .install-button .lucide {
    width: 30px;
    height: 30px;
  }

  .login-footnote {
    width: min(100%, 340px);
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .modal-screen {
    align-items: end;
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    gap: 14px;
    padding: 16px;
  }

  .modal-header h2 {
    font-size: 1.08rem;
  }

  .request-form {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .request-form label span {
    font-size: 0.78rem;
  }

  .request-form input {
    min-height: 42px;
    padding: 10px 11px;
  }

  .request-form textarea {
    padding: 10px 11px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .primary-modal-button,
  .secondary-modal-button {
    min-height: 42px;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .app-header {
    height: 66px;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding-inline: 16px;
  }

  .wordmark {
    font-size: 1.1rem;
  }

  .icon-button {
    width: 40px;
  }

  .icon-button .lucide {
    width: 25px;
    height: 25px;
  }

  .home-content {
    max-width: 100%;
    padding: 12px 14px calc(22px + var(--nav-height));
    overflow-x: hidden;
  }

  .profile-card {
    min-height: 96px;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 48px 10px 10px;
  }

  .profile-badge-cluster {
    top: 9px;
    right: 9px;
    gap: 5px;
  }

  .profile-completeness-badge,
  .profile-status-badge {
    width: 34px;
    height: 34px;
  }

  .profile-completeness-badge .lucide,
  .profile-status-badge .lucide {
    width: 17px;
    height: 17px;
  }

  .profile-card {
    padding-right: 120px;
  }

  .profile-legal-links,
  .profile-account-actions,
  .profile-status-options {
    grid-template-columns: 1fr;
  }

  .profile-photo-button,
  .profile-photo {
    width: 68px;
  }

  .profile-photo-edit {
    right: -5px;
    bottom: -5px;
    width: 27px;
    height: 27px;
  }

  .profile-photo-edit .lucide {
    width: 16px;
    height: 16px;
  }

  #profile-name {
    font-size: 1rem;
    line-height: 1.14;
  }

  #home-auth-provider {
    font-size: 0.86rem;
  }

  .profile-edit {
    width: 32px;
  }

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

  .raised-action {
    min-height: 44px;
    padding: 0 5px;
    font-size: clamp(0.6rem, 2.35vw, 0.72rem);
    line-height: 1.08;
  }

  .announcement-caption strong {
    font-size: 0.9rem;
  }

  .announcement-caption span {
    font-size: 0.82rem;
  }

  .search-box input {
    font-size: 1rem;
  }

  .announcement-rail {
    grid-auto-columns: minmax(232px, 70vw);
    gap: 11px;
    margin-bottom: 14px;
    margin-right: -14px;
    padding: 2px 14px 10px 0;
  }

  .announcement-caption {
    gap: 4px;
    padding: 12px 14px 13px;
  }

  .feature-item {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 86px;
    gap: 18px;
    padding: 9px 14px;
  }

  #admin-menu > [data-admin-mode="requests"],
  #admin-menu > [data-admin-mode="invites"] {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .feature-item img,
  .thumb-graphic {
    width: 76px;
  }

  .feature-title {
    font-size: clamp(0.98rem, 4vw, 1.08rem);
  }

  .feature-subtitle {
    font-size: 0.82rem;
  }

  .home-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0 24px;
  }

  .home-action-button {
    min-height: 48px;
    gap: 6px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .home-action-button .lucide {
    width: 21px;
    height: 21px;
  }

  .bottom-nav button {
    font-size: 0.86rem;
  }

  .bottom-nav .lucide {
    width: 24px;
    height: 24px;
  }

  .reg-nav-icon,
  .reg-nav-icon svg {
    width: 30px;
    height: 30px;
  }

  .bottom-brand-icon {
    width: 27px;
    height: 27px;
    padding: 3px;
  }

  .service-schedule-content {
    padding: 32px 10px 22px;
  }

  .generic-sheet-content {
    height: auto;
    min-height: calc(100dvh - 66px - var(--nav-height) - env(safe-area-inset-bottom));
    padding: 10px 8px 12px;
  }

  .generic-sheet-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .generic-sheet-heading h2 {
    font-size: 0.96rem;
  }

  .generic-sheet-heading p:not(.eyebrow),
  .generic-sheet-status {
    font-size: 0.74rem;
  }

  .generic-sheet-zoom {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 12px;
  }

  .generic-sheet-zoom button {
    width: 46px;
  }

  .generic-sheet-zoom input {
    min-height: 56px;
  }

  .generic-sheet-highlight-panel {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .generic-sheet-highlight-panel select {
    width: 100%;
  }

  .generic-sheet-selection-panel {
    grid-template-columns: 1fr;
  }

  .generic-sheet-selection-actions {
    justify-content: stretch;
  }

  .generic-sheet-admin-actions .field-action-button,
  .generic-sheet-selection-actions .field-action-button {
    flex: 1 1 140px;
  }

  .generic-sheet-desktop-tools {
    display: none !important;
  }

  .generic-sheet-tabs-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .generic-sheet-tab-actions {
    justify-content: flex-end;
  }

  .generic-sheet-tab {
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .generic-sheet-scroll-frame {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px;
  }

  .service-month-list {
    gap: 10px;
  }

  .service-month-item {
    min-height: 68px;
    grid-template-columns: 1fr;
    padding: 0 14px;
  }

  .service-month-item span {
    font-size: 1.02rem;
  }

  .drawer-menu button {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    min-height: 40px;
    font-size: 0.94rem;
  }

  .drawer-menu {
    gap: 12px;
    padding-top: 14px;
  }

  .drawer-menu .lucide {
    width: 26px;
    height: 26px;
  }

  .drawer-top {
    gap: 14px;
    padding-bottom: 16px;
  }

  .drawer-wordmark {
    font-size: 1.08rem;
  }

  .procedure-box {
    gap: 10px;
    margin-top: auto;
    padding: 13px 12px;
  }

  .procedure-box p {
    font-size: 0.9rem;
    line-height: 1.22;
  }

  .procedure-button {
    min-height: 45px;
    font-size: 0.82rem;
  }

  .drawer-account {
    margin-inline: -20px;
    padding: 12px 20px;
    grid-template-columns: 44px minmax(0, 1fr);
    font-size: 0.86rem;
  }

  .drawer-account-photo {
    width: 44px;
  }

  .drawer-logout {
    min-height: calc(58px + max(12px, env(safe-area-inset-bottom)));
    margin-inline: -20px;
    padding: 2px 20px max(16px, env(safe-area-inset-bottom));
    font-size: 0.88rem;
  }

  .drawer-logout > * {
    transform: translateY(7px);
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  body.is-printing-generic-sheet {
    min-height: 0;
    overflow: visible;
    background: white;
  }

  body.is-printing-generic-sheet > * {
    display: none !important;
  }

  body.is-printing-generic-sheet > #turnus-app {
    display: block !important;
    min-height: 0;
    overflow: visible;
  }

  body.is-printing-generic-sheet #turnus-app > * {
    display: none !important;
  }

  body.is-printing-generic-sheet #generic-spreadsheet-page {
    display: block !important;
    min-height: 0;
    overflow: visible;
    background: white;
  }

  body.is-printing-generic-sheet #generic-spreadsheet-page > .page-header,
  body.is-printing-generic-sheet #generic-spreadsheet-page > .page-bottom-nav,
  body.is-printing-generic-sheet .generic-sheet-toolbar,
  body.is-printing-generic-sheet .generic-sheet-tabs-toolbar,
  body.is-printing-generic-sheet .generic-sheet-top-scroll,
  body.is-printing-generic-sheet .generic-sheet-status,
  body.is-printing-generic-sheet .generic-sheet-page-scroll-zone,
  body.is-printing-generic-sheet .generic-sheet-unhide-button {
    display: none !important;
  }

  body.is-printing-generic-sheet .generic-sheet-content {
    width: auto;
    min-height: 0;
    display: block;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  body.is-printing-generic-sheet .generic-sheet-print-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 7mm;
    color: #20201d;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
  }

  body.is-printing-generic-sheet .generic-sheet-print-heading strong {
    color: var(--primary);
    font-size: 16pt;
  }

  body.is-printing-generic-sheet .generic-sheet-print-heading span {
    font-size: 13pt;
    font-weight: 900;
  }

  body.is-printing-generic-sheet .generic-sheet-scroll-frame,
  body.is-printing-generic-sheet .generic-sheet-shell,
  body.is-printing-generic-sheet .generic-sheet-grid {
    width: auto;
    display: block;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  body.is-printing-generic-sheet .generic-sheet-table {
    zoom: 0.58;
    break-inside: auto;
  }

  body.is-printing-generic-sheet .generic-sheet-table thead {
    display: table-header-group;
  }

  body.is-printing-generic-sheet .generic-sheet-table tr {
    break-inside: avoid;
  }

  body.is-printing-generic-sheet .generic-sheet-table thead th,
  body.is-printing-generic-sheet .generic-sheet-row-header {
    position: static;
  }
}

@media (max-width: 520px) and (max-height: 680px) {
  body[data-screen="login"] .login-screen,
  body[data-screen="reset-password"] .password-reset-screen {
    gap: 5px;
    padding: 6px 22px max(6px, env(safe-area-inset-bottom));
  }

  .login-card {
    padding: 16px 24px 12px;
  }

  .login-wordmark {
    margin-bottom: 11px;
    font-size: 1.9rem;
  }

  .login-title {
    margin-bottom: 15px;
    font-size: 0.95rem;
  }

  .login-form {
    gap: 8px;
  }

  .login-form input {
    min-height: 42px;
    font-size: 0.86rem;
  }

  .login-submit {
    min-height: 44px;
    margin-top: 1px;
    font-size: 0.74rem;
  }

  .plain-login-action {
    margin: 12px 0;
    font-size: 0.78rem;
  }

  .login-divider {
    margin-bottom: 8px;
    font-size: 0.76rem;
  }

  .login-alt-button,
  .create-account-button {
    min-height: 42px;
    font-size: 0.72rem;
  }

  .login-alt-button {
    margin-bottom: 9px;
  }

  .no-account-text {
    margin-bottom: 6px;
    font-size: 0.76rem;
  }

  .install-button {
    margin-top: 9px;
    font-size: 0.74rem;
  }

  .install-button .lucide {
    width: 26px;
    height: 26px;
  }

  .login-footnote {
    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  .login-shell {
    width: min(100% - 20px, 1040px);
  }

  .brand-panel,
  .auth-panel {
    padding: 20px;
  }

  .status-list {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 58px;
    font-size: 1.9rem;
  }

  .side-drawer {
    width: min(90vw, 360px);
    padding: 28px 20px 0;
  }

  .contacts-content {
    padding: 24px 12px 22px;
  }

  .contacts-hero-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 22px;
  }

  .contacts-hero-icon .lucide {
    width: 37px;
    height: 37px;
  }

  .contact-category-item {
    min-height: 84px;
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    gap: 13px;
    padding: 10px 13px;
  }

  .contact-category-icon {
    width: 58px;
    height: 58px;
  }

  .contact-category-icon .lucide {
    width: 30px;
    height: 30px;
  }

  .contact-category-item > span:nth-child(2) {
    font-size: 0.98rem;
  }

  .contact-list-item {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
    padding: 10px;
  }

  .contact-list-open {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
  }

  .contact-list-avatar {
    width: 54px;
    height: 54px;
    font-size: 1rem;
  }

  .contact-list-actions {
    gap: 4px;
  }

  .contact-list-actions a,
  .contact-list-actions .contact-photo-toggle {
    width: 44px;
    height: 44px;
  }

  .contact-list-actions .lucide {
    width: 19px;
    height: 19px;
  }

  .contact-detail-content {
    padding: 24px 16px 30px;
  }

  .contact-detail-avatar {
    width: 116px;
    height: 116px;
  }

  .contact-detail-fields > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px 2px;
  }

  .contact-import-source-actions {
    grid-template-columns: 1fr;
  }
}
.configuration-page-tree { display: grid; gap: 12px; min-width: 0; }
.schedule-period-navigation { display: flex; align-items: center; gap: 12px; }
.schedule-period-navigation h2 { min-width: 105px; text-align: center; }
.schedule-period-navigation button { flex: 0 0 38px; width: 38px; height: 38px; }
.registration-progress { font-weight: 700; margin: 0 0 18px; }
[data-registration-step]:not([hidden]) { display: grid; gap: 20px; min-width: 0; }
.registration-actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.registration-actions > button { flex: 1; min-width: 0; }
.registration-error { color: #b42318; display: block; font-size: 13px; }
.registration-error[hidden] { display: none; }
[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 1px; }
.drawer-menu button[hidden] { display: none; }
.drawer-menu button span { min-width: 0; overflow-wrap: anywhere; }
/* Shared, unframed instructions for spreadsheet imports. */
.spreadsheet-import-help {
  margin: 12px 0 18px;
  max-width: 100%;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: left;
}
.spreadsheet-import-help > summary { cursor: pointer; font-weight: 700; }
.spreadsheet-import-help > ul { padding-left: 22px; margin: 10px 0; }
.spreadsheet-import-help li + li { margin-top: 8px; }
.spreadsheet-import-help > p { margin: 8px 0; font-size: inherit; }
.spreadsheet-header-control { margin: 12px 0; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.spreadsheet-header-control > label { display: flex; align-items: center; gap: 8px; }
.spreadsheet-header-control input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; }
.spreadsheet-header-control > p { font-size: 14px; line-height: 1.5; margin: 10px 0; }
.generic-sheet-reference-bar {
  display: grid;
  grid-column: 1 / -1;
  scroll-margin-top: 90px;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
}
.generic-sheet-reference-bar[hidden] { display: none; }
.generic-sheet-reference-bar input,
.generic-sheet-reference-bar button {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 6px;
  margin: 0;
}
@media (max-width: 600px) {
  .generic-sheet-reference-bar { grid-template-columns: 78px minmax(0, 1fr); gap: 3px; }
}
@media print { .generic-sheet-reference-bar { display: none !important; } }
@media (hover: none) and (pointer: coarse) { .generic-sheet-reference-bar { display: none !important; } }
:root { --sheet-condition-border: #bfd3d1; }
.sheet-resize-handle { position: absolute; z-index: 5; touch-action: none; }
.sheet-resize-column { top: 0; bottom: 0; right: -3px; width: 7px; cursor: col-resize; }
.sheet-resize-row { left: 0; right: 0; bottom: -3px; height: 7px; cursor: row-resize; }
.sheet-resize-handle:hover { background: #008c78; }
.sheet-condition-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; box-sizing: border-box; overflow: auto; border: 0; border-left: 1px solid var(--sheet-condition-border); border-radius: 0; padding: 20px; box-shadow: -4px 0 20px #0002; }
.sheet-condition-dialog::backdrop { background: transparent; }
.sheet-condition-dialog h2 { font-size: 20px; margin: 0 0 18px; }
.sheet-condition-dialog label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sheet-condition-dialog input[type=checkbox] { width: auto; }
.sheet-condition-dialog input[type=color] { width: 64px; height: 36px; padding: 2px; }
.sheet-condition-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.sheet-condition-dialog fieldset { border: 1px solid var(--sheet-condition-border); padding: 10px; }
.sheet-condition-dialog fieldset label { flex-direction: row; align-items: center; }
.sheet-condition-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.sheet-condition-error { color: #a31c28; }
.sheet-condition-dialog input:not([type=checkbox]):not([type=color]), .sheet-condition-dialog select { width: 100%; min-width: 0; min-height: 36px; border: 1px solid var(--sheet-condition-border); border-radius: 4px; padding: 6px 10px; font: inherit; color: #243936; background: white; }
.sheet-condition-dialog { font: inherit; color: #243936; }
.sheet-condition-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; }
.sheet-condition-actions svg { width: 20px; height: 20px; }
.sheet-condition-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.sheet-condition-heading h2 { margin-top: 6px; font-size: 18px; }
.sheet-condition-heading button { flex-shrink: 0; }
.sheet-condition-selection { font-weight: 700; }
.sheet-condition-rules { display: grid; gap: 0; margin-bottom: 14px; }
.sheet-condition-rule { display: grid; gap: 6px; width: 100%; border: 0; border-bottom: 1px solid var(--sheet-condition-border); border-radius: 0; background: white; text-align: left; padding: 12px 8px; color: inherit; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.sheet-condition-rule[aria-pressed=true] { background: #e8f4f1; box-shadow: inset 3px 0 #008c78; }
.sheet-condition-priority-item { display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;border-bottom:1px solid var(--sheet-condition-border); }
.sheet-condition-priority-item .sheet-condition-rule { border-bottom:0;min-width:0; }
.sheet-condition-priority-actions { display:grid;gap:4px;padding:4px 0; }
.sheet-condition-priority-actions .field-action-button { width:32px;height:32px;min-width:0;min-height:0;padding:6px;justify-content:center; }
.sheet-condition-priority-actions svg { width:18px;height:18px; }
.sheet-condition-swatches { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
.sheet-condition-swatches > span { display: inline-flex; align-items: center; gap: 4px; }
.sheet-condition-swatches i { display: inline-block; width: 12px; height: 12px; border: 1px solid #aaa; flex-shrink: 0; }
.sheet-condition-dialog button[name=add] { display: inline-flex; align-items: center; gap: 8px; }
.sheet-condition-dialog button svg { width: 20px; height: 20px; }
.sheet-condition-editor { inset: 0; margin: auto; width: min(620px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 32px); border: 1px solid var(--sheet-condition-border); border-radius: 8px; box-shadow: 0 8px 32px #0003; }
.has-sheet-dropdown { position: relative; padding-right: 24px !important; }
.has-sheet-dropdown::after { content: '\2304'; position: absolute; right: 3px; top: 0; width: 20px; text-align: center; color: #008c78; cursor: pointer; }
.sheet-condition-rules button { overflow-wrap: anywhere; white-space: normal; text-align: left; }
.sheet-condition-editor textarea { width: 100%; resize: vertical; }
.sheet-condition-sidebar > select { margin-bottom: 14px; }
#generic-sheet-view-agenda { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
/* Credential access matrix keeps headings visible while painting permissions. */
.access-matrix-content{max-width:none!important;width:calc(100% - 32px)!important;margin-inline:auto!important;}
.access-matrix-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-block:12px;}
.access-matrix-tools input{width:220px;max-width:100%;}
.access-matrix-scroll{max-height:calc(100dvh - 300px);min-height:220px;overflow:auto;border:1px solid #becbca;overscroll-behavior:contain;isolation:isolate;}
.access-matrix{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;background:white;}
.access-matrix th,.access-matrix td{box-sizing:border-box;width:160px;min-width:160px;border-right:1px solid #d3dedd;border-bottom:1px solid #d3dedd;text-align:center;padding:8px;}
.access-matrix thead th{position:sticky;top:0;z-index:3;background:#e9f1f0;height:76px;font-size:13px;white-space:normal;overflow-wrap:anywhere;}
.access-matrix th:first-child{position:sticky;left:0;width:200px;min-width:200px;max-width:200px;text-align:left;background:#f2f5f5;z-index:2;overflow-wrap:anywhere;}
.access-matrix thead th:first-child{z-index:4;}
.access-matrix td{height:42px;user-select:none;touch-action:none;}
.access-matrix input{width:20px;height:20px;margin:0;accent-color:#008c78;cursor:crosshair;touch-action:none;}
.access-matrix input:disabled{cursor:not-allowed;}
.access-matrix th small{color:#587b77;}
@media(max-width:600px){.access-matrix-content{width:calc(100% - 16px)!important;}.access-matrix-tools{gap:5px;}.access-matrix-scroll{max-height:calc(100dvh - 360px);}.access-matrix th:first-child{width:140px;min-width:140px;max-width:140px;}}
/* Notes use profile images fetched on demand, outside the sheet's scaled surface. */
.sheet-note-dialog { width:min(420px,calc(100vw - 32px)); max-height:80vh; overflow:auto; border:1px solid #c4d3d3; border-radius:8px; padding:20px; color:var(--text-color,#243d38); }
.sheet-note-dialog header,.sheet-note-dialog footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sheet-note-dialog footer { flex-wrap:wrap; margin-top:16px; }
.sheet-note-dialog figure { display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; gap:14px; margin:16px 0; text-align:left; }
.sheet-note-dialog img,.sheet-note-avatar { width:88px; height:88px; border-radius:50%; object-fit:cover; }
.sheet-note-avatar { display:inline-grid; place-items:center; background:#e7efed; font-size:28px; }
.sheet-note-dialog figcaption { display:grid; gap:5px; min-width:0; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.sheet-note-dialog .sheet-note-phone { color:#1565c0; text-decoration:underline; padding:4px 0; }
@media(max-width:420px) {
 .sheet-note-dialog figure { grid-template-columns:68px minmax(0,1fr); gap:10px; }
 .sheet-note-dialog img,.sheet-note-avatar { width:68px; height:68px; }
}
.sheet-note-dialog [data-text] { white-space:pre-wrap; overflow-wrap:anywhere; }
.sheet-note-dialog textarea { width:100%; box-sizing:border-box; }
.sheet-note-dialog [hidden] { display:none; }
.sheet-cleanup-dialog { width:min(520px,calc(100vw - 32px)); max-height:85vh; overflow:auto; padding:24px; border:1px solid #c4d3d3; border-radius:8px; color:#243d38; }
.sheet-cleanup-dialog h2 { font-size:20px; margin:0 0 16px; }
.sheet-cleanup-dialog p { line-height:1.5; overflow-wrap:anywhere; }
.sheet-cleanup-dialog label { display:grid; gap:8px; }
.sheet-cleanup-dialog input { box-sizing:border-box; width:100%; padding:12px; font-size:16px; }
.sheet-cleanup-dialog footer { display:flex; justify-content:flex-end; gap:12px; margin-top:16px; }
.sheet-cleanup-dialog [hidden] { display:none; }
#generic-sheet-reset-workbook { width:auto; min-height:40px; font-size:13px; }
@media(min-width:900px) {
 .generic-sheet-toolbar #generic-sheet-highlight-panel { grid-column:1 / -1; grid-template-columns:auto minmax(140px,280px) max-content max-content; justify-content:start; }
 #generic-sheet-highlight-panel label { grid-row:1; grid-column:1; }
 #generic-sheet-highlight-panel select { grid-row:1; grid-column:2; }
 #generic-sheet-highlight-panel #generic-sheet-view-agenda { grid-row:1; grid-column:3; }
 #generic-sheet-highlight-panel #generic-sheet-reset-workbook { grid-row:1; grid-column:4; }
 #generic-sheet-highlight-panel p { grid-row:2; grid-column:1 / -1; }
}
@media(max-width:899px) { #generic-sheet-reset-workbook { display:none!important; } }
.sheet-note-history article { border-top:1px solid #c4d3d3; padding-top:12px; margin-top:12px; overflow-wrap:anywhere; }
.sheet-note-history p { white-space:pre-wrap; margin:6px 0; font-size:14px; }
.sheet-note-history [data-status="pending"] strong { color:#a34b00; }
.sheet-note-history [data-status="applied"] strong { color:#303f9f; }
.generic-sheet-cell.sheet-swap-applied { background-color:#02c6f7!important; color:#242424!important; }
.generic-sheet-cell.sheet-swap-pending { background-color:#ec4899!important; color:#242424!important; }
.sheet-swap-panel select { box-sizing:border-box; width:320px; max-width:calc(100% - 8px); min-width:0; min-height:48px; padding:10px 12px; margin:8px 8px 8px 0; border:1px solid var(--line); border-radius:4px; background:#fff; color:inherit; font:inherit; font-size:16px; }
.sheet-regulation-panel { grid-column:1/-1; border-top:1px solid #b8c9c8; padding:12px 0; display:flex; flex-wrap:wrap; gap:12px; }
.sheet-regulation-panel[hidden],.sheet-regulation-panel [hidden] { display:none!important; }
.sheet-regulation-panel header { display:flex; align-items:center; justify-content:space-between; width:100%; gap:12px; }
.sheet-regulation-panel label { display:flex; flex-direction:column; gap:8px; min-width:0; width:320px; max-width:100%; font-size:13px; font-weight:600; color:#334c48; }
.sheet-regulation-panel label[data-person] { width:440px; }
.sheet-regulation-panel select {
 box-sizing:border-box; display:block; width:100%; min-width:0; max-width:100%; height:44px;
 margin:0; padding:8px 12px; border:1px solid #afc5c1; border-radius:6px;
 background-color:#fff; color:#243d38; font:inherit; font-size:16px; font-weight:400; line-height:24px;
 color-scheme:light; cursor:pointer; transition:border-color .15s,box-shadow .15s;
}
.sheet-regulation-panel select:hover:not(:disabled) { border-color:var(--nav-color,#008577); }
.sheet-regulation-panel select:focus-visible { outline:2px solid var(--nav-color,#008577); outline-offset:2px; border-color:var(--nav-color,#008577); }
.sheet-regulation-panel select:disabled { background-color:#f0f4f3; color:#667a75; cursor:wait; opacity:1; }
.sheet-regulation-panel select option { background:#fff; color:#243d38; }
@media(max-width:599px) {
 .sheet-regulation-panel label,.sheet-regulation-panel label[data-person] { width:100%; }
}
.sheet-regulation-panel [data-targets] { display:flex; align-items:end; gap:8px; }
.sheet-regulation-panel [aria-pressed="true"] { outline:none; border-color:var(--nav-color,#008577); background:#e7f3f1; color:#00685f; box-shadow:none; }
.sheet-regulation-panel [data-group]:focus-visible { outline:2px solid var(--nav-color,#008577); outline-offset:2px; }
.sheet-regulation-panel [data-first],.sheet-regulation-panel [data-second],.sheet-regulation-panel [data-help],.sheet-regulation-panel [role="status"] { width:100%; margin:0; overflow-wrap:anywhere; }
.sheet-regulation-panel p { margin:4px 0; }
.sheet-regulation-panel > [data-preview] { align-self:flex-end; }
.sheet-regulation-confirm { width:min(560px,calc(100vw - 32px)); box-sizing:border-box; max-height:85vh; overflow:auto; padding:24px; border:1px solid #b8c9c8; border-radius:8px; }
.sheet-regulation-confirm h2 { font-size:18px; margin-top:0; }
.sheet-regulation-confirm [data-changes] p { white-space:pre-wrap; overflow-wrap:anywhere; border-bottom:1px solid #dae2e1; padding-bottom:12px; }
.sheet-regulation-confirm footer { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
#generic-sheet-regulation { min-height:40px; padding:8px 12px; width:auto; font-size:13px; }

/* Keep toolbar actions aligned, including labels that occupy two lines. */
#generic-spreadsheet-page .generic-sheet-toolbar :is(button, .sheet-tool-menu > summary) {
 box-sizing:border-box;
 height:44px;
 min-height:44px;
 max-height:44px;
 padding-top:4px;
 padding-bottom:4px;
 line-height:16px;
 align-items:center;
 justify-content:center;
}
.generic-sheet-download-actions { grid-template-columns:repeat(2,minmax(0,1fr)) auto; align-items:center; }
.generic-sheet-agenda-edit-actions { min-width:0; }
@media(max-width:899px) {
 .generic-sheet-download-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .generic-sheet-agenda-edit-actions { grid-column:1 / -1; flex-wrap:wrap; }
 .generic-sheet-agenda-edit-actions .field-action-button { flex:1 1 100px; }
}
.sheet-protected-cell { position:relative; }
.sheet-protected-cell::before { content:""; position:absolute; inset:0; pointer-events:none; z-index:1; background:repeating-linear-gradient(135deg,transparent 0,transparent 6px,rgba(70,90,100,.18) 6px,rgba(70,90,100,.18) 7px); }
.generic-sheet-tab:has(svg) { display:inline-flex; align-items:center; gap:5px; }
.generic-sheet-tab svg { width:14px; height:14px; flex:none; }
.sheet-protection-sidebar { position:fixed; top:82px; bottom:82px; right:12px; width:min(360px,calc(100vw - 24px)); box-sizing:border-box; z-index:1400; padding:18px; overflow:auto; background:#fff; color:#243d38; border:1px solid #b9cbc7; border-radius:6px; box-shadow:0 4px 20px #0002; }
.sheet-protection-sidebar [hidden],.sheet-protection-sidebar[hidden] { display:none!important; }
.sheet-protection-sidebar header,.sheet-protection-sidebar footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sheet-protection-sidebar h2 { font-size:18px; margin:0; }
.sheet-protection-sidebar h3 { font-size:15px; margin:20px 0 12px; }
.sheet-protection-sidebar label { display:flex; flex-direction:column; gap:6px; margin:14px 0; }
.sheet-protection-sidebar .protection-toggle { flex-direction:row; align-items:center; }
.sheet-protection-sidebar input:not([type=checkbox]) { width:100%; box-sizing:border-box; padding:10px; border:1px solid #b9cbc7; border-radius:4px; font:inherit; }
.sheet-protection-sidebar input[type=checkbox] { width:18px; height:18px; }
.sheet-protection-sidebar p { font-size:13px; overflow-wrap:anywhere; }
.sheet-protection-item { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #d9e3e0; }
.sheet-protection-rule { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:8px; border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; overflow-wrap:anywhere; }
.sheet-protection-rule span { font-size:13px; color:#5a706b; }
.sheet-protection-sidebar button { min-height:40px; }
.sheet-protection-sidebar [data-add] { margin-top:12px; }
.schedule-time-dialog { width:min(540px,calc(100vw - 32px)); }
.participant-settings-row { display:grid;grid-template-columns:minmax(72px,1fr) auto 40px;align-items:center;gap:8px;margin:8px 0; }
.participant-settings-row input[type=text] { min-width:0;width:100%;height:40px;box-sizing:border-box;padding:8px;font:inherit; }
.participant-settings-row label { display:flex;align-items:center;gap:6px;font-size:13px; }
.participant-settings-row input[type=checkbox] { width:18px;height:18px;margin:0; }
.participant-settings-row button { width:40px;height:40px;min-width:0;padding:8px; }
.participant-settings-row svg { width:18px;height:18px; }
.home-personal-gear { position:absolute; right:calc(8px + 3mm); top:50%; transform:translateY(-50%); width:40px; height:40px; padding:8px; }
.home-personal-gear svg { width:22px; height:22px; }
.home-feature-row.has-personal-gear > .feature-item { padding-right:calc(56px + 3mm); }
.home-feature-row.has-personal-gear > .feature-item.has-home-help { padding-right:calc(100px + 3mm); }
.home-feature-row.has-personal-gear > .home-help-button { right:calc(52px + 3mm); }
.home-swap-shortcut {position:absolute;right:calc(8px + 3mm);top:50%;transform:translateY(-50%);width:40px;height:40px;padding:8px}
.home-swap-shortcut svg {width:22px;height:22px}
.home-feature-row.has-swap-shortcut > .feature-item {padding-right:calc(56px + 3mm)}
.home-feature-row.has-swap-shortcut.has-personal-gear > .home-swap-shortcut {right:calc(52px + 3mm)}
.home-feature-row.has-swap-shortcut.has-personal-gear > .feature-item {padding-right:calc(100px + 3mm)}
.home-feature-row.has-swap-shortcut > .home-help-button {right:calc(52px + 3mm)}
.home-feature-row.has-swap-shortcut > .feature-item.has-home-help {padding-right:calc(100px + 3mm)}
.home-feature-row.has-swap-shortcut.has-personal-gear > .home-help-button {right:calc(96px + 3mm)}
.home-feature-row.has-swap-shortcut.has-personal-gear > .feature-item.has-home-help {padding-right:calc(144px + 3mm)}
.home-preference-row { display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid #d2dedc; }
.home-preference-row input { width:20px; height:20px; flex:0 0 20px; }
.home-preference-row span { overflow-wrap:anywhere; }
.home-preference-row label { display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.home-preference-row button { flex:0 0 36px; width:36px; height:36px; }
/* Fixed command widths prevent edit-mode labels from redistributing the toolbar. */
#generic-spreadsheet-page .generic-sheet-download-actions {
 display:flex; flex-wrap:wrap; gap:8px; flex:1 0 100%; width:100%;
}
#generic-spreadsheet-page .generic-sheet-agenda-edit-actions { display:contents; }
#generic-spreadsheet-page .generic-sheet-download-actions .field-action-button,
#generic-spreadsheet-page .generic-sheet-admin-actions > .sheet-tool-menu,
#generic-spreadsheet-page #generic-sheet-view-agenda,
#generic-spreadsheet-page #generic-sheet-reset-workbook,
#generic-spreadsheet-page #generic-sheet-freeze-view,
#generic-spreadsheet-page #generic-sheet-reproduce {
 box-sizing:border-box; flex:0 0 176px; width:176px; min-width:176px; max-width:176px;
}
#generic-spreadsheet-page #generic-sheet-freeze-view { height:44px; min-height:44px; align-self:end; padding:6px; }
#generic-sheet-highlight-panel #generic-sheet-freeze-view { grid-row:1; grid-column:5; }
#generic-sheet-highlight-panel #generic-sheet-reproduce { grid-row:1; grid-column:6; }
@media(max-width:899px),(pointer:coarse){ #generic-sheet-reproduce { display:none!important; } }
#generic-sheet-freeze-view:disabled { opacity:.45; cursor:default; }
#generic-spreadsheet-page .generic-sheet-admin-actions > .sheet-tool-menu > summary { width:100%; }
@media(max-width:599px){
 #generic-spreadsheet-page .generic-sheet-year-actions { width:100%; }
 #generic-spreadsheet-page .generic-sheet-year-actions #generic-sheet-view-agenda {
  flex:1 1 auto; width:auto; min-width:0; max-width:176px; padding-inline:6px;
 }
 #generic-spreadsheet-page .generic-sheet-download-actions .field-action-button,
 #generic-spreadsheet-page .generic-sheet-download-actions #generic-sheet-freeze-view {
  flex:0 0 calc((100% - 8px)/2); width:calc((100% - 8px)/2); min-width:0; max-width:none;
 }
}
.schedule-time-day { display:grid; grid-template-columns:44px minmax(0,1fr) minmax(0,1fr); align-items:center; gap:12px; margin:10px 0; }
.schedule-time-day input { min-width:0; width:100%; box-sizing:border-box; padding:8px; font:inherit; }
.schedule-time-weekday { margin:12px 0; padding:8px 0; border:0; border-top:1px solid var(--line); min-width:0; }
.schedule-time-weekday legend { font-weight:700; padding-right:8px; }
.schedule-time-weekday .schedule-time-day { grid-template-columns:80px minmax(0,1fr) minmax(0,1fr); gap:8px; }
