.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--navy);
  color: white;
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: #183e6b;
}
.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--border);
}
.btn.secondary:hover {
  background: var(--canvas);
}
.btn.tonal {
  background: var(--primary-soft);
  color: var(--navy);
}
.btn.ghost {
  background: transparent;
  color: var(--navy);
}
.btn.danger {
  background: var(--danger);
}
.btn.pill {
  border-radius: 99px;
  background: #151e29;
}
.btn.icon-btn {
  width: 36px;
  padding: 8px;
}
.btn.sm {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 12px;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.icon-btn.sm {
  width: 30px;
  padding: 6px;
}
.btn.sm .icon {
  width: 14px;
  height: 14px;
}
.btn.danger:hover {
  background: #93272e;
}
.btn.ghost:hover,
.btn.tonal:hover {
  background: #e3ebf5;
  color: var(--navy);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}
.card-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--primary-soft);
  color: var(--primary);
}
.badge.success {
  background: #eaf7ef;
  color: var(--success);
}
.badge.warning {
  background: #fff5e3;
  color: var(--warning);
}
.badge.danger {
  background: #ffedef;
  color: var(--danger);
}
.badge.neutral {
  background: #eef1f5;
  color: var(--muted);
}
.badge-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}
.field input,
.field textarea,
.field select,
.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--control-radius);
  background: white;
  color: var(--ink);
  padding: var(--control-padding-y) var(--control-padding-x);
  min-height: var(--control-height);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.field :is(input, select, textarea):focus,
