/* taste-web-design v4 · macrostructure: custom-bespoke · mood: qortal-ember · pre-emit: P5 H5 E5 S5 R4 V4 */
/* Dials: V5 M2 D6 · Fonts: Plus Jakarta Sans + DM Sans · Palette: #070806, #17140F, #F1E9DF, #F4511E */

:root {
  --bg: #070806;
  --bg-rgb: 7 8 6;
  --panel: #11100C;
  --panel-rgb: 17 16 12;
  --surface: #191610;
  --surface-rgb: 25 22 16;
  --surface-2: #211C15;
  --surface-3: #2A231A;
  --text: #F1E9DF;
  --text-rgb: 241 233 223;
  --muted: #B9AA9D;
  --muted-2: #8C8176;
  --line: rgb(var(--text-rgb) / 0.14);
  --line-strong: rgb(var(--text-rgb) / 0.22);
  --accent: #F4511E;
  --accent-rgb: 244 81 30;
  --accent-deep: #BC3515;
  --accent-bright: #FF6A2A;
  --accent-mid: #E64618;
  --bg-top: #0B0B08;
  --bg-bottom: #060705;
  --shadow-hue-rgb: 5 3 1;
  --amber: #E8A03A;
  --success: #79B65B;
  --success-rgb: 121 182 91;
  --danger: #D95B48;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --shadow-sm: 0 10px 28px rgb(var(--shadow-hue-rgb) / 0.26), inset 0 1px 0 rgb(var(--text-rgb) / 0.035);
  --shadow-md: 0 18px 48px rgb(var(--shadow-hue-rgb) / 0.34), inset 0 1px 0 rgb(var(--text-rgb) / 0.045);
  --shadow-lg: 0 30px 90px rgb(var(--shadow-hue-rgb) / 0.48), inset 0 1px 0 rgb(var(--text-rgb) / 0.055);
  --glow: 0 12px 36px rgb(var(--accent-rgb) / 0.22);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --sidebar-width: 260px;
  --step--2: clamp(0.72rem, 0.69rem + 0.14vw, 0.8rem);
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.94rem);
  --step-0: clamp(0.98rem, 0.92rem + 0.28vw, 1.12rem);
  --step-1: clamp(1.12rem, 1rem + 0.62vw, 1.45rem);
  --step-2: clamp(1.42rem, 1.16rem + 1.25vw, 2.1rem);
  --step-3: clamp(2rem, 1.48rem + 2.6vw, 3.7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  background:
    radial-gradient(circle at 76% 8%, rgb(var(--accent-rgb) / 0.09), transparent 26rem),
    radial-gradient(circle at 30% 96%, rgb(133 83 46 / 0.13), transparent 30rem),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 46%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.17;
  background-image:
    radial-gradient(circle at 20% 20%, rgb(var(--text-rgb) / 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 0%, rgb(var(--accent-rgb) / 0.13), transparent 25rem);
  background-size: 18px 18px, auto;
  mix-blend-mode: screen;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { min-height: 44px; }
h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.018em; }
p { margin: 0; max-width: 65ch; color: var(--muted); }
strong { font-weight: 700; color: var(--text); }
svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[disabled] { opacity: 0.4; cursor: not-allowed; }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(var(--panel-rgb) / 0.72), rgb(var(--bg-rgb) / 0.82));
  box-shadow: inset -1px 0 0 rgb(var(--text-rgb) / 0.035);
}
.menu-mark { color: var(--muted); width: 44px; height: 44px; display: grid; place-items: center; }
.nav-items { display: grid; gap: var(--space-3); }
.nav-item {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.nav-item:hover { background: rgb(var(--text-rgb) / 0.08); color: var(--text); }
.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / 0.88), rgb(var(--accent-rgb) / 0.33));
  border: 1px solid rgb(var(--accent-rgb) / 0.55);
  box-shadow: var(--glow);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 4px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
}
.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.profile-row { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-3); align-items: center; }
.profile-row strong { display: block; font-size: var(--step--1); }
.profile-row span { display: block; color: var(--muted); font-size: var(--step--2); }
.avatar { border-radius: 999px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-2); flex: 0 0 auto; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 48px; height: 48px; }
.avatar-md { width: clamp(48px, 7vw, 68px); height: clamp(48px, 7vw, 68px); }
.status-connected, .status-dev, .external-link { color: var(--muted); font-size: var(--step--2); font-weight: 600; }
.status-connected::before, .status-dev::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--space-2);
  border-radius: 99px;
  background: var(--success);
}
.status-dev::before { background: var(--amber); }
.external-link { color: var(--accent); }

