:root {
  --bg: #f7f6f2;
  --surface: #fff;
  --elevated: #f1f0ec;
  --text: #09090b;
  --muted: #595960;
  --border: rgba(9, 9, 11, 0.12);
  --holo: linear-gradient(
    118deg,
    #f8f4ec,
    #d8f5ed 14%,
    #d8ccfa 29%,
    #ffd2c5 45%,
    #f9f0c8 57%,
    #d5f2e8 70%,
    #e1d3fa 84%,
    #fff9f4
  );
  --holo-soft: linear-gradient(
    128deg,
    #e6f5ee,
    #ebe2f7 32%,
    #ffe9e1 55%,
    #f8f3de 70%,
    #efe6fa
  );
  font-family:
    "Figtree",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body:before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--holo);
  z-index: 20;
  pointer-events: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 650;
}
h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
}
h3 {
  font-size: 20px;
  font-weight: 650;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
[data-icon] {
  display: inline-flex;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #66508e;
  outline-offset: 4px;
}
::selection {
  background: #d8ccfa;
}
.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.logo {
  width: 180px;
  height: auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 14px;
}
.muted,
.micro {
  color: var(--muted);
}
.micro {
  font-size: 13px;
  line-height: 1.6;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 18px;
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn:hover {
  background: var(--elevated);
  border-color: #aaa;
}
.btn.dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn.dark:hover {
  background: #27272a;
}
.btn.foil {
  background: var(--holo);
  color: var(--text);
}
.btn.full {
  width: 100%;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--elevated);
}
.chip {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
}
.chip.active {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}
input,
select,
textarea {
  color: var(--text);
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 11px 12px;
  min-height: 44px;
  font-size: 16px;
}
input::placeholder,
textarea::placeholder {
  color: #71717a;
}
textarea {
  resize: vertical;
}
label {
  font-size: 13px;
  font-weight: 600;
  display: grid;
  gap: 7px;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
.error {
  background: #fff0ee;
  color: #9f2119;
  border: 1px solid #f3cbc6;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-block: 16px;
}
.notice {
  background: var(--holo-soft);
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
}
.empty {
  text-align: center;
  padding: 65px 24px;
  border: 1px dashed #bfbfc3;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
}
.empty > [data-icon] {
  padding: 14px;
  border-radius: 16px;
  background: var(--holo);
  margin-bottom: 18px;
}
.empty svg {
  width: 28px;
  height: 28px;
}
.empty h3 {
  margin-bottom: 10px;
}
.empty p {
  color: var(--muted);
  max-width: 48ch;
  margin-inline: auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 7px;
  padding: 5px 8px;
  font-weight: 600;
  background: var(--elevated);
  white-space: nowrap;
}
.badge.live {
  background: #e4f2e9;
  color: #166044;
}
.badge.draft {
  background: #f0eaf8;
  color: #584277;
}
.badge.warning {
  background: #fff1d8;
  color: #79521c;
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 14px 22px;
  background: var(--text);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px #0002;
  font-size: 14px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  color: var(--text);
  background: var(--surface);
  max-height: 90dvh;
  max-width: calc(100% - 24px);
  box-shadow: 0 24px 100px #0003;
}
dialog::backdrop {
  background: #09090b77;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.dialog-head .eyebrow {
  margin-bottom: 8px;
}
.dialog-head h2 {
  font-size: 28px;
}
.close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
}
.skip {
  position: absolute;
  top: -70px;
  left: 24px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-grid .wide {
  grid-column: 1/-1;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
}
.search input {
  border: 0;
  background: none;
  padding-inline: 0;
  min-width: 0;
}
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-title .eyebrow {
  margin-bottom: 8px;
}
.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.skeleton {
  height: 340px;
  border-radius: 20px;
  background: linear-gradient(120deg, #e9e8e4, #fafafa, #e9e8e4);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .logo {
    width: 150px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-grid .wide {
    grid-column: auto;
  }
  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  dialog {
    padding: 22px 18px;
  }
  .btn {
    min-height: 46px;
  }
  .empty {
    padding: 45px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}
