:root {
  --bg: #effbf3;
  --bg-strong: #d6f8df;
  --surface: #ffffff;
  --surface-alt: #f3fff7;
  --ink: #102847;
  --muted: #547087;
  --line: rgba(16, 40, 71, 0.10);
  --accent: #18a4b7;
  --accent-strong: #102847;
  --accent-soft: #dbfbf4;
  --lime: #b7ff1f;
  --warn: #c2853c;
  --danger: #b34b58;
  --shadow: 0 24px 60px rgba(16, 40, 71, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(183, 255, 31, 0.20), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(24, 164, 183, 0.16), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(16, 40, 71, 0.12), transparent 20%),
    linear-gradient(180deg, #f7fff9 0%, #eefbf4 100%),
    var(--bg);
}

body {
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

body.auth-locked .app-shell {
  grid-template-columns: 1fr;
}

body.auth-locked .sidebar,
body.auth-locked .topbar,
body.auth-locked .view {
  display: none !important;
}

body.auth-locked .main-content {
  width: min(560px, calc(100vw - 32px));
  margin: 0 auto;
  padding-top: 48px;
}

body.auth-locked #startup-status {
  display: block !important;
}

.sidebar {
  padding: 24px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(183, 255, 31, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(16, 40, 71, 0.96) 0%, rgba(19, 91, 123, 0.93) 100%);
  backdrop-filter: blur(12px);
  color: #f2fff8;
}

.main-content {
  padding: 24px;
}

.sidebar,
.main-content,
.topbar,
.topbar-actions,
.list-item,
.card,
.stat,
.activity-item {
  min-width: 0;
}

#startup-status {
  margin-bottom: 18px;
}

.push-banner {
  margin-bottom: 18px;
  background: linear-gradient(145deg, #102847, #0f5d74 62%, #188f64 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(16, 40, 71, 0.22);
}

.push-banner p,
.push-banner h2,
.push-banner .small {
  color: #ffffff;
}

.push-banner .section-heading h2,
.push-banner strong {
  color: #ffffff !important;
}

.push-banner .inline-button {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.brand h1,
.topbar h2,
.section-heading h2,
.card h3,
.empty-state h3 {
  font-family: var(--font-display);
}

.brand h1,
.topbar h2 {
  margin: 4px 0;
}

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

.brand-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  padding: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: inherit;
  opacity: 0.72;
}

.muted {
  color: inherit;
  opacity: 0.82;
}

.nav {
  display: grid;
  gap: 8px;
  margin: 28px 0;
}

.nav-link,
.ghost-button,
.primary-button,
.secondary-button,
.chip,
.inline-button,
.link-card {
  border: none;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-link {
  text-align: left;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #f2fff8;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(183, 255, 31, 0.18);
  color: #ffffff;
  transform: translateX(3px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(16, 40, 71, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(16, 40, 71, 0.08);
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.secondary-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.mobile-tools-toggle {
  display: none;
}

#manual-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

#quick-add {
  display: none !important;
}

.topbar-user-field {
  min-width: 220px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fade-in 0.35s ease;
}

.hidden {
  display: none !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card.flat {
  box-shadow: none;
  background: var(--surface-alt);
}

.sidebar .card,
.sidebar .card.flat {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4fff8;
  box-shadow: none;
}

.sidebar .section-heading h2,
.sidebar .small,
.sidebar .muted,
.sidebar .emergency-panel,
.sidebar .emergency-panel strong,
.sidebar .emergency-panel div {
  color: #f4fff8;
}

.sidebar .notice {
  background: linear-gradient(145deg, rgba(183, 255, 31, 0.16), rgba(24, 164, 183, 0.14));
  border: 1px solid rgba(183, 255, 31, 0.24);
  color: #f4fff8;
}

.sidebar .notice strong,
.sidebar .notice p,
.sidebar .notice .small {
  color: #f4fff8;
}

.sidebar .ghost-button {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.emergency-dashboard-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 251, 243, 0.98));
}

.system-card.ok {
  border-left: 6px solid #2d8f64;
}

.system-card.warn {
  border-left: 6px solid var(--warn);
}

.system-card.danger {
  border-left: 6px solid var(--danger);
}

.log-viewer {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #10233f;
  color: #d8e7ff;
  font-size: 0.82rem;
  line-height: 1.45;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading h2,
.card h3,
.empty-state h3 {
  margin: 0;
}

.primary-button {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #37cf9c 100%);
  color: white;
}

.secondary-button,
.ghost-button,
.inline-button {
  padding: 10px 14px;
  background: rgba(24, 164, 183, 0.10);
  color: var(--ink);
}

.danger-button {
  background: rgba(179, 75, 88, 0.12);
  color: var(--danger);
}

.auth-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 14px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(16, 40, 71, 0.08);
}

.auth-brand-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 22px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(16, 40, 71, 0.10);
}

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

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.inline-button:hover,
.link-card:hover {
  transform: translateY(-1px);
}

.maps-link {
  margin-left: 8px;
}

.link-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-align: left;
  background: var(--surface-alt);
  color: var(--ink);
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.checkbox-chip input {
  margin: 0;
}

.filter-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 255, 246, 0.98));
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.filter-button:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 164, 183, 0.42);
  box-shadow: 0 12px 26px rgba(16, 40, 71, 0.08);
}

