:root {
  color-scheme: light;
  --ink: #211d17;
  --muted: #7c6f61;
  --paper: #fff7ea;
  --panel: rgba(255, 255, 255, 0.72);
  --line: rgba(33, 29, 23, 0.12);
  --accent: #d94f2b;
  --flame: #d94f2b;
  --gold: #f4b95f;
  --honey: #f4b95f;
  --terracotta: #8f3b24;
  --sage: #5d7b61;
  --shadow: 0 24px 70px rgba(55, 43, 28, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Athelas, Charter, "Iowan Old Style", Georgia, serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(244, 185, 95, 0.42), transparent 28rem),
    radial-gradient(circle at 84% 12%, rgba(217, 79, 43, 0.2), transparent 24rem),
    linear-gradient(135deg, #fff2dc 0%, #f6efe4 48%, #eadfcd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(33, 29, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 29, 23, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 18%, black, transparent 76%);
}

.shell {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 100vh;
  padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  place-items: center;
}

.hero {
  width: min(720px, 100%);
  padding: clamp(28px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--panel);
  box-shadow: 0 32px 90px rgba(55, 43, 28, 0.16);
  backdrop-filter: blur(22px);
  animation: rise-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 15vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.lead {
  max-width: 32rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  line-height: 1.45;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.quick-nav a {
  position: relative;
  overflow: hidden;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.54);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.quick-nav a::after {
  content: "";
  position: absolute;
  inset: auto 12px 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--honey));
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.quick-nav a:hover,
.quick-nav a:focus-visible,
.quick-nav a[aria-current="true"] {
  border-color: rgba(217, 79, 43, 0.32);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(217, 79, 43, 0.12);
  transform: translateY(-1px);
}

.quick-nav a[aria-current="true"]::after {
  opacity: 1;
  transform: translateY(0);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(980px, 100%);
}

.panel {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 20px 58px rgba(55, 43, 28, 0.1);
  animation: rise-in 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.8), transparent 13rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 42%);
  opacity: 0.7;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel:hover {
  border-color: rgba(217, 79, 43, 0.22);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

[data-screen="feed"],
[data-screen="policy"],
[data-screen="profiles"],
[data-screen="ads"],
[data-screen="wallet"] {
  grid-column: span 2;
}

.shell[data-route="feed"] [data-screen="feed"],
.shell[data-route="policy"] [data-screen="policy"],
.shell[data-route="profiles"] [data-screen="profiles"],
.shell[data-route="ads"] [data-screen="ads"],
.shell[data-route="wallet"] [data-screen="wallet"],
.shell[data-route="rules"] [data-screen="rules"],
.shell[data-route="restrictions"] [data-screen="restrictions"] {
  border-color: rgba(217, 79, 43, 0.36);
  box-shadow: 0 28px 86px rgba(217, 79, 43, 0.16);
}

.panel-kicker {
  color: var(--accent);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel h2 {
  margin: 14px 0 8px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.feed-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.feed-group {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 24px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 234, 0.62)),
    radial-gradient(circle at 92% 8%, rgba(217, 79, 43, 0.16), transparent 11rem);
}

.feed-group::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 15px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(217, 79, 43, 0.55), rgba(244, 185, 95, 0.22));
}

.feed-group-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding-left: 12px;
}

.feed-group-eyebrow {
  display: inline-flex;
  margin-bottom: 3px;
  color: var(--flame);
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feed-group-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.feed-group-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding-left: 12px;
}

.feed-item {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(33, 29, 23, 0.08);
  border-radius: 18px;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 234, 0.48)),
    rgba(244, 185, 95, 0.14);
  box-shadow: 0 12px 24px rgba(33, 29, 23, 0.04);
}

.feed-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -18px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(217, 79, 43, 0.72);
  border-radius: 999px;
  background: #fff8ed;
}

.feed-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.feed-item-top time {
  white-space: nowrap;
}

.feed-item p {
  margin: 0;
}

.feed-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.label-chip {
  padding: 5px 8px;
  border-radius: 999px;
  color: #2b2118;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.7);
}