.main-content {
  min-width: 0;
  padding: var(--space-3) var(--space-3) var(--space-8);
}
.page-header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.page-content {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 3.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 0%, rgb(var(--accent-rgb) / 0.045), transparent 20rem),
    linear-gradient(135deg, rgb(var(--surface-rgb) / 0.72), rgb(var(--panel-rgb) / 0.86));
  box-shadow: var(--shadow-lg);
}
.page-content[aria-busy="true"] { opacity: 0.7; }

.qortal-preview-banner[hidden] { display: none; }
.qortal-preview-banner {
  width: 100%;
  padding: var(--space-3) var(--space-3) 0;
}
.qortal-preview-banner__inner {
  position: relative;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  border: 1px solid rgb(var(--accent-rgb) / 0.28);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: rgb(var(--accent-rgb) / 0.12);
  box-shadow: var(--shadow-sm);
}
.qortal-preview-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-right: var(--space-6);
}
.qortal-preview-banner__content p { color: var(--text); }
.qortal-preview-banner__actions {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  flex: 0 0 auto;
}
.qortal-preview-banner__install {
  font-size: var(--step--2);
  color: var(--muted) !important;
  text-align: center;
}
.qortal-preview-banner__install a { color: var(--accent-bright); font-weight: 700; }
.qortal-preview-banner__dismiss {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.qortal-preview-banner__dismiss:hover {
  color: var(--text);
  background: rgb(var(--text-rgb) / 0.08);
}

.app-title { margin-bottom: var(--space-6); }
.topbar, .hero-actions, .section-title, .split-row, .row-between { display: flex; align-items: center; gap: var(--space-4); }
.topbar, .row-between { justify-content: space-between; }
.topbar { margin-bottom: var(--space-6); }
.kicker { color: var(--muted); font-size: var(--step-1); font-weight: 500; }
.icon-button {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(var(--surface-rgb) / 0.72);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.icon-button:hover { background: var(--surface-3); border-color: var(--line-strong); }
.section-title { margin: var(--space-8) 0 var(--space-5); }
.section-title h2, .section-title h3 { font-size: var(--step-1); }
.section-title svg, .form-section > svg { color: var(--accent); width: 34px; height: 34px; }
.section-title .aside { margin-left: auto; color: var(--accent); font-weight: 600; font-size: var(--step--1); display: inline-flex; align-items: center; gap: var(--space-2); }
.divider { height: 1px; background: var(--line); margin: var(--space-6) 0; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgb(var(--surface-rgb) / 0.8), rgb(var(--panel-rgb) / 0.78));
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}
.card-grid, .commitment-grid, .stats-grid { display: grid; gap: var(--space-4); }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.commitment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.caption { font-size: var(--step--2); color: var(--muted-2); }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(180deg, var(--accent), var(--accent-mid)); color: var(--text); box-shadow: var(--glow); }
.button-primary:hover { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); }
.button-secondary { background: rgb(var(--surface-rgb) / 0.7); border-color: var(--line); color: var(--text); }
.button-secondary:hover { background: var(--surface-3); border-color: var(--line-strong); }
.button-ghost { color: var(--accent); background: transparent; border-color: rgb(var(--accent-rgb) / 0.55); }
.button-ghost:hover { background: rgb(var(--accent-rgb) / 0.1); }

.field { display: grid; gap: var(--space-2); }
.field label, fieldset.field legend { color: var(--text); font-weight: 700; font-size: var(--step--1); }
fieldset { margin: 0; padding: 0; border: 0; }
input, textarea, select {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgb(var(--bg-rgb) / 0.38);
  outline: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}