.filter-button.is-active {
  background: linear-gradient(145deg, rgba(16, 40, 71, 0.96), rgba(24, 164, 183, 0.94));
  border-color: rgba(16, 40, 71, 0.55);
  box-shadow: 0 12px 28px rgba(16, 40, 71, 0.18);
  color: #ffffff;
}

.filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(183, 255, 31, 0.22), rgba(24, 164, 183, 0.12));
  color: var(--accent-strong);
  flex: 0 0 40px;
}

.filter-icon svg {
  width: 22px;
  height: 22px;
}

.filter-button.is-active .filter-icon {
  background: rgba(183, 255, 31, 0.18);
  color: var(--lime);
}

.filter-copy {
  display: grid;
  gap: 2px;
}

.filter-button .filter-copy strong {
  color: inherit;
}

.filter-button .filter-copy .small {
  color: var(--muted);
}

.filter-button.is-active .filter-copy strong,
.filter-button.is-active .filter-copy .small {
  color: #ffffff;
}

.list-summary {
  margin-bottom: 14px;
  color: var(--muted);
}

.removable-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 6px;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.stack {
  display: grid;
  gap: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), rgba(216, 238, 233, 0.6));
  border: 1px solid var(--line);
}

.stat-button {
  text-align: left;
  cursor: pointer;
}

.stat-alert {
  background: linear-gradient(145deg, #fff1f1, rgba(179, 75, 88, 0.22));
  border: 2px solid rgba(179, 75, 88, 0.52);
  color: var(--danger);
  box-shadow: 0 0 0 4px rgba(179, 75, 88, 0.12), 0 24px 60px rgba(179, 75, 88, 0.16);
  animation: alert-pulse 1.6s ease-in-out infinite;
}

.stat-alert .eyebrow,
.stat-alert strong {
  color: var(--danger);
}

.stat-alert strong {
  font-size: 2.2rem;
}

@keyframes alert-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  margin-top: 10px;
}

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

.list-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  overflow-wrap: anywhere;
}

.list-item header,
.calendar-item,
.split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.item-meta,
.small {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.attachment-card,
.attachment-block {
  margin-top: 14px;
}

.attachment-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.attachment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.inline-link {
  color: var(--teal-strong, #106a82);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.chip {
  padding: 7px 10px;
  background: var(--surface-alt);
  color: var(--ink);
}

.chip.status-prevu,
.chip.status-planifie {
  background: #dce9ff;
  color: #27518f;
}

.chip.status-a-prendre {
  background: #fff0d6;
  color: #946200;
}

.chip.status-realise,
.chip.status-effectue {
  background: #dff5e5;
  color: #2a6f43;
}

.chip.status-annule,
.chip.status-non {
  background: #fde5e5;
  color: #8f3434;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.hero-banner {
  background:
    radial-gradient(circle at 18% 20%, rgba(183, 255, 31, 0.30), transparent 22%),
    radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(135deg, #102847 0%, #1693ad 58%, #7ee08a 100%);
  color: white;
  overflow: hidden;
  position: relative;
  border-color: rgba(16, 40, 71, 0.18);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  background: rgba(183, 255, 31, 0.16);
  border-radius: 42% 58% 61% 39% / 42% 33% 67% 58%;
}

.hero-banner p,
.hero-banner h3 {
  position: relative;
  z-index: 1;
}

.hero-banner .chip {
  background: rgba(255, 255, 255, 0.14);
  color: #f7fff9;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.calendar-grid {
  display: grid;
  gap: 10px;
}

.calendar-item {
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-alt);
}

.calendar-item[data-kind="transport"] {
  border-left: 4px solid var(--warn);
}

.calendar-item[data-kind="soin"] {
  border-left: 4px solid var(--accent);
}

.calendar-item[data-kind="rdv"] {
  border-left: 4px solid #4b68a8;
}

.empty-state {
  text-align: center;
  padding: 28px;
}

dialog {
  border: none;
  border-radius: var(--radius);
  max-width: 760px;
  width: calc(100vw - 32px);
  max-height: calc(100vh - 24px);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(23, 16, 11, 0.35);
}

.dialog-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  max-height: calc(100vh - 72px);
  overflow: auto;
}

.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.danger-text {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.highlight {
  outline: 3px solid rgba(31, 95, 191, 0.26);
}

.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 16px 16px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.activity-feed {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 255, 246, 0.94));
  border: 1px solid var(--line);
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  flex: 0 0 38px;
  background: linear-gradient(145deg, rgba(183, 255, 31, 0.24), rgba(24, 164, 183, 0.16));
  color: var(--accent-strong);
  font-weight: 700;
}

