:root {
  color-scheme: light;
  --ink: #111827;
  --ink-muted: #5b6472;
  --surface: #ffffff;
  --surface-sunken: #f5f6f8;
  --line: #e3e6ea;
  --line-strong: #c9cdd3;
  --field-border: #7f8b99;
  --primary: #1f4e43;
  --primary-strong: #123229;
  --primary-pale: #e8f0ed;
  --primary-border: #c9d3cf;
  --on-primary: #ffffff;
  --danger: #b42318;
  --danger-strong: #912018;
  --danger-pale: #fdecea;
  --danger-border: #f1b8b2;
  --warning: #8a4b06;
  --warning-pale: #fff3d6;
  --warning-border: #ecd0a0;
  --success: #0f6b45;
  --success-strong: #0a5535;
  --success-pale: #e8f6ef;
  --success-border: #b6dcc7;
  --ai: #5b3fb5;
  --ai-strong: #45308f;
  --ai-pale: #efeafd;
  --ai-border: #d4c8f4;
  --demo: #a1246b;
  --demo-pale: #fcebf4;
  --demo-border: #efc3db;
  --highlight: #ffe28a;
  --brand-star: #a7834e;
  --brand-tile: #e8f1f3;
  --scrim: rgba(17, 24, 39, 0.78);
  --shadow-menu: 0 8px 24px rgba(16, 24, 40, 0.12);
  --shadow-float: 0 24px 64px rgba(16, 24, 40, 0.2), 0 2px 6px rgba(16, 24, 40, 0.06);
  --shadow-segment: 0 1px 2px rgba(16, 24, 40, 0.12);
}
:root {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  hyphens: manual;
  -webkit-font-smoothing: antialiased;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem max(1.5rem, calc((100% - 69rem) / 2));
  background: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.settings-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

a.settings-link:hover {
  background: var(--surface-sunken);
  color: var(--primary-strong);
  text-decoration: none;
}

.settings-link[aria-current="page"] {
  background: var(--primary-pale);
}

.settings-link svg {
  flex: none;
}

.brand {
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.demo-pill {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border: 1px solid var(--demo-border);
  border-radius: 999px;
  background: var(--demo-pale);
  color: var(--demo);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.4;
  vertical-align: middle;
}

.demo-pill__spoken {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.demo-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 1rem;
  color: var(--demo);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.demo-warning svg {
  flex: none;
}

.phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

a.phone:hover {
  color: var(--primary-strong);
  text-decoration: none;
}

.phone svg {
  flex: none;
}

.banner-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}

.shell {
  max-width: 28rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 4rem;
}

.shell.wide {
  max-width: 40rem;
}

@media (min-width: 40rem) {
  .shell {
    padding-top: 5rem;
  }
}

h1, h2 {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

/* Container units follow the phone preview frame and fall back to the viewport on live pages. */
h1 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: clamp(2.25rem, 7cqi, 2.75rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1.1rem;
}

h1 + p {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
}

fieldset {
  min-width: 0;
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.date-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 0.75rem;
}

label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 3.5rem;
  padding: 0 1rem;
  border: 1.5px solid var(--field-border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.75rem;
  text-align: center;
  transition: background-color 150ms, border-color 150ms;
}

input[type="email"],
input[type="tel"] {
  text-align: left;
  font-size: 1.25rem;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover {
  background: var(--surface-sunken);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  background: var(--surface);
  border-color: var(--primary);
}

input.code {
  letter-spacing: 0.35em;
}

input[aria-invalid="true"],
input[aria-invalid="true"]:hover,
input[aria-invalid="true"]:focus {
  border-color: var(--danger);
  border-width: 2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  margin: 1rem 0 1.25rem;
}

.check input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.5px solid var(--field-border);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms;
}

.check input::before {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--on-primary);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
  transform: scale(0);
  transition: transform 220ms cubic-bezier(0.3, 1.7, 0.5, 1);
}

.check input:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.check input:checked::before {
  transform: scale(1);
}

.check label {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 44px;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
}

.field-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: var(--danger-pale);
  color: var(--danger);
  font-weight: 600;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms;
}

button svg {
  flex: none;
}

button + button {
  margin-top: 0.75rem;
}

input:not([type="hidden"]) + button {
  margin-top: 1rem;
}

button:hover:not([disabled]):not(.quiet) {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

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

input:focus-visible,
.check input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.preview-banner {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--highlight);
  color: var(--ink);
  font-weight: 600;
}

.preview-banner a {
  display: inline-block;
  margin-left: 0.5rem;
}

/* The staff preview: the client's header and page in a phone-sized frame on a neutral ground. */
.preview-page {
  background: var(--surface-sunken);
}

.phone-frame {
  container-type: inline-size;
  width: 390px;
  max-width: calc(100% - 2rem);
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--sans);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

a {
  display: inline-block;
  min-width: 2.75rem;
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.375rem 0.125rem;
  overflow-wrap: anywhere;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary-strong);
  text-decoration-thickness: 2px;
}

