:root {
  color-scheme: light;
  --bg: #edf2f7;
  --panel: #ffffff;
  --panel-soft: #f7fafc;
  --ink: #0f172a;
  --muted: #5a6b82;
  --muted-light: #7d8da0;
  --line: #d8e2ee;
  --navy: #14213d;
  --blue: #2d6ab4;
  --blue-mid: #4a8fd4;
  --blue-faint: rgba(45, 106, 180, .1);
  --purple: #8d64d8;
  --green: #1fa67d;
  --orange: #e07b3c;
  --cleo: #f0a92f;
  --cleo-dark: #9a5b00;
  --cleo-soft: #fff3d8;
  --danger: #c94040;
  --shadow: 0 10px 28px rgba(13, 27, 53, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: #075f74;
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

.app-frame {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  min-height: 100vh;
  padding: 18px 10px;
  position: sticky;
  top: 0;
}

.side-logo {
  color: var(--navy);
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.side-logo img {
  display: block;
  height: auto;
  max-width: 128px;
  object-fit: contain;
  width: 100%;
}

.side-logo span {
  color: var(--navy);
  display: block;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.side-section {
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .13em;
  margin: 14px 0 7px;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.side-nav a {
  align-items: center;
  border-radius: 8px;
  color: #304762;
  display: grid;
  font-size: 12px;
  gap: 8px;
  grid-template-columns: 14px 1fr auto;
  min-height: 30px;
  padding: 0 8px;
}

.side-nav a.active,
.side-nav a:hover {
  background: var(--blue-faint);
  color: var(--blue);
}

.side-nav strong {
  align-items: center;
  background: #6b7280;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  justify-content: center;
  min-width: 24px;
  padding: 1px 7px;
}

.side-nav .stage-clive strong {
  background: #7c5cff;
}

.side-nav .stage-damien strong {
  background: #41b8d5;
}

.side-nav .stage-stacy strong {
  background: #14b87a;
}

.side-nav .stage-cleo strong {
  background: #e4a62a;
}

.nav-dot {
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: block;
  height: 5px;
  margin-left: 4px;
  outline: 1px solid var(--blue);
  outline-offset: 6px;
  width: 5px;
}

.nav-box {
  border: 2px solid #9aaabc;
  border-radius: 4px;
  display: block;
  height: 12px;
  width: 12px;
}

.health {
  margin-top: 9px;
}

.health-label {
  color: #4e6077;
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.health-bar {
  background: #e6edf5;
  border-radius: 999px;
  display: flex;
  height: 6px;
  overflow: hidden;
}

.health-bar span {
  display: block;
  height: 100%;
  min-width: 0;
}

.health-bar .clive {
  background: var(--purple);
}

.health-bar .damien {
  background: #68bddb;
}

.health-bar .cleo {
  background: var(--cleo);
}

.health-bar .stacy {
  background: var(--green);
}

.health-legend {
  color: #52657d;
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  margin-top: 8px;
}

.main-frame {
  min-width: 0;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 40px;
  overflow: hidden;
  padding: 8px 22px 0;
}

.brand {
  align-items: center;
  display: inline-flex;
}

.brand img {
  display: block;
  height: auto;
  max-height: 34px;
  max-width: 132px;
  object-fit: contain;
  width: auto;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: #075f74;
  font-size: 13px;
  font-weight: 600;
}

.shell {
  max-width: 1240px;
  padding: 0 22px 24px;
  width: 100%;
}

.page-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
}

h1,
h2 {
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

h1 span {
  color: var(--blue);
}

h2 {
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.page-head p {
  font-size: 12px;
  margin: 3px 0 0;
}

.mobile-stage-nav {
  display: none;
}

.head-actions,
.actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

button,
.button {
  align-items: center;
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  justify-content: center;
  min-height: 31px;
  padding: 6px 13px;
}

button:hover,
.button:hover {
  background: #225e9f;
  color: #fff;
}

.button.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: #445872;
}

.button.ghost:hover {
  border-color: #b7c7d9;
  color: var(--blue);
}

.button.dark {
  background: var(--navy);
}

.button.dark:hover {
  background: #0d1830;
}

.alert,
.pipeline-card,
.stat,
.panel,
.intake-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.alert {
  color: var(--danger);
  margin-bottom: 10px;
  padding: 12px 16px;
}

.stats-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 10px;
}

.stat {
  align-items: center;
  display: grid;
  gap: 1px 8px;
  grid-template-columns: 32px 1fr;
  min-height: 58px;
  padding: 8px 10px;
}

.stat .muted {
  font-size: 10px;
  line-height: 1.25;
}

.stat strong {
  display: block;
  font-size: 20px;
  grid-column: 2;
  line-height: 1;
}

.stat-icon {
  align-items: center;
  background: #eef4fb;
  border-radius: 7px;
  display: inline-flex;
  grid-row: span 2;
  height: 32px;
  justify-content: center;
  position: relative;
  width: 32px;
}

.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
}

.stat-icon.people::before,
.stat-icon.clive::before {
  border: 3px solid #5a95cc;
  border-radius: 50%;
  height: 8px;
  top: 7px;
  width: 8px;
}

.stat-icon.people::after,
.stat-icon.clive::after {
  border: 3px solid #5a95cc;
  border-bottom: 0;
  border-radius: 14px 14px 4px 4px;
  bottom: 7px;
  height: 9px;
  width: 18px;
}

.stat-icon.clive::before,
.stat-icon.clive::after {
  border-color: var(--purple);
}

.stat-icon.damien::before,
.stat-icon.notes::before {
  border: 3px solid #68bddb;
  border-radius: 4px;
  height: 17px;
  width: 14px;
}

.stat-icon.damien::after,
.stat-icon.notes::after {
  background: #68bddb;
  box-shadow: 0 6px 0 #68bddb, 0 12px 0 #68bddb;
  height: 2px;
  right: 9px;
  top: 12px;
  width: 7px;
}

.stat-icon.cleo::before {
  border: 3px solid var(--cleo);
  border-radius: 50%;
  height: 16px;
  width: 16px;
}

.stat-icon.stacy::before {
  background: var(--green);
  border-radius: 6px;
  height: 16px;
  width: 16px;
}

.pipeline-card {
  padding: 12px 16px 14px;
}

.filters {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 170px minmax(260px, 1fr) auto;
  margin-bottom: 11px;
}

.bulk-actions {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 8px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
}

label span {
  color: #5d6e83;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid #cbd7e4;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  min-height: 32px;
  padding: 5px 9px;
  width: 100%;
}

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

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #58687b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

td {
  color: #162235;
  font-size: 11.5px;
}

tr.lead-row {
  cursor: pointer;
}

tr.lead-row:hover {
  background: rgba(45, 106, 180, .055);
}

.check-cell {
  border: 2px solid #8a98a8;
  border-radius: 4px;
  display: block;
  height: 18px;
  width: 18px;
}

.row-check {
  appearance: none;
  background: #fff;
  border: 2px solid #8a98a8;
  border-radius: 4px;
  cursor: pointer;
  height: 18px;
  min-height: 0;
  padding: 0;
  position: relative;
  width: 18px;
}

.row-check:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.row-check:checked::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 9px;
  left: 5px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 5px;
}

.row-check:indeterminate {
  background: var(--blue);
  border-color: var(--blue);
}

.row-check:indeterminate::after {
  background: #fff;
  content: "";
  height: 2px;
  left: 4px;
  position: absolute;
  top: 7px;
  width: 8px;
}

.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
}

.badge-clive,
.badge-new,
.badge-high {
  background: #fff0d8;
  color: #a15c00;
}

.badge-damien {
  background: #e8f2ff;
  color: #2465aa;
}

.badge-cleo {
  background: var(--cleo-soft);
  color: var(--cleo-dark);
}

.badge-stacy {
  background: #e6f6ef;
  color: #117553;
}

.badge-converted {
  background: #e8f2ff;
  color: var(--blue);
}

.badge-closed {
  background: #eef1f4;
  color: var(--muted);
}

.empty-state {
  align-items: center;
  color: #8a9aab;
  display: grid;
  justify-items: center;
  min-height: 190px;
  padding: 28px;
  text-align: center;
}

.empty-state strong {
  color: #7b8da1;
  font-size: 16px;
  margin-top: 12px;
}

.empty-state p {
  margin: 6px 0 0;
}

.empty-icon {
  border: 4px solid #c7d2de;
  border-radius: 50%;
  display: block;
  height: 20px;
  position: relative;
  width: 20px;
}

.empty-icon::after {
  border: 4px solid #c7d2de;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  content: "";
  height: 18px;
  left: -15px;
  position: absolute;
  top: 22px;
  width: 42px;
}

.compact-hero {
  margin-bottom: 10px;
}

.section-gap {
  margin-top: 16px;
}

.compact-form {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 92px auto;
}

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

.full {
  grid-column: 1 / -1;
}

.login {
  margin: 44px auto;
  max-width: 430px;
}

.detail-backdrop {
  background: rgba(15, 23, 42, .28);
  inset: 0;
  position: fixed;
  z-index: 90;
}

.detail-panel {
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 30px rgba(13, 27, 53, .12);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: min(430px, 100vw);
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform .22s ease;
  width: 430px;
  z-index: 100;
}

.detail-panel.open {
  transform: translateX(0);
}

.dp-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  padding: 14px 16px 12px;
}

.dp-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  min-height: 0;
  padding: 0 4px;
}

