@charset "UTF-8";

:root {
  color-scheme: light;
  --ink-950: #17152b;
  --ink-900: #211e39;
  --ink-700: #4e4967;
  --ink-600: #66617b;
  --ink-500: #7c778e;
  --ink-300: #c9c5d4;
  --ink-200: #dfdce7;
  --ink-100: #efedf3;
  --ink-50: #f7f7fb;
  --surface: #ffffff;
  --violet-700: #5538d9;
  --violet-600: #6548ec;
  --violet-500: #7357ff;
  --violet-100: #e8e3ff;
  --violet-50: #f4f1ff;
  --mint-700: #137d6c;
  --mint-600: #169b83;
  --mint-500: #2ebfa5;
  --mint-100: #d8f5ef;
  --mint-50: #effbf8;
  --red-700: #a52835;
  --red-600: #c33847;
  --red-100: #f9dce0;
  --red-50: #fff2f3;
  --amber-700: #87570d;
  --amber-100: #fae8bd;
  --amber-50: #fff9e9;
  --blue-700: #285b9e;
  --blue-100: #d9e9fc;
  --blue-50: #f0f6ff;
  --shadow-sm: 0 1px 2px rgb(23 21 43 / 6%), 0 4px 14px rgb(23 21 43 / 4%);
  --shadow-md: 0 16px 45px rgb(23 21 43 / 11%);
  --radius-sm: .5rem;
  --radius-md: .85rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --sidebar-width: 17.5rem;
  --content-max: 92rem;
  --transition: 160ms ease;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink-950: #f5f3ff;
  --ink-900: #ece9fa;
  --ink-700: #d0cbe3;
  --ink-600: #aaa4bf;
  --ink-500: #8f899f;
  --ink-300: #514b65;
  --ink-200: #3b364c;
  --ink-100: #292536;
  --ink-50: #12111d;
  --surface: #1b1927;
  --violet-700: #b8a9ff;
  --violet-600: #9d8aff;
  --violet-500: #8972ff;
  --violet-100: #3a315f;
  --violet-50: #28223f;
  --mint-700: #7be0cc;
  --mint-600: #60d2bc;
  --mint-100: #174a42;
  --mint-50: #12352f;
  --red-700: #ffabb4;
  --red-600: #f07582;
  --red-100: #652d36;
  --red-50: #3e2027;
  --amber-700: #f3ca75;
  --amber-100: #5b4722;
  --amber-50: #352b1b;
  --blue-700: #9cc7ff;
  --blue-100: #28476d;
  --blue-50: #1d3049;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 28%), 0 4px 14px rgb(0 0 0 / 18%);
  --shadow-md: 0 16px 45px rgb(0 0 0 / 38%);
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink-950);
  background: var(--ink-50);
  font-size: 1rem;
  line-height: 1.55;
}

body.nav-is-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .62;
}

a {
  color: var(--violet-700);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--violet-600);
}

:focus-visible {
  outline: .2rem solid var(--violet-500);
  outline-offset: .18rem;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--ink-950);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell {
  min-height: 100vh;
}

.app-shell:not(.app-shell--public) {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.app-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--ink-200);
  background: var(--surface);
}

.app-brand {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--ink-100);
}

.app-brand img {
  width: 13.5rem;
  height: auto;
}

.app-nav {
  flex: 1;
  padding: 1rem .8rem;
}

.app-nav__label {
  margin: 1.25rem .7rem .45rem;
  color: var(--ink-500);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.app-nav__label:first-child {
  margin-top: .3rem;
}

.app-nav__link {
  display: flex;
  min-height: 2.85rem;
  align-items: center;
  gap: .8rem;
  margin: .15rem 0;
  padding: .62rem .78rem;
  border-radius: .7rem;
  color: var(--ink-700);
  font-size: .94rem;
  font-weight: 620;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), transform var(--transition);
}

.app-nav__link:hover {
  color: var(--ink-950);
  background: var(--ink-50);
  transform: translateX(.12rem);
}