.input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 0.5px var(--navy);
}
.field :is(input, select, textarea):disabled,
.input:disabled {
  background: #f1f3f6;
  color: #8a94a3;
  cursor: not-allowed;
}
.field :is(input, textarea)[readonly] {
  background: #f8faff;
}
.field :is(input, textarea)::placeholder {
  color: var(--muted);
  opacity: 1;
}
.field :is(input, select, textarea)[aria-invalid="true"],
.field :is(input, select, textarea):user-invalid {
  border-color: var(--danger);
}
.field :is(input, select, textarea)[aria-invalid="true"]:focus,
.field :is(input, select, textarea):user-invalid:focus {
  box-shadow: 0 0 0 0.5px var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 400;
}
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2365758b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right 12px center;
}
.field select:open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 10 4-4 4 4' fill='none' stroke='%2365758b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@supports (appearance: base-select) {
  .field select,
  .field select::picker(select) {
    appearance: base-select;
  }
  .field select::picker-icon {
    display: none;
  }
  .field select::picker(select) {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 0;
    box-shadow: 0 8px 24px #172d4926;
    background: white;
    margin-block: 5px;
    font: 14px/1.5 var(--font-ui);
  }
  .field select option {
    padding: 12px 16px;
    min-height: 44px;
    gap: 12px;
  }
  .field select option:hover,
  .field select option:focus {
    background: var(--primary-soft);
  }
  .field select option:checked {
    background: #e8f0fd;
    color: var(--primary);
  }
  .field select option::checkmark {
    color: var(--primary);
  }
  .field select:not([multiple]) option {
    justify-content: flex-start;
  }
  .field select:not([multiple]) option::checkmark {
    display: none;
  }
}
.fields {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fields .full {
  grid-column: 1/-1;
}
.alert {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--navy);
  border: 1px solid #d9e7fd;
  font-size: 12px;
}
.alert.success {
  background: #eef9f3;
  color: var(--success);
  border-color: #cee9da;
}
.alert.warning {
  background: #fff8e9;
  color: var(--warning);
  border-color: #f2e1bf;
}
.alert.danger {
  background: #fff0f1;
  color: var(--danger);
  border-color: #f0cdd0;
}
.alert p {
  margin-top: 4px;
  color: inherit;
}
.avatar {
  height: 40px;
  width: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #eaf1fd;
  color: var(--primary);
  font-weight: 750;
  flex: none;
}
.avatar.lg {
  height: 62px;
  width: 62px;
  font-size: 23px;
}
.avatar-group {
  display: flex;
  padding-left: 7px;
}
.avatar-group .avatar {
  margin-left: -7px;
  border: 3px solid white;
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.table-wrap {
  overflow: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  background: #f5f7fa;
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 700;
  padding: 12px;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
td p {
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
tr:last-child td {
  border-bottom: 0;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}
.table-foot .row {
  gap: 6px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  max-width: 100%;
}
.pagination-button {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pagination-button:hover:not(:disabled) { background: var(--primary-soft); }
.pagination-button[aria-current="page"],
.pagination-button[aria-current="page"]:hover { background: var(--navy); color: white; }
.pagination-button:disabled { opacity: .35; cursor: default; }
.pagination-button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pagination-button .icon { width: 16px; height: 16px; }
.pagination-previous .icon { transform: rotate(180deg); }
.pagination-gap { display: grid; place-items: center; width: 20px; flex: none; font-size: 13px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 12px;
  background: white;
  font-size: 11px;
  color: var(--ink);
}
button.chip[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 18px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 12px 3px;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 700;
}
.pill-tabs {
  display: flex;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: white;
  gap: 5px;
}
.pill-tabs button {
  flex: 1;
  border: 0;
  padding: 11px 10px;
  border-radius: 99px;
  background: none;
  color: var(--ink);
  font-size: 12px;
}
.pill-tabs button[aria-selected="true"] {
  background: var(--navy);
  color: white;
  font-weight: 750;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  cursor: pointer;
}
.switch input {
  appearance: none;
  width: 48px;
  height: 28px;
  background: #e5e8ee;
  border: 2px solid #788391;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  margin: 0;
  flex: none;
}
.switch input:checked {
  background: var(--navy);
  border-color: var(--navy);
}
.switch input::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.15s;
}
.switch input:checked::after {
  transform: translateX(20px);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.check-row input {
  accent-color: var(--navy);
  width: 18px;
  height: 18px;
}
.empty {
  text-align: center;
  padding: 40px 18px;
  color: var(--muted);
}
.empty .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  max-width: 400px;
  margin: auto;
}
.stat .stat-icon {
  background: var(--primary-soft);
  color: var(--navy);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.stat strong {
  font-size: 30px;
  display: block;
  letter-spacing: -1px;
  margin-top: 19px;
  line-height: 1.2;
}
.stat h3 {
  font-size: 12px;
  margin: 6px 0 10px;
}
.stat p {
  font-size: 10px;
  color: var(--muted);
}
.mini-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #edf4ff;
  color: var(--navy);
  border-radius: 10px;
  flex: none;
}
.toast {
  --toast-accent: #3578b8;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e0e6ee;
  padding: 6px 8px 6px 12px;
  border-radius: 12px;
  box-shadow: 0 8px 28px #172d491a;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  width: min(360px, 100%);
  min-width: 0;
}
.toast[data-kind="success"] { --toast-accent: #23815b; }
.toast[data-kind="error"] { --toast-accent: #bd4051; }
.toast-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #edf4fb; color: var(--toast-accent); flex: none; }
.toast[data-kind="success"] .toast-symbol { background: #edf8f2; }
.toast[data-kind="error"] .toast-symbol { background: #fff0f2; }
.toast-symbol .icon { width: 16px; height: 16px; }
.toast-message { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
}
.toast button:hover { background: #0b2e590d; }
.toast button .icon { width: 18px; height: 18px; }
.toasts {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  bottom: auto;
  right: 24px;
  z-index: 120;
  display: grid;
  gap: 10px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
  justify-items: end;
}
.toasts > .toast { pointer-events: auto; }
.toasts:has(.toast) { max-height: calc(100dvh - 32px); overflow-y: auto; }
dialog {
  width: min(520px, calc(100vw - 48px));
  max-height: min(85dvh, 850px);
  border: 0;
  border-radius: var(--dialog-radius);
  box-shadow: 0 12px 40px #071b3629;
  padding: 0;
  color: var(--ink);
  background: var(--dialog-surface);
  overflow: hidden;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog::backdrop {
  background: rgb(0 0 0 / 0.44);
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog header {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 24px 24px 16px;
}
dialog header h2 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: 0;
  padding-top: 0;
}
dialog header .icon-btn {
  min-width: 40px;
  width: 40px;
  min-height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
dialog form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.modal-body {
  padding: 0 24px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.modal-body > p {
  color: var(--muted);
  line-height: 1.6;
}
dialog footer {
  display: flex;
  flex: none;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px 24px;
}
dialog footer .btn {
  font-size: 13px;
}
dialog footer .btn.secondary {
  border: 0;
  background: transparent;
  color: var(--navy);
}
dialog.is-action { width: min(440px, calc(100vw - 40px)); }
dialog.is-action .modal-body { padding-top: 0; }
.action-dialog-content { display: grid; justify-items: center; gap: 16px; text-align: center; }
.action-dialog-symbol { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #d5e2ef; border-radius: 20px; background: #edf3fa; color: var(--navy); box-shadow: none; }
.action-dialog-symbol.is-success { background: #eaf6ef; border-color: #c4dfce; color: #176644; }
.action-dialog-symbol .icon { width: 30px; height: 30px; }
.action-dialog-content > p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.action-dialog-summary { width: 100%; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #ffffffb3; text-align: left; }
.action-dialog-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; padding-block: 6px; font-size: 13px; }
.action-dialog-summary dt { color: var(--muted); }
.action-dialog-summary dd { margin: 0; color: var(--navy); font-weight: 500; overflow-wrap: anywhere; text-align: right; }
dialog.is-action footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
dialog.is-action footer .btn { min-height: 44px; }
dialog.is-action footer .btn.secondary { background: #f4f7fb; border: 1px solid #dce3eb; }
#report-success-dialog .action-dialog-summary > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
#report-success-dialog .action-dialog-summary dd { text-align: left; }
#report-success-dialog footer { grid-template-columns: minmax(0, 1fr); }
#login-success-dialog > header { position:relative; justify-content:center; padding-inline:64px; }
#login-success-dialog > header h2 { width:100%; text-align:center; }
#login-success-dialog > header [data-close-dialog] { position:absolute; right:20px; top:16px; }
#login-success-dialog footer { grid-template-columns:minmax(0,1fr); }
.report-success-art, .modal-state-art { display: block; width: 128px; max-width: 100%; height: auto; object-fit: contain; }
#error-dialog footer { grid-template-columns: minmax(0, 1fr); }
#error-dialog .modal-error-list { width: 100%; margin: 0; padding-left: 20px; text-align: left; color: var(--muted); overflow-wrap: anywhere; }
dialog.is-action #modal-error:empty { display: none; }
dialog.is-sheet {
  margin: auto auto 0;
  border-radius: 28px 28px 0 0;
  width: min(560px, 100vw);
}
dialog.is-sheet::before {
  content: "";
  width: 32px;
  height: 4px;
  border-radius: 9px;
  background: #a5abb4;
  margin: 14px auto 0;
  flex: none;
}
.code {
  padding: 17px;
  background: var(--navy);
  color: #d9e9ff;
  border-radius: 10px;
  overflow: auto;
  font:
    12px/1.8 Consolas,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.example {
  margin-bottom: 20px;
}
.example-preview {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.example-source {
  font:
    10px/1.6 Consolas,
    monospace;
  color: var(--primary);
  margin-top: 7px;
}
.progress {
  width: 100%;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  accent-color: var(--navy);
}
.skeleton {
  height: 12px;
  background: #e7ecf3;
  border-radius: 6px;
  margin-bottom: 12px;
}
.spinner {
  width: 25px;
  height: 25px;
  border: 3px solid #dce6f3;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.accordion {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.accordion details + details {
  border-top: 1px solid var(--border);
}
.accordion summary {
  padding: 16px;
  font-size: 13px;
  font-weight: 650;
}
.accordion details > p,
.accordion details > div {
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--muted);
}
.timeline {
  border-left: 2px solid var(--border);
  margin-left: 9px;
  padding-left: 24px;
}
.timeline li {
  position: relative;
  list-style: none;
  padding-bottom: 25px;
  font-size: 12px;
}
.timeline li::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 3px solid white;
  background: var(--success);
  border-radius: 50%;
  position: absolute;
  left: -32px;
  top: 3px;
  box-shadow: 0 0 0 1px #dce5ef;
}
.timeline small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.stepper {
  display: flex;
  gap: 12px;
}
.stepper .step {
  flex: 1;
  padding: 14px;
  background: var(--canvas);
  border-radius: 10px;
  font-size: 12px;
}
.stepper .step.active {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px #adc9f5;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px 12px;
}
.shortcut {
  border: 0;
  background: none;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  font-size: 11px;
  text-align: center;
}
.shortcut span {
  width: 58px;
  height: 58px;
  background: var(--mint);
  border-radius: 17px;
  display: grid;
  place-items: center;
}
.shortcut .icon {
  width: 25px;
  height: 25px;
}
.news-card {
  padding: 0;
  overflow: hidden;
}
.news-photo {
  width: 100%;
  height: 190px;
  display: grid;
  place-items: center;
  background: #eaf1f2;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-copy {
  padding: 21px;
}
.news-copy h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 12px 0 9px;
}
.news-copy p {
  font-size: 12px;
  color: var(--muted);
}
.news-copy small {
  display: block;
  color: var(--muted);
  margin-top: 17px;
  font-size: 10px;
}
.notification {
  display: flex;
  gap: 15px;
  padding: 23px 0;
  border-bottom: 1px solid var(--border);
}
.notification button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  flex: 1;
}
.notification h3 {
  font-size: 17px;
}
.notification p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}
.notification.unread .mini-icon {
  box-shadow: inset -3px 3px #ff9a48;
}
.calendar {
  max-width: 390px;
  width: 100%;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  margin-top: 12px;
}
.calendar-grid > * {
  padding: 8px 1px;
  font-size: 12px;
}
.calendar-grid button {
  border: 0;
  border-radius: 50%;
  background: none;
  aspect-ratio: 1;
  color: var(--ink);
}
.calendar-grid button:hover {
  background: var(--primary-soft);
}
.calendar-grid button.selected {
  background: var(--navy);
  color: white;
}
.upload {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}
.upload input {
  max-width: 100%;
  margin: 15px 0;
}
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.file-list img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.file-list figure {
  margin: 0;
}
.file-list figcaption {
  font-size: 10px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-error {
  font-size: 12px;
  color: var(--danger);
}
.pill-count {
  border-radius: 99px;
  background: var(--navy);
  color: white;
  padding: 1px 6px;
  font-size: 10px;
}
@media (max-width: 650px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  .news-card {
    padding: 0;
  }
  .card-head {
    flex-wrap: wrap;
  }
  .stepper {
    flex-direction: column;
  }
  .toasts {
    right: 12px;
    left: 12px;
    top: max(12px, env(safe-area-inset-top));
    bottom: auto;
  }
  .table-wrap {
    margin: 0;
  }
  h1 {
    font-size: 25px;
  }
  .news-photo {
    height: 175px;
  }
  dialog {
    width: calc(100vw - 40px);
    max-height: 88dvh;
  }
  dialog header {
    padding: 22px 22px 14px;
  }
  .modal-body {
    padding-inline: 22px;
  }
  dialog footer {
    padding: 18px 22px 22px;
  }
}

.view-all-link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.standalone-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--navy);
}
.standalone-heading h1 {
  margin: 0;
  min-width: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.standalone-heading .standalone-back {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
}
.standalone-back .icon {
  width: 24px;
  height: 24px;
}
.standalone-heading .standalone-back:hover {
  background: var(--border);
}
.profile-hero .standalone-heading {
  margin-bottom: 0;
}

@keyframes garda-component-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  :is(
    .news-story,
    .notice-item,
    .feature-group,
    .profile-settings-group,
    .report-summary,
    .history-tools
  ) {
    animation: garda-component-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  :is(.news-story, .notice-item):nth-child(2) {
    animation-delay: 35ms;
  }
  :is(.news-story, .notice-item):nth-child(3) {
    animation-delay: 70ms;
  }
  :is(.news-story, .notice-item):nth-child(n + 4) {
    animation-delay: 100ms;
  }
  .btn,
  .standalone-back {
    transition:
      background-color 200ms ease,
      color 200ms ease,
      transform 160ms ease;
  }
  .btn:active,
  .standalone-back:active {
    transform: scale(0.97);
  }
}

.reference-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f5f8fc;
  color: var(--navy);
  text-align: left;
  font: inherit;
}
.reference-copy-label {
  font-size: 10px;
  color: var(--muted);
  flex: none;
}
.reference-copy-value {
  min-width: 0;
  font-size: 11px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 500;
  overflow-wrap: anywhere;
  user-select: text;
}
.reference-copy > .icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.reference-copy:hover {
  border-color: #bdccde;
  background: var(--primary-soft);
}
.reference-copy:active {
  background: #dfe5ec;
}
.personal-report-archive {
  position: relative;
}
.personal-reference-slot {
  font-size: 11px;
  line-height: 16.5px;
  min-height: 16.5px;
  visibility: hidden;
}
.personal-reference-action {
  position: absolute;
  left: 92px;
  right: 12px;
  bottom: 12px;
  width: fit-content;
  max-width: calc(100% - 104px);
}
.personal-reference-action .reference-copy {
  min-height: 16.5px;
  padding: 0;
  gap: 6px;
  border: 0;
  background: transparent;
  border-radius: 0;
  line-height: 16.5px;
}
.personal-reference-action .reference-copy-label {
  display: none;
}
.personal-reference-action .reference-copy-value {
  font-size: 11px;
}
.personal-reference-action .reference-copy > .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.personal-reference-action .reference-copy:hover {
  color: var(--navy);
  background: transparent;
}
.personal-reference-action .reference-copy:active {
  background: transparent;
}
@media (max-width: 650px) {
  .personal-reference-action {
    left: 84px;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 94px);
  }
}
@media (max-width: 359px) {
  .personal-reference-action {
    left: 74px;
    max-width: calc(100% - 84px);
  }
}

.app-version-footer {
  position: static;
  flex-shrink: 0;
  margin-top: auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}
.app-version-footer p {
  margin: 0 auto 6px;
  max-width: 600px;
  font-size: 11px;
  line-height: 1.6;
}
.app-version-footer > span {
  white-space: nowrap;
}
.app-shell:has(.emergency-call) .app-version-footer {
  padding-bottom: 80px;
}