input:hover, textarea:hover, select:hover { background: rgb(var(--text-rgb) / 0.075); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { min-height: 116px; resize: vertical; }
::placeholder { color: var(--muted-2); }

.badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgb(var(--surface-rgb) / 0.72);
  color: var(--text);
}
.badge-accent { color: var(--accent); border-color: rgb(var(--accent-rgb) / 0.28); background: rgb(var(--accent-rgb) / 0.08); }
.badge-success { color: var(--text); border-color: rgb(var(--success-rgb) / 0.24); background: rgb(var(--success-rgb) / 0.18); }
.badge-muted { color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 99px; display: inline-block; background: var(--accent); }
.dot-success { background: var(--success); }
.dot-amber { background: var(--amber); }

.member-strip { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); flex-wrap: wrap; margin-top: var(--space-5); }
.member-stack { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.plus-bubble { width: 64px; height: 64px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; font-size: var(--step-1); color: var(--text); }
.commit-card { min-height: 220px; display: flex; flex-direction: column; gap: var(--space-3); }
.commit-card .icon-tile, .stat-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgb(var(--accent-rgb) / 0.12), rgb(var(--text-rgb) / 0.035));
}
.metric { margin-top: auto; color: var(--accent); font-family: var(--font-display); font-size: clamp(1.7rem, 3.3vw, 2.2rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.progress-bar { height: 8px; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: rgb(var(--bg-rgb) / 0.6); }
.progress-bar-fill { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); transition: width 300ms ease; }
.ring-progress { --value: 60; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 999px; background: conic-gradient(var(--accent) calc(var(--value) * 1%), rgb(var(--text-rgb) / 0.12) 0); position: relative; font-weight: 700; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.ring-progress::before { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: var(--surface); }
.ring-progress span { position: relative; }

.list-card { padding: 0; overflow: hidden; }
.list-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: var(--space-4); align-items: center; padding: var(--space-5); border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.status-orb { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 999px; color: var(--success); background: rgb(var(--success-rgb) / 0.1); border: 1px solid rgb(var(--success-rgb) / 0.16); }
.status-orb.pending { color: var(--amber); background: rgb(232 160 58 / 0.12); border-color: rgb(232 160 58 / 0.22); }
.date-chip { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: var(--step--1); white-space: nowrap; }
.stat-item { display: grid; grid-template-columns: 68px 1fr; gap: var(--space-4); align-items: center; padding: var(--space-4); border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-number { color: var(--text); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

.form-stack { display: grid; gap: var(--space-7, 28px); }
.form-section { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.form-section::before { content: ""; grid-column: 1; grid-row: 2; justify-self: center; width: 1px; min-height: 72px; background: var(--line); }
.form-section-body { min-width: 0; display: grid; gap: var(--space-3); }
.form-heading { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.form-heading h3 { font-size: var(--step-1); }
.text-counter { color: var(--muted); font-variant-numeric: tabular-nums; }
.raw-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.raw-step { padding: var(--space-5); border-right: 1px solid var(--line); min-height: 112px; }
.raw-step:last-child { border-right: 0; }
.raw-step strong { display: block; margin-bottom: var(--space-2); }
.raw-step .num { color: var(--accent); margin-right: var(--space-2); font-variant-numeric: tabular-nums; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.person-chip { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border: 1px solid var(--line); border-radius: 999px; background: rgb(var(--text-rgb) / 0.04); color: var(--text); }
.person-chip .remove { color: var(--muted); font-size: var(--step-1); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }

.image-upload-zone {
  position: relative;
  min-height: 164px;
  display: grid;
  place-items: center;
  gap: var(--space-3);
  text-align: center;
  cursor: pointer;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgb(var(--bg-rgb) / 0.28);
  padding: var(--space-6);
  transition: border-color 180ms ease, background-color 180ms ease;
}
.image-upload-zone:hover, .image-upload-zone.drag-over { border-color: var(--accent); background: rgb(var(--accent-rgb) / 0.08); }
.image-upload-zone.has-image { border-style: solid; padding: var(--space-3); }
.upload-glyph { color: var(--accent); width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-sm); background: rgb(var(--accent-rgb) / 0.1); }
.image-preview { max-width: 100%; max-height: 300px; border-radius: var(--radius-sm); object-fit: contain; }
.image-preview-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; }
.image-remove-btn { position: absolute; top: var(--space-2); right: var(--space-2); width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; }

.empty-state, .error-state {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-8);
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: rgb(var(--bg-rgb) / 0.22);
}
.error-state { border-style: solid; border-color: rgb(var(--accent-rgb) / 0.55); color: var(--text); }

.wizard-steps { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-6) 0; }
.wizard-step { min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-2); color: var(--muted); font-weight: 700; font-size: var(--step--1); }
.wizard-step.active { color: var(--accent); }
.wizard-dot, .wizard-step-num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.wizard-step.active .wizard-dot, .wizard-step.active .wizard-step-num { border-color: var(--accent); background: rgb(var(--accent-rgb) / 0.1); }
.wizard-arrow, .wizard-connector { color: var(--muted-2); }
.check-options, .checkbox-group, .radio-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.check-chip, .checkbox-item, .radio-item { min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; accent-color: var(--accent); }
.summary-list { display: grid; gap: var(--space-3); }
.summary-item { display: grid; gap: var(--space-1); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.summary-label { color: var(--muted-2); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.summary-value { color: var(--text); }

.circle-card { cursor: pointer; transition: transform 180ms ease, border-color 180ms ease; }
.circle-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.circle-card-header { display: flex; gap: var(--space-4); align-items: flex-start; }
.circle-card-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--space-4); background: rgb(var(--bg-rgb) / 0.74); backdrop-filter: blur(12px); }
.modal-card { width: min(100%, 540px); max-height: 90dvh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); padding: var(--space-6); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: calc(78px + env(safe-area-inset-bottom));
    padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: rgb(var(--bg-rgb) / 0.92);
    backdrop-filter: blur(18px);
  }
  .menu-mark, .sidebar-footer, .nav-secondary { display: none; }
  .nav-items { grid-template-columns: repeat(5, 1fr); gap: var(--space-1); }
  .nav-item { min-height: 64px; justify-content: center; flex-direction: column; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-xs); font-size: var(--step--2); }
  .nav-item svg { width: 26px; height: 26px; }
  .nav-item.active { background: transparent; border-color: transparent; box-shadow: none; color: var(--accent); }
  .nav-item.active::before { display: none; }
  .main-content { padding: 0 0 calc(92px + env(safe-area-inset-bottom)); }
  .qortal-preview-banner { padding: var(--space-3) var(--space-3) 0; }
  .qortal-preview-banner__content { align-items: stretch; flex-direction: column; padding-right: var(--space-5); }
  .qortal-preview-banner__actions { justify-items: stretch; }
  .qortal-preview-banner__install { text-align: left; }
  .page-content { width: 100%; min-height: calc(100dvh - 92px); margin: 0; border: 0; border-radius: 0; padding: var(--space-8) var(--space-4); box-shadow: none; background: transparent; }
  .topbar { align-items: flex-start; }
  .commitment-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-2); }
  .commit-card { min-width: 190px; scroll-snap-align: start; }
  .raw-steps { grid-template-columns: 1fr; }
  .raw-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .raw-step:last-child { border-bottom: 0; }
  .form-grid-2, .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: 0; }
  .list-row { grid-template-columns: 44px minmax(0, 1fr); }
  .list-row .date-chip, .list-row .badge { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; }
  .hero-actions { gap: var(--space-2); }
  .icon-button { width: 48px; height: 48px; }
  .section-title { align-items: flex-start; }
  .form-section { grid-template-columns: 34px minmax(0, 1fr); gap: var(--space-3); }
  .form-heading { gap: var(--space-2); }
  .person-chip { width: 100%; }
  .button { width: 100%; min-width: 0; white-space: normal; }
  .row-between, .split-row { align-items: stretch; flex-direction: column; }
}

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