.app-nav__link[aria-current="page"] {
  color: var(--violet-700);
  background: var(--violet-50);
}

.app-nav__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.app-nav__footer {
  padding: .8rem;
  border-top: 1px solid var(--ink-100);
}

.app-nav__footer form {
  margin: 0;
}

.app-nav__logout {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.app-column {
  grid-column: 2;
  min-width: 0;
}

.app-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgb(223 220 231 / 88%);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(14px);
}

.app-topbar__start,
.app-topbar__end,
.public-nav__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.app-topbar__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.app-topbar__eyebrow {
  margin: 0;
  color: var(--ink-600);
  font-size: .76rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .3rem .55rem .3rem .3rem;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  color: var(--ink-700);
  background: var(--surface);
  font-size: .86rem;
}

.user-chip__avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--violet-600), var(--mint-500));
  font-size: .75rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink-200);
  border-radius: .65rem;
  background: var(--surface);
}

.nav-toggle svg {
  width: 1.4rem;
}

.nav-backdrop {
  position: fixed;
  z-index: 25;
  inset: 0;
  border: 0;
  background: rgb(23 21 43 / 48%);
  cursor: default;
}

.app-main {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(1.15rem, 3vw, 2.2rem);
}

.app-main--narrow {
  max-width: 67rem;
}

.flash-stack {
  display: grid;
  gap: .65rem;
  margin-bottom: 1.25rem;
}

.flash {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: .75rem;
  padding: .8rem .9rem;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  color: var(--blue-700);
  background: var(--blue-50);
}

.flash--success {
  border-color: var(--mint-100);
  color: var(--mint-700);
  background: var(--mint-50);
}

.flash--warning {
  border-color: var(--amber-100);
  color: var(--amber-700);
  background: var(--amber-50);
}

.flash--error,
.flash--danger {
  border-color: var(--red-100);
  color: var(--red-700);
  background: var(--red-50);
}

.flash__icon {
  width: 1.2rem;
  margin-top: .1rem;
}

.flash__message {
  margin: 0;
}

