:root {
  color-scheme: light;
  font-family:
    "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111111;
  background: #f6f6f2;
  --bg: #f6f6f2;
  --surface: #ffffff;
  --surface-soft: #f0f0ec;
  --ink: #111111;
  --muted: #686a67;
  --line: #d8d8d2;
  --line-strong: #b8b8b0;
  --accent: #111111;
  --accent-strong: #000000;
  --accent-soft: #ebebe6;
  --sage: #2f5f43;
  --sage-soft: #e7f0e9;
  --amber: #7d5a17;
  --amber-soft: #f2e9d2;
  --red: #87352e;
  --red-soft: #f1e0dd;
  --shadow: 0 18px 44px rgba(17, 17, 17, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  margin: 0;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 8px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 12px;
}

p {
  line-height: 1.55;
}

.shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 28px;
}

.topbar-main,
.session-actions,
.topnav,
.inline-form {
  align-items: center;
  display: flex;
  gap: 14px;
}

.topbar-main {
  min-width: 220px;
}

.org-mark {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  height: 42px;
  object-fit: contain;
  padding: 5px;
  width: 42px;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
}

.topnav {
  flex-wrap: wrap;
  justify-content: center;
}

.topnav a {
  color: var(--muted);
  font-size: 16px;
  font-weight: 720;
  padding: 10px 12px;
}

.topnav a:hover {
  color: var(--ink);
}

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

.session-actions form {
  margin: 0;
}

.content {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 24px 64px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 24px;
}

.panel-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-header h1,
.panel-header h2 {
  margin-bottom: 6px;
}

.project-home-hero {
  margin-bottom: 16px;
}

.project-list-panel {
  margin-top: 0;
}

.project-list-panel .section-label {
  margin-bottom: 8px;
}