.activity-copy {
  display: grid;
  gap: 4px;
}

.document-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 10px;
}

.notice {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(185, 115, 47, 0.12);
  border: 1px solid rgba(185, 115, 47, 0.2);
}

@media (max-width: 1080px) {
  .app-shell,
  .hero,
  .grid.cols-2,
  .grid.cols-3,
  .stats {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .brand {
    grid-template-columns: 80px 1fr;
    align-items: center;
  }

  .brand h1,
  .brand .eyebrow,
  .brand .muted {
    grid-column: 2;
  }

  .brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 22px;
  }

  .nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    align-items: end;
  }

  .secondary-actions {
    width: 100%;
  }

  .main-content {
    padding: 16px;
  }
}

@media (max-width: 900px) {
  .section-heading,
  .list-item header,
  .calendar-item,
  .split {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading > *,
  .list-item header > *,
  .calendar-item > *,
  .split > * {
    width: 100%;
  }

  .hero-banner::after {
    width: 140px;
    height: 140px;
  }

  .filter-button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .sidebar {
    padding: 14px;
  }

  .brand {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "logo title"
      "logo eyebrow"
      "muted muted";
    gap: 0 10px;
    align-items: start;
  }

  .brand-logo {
    grid-area: logo;
  }

  .brand h1 {
    margin: -2px 0 0;
    font-size: 1.45rem;
    line-height: 1.05;
    grid-area: title;
    align-self: end;
  }

  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    grid-area: eyebrow;
    margin-top: 3px;
    align-self: start;
  }

  .brand .muted {
    font-size: 0.74rem;
    line-height: 1.16;
    opacity: 0.68;
    grid-area: muted;
    margin-top: 3px;
  }

  .topbar {
    position: relative;
    padding: 14px 16px;
    gap: 8px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "panel";
    align-items: start;
  }

  .topbar > div:first-child {
    grid-area: title;
    width: auto;
    min-width: 0;
    padding-right: 104px;
  }

  .topbar h2 {
    font-size: 1.18rem;
    line-height: 1.08;
    margin: 2px 0 0;
  }

  .topbar-actions {
    display: block;
    width: 100%;
  }

  .topbar-actions > * {
    min-width: 0;
  }

  .mobile-tools-toggle {
    min-height: 40px;
  }

  .mobile-tools-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    min-width: 88px;
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1;
  }

  .mobile-tools-toggle.is-open {
    background: rgba(16, 40, 71, 0.14);
  }

  .secondary-actions {
    display: none;
    grid-area: panel;
    gap: 8px;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid rgba(16, 40, 71, 0.08);
    border-radius: 18px;
    background: rgba(16, 40, 71, 0.04);
    width: 100%;
    justify-self: stretch;
  }

  .secondary-actions.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-user-field {
    min-width: 0;
  }

  .topbar-user-label {
    display: none;
  }

  #manual-link {
    font-size: 0;
    padding-inline: 12px;
  }

  #manual-link::before {
    content: attr(data-short-label);
    font-size: 0.92rem;
  }

  #logout-button,
  #manual-link,
  .topbar-user-field select {
    min-height: 40px;
  }

  .card,
  .stat,
  .list-item,
  .activity-item,
  .calendar-item {
    padding: 16px;
    border-radius: 18px;
  }

  .dialog-form {
    padding: 18px;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions button {
    width: 100%;
  }

  .filter-toolbar,
  .chips {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chips > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .attachment-item {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .app-shell {
    min-height: 100dvh;
  }

  .main-content {
    padding: 12px;
  }

  .brand {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0 10px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    padding: 5px;
  }

  .brand h1 {
    font-size: 1.28rem;
    margin-top: -2px;
  }

  .brand .muted {
    font-size: 0.74rem;
    line-height: 1.14;
    margin-top: 1px;
  }

  .nav {
    margin: 10px 0 8px;
    gap: 8px;
  }

  .nav-link {
    padding: 11px 13px;
    font-size: 0.92rem;
  }

  .topbar-actions {
    justify-self: end;
  }

  .topbar h2 {
    font-size: 1.08rem;
    line-height: 1.06;
  }

  .secondary-actions {
    width: 100%;
  }

  #manual-link,
  #quick-add,
  #logout-button,
  .topbar-user-field {
    grid-column: auto;
  }

  .auth-brand {
    gap: 12px;
    align-items: flex-start;
  }

  .auth-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  dialog {
    width: calc(100vw - 16px);
  }
}