.dp-client-name {
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}

.dp-client-biz {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.dp-stage-line {
  margin-top: 8px;
}

.dp-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.dp-actions {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-start;
  margin: -2px 0 12px;
  padding-bottom: 12px;
}

.dp-actions form {
  margin: 0;
}

.stage-form {
  display: grid;
  gap: 6px;
  grid-template-columns: 120px auto;
}

.btn-danger {
  background: var(--danger);
  border: 1px solid var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #a92d2d;
  border-color: #a92d2d;
  color: #fff;
}

.btn-danger:disabled {
  background: #f2d4d4;
  border-color: #f2d4d4;
  color: #b87070;
  cursor: not-allowed;
}

.btn-small {
  min-height: 28px;
  padding: 4px 10px;
}

.row-delete-form {
  margin: 0;
}

.bot-note-delete-form {
  margin: 0;
}

.dp-meta-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
}

.dp-meta-card,
.dp-section-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dp-meta-card {
  padding: 8px 9px;
}

.dp-meta-label {
  color: #8191a6;
  font-size: 8.5px;
  letter-spacing: .07em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.dp-meta-val {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  word-break: break-word;
}

.dp-section-card {
  margin-bottom: 8px;
  padding: 9px 10px;
}

.dp-section-name {
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.dp-section-body {
  color: var(--ink);
  display: block;
  font-size: 11px;
  line-height: 1.55;
  padding-top: 7px;
}

.dp-section-body p {
  margin: 0 0 8px;
}

.transcript-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 6px;
  max-height: 180px;
  overflow-y: auto;
  padding: 8px 10px;
  white-space: pre-wrap;
}

.file-list {
  display: grid;
  gap: 7px;
}

.file-item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 9px;
}