.label-commerce,
.label-unpaid-ad {
  color: #551900;
  background: rgba(217, 79, 43, 0.25);
}

.label-minor-risk,
.label-ai-fail-closed,
.label-scam {
  color: #fff;
  background: #8f1d12;
}

.label-spam,
.label-abuse {
  color: #3d2400;
  background: rgba(244, 185, 95, 0.45);
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.feed-actions button {
  padding: 8px 10px;
  border: 1px solid rgba(217, 79, 43, 0.22);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.66);
}

button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(217, 79, 43, 0.28);
  outline-offset: 3px;
}

.owner-search-form,
.audit-workbench,
.pricing-workbench,
.policy-workbench,
.owner-search-results,
.owner-review-list,
.owner-user-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

.owner-search-form {
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 234, 0.58)),
    radial-gradient(circle at top left, rgba(217, 79, 43, 0.12), transparent 12rem);
}

.audit-workbench {
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(241, 230, 209, 0.52)),
    radial-gradient(circle at top right, rgba(33, 29, 23, 0.1), transparent 13rem);
}

.pricing-workbench {
  padding: 12px;
  border: 1px solid rgba(217, 79, 43, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 234, 217, 0.5)),
    radial-gradient(circle at 85% 10%, rgba(217, 79, 43, 0.16), transparent 12rem);
}

.policy-workbench {
  padding: 14px;
  border: 1px solid rgba(33, 29, 23, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(241, 230, 209, 0.56)),
    radial-gradient(circle at 16% 8%, rgba(33, 29, 23, 0.14), transparent 13rem),
    radial-gradient(circle at 92% 4%, rgba(217, 79, 43, 0.14), transparent 12rem);
}

.audit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.audit-filter-form,
.audit-timeline,
.ad-pricing-form,
.pricing-summary,
.policy-control-form,
.policy-summary {
  display: grid;
  gap: 10px;
}

.owner-search-form label,
.audit-filter-form label,
.ad-pricing-form label,
.policy-control-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.owner-search-form input,
.audit-filter-form input,
.ad-pricing-form input,
.policy-control-form input,
.policy-control-form select {
  width: 100%;
  border: 1px solid rgba(33, 29, 23, 0.16);
  border-radius: 14px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.policy-control-form select {
  appearance: none;
}

.policy-toggle-grid,
.threshold-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.toggle-card {
  min-height: 116px;
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.toggle-card input {
  width: auto;
}

.toggle-card span {
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

.toggle-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

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

.owner-result-card,
.audit-event,
.owner-user-summary {
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 234, 0.54)),
    radial-gradient(circle at bottom right, rgba(244, 185, 95, 0.22), transparent 10rem);
}

.audit-event {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 234, 0.5)),
    radial-gradient(circle at top left, rgba(33, 29, 23, 0.08), transparent 12rem);
}

.audit-event-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.audit-event-top strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.audit-event-top time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.audit-rendered {
  overflow: auto;
  max-height: 220px;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid rgba(33, 29, 23, 0.08);
  border-radius: 16px;
  color: #3d3328;
  font-family: "Cascadia Code", "SFMono-Regular", monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.62);
}

.owner-result-card p,
.owner-user-summary h3 {
  margin: 0;
}

.owner-user-summary h3 {
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.owner-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.owner-card-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.compact-line {
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.58);
}

.compact-line-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-line-action > span {
  flex: 1 1 220px;
}

.inline-select {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 280px;
  border: 1px solid rgba(33, 29, 23, 0.16);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.74);
  outline: none;
}

.compact-line-action button {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(217, 79, 43, 0.22);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.68);
}

.ads-workbench {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

.ad-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 22px;
  background: rgba(255, 247, 234, 0.62);
}

.ad-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-form input,
.ad-form select,
.ad-form textarea {
  width: 100%;
  border: 1px solid rgba(33, 29, 23, 0.16);
  border-radius: 14px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.ad-form textarea {
  resize: vertical;
}

.ad-metrics-panel:empty {
  display: none;
}

.ad-metrics-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 234, 0.58)),
    radial-gradient(circle at top right, rgba(217, 79, 43, 0.14), transparent 12rem);
}