.project-masthead-main {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.masthead-rendering-options {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.masthead-rendering-options .field {
  margin-bottom: 0;
}

.masthead-rendering-options label {
  margin-bottom: 2px;
}

.project-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.project-title-row h1 {
  margin-bottom: 0;
}

.project-detail-strip {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
  overflow: hidden;
}

.project-detail-strip div {
  background: #fbfbf8;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 13px 14px;
}

.project-detail-strip div:last-child {
  border-right: 0;
}

.project-detail-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.project-detail-strip strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.create-project-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: -2px 0 24px;
  padding-bottom: 22px;
}

.create-project-header h1 {
  margin-bottom: 0;
}

.section-label,
.form-band-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-label {
  margin-bottom: 8px;
}

.back-link {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 720;
  margin-top: 6px;
}

.back-link:hover {
  color: var(--ink);
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-create-form {
  display: grid;
  gap: 18px;
}

.autofill-trap {
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.form-band {
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.form-band .field:last-child {
  margin-bottom: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

label {
  color: #292929;
  font-size: 14px;
  font-weight: 680;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.11);
  outline: 0;
}

input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(145, 45, 35, 0.14);
}

input[aria-invalid="true"]:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(145, 45, 35, 0.2);
}

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

input[type="file"] {
  cursor: pointer;
  padding: 9px 12px;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
}

.autosave-status {
  color: var(--muted);
  display: inline-flex;
  font-weight: 680;
  margin-left: 6px;
}

.autosave-status[data-state="saving"] {
  color: var(--amber);
}

.autosave-status[data-state="saved"] {
  color: var(--sage);
}

.autosave-status[data-state="error"] {
  color: var(--red);
}

.field-warning {
  color: var(--red);
  font-size: 13px;
  font-weight: 680;
}

.check-grid {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.check-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-weight: 600;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
}

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

.check-row.single {
  border: 1px solid var(--line);
  border-radius: 4px;
}

.check-row.selected {
  background: var(--surface-soft);
  border-color: var(--ink);
}

.check-row input {
  min-height: 0;
  width: auto;
}

.exclusive-choice {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.exclusive-choice .check-row {
  height: 100%;
}

.choice-divider {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.empty-inline {
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 14px;
  padding: 12px;
}

.grow {
  flex: 1;
}

button,
.button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 720;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  text-decoration: none;
  transform: translateY(-1px);
}

button:disabled {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

button:disabled:hover {
  background: var(--surface-soft);
  border-color: var(--line);
  transform: none;
}

button:focus-visible,
.button:focus-visible {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.14);
  outline: 0;
}

button.secondary,
.button.secondary {
  background: #f4f4f0;
  border-color: var(--line);
  color: var(--ink);
}

button.secondary:hover,
.button.secondary:hover {
  background: #e7e7e1;
  border-color: var(--line-strong);
}

button[data-share-state="success"] {
  background: var(--sage-soft);
  border-color: #b8d1bf;
  color: var(--sage);
}

button[data-share-state="error"] {
  background: var(--red-soft);
  border-color: #d6aaa5;
  color: var(--red);
}

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

button.small,
.button.small {
  font-size: 14px;
  min-height: 34px;
  padding: 6px 11px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-link {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
}

.client-link a,
.quiet-link,
.quiet-chip {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 680;
  padding: 5px 10px;
}

.quiet-chip {
  margin: 2px 4px 2px 0;
}

.simple-list {
  border-top: 1px solid var(--line);
}

.simple-list-row {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
}

.project-table tbody tr {
  transition: background 140ms ease;
}

.project-table tbody tr:hover {
  background: var(--surface-soft);
}

.table-actions {
  text-align: right;
}

.status {
  align-items: center;
  background: #ebebe6;
  border-radius: 999px;
  color: #4d4d4a;
  display: inline-flex;
  font-size: 13px;
  font-weight: 760;
  gap: 7px;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.status::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.status.ready,
.status.complete {
  background: var(--sage-soft);
  color: var(--sage);
}

.status.processing,
.status.pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.failed,
.status.ready_with_ifc_fallback {
  background: var(--red-soft);
  color: var(--red);
}

.status.billing-active,
.status.billing-complimentary {
  background: var(--sage-soft);
  color: var(--sage);
}

.status.billing-trialing,
.status.billing-incomplete,
.status.billing-past_due {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.billing-incomplete_expired,
.status.billing-unpaid,
.status.billing-paused,
.status.billing-canceled {
  background: var(--red-soft);
  color: var(--red);
}

.status.service-active {
  background: var(--sage-soft);
  color: var(--sage);
}

.status.service-grace {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.service-expired,
.status.service-suspended {
  background: var(--red-soft);
  color: var(--red);
}

.error {
  background: var(--red-soft);
  border: 1px solid #d6aaa5;
  border-radius: 4px;
  color: #69302a;
  line-height: 1.45;
  margin-bottom: 16px;
  padding: 11px 13px;
}

.error.compact {
  margin: 14px 0 0;
}

.notice {
  background: var(--sage-soft);
  border: 1px solid #aac5b2;
  border-radius: 4px;
  color: var(--sage);
  line-height: 1.45;
  margin-bottom: 16px;
  padding: 11px 13px;
}

.grace-period-banner {
  background: var(--amber-soft);
  border: 1px solid #d7b56a;
  border-top: 0;
  color: #6b4b08;
  line-height: 1.45;
  padding: 11px 18px;
}

.platform-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.platform-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  padding: 18px;
}

.platform-stat span,
.organization-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.platform-stat strong {
  font-size: 26px;
  line-height: 1.1;
}

.platform-stat small {
  color: var(--muted);
  font-size: 12px;
}

.organization-hero .panel-header {
  margin-bottom: 18px;
}

.organization-stats {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.organization-stats div {
  background: #fbfbf8;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 14px;
}

.organization-stats div:last-child {
  border-right: 0;
}

.organization-stats strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.organization-stats .compact-value {
  font-size: 14px;
}

.compact-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.billing-provider-summary {
  margin-bottom: 18px;
}

.inline-extension-form {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
}

.inline-extension-form .field {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.admin-two-column {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-form {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-form input {
  flex: 1 1 auto;
}

.search-form button {
  flex: 0 0 auto;
}

.pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.pagination span {
  color: var(--muted);
  font-size: 13px;
}

.create-inline-panel {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.create-inline-panel summary {
  cursor: pointer;
  font-weight: 720;
  margin-bottom: 16px;
}

.audit-row {
  align-items: center;
}

.danger-zone {
  border-color: #d6aaa5;
}

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

.danger-button:hover {
  background: #692720;
  border-color: #692720;
}

.upload-duplicate-warning {
  display: grid;
  gap: 12px;
}

.allowed-extension-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.extension-pill {
  background: #f0f0ec;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  padding: 6px 9px;
}

.upload-duplicate-warning.hidden {
  display: none;
}

.upload-duplicate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hidden {
  display: none;
}

.version-storage-summary {
  align-items: center;
  background: #f4f3ef;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.version-storage-summary div {
  min-width: 0;
}

.version-storage-summary span,
.version-storage-summary p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  margin: 0;
}

.version-storage-summary strong {
  color: var(--ink);
  display: block;
  font-size: 22px;
  font-weight: 780;
  line-height: 1.2;
  margin-top: 2px;
}

.version-storage-summary p {
  font-weight: 520;
  line-height: 1.45;
  max-width: 420px;
  text-align: right;
}

.version-serve-control {
  align-items: center;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  margin-bottom: 18px;
  padding: 18px;
}

.version-serve-control form {
  display: grid;
  gap: 8px;
}

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

.version-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 16px;
}

.version-card.is-selected {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--ink);
}

.version-number-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  height: 36px;
  justify-content: center;
  text-transform: uppercase;
  width: 36px;
}

.version-card-body {
  min-width: 0;
}

.version-card-main,
.version-title-row,
.version-files {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.version-card-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.storage-pill {
  background: #f0f0ec;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.version-title-row {
  align-items: center;
  justify-content: flex-start;
}

.current-version-pill {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  padding: 6px 9px;
  text-transform: uppercase;
}

.version-delete-error {
  margin-bottom: 18px;
}

.version-delete-form {
  display: inline-flex;
  margin: 0;
}

.version-delete-button {
  background: transparent;
  border-color: #c99c97;
  color: var(--red);
  font-size: 12px;
  min-height: 28px;
  padding: 5px 9px;
}

.version-delete-button:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red);
}

.version-files {
  background: rgba(240, 240, 236, 0.55);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 14px;
  padding: 12px;
}

.version-file-row {
  min-width: 0;
}

.version-file-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.version-files span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 720;
  margin-bottom: 4px;
}

.version-files strong {
  color: var(--ink);
  display: block;
  flex: 1 1 220px;
  font-size: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.version-files .download-link {
  flex: 0 0 auto;
  min-height: 32px;
}

.version-preparation {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 12px;
  padding: 12px;
}

.version-preparation-dot {
  background: #9d9d96;
  border-radius: 999px;
  height: 10px;
  margin-top: 5px;
  width: 10px;
}

.version-preparation strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 760;
  margin-bottom: 2px;
}

.version-preparation span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.version-preparation-ready,
.version-preparation-complete {
  background: #fbfdfb;
  border-color: #c8d9cd;
}

.version-preparation-ready .version-preparation-dot,
.version-preparation-complete .version-preparation-dot {
  background: var(--sage);
}

.version-preparation-processing,
.version-preparation-pending {
  background: #fffdfa;
  border-color: #e1cc92;
}

.version-preparation-processing .version-preparation-dot,
.version-preparation-pending .version-preparation-dot {
  background: var(--amber);
}

.version-preparation-failed,
.version-preparation-ready_with_ifc_fallback {
  background: #fff9f8;
  border-color: #d9aaa4;
}

.version-preparation-failed .version-preparation-dot,
.version-preparation-ready_with_ifc_fallback .version-preparation-dot {
  background: var(--red);
}

.empty-state {
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  padding: 28px;
}

.empty-state h2 {
  margin-bottom: 4px;
}

.login {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  margin: 0 auto;
  width: min(440px, 100%);
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.login-brand h1 {
  font-size: 30px;
  margin-bottom: 4px;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 4px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 780;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

@media (max-width: 960px), (hover: none) and (pointer: coarse) {
  .inline-form,
  .inline-extension-form,
  .panel-header,
  .create-project-header,
  .simple-list-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .desktop-nav,
  .desktop-session {
    display: none;
  }

  .mobile-bottom-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -12px 32px rgba(17, 17, 17, 0.08);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    left: 0;
    overflow-x: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 50;
  }

  .mobile-bottom-links,
  .mobile-bottom-account {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .mobile-bottom-account {
    border-left: 1px solid var(--line);
    padding-left: 10px;
  }

  .mobile-bottom-account form {
    margin: 0;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-account span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 760;
    white-space: nowrap;
  }

  .mobile-bottom-nav a {
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 10px;
  }

  .mobile-bottom-account span {
    color: var(--muted);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-bottom-account button {
    min-height: 34px;
    white-space: nowrap;
    width: auto;
  }

  .topbar {
    align-items: center;
    gap: 10px;
    min-height: 62px;
  }

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

  .topbar-main .muted {
    display: none;
  }

  .org-mark {
    height: 36px;
    padding: 4px;
    width: 36px;
  }

  .brand {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar,
  .content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .grace-period-banner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .content {
    padding-bottom: 118px;
    padding-top: 18px;
  }

  .panel {
    padding: 20px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 16px;
  }

  .platform-stats,
  .admin-two-column,
  .organization-stats,
  .compact-stats {
    grid-template-columns: 1fr;
  }

  .organization-stats div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .organization-stats div:last-child {
    border-bottom: 0;
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination {
    justify-content: space-between;
  }

  .project-home-hero .panel-header {
    margin-bottom: 0;
  }

  .project-home-hero h1,
  .project-masthead h1 {
    font-size: 28px;
  }

  .project-masthead-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .masthead-rendering-options {
    margin-top: 16px;
    padding-top: 16px;
  }

  .masthead-rendering-options .exclusive-choice {
    gap: 8px;
  }

  .masthead-rendering-options .check-row {
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.25;
    min-height: 46px;
    padding: 9px 10px;
  }

  .masthead-rendering-options .choice-divider {
    font-size: 11px;
  }

  .version-serve-control,
  .version-files {
    grid-template-columns: 1fr;
  }

  .version-storage-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .version-storage-summary p {
    max-width: none;
    text-align: left;
  }

  .version-serve-control {
    align-items: stretch;
    padding: 16px;
  }

  .version-card {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .version-number-mark {
    height: 32px;
    width: 32px;
  }

  .version-card-badges {
    justify-content: flex-start;
  }

  .project-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .client-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .client-link a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }

  .actions button,
  .actions .button {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    width: auto;
  }

  .panel form > button:not(.small) {
    width: 100%;
  }

  .project-detail-strip {
    grid-template-columns: 1fr;
  }

  .project-detail-strip div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .project-detail-strip div:last-child {
    border-bottom: 0;
  }

  .project-table thead {
    display: none;
  }

  .project-table,
  .project-table tbody,
  .project-table tr,
  .project-table td {
    display: block;
    width: 100%;
  }

  .project-table tbody {
    display: grid;
    gap: 12px;
  }

  .project-table tr {
    background: #fbfbf8;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 14px;
  }

  .project-table td {
    border: 0;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 8px 0;
  }

  .project-table td[data-label="Name"] {
    display: block;
    padding-top: 0;
  }

  .project-table td[data-label="Name"]::before,
  .project-table td[data-label="URL"] {
    display: none;
  }

  .project-table td[data-label="Name"] strong {
    display: block;
    font-size: 17px;
    line-height: 1.25;
  }

  .project-table td::before {
    color: var(--muted);
    content: attr(data-label);
    flex: 0 0 84px;
    font-size: 13px;
    font-weight: 720;
  }

  .project-table .table-actions {
    justify-content: flex-start;
    padding-bottom: 0;
    padding-top: 12px;
    text-align: left;
  }

  .project-table .table-actions::before {
    display: none;
  }

  .project-table .table-actions .button {
    width: 100%;
  }

}