.file-item strong {
  color: var(--navy);
  display: block;
  font-size: 11px;
  word-break: break-word;
}

.file-item span {
  color: var(--muted);
  display: block;
  font-size: 9.5px;
  margin-top: 2px;
}

.file-preview-link {
  display: block;
  flex: 0 0 auto;
}

.file-preview,
.file-preview-box {
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  height: 46px;
  width: 58px;
}

.file-preview {
  object-fit: cover;
}

.file-preview-box {
  align-items: center;
  color: var(--blue);
  display: flex;
  font-size: 10px;
  font-weight: 800;
  justify-content: center;
}

.file-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  margin-left: auto;
}

.file-preview-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
}

.file-preview-button:hover {
  background: #eef4fb;
  color: var(--blue);
}

.file-download {
  background: var(--blue);
  border-radius: 6px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
}

.file-download:hover {
  background: #225e9f;
  color: #fff;
}

.section-progress-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.section-progress-list span {
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
}

.section-progress-empty {
  font-size: 11px;
}

.lead-progress {
  background: #e7edf5;
  border-radius: 999px;
  height: 5px;
  margin-top: 8px;
  max-width: 170px;
  overflow: hidden;
}

.lead-progress span {
  background: linear-gradient(90deg, var(--blue), var(--muted-light));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.lead-progress-clive span,
.detail-progress-clive span {
  background: var(--purple);
}

.lead-progress-damien span,
.detail-progress-damien span {
  background: #68bddb;
}

.lead-progress-cleo span,
.detail-progress-cleo span {
  background: var(--cleo);
}

.lead-progress-stacy span,
.detail-progress-stacy span {
  background: var(--green);
}

.progress-label {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

.detail-progress {
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 30px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.detail-progress span {
  background: linear-gradient(90deg, var(--blue), var(--muted-light));
  display: block;
  height: 100%;
  min-width: 8%;
}

.detail-progress strong {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-size: 11px;
  inset: 0;
  justify-content: center;
  position: absolute;
}

@media (max-width: 1180px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-stage-nav {
    display: flex;
    gap: 7px;
    margin: 0 0 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .mobile-stage-nav a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #304762;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
  }

  .mobile-stage-nav a.active {
    background: var(--blue-faint);
    border-color: #bdd1e8;
    color: var(--blue);
  }

  .mobile-stage-nav strong {
    align-items: center;
    background: #6b7280;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 9px;
    justify-content: center;
    min-width: 20px;
    padding: 1px 6px;
  }

  .mobile-stage-nav .stage-clive strong {
    background: #7c5cff;
  }

  .mobile-stage-nav .stage-damien strong {
    background: #41b8d5;
  }

  .mobile-stage-nav .stage-cleo strong {
    background: #e4a62a;
  }

  .mobile-stage-nav .stage-stacy strong {
    background: #14b87a;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 11.5px;
  }

  .main-frame {
    width: 100%;
  }

  .topbar,
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar {
    overflow: visible;
    padding: 10px 12px 0;
  }

  .brand img {
    max-height: 30px;
    max-width: 118px;
  }

  .nav {
    gap: 14px;
  }

  .shell {
    max-width: none;
    overflow-x: hidden;
    padding: 0 10px 18px;
    width: 100%;
  }

  .page-head {
    margin-bottom: 8px;
  }

  h1 {
    font-size: 21px;
  }

  .mobile-stage-nav {
    margin-left: -2px;
    margin-right: -2px;
    padding: 0 2px 5px;
  }

  .stats-row {
    gap: 7px;
  }

  .stats-row,
  .filters,
  .compact-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .head-actions {
    width: 100%;
  }

  .head-actions .button {
    flex: 1;
  }

  .pipeline-card {
    border-radius: 8px;
    padding: 10px;
  }

  .filters {
    gap: 7px;
  }

  .filters button,
  .bulk-actions button {
    width: 100%;
  }

  .bulk-actions {
    justify-content: stretch;
    margin: 0 0 8px;
  }

  .table-wrap {
    border-top: 1px solid var(--line);
    margin-top: 6px;
    overflow-x: visible;
    width: 100%;
  }

  table {
    display: block;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  tr.lead-row:hover {
    background: transparent;
  }

  td {
    border-bottom: 0;
    display: grid;
    gap: 6px;
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 5px 0;
    word-break: break-word;
  }

  td::before {
    color: #58687b;
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  td[data-label="Select"] {
    grid-template-columns: 1fr;
    padding-bottom: 8px;
  }

  td[data-label="Select"]::before {
    display: none;
  }

  td[data-label="Delete"] .btn-small {
    width: 100%;
  }

  td[data-label="Notes"] {
    grid-template-columns: 1fr;
  }

  td[data-label="Notes"]::before {
    margin-bottom: 2px;
  }

  td[data-label="Notes"],
  td[data-label="Session"],
  td[data-label="Question"] {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  th,
  td {
    padding-left: 0;
    padding-right: 0;
  }

  .dp-meta-grid,
  .stage-form {
    grid-template-columns: 1fr;
  }

  .dp-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dp-actions button,
  .dp-actions select {
    width: 100%;
  }

  .file-item {
    align-items: stretch;
    flex-direction: column;
  }

  .file-actions {
    width: 100%;
  }

  .file-download,
  .file-preview-button {
    flex: 1;
    text-align: center;
  }

  .file-preview,
  .file-preview-box {
    height: 86px;
    width: 100%;
  }

  .detail-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    bottom: 0;
    height: min(92dvh, 92vh);
    left: 0;
    max-width: none;
    right: 0;
    top: auto;
    transform: translateY(100%);
    width: 100%;
  }

  .detail-panel.open {
    transform: translateY(0);
  }
}