details {
  margin: 1.5rem 0;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.5rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.chevron {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

details[open] > summary .chevron {
  transform: rotate(180deg);
}

ul.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home section {
  margin: 0 0 2.75rem;
}

.home h2 {
  margin: 0 0 1rem;
}

.no-cases {
  margin: 0 0 0.875rem;
  padding: 1.125rem;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--ink-muted);
}

.case {
  margin: 0 0 0.875rem;
  padding: 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.case-title h2,
.case-title h3 {
  min-width: 0;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.case-line {
  margin: 0.125rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.case .case-status {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.status-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.needed {
  padding: 0.875rem 1rem;
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  background: var(--warning-pale);
}

.needed ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.needed li,
ul.dots li {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.by {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.needed .by {
  color: var(--warning);
}

.needed .needed-send {
  margin-top: 0.5rem;
  min-height: 3rem;
}

.needed__line {
  color: var(--ink-muted);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.cases + .send-other {
  margin-top: 1rem;
}

.case-choices label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}

.case-choices input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
}

.all-clear {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.75rem 0.875rem;
  border-radius: 8px;
  background: var(--success-pale);
  color: var(--success);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.all-clear .status-icon {
  width: 20px;
  height: 20px;
}

.task-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-group :is(h3, h4) {
  margin: 0;
  line-height: inherit;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

ul.dots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

ul.dots li {
  position: relative;
  padding-left: 1rem;
}

ul.dots li::before {
  content: "";
  position: absolute;
  top: 0.625rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.task-group.waiting ul.dots li::before {
  background: var(--field-border);
}

details.more {
  margin: 0;
}

details.more summary {
  display: inline-flex;
  justify-content: flex-start;
  gap: 0.375rem;
  padding: 0;
  color: var(--primary);
  font-size: 1rem;
}

details.more summary .chevron {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

details.more[open] {
  display: flex;
  flex-direction: column;
}

details.more[open]::details-content {
  display: contents;
}

details.more[open] > summary {
  order: 1;
  margin-top: 0.5rem;
}

details.more > summary > .more-hide,
details.more[open] > summary > .more-show {
  display: none;
}

details.more[open] > summary > .more-hide {
  display: inline;
}

.case-attorneys {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

.case-attorneys dt {
  color: var(--ink-muted);
}

.case-attorneys dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.case-status .send-more {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.label {
  margin: 0 0 0.25rem;
}

.label {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

details.account-fold,
details.fold {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

details.account-fold summary h2,
details.fold summary h2 {
  margin: 0;
}

.account-fold section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0 1.25rem;
}

.account-fold h3 {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}


dl.details {
  margin: 0 0 0.5rem;
}

dl.details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

dl.details dt {
  flex: 0 0 9rem;
  color: var(--ink-muted);
}

dl.details dd {
  flex: 1 1 16rem;
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
}

dl.details dd.empty {
  color: var(--ink-muted);
}

.received-files li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.received-files__name {
  overflow-wrap: anywhere;
}

.received-files__status {
  color: var(--warning);
  white-space: nowrap;
}

nav.account button {
  display: inline-block;
  width: auto;
  min-height: 44px;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 1rem;
  font-weight: 600;
}

nav.account button:hover:not([disabled]) {
  background: var(--surface-sunken);
  border-color: var(--field-border);
  color: var(--ink);
}

button.quiet {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 500;
}

button.quiet:hover:not([disabled]) {
  background: var(--surface-sunken);
  border-color: var(--field-border);
  color: var(--ink);
}

button[disabled] {
  background: var(--surface);
  color: var(--ink-muted);
  border-color: var(--line-strong);
  cursor: not-allowed;
}

.alternate {
  margin-top: 1.5rem;
}

.alternate button {
  background: var(--surface);
  color: var(--primary);
  border-color: transparent;
  font-weight: 500;
}

.alternate button:hover:not([disabled]) {
  background: var(--surface-sunken);
  border-color: transparent;
  color: var(--primary-strong);
}

.center {
  margin-top: 1.25rem;
  text-align: center;
}

.stacked form {
  margin: 0 0 0.75rem;
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
}

.notice p {
  margin: 0;
}

.passkey-status {
  margin: 1rem 0 0;
  font-weight: 600;
}

/* Settings shares the home screen's column: the same width and the same side margins. */
.shell.settings {
  max-width: 40rem;
  padding: 2.5rem 1.5rem 4rem;
}

.settings h1 {
  margin: 0.5rem 0 1.75rem;
}

.lead {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
}

a.back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  color: var(--primary);
  font-size: 1rem;
  text-decoration: none;
}

a.back:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0 0 1.5rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: var(--success-pale);
  color: var(--success);
  font-size: 1rem;
  line-height: 1.45;
}

.status svg {
  flex: none;
  margin-top: 1px;
}

.status p {
  margin: 0;
}

.status.problem {
  background: var(--danger-pale);
  color: var(--danger);
}

.settings section > h2 {
  margin: 0 0 0.875rem;
}

ul.methods {
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--line);
}

ul.methods li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.method-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--primary);
}

.method-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.method-name {
  font-weight: 600;
}

.method-detail {
  color: var(--ink-muted);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.method-note {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

a.remove {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0 0.25rem;
  color: var(--danger);
  font-size: 1rem;
  text-underline-offset: 3px;
}

a.remove:hover {
  color: var(--danger-strong);
}

a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.125rem;
  text-decoration: none;
}

a.button:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: var(--on-primary);
}

a.button.secondary {
  border: 1.5px solid var(--primary);
  background: var(--surface);
  color: var(--primary);
}

a.button.secondary:hover {
  background: var(--surface-sunken);
  color: var(--primary-strong);
}

a.button.quiet {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

a.button.quiet:hover {
  background: var(--surface-sunken);
  border-color: var(--field-border);
}

form + a.button {
  margin-top: 0.75rem;
}

button.link-button {
  display: block;
  width: auto;
  min-height: 44px;
  margin: 0.75rem auto 0;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

button.link-button:hover:not([disabled]):not(.quiet) {
  background: none;
  color: var(--primary-strong);
}

button.danger {
  background: var(--danger);
  border-color: var(--danger);
}

button.danger:hover:not([disabled]):not(.quiet) {
  background: var(--danger-strong);
  border-color: var(--danger-strong);
}

.method-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.remove-note {
  margin: 1.25rem 0 1.75rem;
}

ul.options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option,
button.option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.875rem;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
}

a.option:hover,
button.option:hover:not([disabled]):not(.quiet) {
  border-color: var(--primary);
  background: var(--surface-sunken);
  color: var(--ink);
}

.option .method-icon {
  width: 44px;
  height: 44px;
}

.option > svg {
  flex: none;
  color: var(--ink-muted);
}

.confirm h2 {
  margin-top: 0.5rem;
}

section.texts {
  margin: 0 0 2.25rem;
}

.texts-disclosure,
.texts-note {
  margin: 0 0 0.875rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

ul.text-phones li {
  flex-wrap: wrap;
  justify-content: space-between;
}

ul.text-phones form {
  flex: none;
  margin: 0;
}

ul.text-phones button {
  width: auto;
  min-height: 44px;
  padding: 0 1.125rem;
  border-radius: 8px;
  font-size: 1rem;
  white-space: nowrap;
}

ul.text-phones button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

ul.text-phones button.secondary:hover:not([disabled]) {
  border-color: var(--field-border);
  background: var(--surface-sunken);
  color: var(--ink);
}

.card-page {
  min-height: 100vh;
  background: var(--surface);
}

.shell.card {
  width: 100%;
  max-width: 29rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) 1.5rem 4rem;
}

.card h1,
.card h1 + p {
  text-align: center;
}

.card h1 + p {
  margin-bottom: 2.5rem;
  color: var(--ink-muted);
}

@media (max-width: 30rem) {
  header.site {
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .settings-link {
    padding: 0 0.5rem;
  }

  .phone {
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  .phone-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* The preview frame is phone-sized whatever the window, so the header takes its phone look there too. */
@container (max-width: 30rem) {
  header.site {
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .settings-link {
    padding: 0 0.5rem;
  }

  .phone {
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  .phone-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

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

.request-rows {
  border-top: 1px solid var(--line);
}

.request-rows li {
  border-bottom: 1px solid var(--line);
}

a.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.75rem 0;
  color: var(--ink);
  text-decoration: none;
}

a.request-row > svg {
  color: var(--ink-muted);
}

.request-row__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.request-row__title {
  font-size: 1.0625rem;
  font-weight: 600;
}

.request-row__by {
  color: var(--warning);
  font-size: 0.9375rem;
}

.request-row__line,
.request-row__note {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

a.send-else-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
}

.request-card__note-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--warning-pale);
}

.request-card__note-label {
  color: var(--warning);
  font-size: 0.8125rem;
  font-weight: 600;
}

.send-pick .request-card__note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.send [hidden] {
  display: none !important;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thumbs:empty {
  display: none;
}

.thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.thumb__tile {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 4;
  padding: 8px;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.thumb__name {
  margin: 0;
  padding: 8px;
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.thumb button.thumb__remove,
.thumb button.thumb__remove:hover:not([disabled]) {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  border: 7px solid transparent;
  border-radius: 50%;
  background: var(--scrim);
  background-clip: padding-box;
  color: var(--on-primary);
  font-size: 0.8125rem;
}

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

label.file-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

label.file-tile:hover {
  background: var(--surface-sunken);
  color: var(--primary-strong);
}

label.file-tile:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}

.send-refusal {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: var(--danger-pale);
  color: var(--danger);
  font-weight: 600;
}

.send-refusal p {
  margin: 0;
}

.send-not-added ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.25rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.send-not-added ul:last-child {
  margin-bottom: 0;
}

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

.send-rows {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  list-style: none;
}

.send-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.send-row:last-child {
  border-bottom: 0;
}

.send-row__icon {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--primary);
  border-right-color: var(--line-strong);
  border-radius: 50%;
  animation: send-spin 1s linear infinite;
}

.send-row__icon--stopped {
  border-color: var(--line-strong);
  animation: none;
}

.send-row__icon--sent {
  border: 0;
  background: var(--success-pale);
  color: var(--success);
  font-size: 0.9375rem;
  font-weight: 700;
  animation: none;
}

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

.send-row__name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.send-row__state {
  grid-column: 3;
  grid-row: 1;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.send-row__state--sent {
  color: var(--primary);
  font-weight: 600;
}

.send-row__bar {
  grid-column: 2 / -1;
  grid-row: 2;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.send-row__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
}

.app-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* The content layouts share the entry screens' white ground and quiet header. */
.app-grey {
  background: var(--surface);
}

.app .settings-link svg,
header.account .settings-link svg {
  display: none;
}

.app .shell,
.app .shell.wide {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 32rem;
  padding: 3rem 1.5rem 4rem;
}

.app .shell.wide {
  max-width: 40rem;
}

.app .shell > * {
  margin-top: 0;
  margin-bottom: 0;
}

.app h1 {
  font-size: clamp(2rem, 7cqi, 2.5rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.app .app-intro p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.app form {
  margin: 0;
}

.app button,
.app a.button {
  min-height: 3.5rem;
  border-radius: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.app button:disabled {
  border-color: var(--line-strong);
  background: var(--surface-sunken);
  color: var(--ink-muted);
}

.app a.button.secondary {
  border: 1.5px solid var(--primary);
  background: var(--surface);
  color: var(--primary);
}

.app a.button.secondary:hover {
  background: var(--surface-sunken);
}

.app a.button.send-other,
.app button.send-other {
  gap: 8px;
  border: 1.5px dashed var(--field-border);
  background: transparent;
  color: var(--primary);
}

.app button.send-other:disabled {
  border: 1.5px dashed var(--field-border);
  background: transparent;
  color: var(--primary);
}

.app .shell.centered {
  align-items: center;
  padding-top: 72px;
  text-align: center;
}

.app .shell.centered > p {
  max-width: 19.5rem;
  color: var(--ink-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.app .shell.centered > a.button {
  align-self: stretch;
}

.app .send {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.app .send-pick,
.app .send-sending {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
}

.app .send-pick > * {
  margin: 0;
}

.app .send-pick > [data-send-button] {
  margin-top: auto;
}

.app .send-pick > h1 + .send-case {
  margin-top: -12px;
}

.app .send-pick > a.back {
  align-self: flex-start;
}

.app .send-sending > h1,
.app .send-sending > p,
.app .send-sending > ul,
.app .send-sending > .send-refusal {
  margin: 0;
}

.app .send-keep-open {
  color: var(--warning);
  font-size: 1rem;
}

.app .send-weak {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.app .case-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.app .case-choices legend {
  padding: 0 0 10px;
  font-size: 1rem;
}

.app .case-choices label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 3.5rem;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 1rem;
  font-weight: 600;
}

.app .case-choices label:has(input:checked) {
  padding: 13px 15px;
  border: 2px solid var(--primary);
}

.app .case-choices label:has(input:focus-visible) {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.app .case-choices input {
  margin-top: 2px;
  accent-color: var(--primary);
}

.app .home h1 {
  padding: 0;
  font-size: clamp(2rem, 7cqi, 2.5rem);
}

.app .home section {
  margin: 0;
}

.app .home section > h2 {
  margin: 0 0 1rem;
  padding: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.app .home .needed {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}

.needed__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}

.needed__head::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.app .home .needed .needed__head h2 {
  margin: 0;
  padding: 0;
  color: var(--warning);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
}

.app .home .needed ul {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.5rem 0 0;
}

.app .home .needed li {
  gap: 4px;
}

.needed__title {
  font-size: 1.0625rem;
  font-weight: 600;
}

.needed__case {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.app .home .needed .by {
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.app .home .needed .needed-send {
  margin-top: 8px;
}

.app .home .case,
.app .home .no-cases {
  padding: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.app .home .cases {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app .home .cases > .case {
  margin: 0;
}

.case-title {
  min-width: 0;
}

.app .home .case-title h2,
.app .home .case-title h3 {
  font-size: 1.125rem;
  font-weight: 650;
}

.app .home .case .case-status {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.app .home .task-group :is(h3, h4) {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.app .home .cases + .send-other {
  margin-top: 14px;
}

.app .home details.account-fold {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.app .home .account-fold section {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0.5rem 0 1.25rem;
}

.account-fold dl.details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
}

.account-fold dl.details > div {
  display: contents;
}

.account-fold dl.details dt,
.account-fold dl.details dd {
  flex: none;
}

.app .home details.account-fold summary h2 {
  padding: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
}

.app .home nav.account {
  text-align: center;
}