.flash__dismiss {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: transparent;
  font-size: 1.2rem;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-heading__copy {
  min-width: 0;
}

.eyebrow {
  display: block;
  margin: 0 0 .25rem;
  color: var(--violet-700);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.page-heading h1,
.section-heading h2,
.detail-title {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.page-heading h1 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.page-heading p {
  max-width: 46rem;
  margin: .45rem 0 0;
  color: var(--ink-600);
}

.page-heading__actions,
.form-actions,
.table-actions,
.inline-actions,
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 1.22rem;
}

.section-heading p {
  margin: .2rem 0 0;
  color: var(--ink-600);
  font-size: .9rem;
}

.button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  padding: .62rem 1rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: #fff;
  background: var(--violet-600);
  box-shadow: 0 1px 2px rgb(23 21 43 / 9%);
  font-size: .9rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button:hover {
  color: #fff;
  background: var(--violet-700);
  box-shadow: 0 5px 16px rgb(85 56 217 / 22%);
  transform: translateY(-1px);
}

.button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.button--secondary {
  border-color: var(--ink-200);
  color: var(--ink-950);
  background: var(--surface);
}

.button--secondary:hover {
  border-color: var(--ink-300);
  color: var(--ink-950);
  background: var(--ink-50);
  box-shadow: var(--shadow-sm);
}

.button--quiet {
  color: var(--violet-700);
  background: transparent;
  box-shadow: none;
}

.button--quiet:hover {
  color: var(--violet-700);
  background: var(--violet-50);
  box-shadow: none;
}

.button--danger {
  color: #fff;
  background: var(--red-600);
}

.button--danger:hover {
  background: var(--red-700);
}

.button--small {
  min-height: 2.15rem;
  padding: .4rem .68rem;
  font-size: .8rem;
}

.icon-button {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink-200);
  border-radius: .55rem;
  color: var(--ink-700);
  background: var(--surface);
}

.icon-button:hover {
  color: var(--violet-700);
  border-color: var(--violet-100);
  background: var(--violet-50);
}

.theme-toggle {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink-200);
  border-radius: .7rem;
  color: var(--ink-700);
  background: var(--surface);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  color: var(--violet-700);
  background: var(--violet-50);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-toggle__sun,
:root[data-theme="dark"] .theme-toggle__moon {
  display: block;
}

.theme-toggle__moon,
:root[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

:root[data-theme="dark"] .app-topbar,
:root[data-theme="dark"] .public-header {
  border-color: rgb(81 75 101 / 75%);
  background: rgb(27 25 39 / 88%);
}

:root[data-theme="dark"] .data-table th {
  background: #211e30;
}

:root[data-theme="dark"] .app-brand img,
:root[data-theme="dark"] .public-nav__brand img {
  padding: .28rem .45rem;
  border-radius: .55rem;
  background: #fff;
}

:root[data-theme="dark"] .hero-visual__card {
  border-color: var(--ink-200);
  background: rgb(27 25 39 / 92%);
}

.panel {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: 1rem;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid var(--ink-100);
}

.panel__header h2,
.panel__header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.panel__header p {
  margin: .2rem 0 0;
  color: var(--ink-600);
  font-size: .85rem;
}

.panel__body {
  padding: 1.2rem;
}

.panel__body--flush {
  padding: 0;
}

.panel__footer {
  padding: .9rem 1.2rem;
  border-top: 1px solid var(--ink-100);
  background: var(--ink-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.2rem;
}

.stat {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat::after {
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--violet-50);
  content: "";
}

.stat--mint::after {
  background: var(--mint-50);
}

.stat__label {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--ink-600);
  font-size: .82rem;
  font-weight: 650;
}

.stat__value {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: .25rem;
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 780;
  letter-spacing: -.04em;
}

.stat__note {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: .18rem;
  color: var(--ink-500);
  font-size: .76rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, .75fr);
  align-items: start;
  gap: 1rem;
}

.dashboard-stack {
  display: grid;
  gap: 1rem;
}

.filters {
  margin-bottom: 1rem;
  padding: .9rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.filters__grid {
  display: grid;
  grid-template-columns: minmax(13rem, 2fr) repeat(3, minmax(9rem, 1fr)) auto;
  align-items: end;
  gap: .7rem;
}

.filters .field {
  margin: 0;
}

.field {
  min-width: 0;
  margin-bottom: 1rem;
}

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

.field label,
.field__label {
  display: block;
  margin-bottom: .35rem;
  color: var(--ink-900);
  font-size: .85rem;
  font-weight: 700;
}

.field__required {
  color: var(--red-600);
}

.field__hint {
  margin: .35rem 0 0;
  color: var(--ink-600);
  font-size: .78rem;
}

.field__error,
.form-error {
  display: block;
  margin: .35rem 0 0;
  color: var(--red-700);
  font-size: .8rem;
  font-weight: 650;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea,
.input {
  width: 100%;
  min-height: 2.75rem;
  padding: .62rem .72rem;
  border: 1px solid var(--ink-300);
  border-radius: .6rem;
  color: var(--ink-950);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-500);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet-500);
  outline: 0;
  box-shadow: 0 0 0 .22rem var(--violet-100);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field .input-error {
  border-color: var(--red-600);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-500);
  opacity: 1;
}

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

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

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

.field--compact {
  margin-bottom: .65rem;
}

.checkbox,
.radio {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.checkbox input,
.radio input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: .18rem;
  accent-color: var(--violet-600);
}

.checkbox label,
.radio label {
  margin: 0;
  font-weight: 550;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.choice-card {
  position: relative;
}

.choice-card input {
  position: absolute;
  top: .9rem;
  left: .9rem;
}

.choice-card label {
  display: block;
  height: 100%;
  padding: .85rem .85rem .85rem 2.8rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.choice-card input:checked + label {
  border-color: var(--violet-500);
  background: var(--violet-50);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card small {
  margin-top: .2rem;
  color: var(--ink-600);
}

.form-section {
  padding: 1.2rem;
  border-bottom: 1px solid var(--ink-100);
}

.form-section:last-child {
  border-bottom: 0;
}

.form-section__heading {
  margin: 0 0 1rem;
}

.form-section__heading h2 {
  margin: 0;
  font-size: 1.06rem;
}

.form-section__heading p {
  margin: .25rem 0 0;
  color: var(--ink-600);
  font-size: .85rem;
}

.form-actions {
  justify-content: flex-end;
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--ink-100);
  background: var(--ink-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.file-drop {
  padding: 1rem;
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius-md);
  background: var(--ink-50);
}

.file-drop input {
  width: 100%;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: .75rem;
  margin-top: .85rem;
}

.image-preview__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.image-preview__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-preview__item figcaption {
  padding: .5rem;
  overflow: hidden;
  color: var(--ink-600);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border-radius: inherit;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.data-table th,
.data-table td {
  padding: .82rem 1rem;
  border-bottom: 1px solid var(--ink-100);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--ink-600);
  background: #fbfafd;
  font-size: .73rem;
  font-weight: 780;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--ink-50);
}

.data-table__primary {
  color: var(--ink-950);
  font-weight: 700;
  text-decoration: none;
}

.data-table__secondary {
  display: block;
  margin-top: .12rem;
  color: var(--ink-600);
  font-size: .78rem;
}

.data-table__number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table__actions {
  width: 1%;
  white-space: nowrap;
}

.entity {
  display: flex;
  min-width: 11rem;
  align-items: center;
  gap: .7rem;
}

.entity__media {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: .65rem;
  color: var(--violet-700);
  background: var(--violet-50);
  font-weight: 800;
}

.entity__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entity__copy {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  max-width: 100%;
  padding: .22rem .52rem;
  border-radius: 999px;
  color: var(--ink-700);
  background: var(--ink-100);
  font-size: .72rem;
  font-weight: 720;
  line-height: 1.35;
  white-space: nowrap;
}

.badge::before {
  width: .38rem;
  height: .38rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.badge--success,
.badge--active,
.badge--completed {
  color: var(--mint-700);
  background: var(--mint-100);
}

.badge--warning,
.badge--draft,
.badge--pending {
  color: var(--amber-700);
  background: var(--amber-100);
}

.badge--danger,
.badge--inactive {
  color: var(--red-700);
  background: var(--red-100);
}

.badge--info,
.badge--open {
  color: var(--blue-700);
  background: var(--blue-100);
}

.empty-state {
  display: grid;
  min-height: 16rem;
  place-items: center;
  padding: 2rem 1rem;
  text-align: center;
}

.empty-state__inner {
  max-width: 28rem;
}

.empty-state__icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 1.15rem;
  color: var(--violet-700);
  background: var(--violet-50);
}

.empty-state__icon svg {
  width: 2rem;
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  font-size: 1.15rem;
}

.empty-state p {
  margin: .4rem auto 1rem;
  color: var(--ink-600);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-top: 1px solid var(--ink-100);
}

.pagination__meta {
  color: var(--ink-600);
  font-size: .8rem;
}

.pagination__links {
  display: flex;
  gap: .35rem;
}

.pagination__link {
  display: grid;
  min-width: 2.2rem;
  min-height: 2.2rem;
  place-items: center;
  padding: .25rem .5rem;
  border: 1px solid var(--ink-200);
  border-radius: .5rem;
  color: var(--ink-700);
  background: var(--surface);
  font-size: .8rem;
  text-decoration: none;
}

.pagination__link[aria-current="page"] {
  border-color: var(--violet-500);
  color: #fff;
  background: var(--violet-600);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, .7fr);
  align-items: start;
  gap: 1rem;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.detail-list__item {
  min-width: 0;
}

.detail-list dt {
  color: var(--ink-600);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: .22rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 620;
}

.detail-list--stacked {
  grid-template-columns: 1fr;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(13rem, .8fr) minmax(0, 1.5fr);
  gap: 1.25rem;
}

.product-hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: var(--ink-50);
}

.product-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero__content {
  padding: .35rem 0;
}

.product-hero__content h1 {
  margin: .45rem 0 .35rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.product-hero__content > p {
  color: var(--ink-600);
}

.receipt-summary {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(145deg, var(--ink-950), #302b52);
}

.receipt-summary__label {
  color: rgb(255 255 255 / 68%);
  font-size: .78rem;
  font-weight: 650;
}

.receipt-summary__total {
  display: block;
  margin: .2rem 0 1rem;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.receipt-summary .detail-list dt {
  color: rgb(255 255 255 / 60%);
}

.progress {
  width: 100%;
  height: .5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink-100);
}

.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-500), var(--mint-500));
}

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

.text-positive {
  color: var(--mint-700);
}

.text-negative {
  color: var(--red-700);
}

.text-right {
  text-align: right !important;
}

.text-nowrap {
  white-space: nowrap;
}

.separator {
  height: 1px;
  margin: 1rem 0;
  border: 0;
  background: var(--ink-100);
}

.notice {
  padding: .85rem 1rem;
  border-left: .25rem solid var(--violet-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--violet-50);
  color: var(--ink-700);
  font-size: .87rem;
}

.notice p {
  margin: 0;
}

.public-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(223 220 231 / 85%);
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(14px);
}

