:root {
  color-scheme: light;
  --bg-0: #d7dde5;
  --bg-1: #bac4cf;
  --bg-2: #8d98a6;
  --steel: #667180;
  --surface: rgba(244, 247, 251, 0.48);
  --surface-strong: rgba(255, 255, 255, 0.72);
  --surface-soft: rgba(242, 245, 249, 0.58);
  --surface-dark: rgba(28, 36, 48, 0.72);
  --surface-dark-strong: rgba(18, 24, 34, 0.88);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-border-strong: rgba(92, 104, 120, 0.22);
  --glass-shadow-lg: 0 32px 72px rgba(30, 38, 48, 0.18);
  --glass-shadow-md: 0 20px 40px rgba(33, 42, 54, 0.12);
  --glass-shadow-sm: 0 12px 24px rgba(36, 44, 54, 0.1);
  --text: #17212d;
  --text-soft: #4f5b69;
  --text-muted: #768394;
  --text-inverse: #f4f7fb;
  --line: rgba(111, 124, 140, 0.22);
  --line-strong: rgba(83, 95, 110, 0.34);
  --primary: #145ad6;
  --primary-hover: #0e45aa;
  --primary-soft: rgba(20, 90, 214, 0.12);
  --success: #1b7d58;
  --danger: #c74431;
  --danger-hover: #a83627;
  --danger-soft: rgba(199, 68, 49, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --muted: var(--text-soft);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 24%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.48), transparent 20rem),
    radial-gradient(circle at 84% 18%, rgba(98, 114, 133, 0.24), transparent 24rem),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 34%, #a8b3bf 72%, #c4ccd0 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.42;
}

body::after {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.4), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(104, 118, 135, 0.18), transparent 28rem);
  z-index: -3;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.96) 0%, rgba(239, 244, 250, 0.9) 100%);
  border: 1px solid rgba(99, 112, 129, 0.34);
  border-radius: var(--radius-sm);
  padding: 0.92rem 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 1px 0 rgba(255, 255, 255, 0.44);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(16px) saturate(130%);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(20, 90, 214, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(243, 247, 252, 0.98) 100%);
  box-shadow:
    0 0 0 4px rgba(20, 90, 214, 0.14),
    0 14px 24px rgba(25, 35, 48, 0.1);
}

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

#general-name,
#general-address {
  min-height: 52px;
  height: 52px;
}

#general-address {
  resize: none;
}

.page-shell {
  width: min(1460px, calc(100% - clamp(22px, 3vw, 52px)));
  margin: 0 auto;
  padding: clamp(20px, 2.4vw, 32px) 0 56px;
}

.page-shell--form {
  width: min(1660px, calc(100% - clamp(22px, 3vw, 56px)));
}

.page-shell--narrow {
  width: min(700px, calc(100% - 32px));
}

.hero,
.sub-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
  gap: 24px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, rgba(31, 40, 53, 0.82) 0%, rgba(62, 74, 89, 0.74) 58%, rgba(26, 33, 44, 0.9) 100%);
  color: var(--text-inverse);
  box-shadow: var(--glass-shadow-lg);
  backdrop-filter: blur(22px) saturate(145%);
}

.sub-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hero--single {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.hero--single .hero__copy {
  max-width: 980px;
}

.hero--single h1 {
  max-width: 11ch;
}

.sub-hero--compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
}

.sub-hero--compact h1 {
  margin-bottom: 0;
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 0.98;
}

.hero::before,
.sub-hero::before,
.hero::after,
.sub-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before,
.sub-hero::before {
  top: -120px;
  right: -70px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 68%);
}

.hero::after,
.sub-hero::after {
  left: 18%;
  bottom: -140px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(94, 120, 152, 0.28) 0%, rgba(94, 120, 152, 0) 72%);
}

