@font-face {
  font-family: Archivo;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #eef0f3;
  --surface: #fff;
  --inset: #f5f6f8;
  --ink: #141a24;
  --muted: #5b6575;
  --line: #d3d8e0;
  --soft-line: #e6e9ee;
  --brand: #b3142e;
  --brand-soft: #fcecef;
  --link: #1f5fae;
  --ok: #18794e;
  --ok-bg: #e4f3ec;
  --warn: #805200;
  --warn-bg: #fff4d6;
  --radius: 8px;
  --rail: 232px;
  --space: 4px;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--inset);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 104px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
label small {
  font-weight: 400;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 16px;
  font-weight: 650;
}
p {
  max-width: 75ch;
  text-wrap: pretty;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.nowrap {
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 20;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}
[hidden] {
  display: none !important;
}
.demo-bar {
  min-height: 44px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 24px;
  font-size: 12px;
}
.demo-bar strong {
  font-weight: 600;
}
.demo-bar .text-button {
  color: #fff;
  min-height: 28px;
  padding: 0 6px;
  white-space: nowrap;
}
.text-button {
  background: none;
  border: none;
  color: var(--link);
  padding: 6px 0;
  text-align: left;
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: calc(100dvh - 44px);
}
.rail {
  border-right: 1px solid var(--line);
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: calc(100dvh - 44px);
  min-height: 650px;
  align-self: start;
}
.brand {
  font-size: 22px;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
}
.brand span {
  color: var(--brand);
}
.brand small {
  font-size: 12px;
  display: block;
  letter-spacing: 0;
  font-weight: 500;
  margin-top: 2px;
}
.workspace-control {
  display: grid;
  gap: 8px;
}
.workspace-control label {
  font-size: 12px;
  color: var(--muted);
}
.workspace-control select {
  font-size: 13px;
  background: var(--surface);
  padding: 8px;
  min-height: 40px;
}
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #e0e4ea;
  padding: 4px;
  border-radius: 8px;
}
.role-switch a {
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 4px;
  border-radius: 5px;
  color: var(--muted);
}
.role-switch a[aria-current] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px #141a2412;
}
.rail nav {
  display: grid;
  gap: 4px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  font-size: 14px;
}
.nav-link[aria-current] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 650;
}
.nav-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--surface);
  border-radius: 4px;
  padding: 0 6px;
}
.rail-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  height: 34px;
  width: 34px;
  flex: none;
  background: #e1e5ec;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 650;
}
.avatar.large {
  height: 52px;
  width: 52px;
  font-size: 18px;
}
.identity small {
  display: block;
}
.mobile-top {
  display: none;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 36px;
  background: var(--surface);
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.search-hint {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1440px;
  padding: 32px 36px 48px;
  margin: auto;
  min-width: 0;
  display: grid;
  gap: 28px;
}
main:focus {
  outline: none;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.heading p {
  margin-top: 8px;
  color: var(--muted);
}
.btn {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.quiet {
  background: transparent;
}
.btn.small {
  padding: 7px 10px;
  min-height: 36px;
  font-size: 12px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.count {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 8px;
  color: var(--muted);
  font-weight: 500;
  vertical-align: middle;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.panel.pad {
  padding: 24px;
}
.stack {
  display: grid;
  gap: 20px;
}
.attention-head {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.attention-head p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}
.promise {
  padding: 18px 24px;
  border-top: 1px solid var(--soft-line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.promise .check {
  margin-top: 3px;
}
.promise-content {
  min-width: 0;
  flex: 1;
}
.promise-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  overflow-wrap: anywhere;
}
.promise-content p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.promise .due {
  font-size: 12px;
  white-space: nowrap;
  padding-top: 2px;
}
.overdue {
  color: var(--brand) !important;
}
.check {
  height: 26px;
  width: 26px;
  flex: none;
  background: var(--surface);
  border: 1px solid #98a2b2;
  border-radius: 50%;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--ok);
  font-size: 15px;
}
.check.done {
  background: var(--ok-bg);
  border-color: var(--ok);
}
.promise.is-done .promise-title {
  text-decoration: line-through;
  color: var(--muted);
}
.day-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--ok);
}
.timeline-item {
  border-left: 1px solid var(--line);
  padding: 0 0 20px 16px;
  position: relative;
  font-size: 13px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--line);
  border-radius: 50%;
  left: -4px;
  top: 6px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item small {
  display: block;
  margin-top: 4px;
}
.stat-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 13px;
}
.stat-line:last-child {
  border-bottom: none;
}
.stat-line strong {
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--inset);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.success {
  background: var(--ok-bg);
  color: var(--ok);
}
.badge.warning {
  background: var(--warn-bg);
  color: var(--warn);
}
.badge.danger {
  background: var(--brand-soft);
  color: var(--brand);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.toolbar label {
  max-width: 320px;
  flex: 1;
  min-width: 130px;
}
.toolbar label.narrow {
  max-width: 180px;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  background: var(--inset);
  padding: 12px 16px;
  white-space: nowrap;
}
td {
  border-top: 1px solid var(--soft-line);
  padding: 15px 16px;
  vertical-align: middle;
}
td a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
td small {
  display: block;
  margin-top: 3px;
}
td .identity {
  max-width: 250px;
}
.customer-name {
  overflow-wrap: anywhere;
}
.table-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 52px 24px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.empty h2 {
  font-size: 18px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
}
.empty-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--inset);
  border-radius: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.segmented {
  display: flex;
  gap: 4px;
  background: #e0e4ea;
  border-radius: 7px;
  padding: 4px;
}
.segmented button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  border-radius: 4px;
  min-height: 32px;
  font-size: 12px;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  font-weight: 600;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  overflow: auto;
  padding-bottom: 8px;
}
.stage {
  min-width: 0;
  background: #e7eaf0;
  border-radius: 8px;
  padding: 12px;
}
.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 12px;
}
.deal {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
}
.deal h3 {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.deal p {
  font-size: 12px;
  color: var(--muted);
}
.deal strong {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.deal select {
  font-size: 12px;
  min-height: 36px;
  padding: 6px;
}
.deal label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.next-promise {
  background: var(--inset);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: start;
  gap: 16px;
}
.next-promise h2 {
  font-size: 14px;
}
.next-promise p {
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
}
.next-promise small {
  display: block;
  margin-top: 5px;
}
.detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.detail-head h1 {
  font-size: 28px;
}
.fact {
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 13px;
}
.fact dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.fact dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.notes {
  display: grid;
  gap: 16px;
}
.note {
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
}
.note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  margin-top: 12px;
}
.note-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.note-head strong {
  font-weight: 600;
}
.stepper {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.stepper li {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 3px solid var(--line);
}
.stepper li[aria-current] {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 650;
}
.stepper li.complete {
  border-color: var(--ok);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-section {
  max-width: 760px;
}
.form-section h2 {
  margin-bottom: 8px;
}
.form-section > .muted {
  margin-bottom: 24px;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.form-error {
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}
.review-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  font-size: 14px;
}
.review-list dt {
  color: var(--muted);
}
.review-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.setup-task {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-line);
}
.setup-task:last-child {
  border-bottom: 0;
}
.setup-task > div {
  flex: 1;
  min-width: 0;
}
.setup-task small {
  display: block;
  margin-top: 3px;
}
.step-num {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  flex: none;
}
.step-num.complete {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: transparent;
}
.inline-info {
  font-size: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--inset);
  border-radius: 6px;
  color: var(--muted);
}
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-line);
}
.file-item:last-child {
  border-bottom: 0;
}
.file-item > div {
  flex: 1;
}
.file-item svg {
  width: 24px;
  height: 24px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 80px);
  transform: translateX(-50%);
  z-index: 12;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  max-width: min(600px, 90vw);
  box-shadow: 0 4px 20px #141a2430;
}
.toast.error {
  background: var(--brand);
}
dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 80px #141a2430;
}
dialog::backdrop {
  background: #141a2473;
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
dialog form {
  display: grid;
  gap: 16px;
}
dialog .actions {
  justify-content: flex-end;
  padding-top: 12px;
}
dialog > p {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.close-button {
  border: 0;
  background: var(--inset);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 20px;
  flex: none;
}
.loading {
  padding: 80px;
  text-align: center;
}
.welcome-title {
  font-size: 32px;
  max-width: 550px;
}
.calendar-day {
  padding: 20px 24px;
  border-top: 1px solid var(--soft-line);
}
.calendar-day h3 {
  font-size: 14px;
  margin-bottom: 12px;
}
.calendar-event {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  font-size: 13px;
}
.calendar-event time {
  color: var(--muted);
  min-width: 64px;
}
.bottom-note {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.accent-preview {
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  background: var(--inset);
  border-radius: 0 6px 6px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.storage-fault {
  max-width: 650px;
  margin: 80px auto;
  padding: 32px;
}
.search-result-note {
  min-height: 20px;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: #8c97a8;
    background: var(--inset);
  }
  .btn.primary:hover {
    background: #951027;
    border-color: #951027;
  }
  .nav-link:hover {
    background: #e4e7ec;
    color: var(--ink);
  }
  .nav-link[aria-current]:hover {
    background: var(--brand-soft);
    color: var(--brand);
  }
  .check:hover {
    border-color: var(--ok);
    background: var(--ok-bg);
  }
  td a:hover,
  .promise-title:hover {
    color: var(--brand);
    text-decoration: underline;
  }
}
@media (min-width: 1500px) {
  .columns {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 1100px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .secondary-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .board {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .topbar {
    padding-inline: 24px;
  }
  main {
    padding: 28px 24px;
  }
  .desktop-only {
    display: none;
  }
}
@media (max-width: 760px) {
  .demo-bar {
    padding: 8px 16px;
    min-height: 44px;
  }
  .demo-detail {
    display: none;
  }
  .app-shell {
    display: block;
    min-height: calc(100dvh - 44px);
  }
  .rail {
    display: none;
    position: relative;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    gap: 20px;
  }
  .rail.open {
    display: flex;
  }
  .rail .brand {
    display: none;
  }
  .rail-foot {
    margin-top: 0;
  }
  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .mobile-top .brand {
    font-size: 20px;
  }
  .menu-button {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 6px;
    padding: 8px 12px;
    min-height: 44px;
    font-size: 13px;
  }
  .topbar {
    padding: 12px 16px;
    min-height: 48px;
  }
  .topbar .search-hint {
    display: none;
  }
  main {
    padding: 24px 16px 36px;
    gap: 24px;
  }
  h1 {
    font-size: 26px;
  }
  .heading {
    align-items: start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .heading p {
    font-size: 13px;
  }
  .heading .actions {
    width: 100%;
  }
  .heading > .btn {
    min-height: 44px;
  }
  .columns {
    gap: 20px;
  }
  .secondary-stack {
    grid-template-columns: 1fr;
  }
  .panel.pad {
    padding: 20px;
  }
  .attention-head {
    padding: 20px 16px 16px;
  }
  .attention-head h2 {
    font-size: 18px;
  }
  .promise {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .promise .check {
    min-width: 32px;
    width: 32px;
    height: 32px;
  }
  .promise .due {
    padding-left: 44px;
    width: 100%;
    padding-top: 0;
    margin-top: -8px;
  }
  .promise-title {
    font-size: 14px;
  }
  .btn,
  .btn.small {
    min-height: 44px;
  }
  .check {
    min-height: 32px;
  }
  .toolbar {
    gap: 12px;
  }
  .toolbar label {
    max-width: none;
  }
  .table-wrap {
    overflow: visible;
  }
  .responsive-table thead {
    display: none;
  }
  .responsive-table table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }
  .responsive-table tr {
    position: relative;
    padding: 16px;
    border-top: 1px solid var(--line);
  }
  .responsive-table tr:first-child {
    border-top: 0;
  }
  .responsive-table td {
    padding: 4px 0;
    border: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
  }
  .responsive-table td:first-child {
    padding-bottom: 8px;
    min-height: 44px;
  }
  .responsive-table td[data-label]:before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--muted);
    min-width: 92px;
    flex: none;
  }
  .responsive-table td .identity {
    max-width: none;
  }
  .responsive-table td a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
  .responsive-table .avatar {
    height: 36px;
    width: 36px;
  }
  .table-footer {
    padding: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .stepper {
    gap: 4px;
  }
  .stepper li {
    font-size: 10px;
  }
  .stepper li span {
    display: none;
  }
  .stepper li[aria-current] span {
    display: block;
    white-space: nowrap;
  }
  .form-footer {
    flex-wrap: wrap;
  }
  .form-footer > .muted {
    width: 100%;
    order: 3;
  }
  .review-list {
    grid-template-columns: 100px 1fr;
    font-size: 13px;
    gap: 12px;
  }
  .board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }
  .stage {
    padding: 16px;
  }
  .stage-header {
    font-size: 14px;
  }
  .deal {
    padding: 16px;
  }
  .deal h3 {
    font-size: 15px;
  }
  .deal select {
    min-height: 44px;
    font-size: 14px;
  }
  .board .stage:has(.stage-empty) {
    display: none;
  }
  .detail-head h1 {
    font-size: 24px;
  }
  .detail-head {
    align-items: start;
  }
  .next-promise {
    padding: 16px;
    flex-wrap: wrap;
  }
  .next-promise .actions {
    width: 100%;
  }
  .setup-task {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .setup-task > .actions {
    padding-left: 40px;
    flex-basis: 100%;
  }
  .toast {
    left: 50%;
    bottom: 16px;
    max-width: calc(100vw - 32px);
    width: max-content;
  }
  .bottom-note {
    flex-wrap: wrap;
  }
  .calendar-day {
    padding: 20px 16px;
  }
  .calendar-event {
    gap: 8px;
  }
  .storage-fault {
    margin: 24px 16px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  dialog {
    padding: 20px;
  }
  .search-result-note {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  button:active:not(:disabled) {
    transform: none;
  }
}
@media (prefers-contrast: more) {
  :root {
    --line: #8793a5;
    --muted: #394453;
    --soft-line: #aeb6c2;
  }
}
@media print {
  .rail,
  .demo-bar,
  .mobile-top,
  .topbar,
  .actions,
  .toast {
    display: none;
  }
  .app-shell {
    display: block;
  }
  main {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  body {
    background: white;
  }
}

/* Intentional layout utilities; inline styles are forbidden by the demo CSP. */
.layout-1 {
  display: contents;
}
.layout-2 {
  display: block;
}
.layout-3 {
  flex: 1;
}
.layout-4 {
  font-size: 13px;
}
.layout-5 {
  padding: 0 24px 20px;
}
.layout-6 {
  margin-top: 12px;
}
.layout-7 {
  margin-top: 20px;
}
.layout-8 {
  margin-top: 16px;
}
.layout-9 {
  margin-top: 8px;
}
.layout-10 {
  margin-top: 24px;
}
.layout-11 {
  font-size: 12px;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
}

@media (max-width: 760px) {
  .responsive-table td > div,
  .responsive-table td > span,
  .responsive-table td > strong,
  .responsive-table td > small {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .promise .check {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .promise .due {
    padding-left: 56px;
  }
  .subheading > a {
    flex: none;
  }
}