.ad-metrics-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ad-metrics-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.ad-progress {
  overflow: hidden;
  height: 11px;
  border-radius: 999px;
  background: rgba(33, 29, 23, 0.08);
}

.ad-progress span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--honey));
}

.ad-spend-series,
.ad-publication-list {
  display: grid;
  gap: 8px;
}

.ad-spend-row {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.ad-spend-row i {
  display: block;
  height: 8px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 79, 43, 0.86), rgba(244, 185, 95, 0.7));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-action {
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  color: #fffaf2;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #a83a22);
  box-shadow: 0 12px 28px rgba(217, 79, 43, 0.22);
}

.secondary-action {
  align-self: end;
  border: 1px solid rgba(217, 79, 43, 0.24);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.7);
}

.ad-list {
  display: grid;
  gap: 10px;
}

.ad-card,
.empty-state {
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 234, 0.54)),
    radial-gradient(circle at top right, rgba(244, 185, 95, 0.3), transparent 10rem);
}

.ad-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ad-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.status-pill,
.stat-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill {
  padding: 5px 8px;
  color: #fffaf2;
  font-size: 0.66rem;
  font-weight: 900;
  background: #3f3225;
}

.ad-status-pending-review .status-pill,
.ad-status-pending-payment .status-pill {
  color: #3d2400;
  background: rgba(244, 185, 95, 0.72);
}

.ad-status-approved .status-pill {
  color: #17361f;
  background: rgba(88, 164, 104, 0.46);
}

.ad-status-rejected .status-pill,
.ad-status-stopped .status-pill {
  background: rgba(143, 29, 18, 0.84);
}

.ad-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.stat-chip {
  padding: 6px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.7);
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ad-actions button {
  padding: 8px 10px;
  border: 1px solid rgba(217, 79, 43, 0.22);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.68);
}

.empty-state {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.wallet-workbench {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

.wallet-balance {
  padding: 16px;
  border-radius: 22px;
  color: #442600;
  font-size: clamp(1.15rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.82), transparent 9rem),
    linear-gradient(135deg, rgba(244, 185, 95, 0.62), rgba(217, 79, 43, 0.18));
}

.wallet-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.74), rgba(255, 247, 234, 0.56)),
    radial-gradient(circle at 10% 0%, rgba(244, 185, 95, 0.24), transparent 11rem);
}

.wallet-form h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.wallet-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wallet-form input,
.wallet-form select {
  width: 100%;
  border: 1px solid rgba(33, 29, 23, 0.16);
  border-radius: 14px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.service-order-list,
.service-order-items {
  display: grid;
  gap: 10px;
}

.service-order-card {
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 234, 0.48)),
    radial-gradient(circle at bottom left, rgba(217, 79, 43, 0.12), transparent 10rem);
}

.service-order-card h3 {
  margin: 0;
  font-size: 0.96rem;
  letter-spacing: -0.04em;
}

.service-order-pending_payment .status-pill,
.service-order-partially_paid .status-pill,
.service-item-pending_payment .status-pill {
  color: #3d2400;
  background: rgba(244, 185, 95, 0.72);
}

.service-order-cancelled .status-pill,
.service-order-expired .status-pill {
  background: rgba(143, 29, 18, 0.78);
}

.service-order-paid .status-pill {
  color: #17361f;
  background: rgba(88, 164, 104, 0.46);
}

.service-order-items {
  margin-top: 12px;
}

.service-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.service-order-item-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.service-order-item-text strong {
  font-size: 0.84rem;
}

.service-order-item-text span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.service-order-item button {
  padding: 8px 10px;
  border: 1px solid rgba(143, 29, 18, 0.18);
  border-radius: 999px;
  color: #67190f;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.74);
}