.hero__copy,
.hero__panel,
.hero__actions,
.metric,
.sub-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.85rem;
  padding: 0.44rem 0.86rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(240, 244, 249, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.section-tag {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.42);
  color: var(--primary-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

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

.hero h1,
.sub-hero h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 14ch;
}

.hero__text {
  max-width: 70ch;
  margin-bottom: 0;
  color: rgba(234, 240, 246, 0.84);
  font-size: 1rem;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 1.85rem;
}

.hero__actions form {
  display: flex;
  margin: 0;
}

.hero__actions > * {
  flex: 0 0 auto;
}

.sub-hero--compact .hero__actions {
  margin-top: 0;
}

.hero__panel {
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.metric {
  display: grid;
  gap: 0.5rem;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.metric__label {
  color: rgba(226, 232, 239, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric__value {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.metric__meta {
  color: rgba(239, 244, 249, 0.78);
  line-height: 1.6;
}

.workspace,
.form-layout {
  margin-top: 26px;
}

.page-shell--form {
  padding-bottom: 110px;
}

.workspace {
  display: grid;
  gap: 24px;
}

.filters-card,
.list-card,
.section-card,
.sidebar-card,
.form-card {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(233, 240, 247, 0.78) 0%, rgba(198, 210, 223, 0.56) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    var(--glass-shadow-md);
  backdrop-filter: blur(26px) saturate(150%);
}

.filters-card::before,
.list-card::before,
.section-card::before,
.sidebar-card::before,
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 45%);
  pointer-events: none;
}

.filters-card,
.list-card,
.form-card,
.sidebar-card {
  padding: clamp(20px, 3vw, 28px);
}

.section-card {
  padding: 22px;
  border-color: rgba(119, 132, 148, 0.26);
  background:
    linear-gradient(180deg, rgba(228, 236, 244, 0.9) 0%, rgba(192, 204, 217, 0.68) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 28px rgba(35, 45, 58, 0.12);
  overflow: visible;
}

.form-card {
  background:
    linear-gradient(180deg, rgba(236, 243, 249, 0.84) 0%, rgba(198, 209, 221, 0.62) 100%);
  overflow: visible;
}

.sidebar-card {
  background:
    linear-gradient(180deg, rgba(228, 236, 244, 0.84) 0%, rgba(195, 206, 219, 0.62) 100%);
  overflow: hidden;
}

.filters-card__top,
.list-card__top,
.section-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filters-card__top h2,
.list-card__top h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.82rem);
  letter-spacing: -0.035em;
}

.list-card__meta {
  min-width: max-content;
  margin-bottom: 0;
  color: #566576;
  font-weight: 700;
}

.list-card__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.view-switch__button {
  background: linear-gradient(180deg, rgba(242, 247, 252, 0.84) 0%, rgba(213, 223, 235, 0.64) 100%);
  color: #334558;
}

.view-switch__button.is-active {
  border-color: rgba(20, 90, 214, 0.18);
  background: rgba(20, 90, 214, 0.14);
  color: var(--primary-hover);
  box-shadow: 0 10px 18px rgba(20, 90, 214, 0.12);
}

.filters-card__top,
.list-card__top,
.section-card__top {
  position: relative;
  z-index: 1;
}

.filters-grid,
.grid-fields {
  display: grid;
  gap: 16px;
}

.filters-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-fields {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.grid-fields > *,
.filters-grid > * {
  min-width: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: #314152;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.combo-field {
  position: relative;
}

.combo-field__input {
  padding-right: 3.2rem;
}

.combo-field__toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 125, 145, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(236, 242, 248, 0.98) 0%, rgba(217, 228, 239, 0.92) 100%);
  color: #46576a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 16px rgba(28, 37, 48, 0.08);
  transform: translateY(-50%);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.combo-field__toggle:hover {
  border-color: rgba(20, 90, 214, 0.24);
  color: var(--primary-hover);
}

.combo-field__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 240;
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(102, 117, 136, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(232, 239, 247, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 30px rgba(20, 28, 38, 0.14);
  backdrop-filter: blur(16px);
}

.combo-field__menu[hidden] {
  display: none;
}

.table-row,
.field,
.software-extra__name-cell {
  position: relative;
}

.section-card:has(.combo-field.is-open),
.table-row:has(.combo-field.is-open),
.field:has(.combo-field.is-open),
.software-extra__name-cell:has(.combo-field.is-open) {
  z-index: 320;
}

.combo-field__option {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334456;
  font-weight: 700;
  text-align: left;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

.combo-field__option:hover {
  background: rgba(20, 90, 214, 0.08);
  color: var(--primary-hover);
}

.combo-field.is-open .combo-field__toggle {
  border-color: rgba(20, 90, 214, 0.28);
  color: var(--primary-hover);
}

.combo-field.is-open {
  z-index: 340;
}

.auth-form {
  margin-top: 22px;
}

.auth-card {
  padding: clamp(28px, 4vw, 36px);
}

.auth-card h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #233141;
}

.auth-card__lead {
  max-width: 34ch;
  margin-bottom: 0;
  color: #5e6d7f;
  font-size: 1rem;
  line-height: 1.72;
}

.auth-card .auth-form {
  max-width: 640px;
}

.auth-card--db-setup .auth-form {
  max-width: 100%;
}

.auth-card__hint {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-form--db {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.auth-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-card .auth-form .button {
  align-self: end;
}

.error-note {
  margin: 16px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.button,
.tiny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9rem 1.2rem;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.button:hover,
.tiny-button:hover {
  transform: translateY(-1px);
}

.button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  font-size: 1rem;
  line-height: 1;
}

.button__label {
  display: inline-block;
}

.button--toolbar {
  gap: 10px;
}

.button:focus-visible,
.tiny-button:focus-visible,
.sidebar-nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(20, 90, 214, 0.14);
}

.button--primary {
  color: #fff;
  background: linear-gradient(180deg, #1b5fd6 0%, #124ab8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 30px rgba(18, 74, 184, 0.28);
}

.button--primary:hover {
  background: linear-gradient(180deg, #1655c2 0%, #0f3f9c 100%);
}

.button--ghost {
  color: #223243;
  border-color: rgba(93, 106, 122, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(230, 237, 245, 0.62) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 10px 20px rgba(31, 39, 51, 0.08);
}

.hero .button--ghost,
.sub-hero .button--ghost {
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.hero .button--ghost:hover,
.sub-hero .button--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.button--danger,
.tiny-button--danger {
  color: #fff;
  background: linear-gradient(180deg, #d25341 0%, #b53b2b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(199, 68, 49, 0.2);
}

.button--danger:hover,
.tiny-button--danger:hover {
  background: linear-gradient(180deg, #bf4435 0%, #9f2f22 100%);
}

.tiny-button {
  min-height: 40px;
  padding: 0.68rem 1rem;
  border-color: rgba(99, 112, 129, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(232, 239, 247, 0.6) 100%);
  color: var(--primary-hover);
  font-size: 0.88rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(31, 39, 51, 0.07);
}

.objects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  perspective: 1400px;
  contain: layout style paint;
  transition:
    opacity 0.22s ease,
    filter 0.22s ease,
    min-height 0.26s ease;
}

.objects-grid[data-view="list"] {
  grid-template-columns: 1fr;
  gap: 12px;
}

.objects-grid[data-view="table"] {
  display: block;
}

.objects-grid.is-loading {
  opacity: 0.62;
  filter: saturate(0.9);
}

.objects-grid.is-swapping-out {
  opacity: 0.22;
  filter: blur(3px) saturate(0.86);
}

.objects-grid.is-swapping-in {
  opacity: 1;
  filter: none;
}

.objects-grid.is-rendered .object-card,
.objects-grid.is-rendered .objects-table__row {
  animation: list-item-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--item-index, 0) * 26ms);
}

.object-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 18%, rgba(255, 255, 255, 0.04) 34%, rgba(18, 24, 34, 0.1) 56%, rgba(8, 11, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(58, 68, 84, 0.82) 0%, rgba(34, 42, 55, 0.76) 56%, rgba(24, 31, 43, 0.84) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 20px 36px rgba(17, 23, 31, 0.2),
    0 10px 18px rgba(17, 23, 31, 0.14);
  backdrop-filter: blur(40px) saturate(165%);
  transform-style: preserve-3d;
  transform-origin: center center;
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}

.object-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(20, 90, 214, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 20px 36px rgba(17, 23, 31, 0.2),
    0 10px 18px rgba(17, 23, 31, 0.14);
}

@keyframes list-item-in {
  from {
    opacity: 0;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.object-card::before,
.object-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.object-card::before {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.14) 14%, rgba(255, 255, 255, 0.04) 26%, transparent 46%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 44%);
  opacity: 0.98;
}

.object-card::after {
  inset: auto -10% -28% 18%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 171, 208, 0.34) 0%, rgba(146, 171, 208, 0.04) 52%, rgba(146, 171, 208, 0) 74%);
  filter: blur(30px);
  opacity: 0.96;
}

.object-card__top h3 {
  margin-bottom: 0.42rem;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  color: #f5f8fc;
}

.object-card__top p {
  margin-bottom: 0;
  color: rgba(219, 228, 238, 0.82);
  line-height: 1.6;
}

.object-card__meta {
  min-height: 1.6em;
}

.object-card__meta--empty {
  visibility: hidden;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #eef4fb;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(13, 18, 26, 0.16);
}

.badge--status-green {
  border-color: rgba(101, 210, 146, 0.34);
  background: linear-gradient(180deg, rgba(70, 156, 101, 0.46) 0%, rgba(39, 112, 67, 0.52) 100%);
  color: #f3fff8;
  box-shadow:
    inset 0 1px 0 rgba(211, 255, 226, 0.22),
    0 10px 20px rgba(16, 46, 25, 0.18);
}

.badge--status-red {
  border-color: rgba(232, 105, 105, 0.34);
  background: linear-gradient(180deg, rgba(167, 55, 55, 0.52) 0%, rgba(120, 31, 31, 0.56) 100%);
  color: #fff6f6;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 220, 0.2),
    0 10px 20px rgba(52, 12, 12, 0.2);
}

.badge--status-yellow {
  border-color: rgba(232, 196, 101, 0.34);
  background: linear-gradient(180deg, rgba(165, 128, 38, 0.52) 0%, rgba(118, 89, 22, 0.56) 100%);
  color: #fff9ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 206, 0.2),
    0 10px 20px rgba(55, 38, 8, 0.18);
}

.object-card--list {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}

.object-card--list .object-card__top h3 {
  margin-bottom: 0.3rem;
}

.object-card--list .badge-row {
  margin-top: 0;
  justify-content: flex-start;
}

@media (hover: hover) and (pointer: fine) {
  .object-card:hover {
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 20px 32px rgba(14, 20, 28, 0.18),
      0 8px 14px rgba(14, 20, 28, 0.12);
    transform: rotateX(0.34deg) rotateY(-0.46deg) translateY(-2px) translateZ(0);
  }

  .object-card:hover::before {
    opacity: 1;
    transform: translate3d(-1px, -1px, 1px);
  }

  .object-card:hover::after {
    opacity: 1;
    transform: translate3d(1px, 1px, -1px);
  }

  .object-card:hover .object-card__top,
  .object-card:hover .badge-row {
    transform: translateZ(1px);
  }

  .object-card .object-card__top,
  .object-card .badge-row {
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .object-card--list:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 20px 32px rgba(14, 20, 28, 0.18),
      0 8px 14px rgba(14, 20, 28, 0.12);
    transform: translateY(-2px);
  }

  .object-card--list:hover::before,
  .object-card--list:hover::after,
  .object-card--list:hover .object-card__top,
  .object-card--list:hover .badge-row {
    transform: none;
  }
}

.objects-table {
  overflow-x: auto;
  border: 1px solid rgba(166, 184, 204, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(43, 53, 67, 0.92) 0%, rgba(27, 35, 47, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(15, 20, 28, 0.18);
  backdrop-filter: blur(22px);
}

.objects-table__head,
.objects-table__row {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(180px, 0.95fr) minmax(160px, 0.9fr) minmax(220px, 1.15fr);
  gap: 16px;
  align-items: center;
  min-width: 820px;
  padding: 16px 18px;
}

.objects-table__head {
  border-bottom: 1px solid rgba(182, 199, 219, 0.12);
  background: linear-gradient(180deg, rgba(88, 103, 121, 0.18) 0%, rgba(64, 76, 92, 0.08) 100%);
  color: rgba(230, 238, 247, 0.78);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.objects-table__row {
  border-top: 1px solid rgba(176, 193, 212, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 88px;
}

.objects-table__row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.055);
}

.objects-table__row:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(192, 208, 226, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.objects-table__row:first-of-type {
  border-top: 0;
}

.objects-table__row:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(20, 90, 214, 0.16);
}

.objects-table__title {
  display: grid;
  gap: 6px;
}

.objects-table__title strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.objects-table__muted {
  color: rgba(214, 224, 236, 0.74);
  line-height: 1.5;
}

.objects-table__title strong {
  color: #f3f7fb;
}

.objects-table__cell {
  min-width: 0;
}

.objects-table__cell .badge-row {
  justify-content: flex-start;
}

.objects-table .badge {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(118, 132, 151, 0.32) 0%, rgba(86, 101, 120, 0.26) 100%);
  color: #f3f7fb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 16px rgba(9, 13, 19, 0.16);
}

.objects-table .badge--status-green {
  border-color: rgba(101, 210, 146, 0.34);
  background: linear-gradient(180deg, rgba(70, 156, 101, 0.46) 0%, rgba(39, 112, 67, 0.52) 100%);
  color: #f3fff8;
}

.objects-table .badge--status-red {
  border-color: rgba(232, 105, 105, 0.34);
  background: linear-gradient(180deg, rgba(167, 55, 55, 0.52) 0%, rgba(120, 31, 31, 0.56) 100%);
  color: #fff6f6;
}

.objects-table .badge--status-yellow {
  border-color: rgba(232, 196, 101, 0.34);
  background: linear-gradient(180deg, rgba(165, 128, 38, 0.52) 0%, rgba(118, 89, 22, 0.56) 100%);
  color: #fff9ec;
}

.objects-table .tiny-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(40, 51, 65, 0.9) 0%, rgba(26, 35, 47, 0.86) 100%);
  color: #f3f7fb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 20px rgba(11, 15, 22, 0.18);
}

.empty-state {
  margin-top: 20px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.3);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
}

.empty-state h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.empty-state p {
  max-width: 44ch;
  margin: 0 auto 18px;
  color: var(--text-soft);
}

.hidden {
  display: none !important;
}

.form-layout {
  display: grid;
  grid-template-columns: clamp(250px, 18vw, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.form-quick-actions {
  position: fixed;
  top: auto;
  bottom: 18px;
  right: clamp(12px, 2vw, 24px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 39, 51, 0.9) 0%, rgba(19, 25, 35, 0.84) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 34px rgba(15, 20, 28, 0.24);
  backdrop-filter: blur(18px) saturate(140%);
}

.form-quick-actions .button {
  min-height: 46px;
}

.form-quick-actions .button--ghost {
  color: #f4f7fb;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.form-quick-actions .button--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.scroll-top-button {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: 18px;
  z-index: 70;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 39, 51, 0.9) 0%, rgba(19, 25, 35, 0.84) 100%);
  color: #f4f7fb;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 34px rgba(15, 20, 28, 0.24);
  backdrop-filter: blur(18px) saturate(140%);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease,
    background 180ms ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-button:hover {
  background: linear-gradient(180deg, rgba(43, 53, 68, 0.94) 0%, rgba(24, 31, 42, 0.9) 100%);
}

.form-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}

.sidebar-card {
  display: grid;
  gap: 14px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav a {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(104, 117, 133, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.84) 0%, rgba(228, 236, 244, 0.62) 100%);
  color: #344457;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(31, 39, 51, 0.06);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.sidebar-nav a:hover {
  transform: translateX(2px);
  border-color: rgba(20, 90, 214, 0.18);
  background: rgba(255, 255, 255, 0.44);
  color: var(--primary-hover);
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(111, 124, 140, 0.16);
}

.meta-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.meta-list dt {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
  font-weight: 800;
  word-break: break-word;
}

.form-card {
  min-width: 0;
  padding-bottom: 20px;
}

.form-sections {
  display: grid;
  gap: 20px;
}

.inventory-table,
.list-table {
  display: grid;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.table-head,
.table-row {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: max(100%, calc(var(--columns, 4) * 150px));
}

.inventory-table .table-head,
.inventory-table .table-row {
  grid-template-columns: repeat(var(--columns, 4), minmax(120px, 1fr));
}

.list-table .table-head,
.list-table .table-row {
  grid-template-columns: repeat(var(--columns, 4), minmax(140px, 1fr));
}

.table-head {
  padding: 14px 16px;
  border: 1px solid rgba(90, 105, 122, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(219, 229, 240, 0.96) 0%, rgba(205, 218, 232, 0.9) 100%);
  color: #546476;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 20px rgba(33, 42, 54, 0.06);
  backdrop-filter: blur(16px);
}

.table-row {
  padding: 16px;
  border: 1px solid rgba(107, 121, 138, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 249, 253, 0.86) 0%, rgba(229, 236, 244, 0.7) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 18px rgba(34, 43, 55, 0.06);
  backdrop-filter: blur(16px);
}

.table-row:nth-child(odd) {
  background: linear-gradient(180deg, rgba(238, 245, 251, 0.9) 0%, rgba(223, 232, 241, 0.76) 100%);
}

.inline-input,
.inline-textarea {
  min-height: 50px;
}

.table-cell {
  min-width: 0;
}

.table-cell--action {
  display: flex;
  align-items: flex-end;
}

.inline-textarea {
  min-height: 120px;
}

.readonly-chip {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(22, 30, 42, 0.88) 0%, rgba(13, 20, 31, 0.92) 100%);
  color: var(--text-inverse);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 18px rgba(20, 27, 38, 0.16);
}

.software-table--combined .table-row[data-row-kind="additional-software"] {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr);
}

.software-extra__name-cell {
  min-width: 0;
}

.inline-input--chip {
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(22, 30, 42, 0.88) 0%, rgba(13, 20, 31, 0.92) 100%);
  color: var(--text-inverse);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 18px rgba(20, 27, 38, 0.16);
}

.inline-input--chip:focus {
  border-color: rgba(92, 130, 214, 0.42);
  box-shadow:
    0 0 0 4px rgba(20, 90, 214, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.software-extra__remove {
  min-height: 50px;
}

.form-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 0 0;
  background: linear-gradient(180deg, rgba(208, 217, 227, 0) 0%, rgba(214, 223, 233, 0.94) 36%, rgba(214, 223, 233, 0.98) 100%);
  backdrop-filter: blur(18px);
}

.form-status {
  color: var(--text-soft);
  font-weight: 700;
}

.form-actions--status-only {
  justify-content: flex-start;
  padding-top: 14px;
}

.sub-hero .hero__actions {
  margin-top: 0;
  justify-content: flex-end;
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
  body {
    background-attachment: scroll;
  }

  body::before {
    opacity: 0.18;
  }

  body::after {
    opacity: 0.3;
  }

  .hero,
  .sub-hero,
  .filters-card,
  .list-card,
  .section-card,
  .sidebar-card,
  .form-card,
  .object-card,
  .objects-table,
  .form-quick-actions,
  .scroll-top-button,
  input,
  select,
  textarea {
    backdrop-filter: none;
  }

  .hero,
  .sub-hero {
    box-shadow: 0 18px 32px rgba(28, 36, 46, 0.14);
  }

  .objects-grid {
    perspective: none;
    gap: 14px;
  }

  .objects-grid.is-loading {
    opacity: 0.8;
    filter: none;
  }

  .objects-grid.is-swapping-out {
    opacity: 0.45;
    filter: none;
  }

  .object-card {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(64, 75, 91, 0.94) 0%, rgba(34, 42, 55, 0.96) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 14px 24px rgba(15, 20, 28, 0.12);
  }

  .object-card::after {
    opacity: 0.35;
    filter: blur(18px);
  }

  .objects-grid.is-rendered .object-card,
  .objects-grid.is-rendered .objects-table__row {
    animation: none;
  }

  .objects-table {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 14px 24px rgba(15, 20, 28, 0.12);
  }

  .objects-table__row {
    transform: none;
  }

  .objects-table__row:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .objects-grid.is-swapping-out,
  .objects-grid.is-swapping-in,
  .objects-grid.is-loading {
    opacity: 1;
    filter: none;
  }
}

@media (min-width: 1700px) {
  .page-shell {
    width: min(1600px, calc(100% - 72px));
  }

  .page-shell--form {
    width: min(1820px, calc(100% - 80px));
  }

  .objects-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }

  .form-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (min-width: 2200px) {
  .page-shell {
    width: min(1780px, calc(100% - 96px));
  }

  .page-shell--form {
    width: min(1960px, calc(100% - 108px));
  }
}

@media (max-width: 1360px) {
  .page-shell {
    width: min(100% - 24px, 100%);
  }

  .page-shell--form {
    width: min(100% - 24px, 100%);
  }

  .form-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 20px;
  }

  .grid-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .hero,
  .sub-hero {
    grid-template-columns: 1fr;
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-quick-actions {
    top: auto;
    right: 16px;
    bottom: 14px;
  }
}

@media (max-width: 920px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .form-sidebar {
    grid-template-columns: 1fr;
  }

  .section-card,
  .form-card,
  .sidebar-card {
    padding: 18px;
  }

  .inventory-table,
  .list-table {
    overflow: visible;
  }

  .table-head,
  .table-row {
    min-width: 0;
  }
}

@media (max-width: 780px) {
  .page-shell,
  .page-shell--form,
  .page-shell--narrow {
    width: min(100% - 24px, 100%);
    padding-top: 18px;
    padding-bottom: 32px;
  }

  .hero,
  .sub-hero,
  .filters-card,
  .list-card,
  .form-card,
  .sidebar-card,
  .section-card {
    border-radius: 22px;
  }

  .hero h1,
  .sub-hero h1 {
    max-width: none;
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .sub-hero--compact h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .list-card__top {
    flex-direction: column;
    align-items: stretch;
  }

  .list-card__tools {
    justify-content: space-between;
  }

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

  .form-actions--status-only {
    align-items: flex-start;
  }

  .filters-grid,
  .grid-fields,
  .form-sidebar {
    grid-template-columns: 1fr;
  }

  .form-sidebar {
    overflow: hidden;
  }

  .sidebar-card {
    gap: 10px;
  }

  .sidebar-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav li {
    flex: 0 0 auto;
  }

  .sidebar-nav a {
    white-space: nowrap;
    padding: 10px 12px;
  }

  .objects-grid {
    grid-template-columns: 1fr;
  }

  .object-card--list {
    grid-template-columns: 1fr;
  }

  .objects-table {
    overflow: visible;
  }

  .objects-table__head {
    display: none;
  }

  .objects-table__row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }

  .objects-table__cell,
  .objects-table__title {
    display: grid;
    gap: 6px;
  }

  .objects-table__cell::before,
  .objects-table__title::before {
    content: attr(data-label);
    color: rgba(219, 228, 238, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .objects-table__cell .badge-row {
    margin-top: 2px;
  }

  .inventory-table,
  .list-table {
    overflow: visible;
  }

  .inventory-table .table-head,
  .list-table .table-head {
    display: none;
  }

  .inventory-table .table-row,
  .list-table .table-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .inventory-table .table-cell,
  .list-table .table-cell {
    display: grid;
    gap: 6px;
  }

  .inventory-table .table-cell::before,
  .list-table .table-cell::before {
    content: attr(data-label);
    color: #556476;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .inventory-table .table-cell--action,
  .list-table .table-cell--action {
    align-items: stretch;
  }

  .inventory-table .table-cell--action .tiny-button,
  .list-table .table-cell--action .tiny-button {
    width: 100%;
  }

  .software-table--combined .table-row[data-row-kind="additional-software"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .view-switch {
    display: none;
  }

  .list-card__tools {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .page-shell--form,
  .page-shell--narrow {
    width: calc(100% - 18px);
  }

  .hero,
  .sub-hero,
  .filters-card,
  .list-card,
  .form-card,
  .sidebar-card,
  .section-card {
    padding: 18px;
  }

  .page-shell--form {
    padding-bottom: 138px;
  }

  .form-layout,
  .form-card,
  .section-card,
  .form-sections,
  .grid-fields,
  .field,
  .combo-field,
  .combo-field__input,
  .inline-input,
  .inline-textarea,
  input,
  select,
  textarea {
    min-width: 0;
    max-width: 100%;
  }

  .section-tag,
  .eyebrow {
    max-width: 100%;
    white-space: normal;
  }

  .button,
  .tiny-button {
    width: auto;
  }

  .metric {
    padding: 18px;
  }

  .meta-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .auth-form .button,
  .form-actions .button,
  .empty-state .button {
    width: 100%;
  }

  .auth-card__lead {
    max-width: none;
  }

  .sub-hero--compact {
    gap: 12px;
    padding: 18px;
  }

  .sub-hero--compact h1 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
    line-height: 1.02;
  }

  .sub-hero .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }

  .sub-hero .hero__actions form {
    display: contents;
  }

  .sub-hero .hero__actions > * {
    flex: 0 1 auto;
    min-width: 0;
  }

  .sub-hero .button--toolbar {
    min-height: 42px;
    padding: 0 12px;
    gap: 8px;
    font-size: 0.9rem;
  }

  .sub-hero .button--toolbar .button__label {
    white-space: nowrap;
  }

  .form-quick-actions {
    left: auto;
    right: 10px;
    bottom: 10px;
    top: auto;
    display: flex;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
  }

  .form-quick-actions .button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 14px;
    gap: 0;
  }

  .form-quick-actions .button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .form-quick-actions .button__icon {
    font-size: 1.1rem;
  }

  .list-card__tools {
    gap: 10px;
  }

  .scroll-top-button {
    right: 10px;
    bottom: 10px;
    width: 50px;
    height: 50px;
  }

  .inventory-table .table-row,
  .list-table .table-row {
    padding: 12px;
  }

  .inventory-table .table-cell,
  .list-table .table-cell {
    min-width: 0;
  }

  .inventory-table .table-cell > *,
  .list-table .table-cell > * {
    min-width: 0;
    width: 100%;
  }

  .inventory-table .table-cell::before,
  .list-table .table-cell::before {
    font-size: 0.68rem;
  }
}