.public-nav {
  display: flex;
  width: min(74rem, calc(100% - 2rem));
  min-height: 4.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
}

.public-nav__brand img {
  width: 11.7rem;
}

.public-main {
  min-height: calc(100vh - 9.8rem);
}

.public-main--centered {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.2rem, 9vw, 7.5rem) 1rem;
  background:
    radial-gradient(circle at 85% 10%, rgb(46 191 165 / 22%), transparent 28rem),
    radial-gradient(circle at 6% 70%, rgb(115 87 255 / 20%), transparent 30rem),
    var(--surface);
}

.hero__inner {
  display: grid;
  width: min(74rem, 100%);
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin: 0 auto;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero h1 em {
  color: var(--violet-600);
  font-style: normal;
}

.hero__lead {
  max-width: 39rem;
  margin: 1.25rem 0 1.5rem;
  color: var(--ink-700);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.hero-visual {
  position: relative;
  min-height: 25rem;
}

.hero-visual__card {
  position: absolute;
  inset: 2rem 0 auto auto;
  width: min(100%, 22rem);
  padding: 1.2rem;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: var(--radius-xl);
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  transform: rotate(2deg);
}

.hero-visual__card--small {
  inset: auto auto 1rem -1.5rem;
  width: 14rem;
  transform: rotate(-4deg);
}

.hero-visual__line {
  height: .7rem;
  margin: .65rem 0;
  border-radius: 99px;
  background: var(--ink-100);
}

.hero-visual__line:nth-child(2) {
  width: 72%;
}

.hero-visual__line:nth-child(3) {
  width: 48%;
}

.hero-visual__price {
  display: block;
  margin-top: 1.5rem;
  font-size: 2.2rem;
  font-weight: 820;
  letter-spacing: -.05em;
}

.features {
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  background: var(--ink-50);
}

.features__inner {
  width: min(74rem, 100%);
  margin: 0 auto;
}

.features__heading {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.features__heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  padding: 1.25rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature__icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: .8rem;
  color: var(--violet-700);
  background: var(--violet-50);
}

.feature__icon svg {
  width: 1.35rem;
}

.feature h3 {
  margin: 1rem 0 .35rem;
}

.feature p {
  margin: 0;
  color: var(--ink-600);
}

.public-footer {
  display: flex;
  width: min(74rem, calc(100% - 2rem));
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  color: var(--ink-600);
  font-size: .82rem;
}

.auth-card {
  width: min(100%, 28rem);
  padding: clamp(1.3rem, 5vw, 2rem);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.auth-card__header {
  margin-bottom: 1.5rem;
}

.auth-card__header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -.04em;
}

.auth-card__header p {
  margin: .35rem 0 0;
  color: var(--ink-600);
}

.auth-card .button[type="submit"] {
  width: 100%;
}

.auth-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
  text-align: center;
  color: var(--color-text-muted);
}

.auth-card__footer a {
  font-weight: 700;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 5.1rem !important;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: .45rem;
  padding: .3rem .45rem;
  border: 0;
  border-radius: .35rem;
  color: var(--violet-700);
  background: transparent;
  font-size: .76rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.error-page {
  display: grid;
  min-height: calc(100vh - 10rem);
  place-items: center;
  padding: 2rem 1rem;
  text-align: center;
}

.error-page__code {
  display: block;
  color: var(--violet-600);
  font-size: clamp(4rem, 15vw, 9rem);
  font-weight: 850;
  line-height: .85;
  letter-spacing: -.08em;
}

.error-page h1 {
  margin: 1rem 0 .4rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.error-page p {
  max-width: 34rem;
  margin: 0 auto 1.3rem;
  color: var(--ink-600);
}

@media (max-width: 74rem) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filters__grid .field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 62rem) {
  .app-shell:not(.app-shell--public) {
    display: block;
  }

  .app-column {
    min-width: 0;
  }

  .app-sidebar {
    width: min(var(--sidebar-width), 86vw);
    box-shadow: var(--shadow-md);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: grid;
  }

  .dashboard-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    width: min(100%, 30rem);
    min-height: 21rem;
    margin: 0 auto;
  }
}

@media (max-width: 48rem) {
  .app-topbar__eyebrow,
  .user-chip__name {
    display: none;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading__actions > .button {
    flex: 1 1 auto;
  }

  .form-grid,
  .form-grid--three,
  .field-row,
  .choice-grid {
    grid-template-columns: 1fr;
  }

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

  .public-nav__actions .button--secondary {
    display: none;
  }

  .public-nav {
    width: min(100% - 1rem, 74rem);
  }

  .public-nav__brand img {
    width: 9.5rem;
  }

  .public-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .product-hero__image {
    max-height: 22rem;
  }
}

@media (max-width: 40rem) {
  .app-topbar {
    gap: .45rem;
    padding-inline: .75rem;
  }

  .app-topbar__start,
  .app-topbar__end {
    gap: .4rem;
  }

  .app-topbar__title {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-chip {
    padding-right: .3rem;
  }

  .public-nav__actions .button {
    padding-inline: .75rem;
  }

  .auth-card {
    padding: 1.25rem;
  }
  .app-main {
    padding: 1rem;
  }

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

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

  .filters__grid .field:first-child {
    grid-column: auto;
  }

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

  .panel {
    border-radius: var(--radius-md);
  }

  .panel__header,
  .panel__body,
  .form-section {
    padding: 1rem;
  }

  .table-scroll {
    overflow: visible;
  }

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

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .data-table tbody tr {
    padding: .6rem 0;
    border-bottom: 1px solid var(--ink-200);
  }

  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 40%) minmax(0, 1fr);
    gap: .7rem;
    padding: .45rem 1rem;
    border: 0;
    text-align: right;
  }

  .data-table td::before {
    color: var(--ink-600);
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-align: left;
    text-transform: uppercase;
  }

  .data-table td[data-label=""] {
    display: block;
  }

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

  .data-table__actions {
    width: 100%;
  }

  .data-table__actions .table-actions {
    justify-content: flex-end;
  }

  .entity {
    justify-content: flex-end;
    text-align: left;
  }

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

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

  .pagination__links {
    justify-content: flex-end;
  }

  .hero-visual__card--small {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .app-sidebar,
  .app-topbar,
  .page-heading__actions,
  .filters,
  .table-actions,
  .form-actions,
  .public-header,
  .public-footer {
    display: none !important;
  }

  .app-shell:not(.app-shell--public) {
    display: block;
  }

  .app-main {
    max-width: none;
    padding: 0;
  }

  body,
  .panel,
  .stat {
    color: #000;
    background: #fff;
    box-shadow: none;
  }

  .panel,
  .stat {
    break-inside: avoid;
  }
}