.profile-workbench {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

.profile-toolbar,
.profile-form,
.profile-publish-box,
.profile-autopub-box,
.profile-card,
.profile-autopub-card {
  padding: 14px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.74), rgba(255, 247, 234, 0.56)),
    radial-gradient(circle at 0% 0%, rgba(217, 79, 43, 0.11), transparent 12rem);
}

.profile-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.profile-form,
.profile-fields,
.profile-list,
.profile-destination-list,
.profile-autopub-list {
  display: grid;
  gap: 12px;
}

.profile-publish-box,
.profile-autopub-box {
  display: grid;
  gap: 12px;
}

.profile-publish-box h3,
.profile-autopub-box h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.profile-toolbar label,
.profile-form label,
.profile-publish-box label,
.profile-autopub-box label,
.profile-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-toolbar input,
.profile-toolbar select,
.profile-form input,
.profile-form select,
.profile-form textarea,
.profile-autopub-box input,
.profile-autopub-box select {
  width: 100%;
  border: 1px solid rgba(33, 29, 23, 0.16);
  border-radius: 14px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.profile-form textarea {
  resize: vertical;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(255, 255, 255, 0.68);
}

.tag-choice input {
  width: 14px;
  height: 14px;
  padding: 0;
  accent-color: var(--accent);
}

.profile-preview {
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 18px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(244, 185, 95, 0.18)),
    radial-gradient(circle at bottom right, rgba(217, 79, 43, 0.13), transparent 10rem);
}

.profile-card pre {
  white-space: pre-wrap;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
}

.destination-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.62);
}

.destination-choice input {
  accent-color: var(--accent);
}

.destination-choice small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.inline-check {
  align-content: end;
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--ink);
  text-transform: none;
}

.inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.quote-card:empty {
  display: none;
}

.quote-card {
  padding: 10px 12px;
  border-radius: 16px;
  color: #472b03;
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(244, 185, 95, 0.28);
}

.gift-list,
.promocode-list {
  display: grid;
  gap: 10px;
}

.gift-card {
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 20px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.62);
}

.owner-tool {
  border-color: rgba(217, 79, 43, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 234, 217, 0.56)),
    radial-gradient(circle at top right, rgba(217, 79, 43, 0.16), transparent 12rem);
}

.shell[data-role="user"] [data-owner-only] {
  display: none;
}

.rules-panel {
  grid-column: span 2;
}

.restrictions-panel {
  grid-column: span 2;
}

.rules-layout {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

.rules-select {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rules-select select {
  border: 1px solid rgba(33, 29, 23, 0.16);
  border-radius: 14px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  background: rgba(255, 255, 255, 0.82);
}

.rules-scroll {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 247, 234, 0.54)),
    radial-gradient(circle at bottom left, rgba(217, 79, 43, 0.11), transparent 14rem);
  scroll-behavior: smooth;
}

.rule-block {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.rule-block h3,
.rule-block h4,
.rule-block p,
.rule-block ul {
  margin: 0;
}

.rule-block h3 {
  font-size: 1.06rem;
  letter-spacing: -0.04em;
}

.rule-block h4 {
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule-block p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.rule-block ul {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.42;
}

.rules-accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.62);
}

.rules-accept input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.restriction-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

.restriction-card {
  padding: 14px;
  border: 1px solid rgba(33, 29, 23, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 234, 0.54)),
    radial-gradient(circle at top right, rgba(217, 79, 43, 0.14), transparent 11rem);
}

.restriction-card h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.restriction-ban {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 238, 225, 0.58)),
    radial-gradient(circle at top right, rgba(143, 29, 18, 0.18), transparent 11rem);
}

@media (max-width: 860px) {
  .shell {
    place-items: stretch;
  }

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

  [data-screen="feed"],
  [data-screen="policy"],
  [data-screen="profiles"],
  [data-screen="ads"],
  [data-screen="wallet"] {
    grid-column: auto;
  }

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

  .policy-toggle-grid,
  .threshold-grid {
    grid-template-columns: 1fr;
  }

  .rules-panel {
    grid-column: auto;
  }

  .restrictions-panel {
    grid-column: auto;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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