:root {
  --vp-black: #101010;
  --vp-red: #9b111e;
  --vp-deep: #760b14;
  --vp-white: #fff;
  --vp-off: #f4f3f0;
  --vp-gray: #5f6168;
  --vp-muted: #8a8c93;
  --vp-border: #e4e3df;
  --vp-card: #181818;
  --vp-focus: rgba(155, 17, 30, 0.14);
  --shadow: 0 16px 48px rgba(16, 16, 16, 0.08);
  --shadow-sm: 0 6px 20px rgba(16, 16, 16, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --serif: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 56px;
  --input-h: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--vp-black);
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(155, 17, 30, 0.05), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(16, 16, 16, 0.04), transparent 50%),
    var(--vp-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.65; }

.container { width: min(1180px, calc(100% - 40px)); margin: auto; }

/* ——— Public chrome ——— */
.topbar {
  background: #0d0d0d;
  color: #c8c8c8;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.topbar-inner {
  height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--vp-border);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand img { width: 56px; height: auto; object-fit: contain; }
.brand strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 26px 0 24px;
  color: #2a2a2a;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--vp-red); }
.nav-links a.active:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  background: var(--vp-red);
  border-radius: 2px;
}
.nav-links .btn,
.nav-links .nav-cta {
  margin-left: 10px;
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
  line-height: 1.2;
  padding: 12px 20px;
  min-height: 44px;
  text-align: center;
}
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary.active,
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
  color: #fff;
  padding: 12px 20px;
}
.nav-links a.btn-primary.active:after,
.nav-links a.nav-cta.active:after {
  display: none;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 8px;
  color: var(--vp-black);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-primary {
  background: var(--vp-deep);
  color: #fff;
  box-shadow: 0 10px 24px rgba(155, 17, 30, 0.2);
}
.btn-primary:hover {
  background: var(--vp-red);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(155, 17, 30, 0.28);
}
.btn-outline {
  border: 1px solid var(--vp-border);
  background: #fff;
  color: var(--vp-black);
}
.btn-outline:hover {
  border-color: var(--vp-red);
  color: var(--vp-red);
}

/* ——— Hero / sections ——— */
.hero {
  padding: 96px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--vp-red);
  font-size: 11px;
  font-weight: 800;
}
.display {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 8px 0;
  font-weight: 600;
}
.lead {
  font-size: 18px;
  color: var(--vp-gray);
  max-width: 640px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-card {
  background: linear-gradient(160deg, #171717 0%, #101010 55%, #1a1012 100%);
  color: #fff;
  border-radius: 28px;
  padding: 36px;
  min-height: 460px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-card small { color: #b7b7b7; }
.score {
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1;
  font-weight: 600;
}
.score span { font-size: 22px; color: #aaa; }
.progress {
  height: 8px;
  border-radius: 999px;
  background: #2b2b2b;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--vp-red);
  border-radius: inherit;
}
.section { padding: 88px 0; }
.section.alt {
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(155, 17, 30, 0.04), transparent 60%),
    var(--vp-off);
}
.section.dark { background: #101010; color: #fff; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 8px 0;
  font-weight: 600;
}
.section-copy { max-width: 620px; color: var(--vp-gray); }
.dark .section-copy { color: #aaa; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--vp-border);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d8d7d3;
}
.path-card {
  border: 1px solid var(--vp-border);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  transition: 0.28s ease;
}
.path-card:hover {
  background: var(--vp-red);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(155, 17, 30, 0.2);
}
.path-card:hover p,
.path-card:hover small { color: rgba(255, 255, 255, 0.82); }
.path-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 8px 0;
  font-weight: 600;
}
.path-card p { color: var(--vp-gray); transition: 0.28s; }
.number {
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--vp-red);
}

.principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.principle-card {
  background: linear-gradient(145deg, #1b1b1b, #141414);
  border: 1px solid #323232;
  border-top-color: var(--vp-red);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  min-height: 200px;
  transition: 0.28s ease;
}
.principle-card:hover {
  transform: translateY(-4px);
  border-color: var(--vp-red);
}
.principle-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 12px 0 8px;
  color: #fff;
  font-weight: 600;
}
.principle-card p {
  margin: 0;
  color: #bdbdbd;
  font-size: 14px;
}
.icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(155, 17, 30, 0.14);
  display: grid;
  place-items: center;
  color: #d7192d;
}
.stat {
  padding: 26px;
  border-left: 1px solid var(--vp-border);
}
.stat strong {
  font-family: var(--serif);
  display: block;
  font-size: 44px;
  font-weight: 600;
}

.breadcrumb {
  padding: 56px 0 28px;
  color: var(--vp-muted);
  font-size: 13px;
}
.breadcrumb a:hover { color: var(--vp-red); }
.page-hero { padding: 12px 0 64px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 10px 0 16px;
  font-weight: 600;
  max-width: 18ch;
}
.page-hero .lead { margin: 0; }

.footer {
  background: #0d0d0f;
  color: #fff;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.75fr);
  gap: 40px;
}
.footer .brand { margin-bottom: 16px; }
.footer .brand img { width: 72px; }
.footer p,
.footer a { color: #92949b; }
.footer a {
  transition: color 0.2s ease;
}
.footer a:hover { color: #fff; }
.footer h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}
.footer-links { display: grid; gap: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid #26262a;
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: #74767d;
  font-size: 13px;
}

/* ——— Forms ——— */
.form-card {
  background: #fff;
  border: 1px solid var(--vp-border);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-card.register {
  padding: 28px 28px 26px;
}
.form-card.login {
  padding: 28px;
}
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.field-label-row label { margin: 0; }
.field-inline-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--vp-red);
  white-space: nowrap;
}
.field-inline-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.form-card.register .form-grid {
  gap: 12px 14px;
}
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 700;
  color: #242424;
}
.field label span {
  font-weight: 500;
  color: var(--vp-muted);
}
.field small,
.field-hint {
  font-size: 12px;
  color: #6a6c72;
  font-weight: 500;
  line-height: 1.4;
}
.form-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-actions .btn {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
}
.consent-stack {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.consent-stack label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  margin: 0;
}
.consent-stack input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--vp-red);
  flex-shrink: 0;
}
.consent-stack a {
  color: var(--vp-red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.input {
  width: 100%;
  min-height: var(--input-h);
  border: 1px solid #d5d4d0;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: #fafaf8;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input:hover {
  border-color: #c4c3bf;
  background: #fff;
}
.input:focus {
  border-color: var(--vp-red);
  background: #fff;
  box-shadow: 0 0 0 4px var(--vp-focus);
}
textarea.input {
  min-height: 96px;
  resize: vertical;
}
.form-card.register textarea.input {
  min-height: 84px;
}
select.input {
  appearance: none;
  background-color: #fafaf8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f7178' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.field label:has(input[type='checkbox']) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 0;
  color: #333;
}
.field input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--vp-red);
  flex-shrink: 0;
}
.form-section {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--vp-border);
}
.form-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.form-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vp-red);
  margin: 0 0 12px;
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.45;
}
.alert-error {
  background: #fff5f5;
  color: #8a0e17;
  border: 1px solid #f0d0d4;
}
.alert-success {
  background: #f2faf4;
  color: #155c2b;
  border: 1px solid #c8e4d0;
}

/* ——— Auth ——— */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  background: #efece7;
}
.auth-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 520px at -10% 0%, rgba(155, 17, 30, 0.35), transparent 55%),
    radial-gradient(500px 400px at 110% 90%, rgba(155, 17, 30, 0.12), transparent 50%),
    linear-gradient(165deg, #121212 0%, #0c0c0c 55%, #160e10 100%);
  color: #fff;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: authSlideIn 0.7s ease both;
}
.auth-panel .brand { position: relative; z-index: 1; }
.auth-panel .brand strong { color: #fff; }
.auth-panel-body { position: relative; z-index: 1; max-width: 440px; }
.auth-panel h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 12px 0 14px;
  max-width: 11ch;
}
.auth-panel p {
  color: #b8b8b8;
  margin: 0;
  line-height: 1.7;
  font-size: 15px;
}
.auth-panel .eyebrow { color: #e8a0a8; }
.auth-panel-meta {
  position: relative;
  z-index: 1;
  color: #7a7a7a;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}
.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
  background:
    radial-gradient(720px 380px at 85% 8%, rgba(155, 17, 30, 0.07), transparent 55%),
    linear-gradient(180deg, #f5f2ed 0%, #efece7 100%);
}
.auth-mobile-brand {
  display: none;
  margin-bottom: 28px;
}
.auth-box {
  width: min(440px, 100%);
  animation: authFadeUp 0.55s ease both;
}
.auth-box.register-box {
  width: min(540px, 100%);
}
.auth-box .auth-footer-link {
  font-size: 14px;
  color: var(--vp-gray);
  text-align: center;
  margin: 18px 0 0;
}
.auth-box .auth-footer-link a {
  color: var(--vp-red);
  font-weight: 700;
}
.auth-card {
  border: 1px solid rgba(16, 16, 16, 0.06);
  box-shadow: 0 18px 50px rgba(16, 16, 16, 0.08);
}
.auth-card-head {
  margin-bottom: 24px;
}
.auth-card-head .eyebrow { margin-bottom: 6px; }
.auth-card-head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 40px);
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--vp-black);
}
.auth-card-head p {
  margin: 0;
  color: var(--vp-gray);
  font-size: 15px;
  line-height: 1.5;
}
.form-card.login,
.form-card.register {
  padding: 32px 30px 28px;
}

@keyframes authSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ——— Dashboard ——— */
.dashboard-shell {
  min-height: 100vh;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(155, 17, 30, 0.04), transparent 50%),
    var(--vp-off);
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 256px;
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
  color: #fff;
  padding: 22px 18px;
  overflow: auto;
  border-right: 1px solid #222;
}
.sidebar .brand {
  padding: 6px 8px 4px;
}
.sidebar .brand img { width: 42px; height: auto; }
.sidebar .brand strong {
  color: #fff;
  font-size: 14px;
}
.sidebar-nav {
  display: grid;
  gap: 2px;
  margin-top: 24px;
  align-content: start;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #a8aab0;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-nav a:hover {
  background: #222226;
  color: #fff;
}
.sidebar-nav a.active {
  background: rgba(155, 17, 30, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--vp-red);
}
.sidebar-phase {
  margin-top: 36px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #1a1a1a;
  color: #888;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}
.dashboard-main {
  margin-left: 256px;
  min-height: 100vh;
  width: calc(100% - 256px);
  box-sizing: border-box;
}
.dashboard-top {
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.dashboard-top strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.dashboard-top .btn { padding: 8px 12px; font-size: 12px; }
.dashboard-content {
  padding: 20px 28px 36px;
  font-size: 14px;
  line-height: 1.55;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.page-intro { max-width: 720px; margin-bottom: 20px; }
.page-intro h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 30px);
  margin: 4px 0 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-intro p {
  color: var(--vp-gray);
  margin: 0;
  font-size: 14px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric {
  background: #fff;
  border: 1px solid var(--vp-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.metric .big {
  font-family: var(--serif);
  font-size: 24px;
  display: block;
  font-weight: 600;
  margin: 2px 0;
}
.metric small { color: var(--vp-gray); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.metric .progress { margin-top: 10px; background: #eee; }
.panel {
  background: #fff;
  border: 1px solid var(--vp-border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.panel h2 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 600;
}
.step-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--vp-border);
  font-size: 13px;
}
.step-row:last-child { border-bottom: 0; }
.step-row.locked { color: #999; }

.table-wrap { overflow: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th,
.table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--vp-border);
  white-space: nowrap;
}
.table th {
  color: var(--vp-gray);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  background: #f1f1ef;
}
.badge.red {
  background: #fbeaec;
  color: var(--vp-red);
}
.notice {
  background: linear-gradient(160deg, #171717, #121212);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #2a2a2a;
}
.skeleton-module { opacity: 0.75; }
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--vp-gray);
}

.avatar-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #ebeae6;
  display: grid;
  place-items: center;
  color: var(--vp-muted);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.avatar-card .file-input {
  font-size: 13px;
  color: var(--vp-gray);
}
.profile-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 8px;
  max-width: 420px;
}
.profile-progress .progress {
  flex: 1;
  background: #e8e7e3;
  height: 8px;
}
.profile-progress span.label {
  font-size: 13px;
  font-weight: 700;
  color: var(--vp-gray);
  white-space: nowrap;
}

.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;
}

@media (max-width: 1100px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .grid-4,
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    position: absolute;
    display: grid;
    left: 16px;
    right: 16px;
    top: 70px;
    background: #fff;
    border: 1px solid var(--vp-border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
    gap: 2px;
    z-index: 90;
  }
  .nav-links.open a {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .nav-links.open a:hover { background: var(--vp-off); }
  .nav-links.open a.active:after { display: none; }
  .nav-links.open .btn,
  .nav-links.open .nav-cta {
    margin: 10px 0 4px;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 220px; }
  .dashboard-main { margin-left: 220px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar-inner span:last-child { display: none; }
  .brand strong { font-size: 14px; }
  .brand img { width: 52px; height: auto; }
  .hero { padding: 64px 0; }
  .section { padding: 64px 0; }
  .grid-2,
  .grid-3,
  .grid-4,
  .principles,
  .form-grid,
  .footer-grid,
  .dash-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-mobile-brand { display: flex; }
  .auth-main { padding: 28px 18px 48px; align-items: stretch; }
  .auth-box,
  .auth-box.register-box { width: 100%; }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #222;
  }
  .sidebar-nav {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
  }
  .sidebar-phase { margin-top: 18px; }
  .dashboard-main { margin-left: 0; }
  .dashboard-top { padding: 0 16px; }
  .dashboard-content { padding: 20px 16px 40px; }
  .footer-bottom { display: block; gap: 8px; }
  .footer-bottom span { display: block; margin-top: 6px; }
  .hero-card { min-height: 360px; }
  .display,
  .section-title { font-size: 32px; }
  .page-hero h1 { max-width: none; }
  .avatar-card { flex-direction: column; align-items: flex-start; }
}

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

/* ——— Professional app chrome ——— */
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--vp-gray);
  padding: 10px 14px;
}
.btn-ghost:hover {
  background: var(--vp-off);
  color: var(--vp-black);
}
.btn-danger {
  background: var(--vp-red);
  color: #fff;
  border: 1px solid var(--vp-red);
  box-shadow: 0 8px 20px rgba(155, 17, 30, 0.22);
}
.btn-danger:hover { background: var(--vp-deep); }
.btn-danger-outline {
  background: #fff;
  color: var(--vp-red);
  border: 1px solid #e4b4ba;
}
.btn-danger-outline:hover {
  background: #fdf4f5;
  border-color: var(--vp-red);
}
.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  animation: toastIn 0.35s ease;
}
.alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.alert-body { flex: 1; }
.alert-close {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
}
.alert-close:hover { opacity: 1; }

.app-topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--vp-border);
  border-radius: 999px;
  background: #fff;
}
.app-user-chip .avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2a2a, #101010);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.app-user-chip .meta {
  display: grid;
  line-height: 1.2;
  padding-right: 4px;
}
.app-user-chip .meta strong {
  font-size: 13px;
  letter-spacing: 0;
}
.app-user-chip .meta span {
  font-size: 11px;
  color: var(--vp-muted);
  font-weight: 600;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-header .eyebrow { margin-bottom: 6px; }
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 30px);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-header p {
  margin: 6px 0 0;
  color: var(--vp-gray);
  max-width: 520px;
  font-size: 13px;
}
.page-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sidebar {
  display: flex;
  flex-direction: column;
}
.sidebar-nav {
  flex: 1 1 auto;
  align-content: start;
  gap: 2px;
}
.sidebar-nav .nav-section {
  margin: 12px 8px 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
  font-weight: 700;
}
.sidebar-nav .nav-section:first-child {
  margin-top: 0;
}
.sidebar-nav a.active {
  background: rgba(155, 17, 30, 0.22);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--vp-red);
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #242424;
}
.sidebar-phase {
  margin-top: 0;
}

.panel + .panel { margin-top: 0; }
.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
  width: 100%;
}
.admin-split > .panel,
.admin-split > .form-card {
  width: 100%;
  min-width: 0;
}
.dashboard-content .dash-grid,
.dashboard-content .grid,
.dashboard-content .panel,
.dashboard-content .form-card,
.dashboard-content .table-wrap,
.dashboard-content .page-header {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--vp-border);
}
.list-row:last-child { border-bottom: 0; }
.list-row small { color: var(--vp-muted); }

.table thead th {
  background: #fafaf8;
  position: sticky;
  top: 0;
}
.table tbody tr {
  transition: background 0.15s ease;
}
.table tbody tr:hover { background: #fcfcfb; }
.table td { white-space: normal; }
.table .actions {
  text-align: right;
  white-space: nowrap;
}

.form-card h2,
.panel h2 {
  letter-spacing: -0.02em;
}
.form-card .form-hint {
  margin: 0 0 16px;
  color: var(--vp-gray);
  font-size: 14px;
}

.metric {
  position: relative;
  overflow: hidden;
}
.metric::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(155, 17, 30, 0.05);
  pointer-events: none;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #333;
}
.checklist .tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fbeaec;
  color: var(--vp-red);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.inbox-stat {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
}

/* Compact app content (sidebar unchanged) */
.dashboard-content .eyebrow {
  font-size: 11px;
  margin-bottom: 6px;
}
.dashboard-content > h1,
.dashboard-content .page-intro h1,
.dashboard-content .page-header h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.dashboard-content .card {
  padding: 16px;
  border-radius: 14px;
}
.dashboard-content .card h3 {
  font-size: 16px;
  margin: 8px 0;
}
.dashboard-content .card p {
  font-size: 13px;
}
.dashboard-content .form-card {
  padding: 16px 18px;
  border-radius: 14px;
}
.dashboard-content .form-card h2,
.dashboard-content .panel h2 {
  font-size: 17px;
}
.dashboard-content .form-hint {
  font-size: 13px;
  margin-bottom: 12px;
}
.dashboard-content .field label {
  font-size: 12px;
}
.dashboard-content .input {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
}
.dashboard-content textarea.input {
  min-height: 96px;
}
.dashboard-content .btn {
  padding: 10px 16px;
  font-size: 13px;
}
.dashboard-content .btn-sm {
  padding: 7px 11px;
  font-size: 12px;
}
.dashboard-content .table {
  font-size: 13px;
}
.dashboard-content .table th,
.dashboard-content .table td {
  padding: 9px 10px;
}
.dashboard-content .list-row {
  padding: 10px 0;
}
.dashboard-content .admin-split {
  gap: 14px;
}
.dashboard-content .notice h2 {
  font-size: 18px !important;
}
.dashboard-content .notice p {
  font-size: 13px;
}


/* Confirm modal */
.vp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.58);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.vp-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.vp-dialog {
  position: relative;
  width: min(420px, 100%);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(155, 17, 30, 0.06), transparent 55%),
    #fff;
  border-radius: 20px;
  border: 1px solid var(--vp-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  padding: 24px 24px 20px;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s cubic-bezier(.22,1,.36,1);
}
.vp-overlay.is-open .vp-dialog {
  transform: none;
}
.vp-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vp-muted);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.vp-dialog-close:hover {
  background: var(--vp-off);
  color: var(--vp-black);
}
.vp-dialog-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  padding-right: 28px;
}
.vp-dialog-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f4f3f0;
  color: var(--vp-black);
}
.vp-dialog-icon.danger {
  background: #fbeaec;
  color: var(--vp-red);
}
.vp-dialog-icon.logout,
.vp-dialog-icon.info {
  background: #fbeaec;
  color: var(--vp-red);
}
.vp-dialog-eyebrow {
  margin: 0 0 4px !important;
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--vp-red) !important;
}
.vp-dialog h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--vp-black);
}
.vp-dialog > p,
#vp-confirm-message {
  margin: 0;
  color: var(--vp-gray);
  font-size: 14px;
  line-height: 1.6;
}
.vp-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--vp-border);
}
.vp-dialog-actions .btn {
  min-width: 118px;
  border-radius: 12px;
}
.vp-dialog.tone-logout .vp-dialog-actions [data-ok] {
  background: #171717;
  border-color: #171717;
  box-shadow: none;
}
.vp-dialog.tone-logout .vp-dialog-actions [data-ok]:hover {
  background: #2a2a2a;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .admin-split { grid-template-columns: 1fr; }
}

/* Icons */
.vp-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.btn .vp-icon {
  margin-inline: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sidebar-nav a .vp-icon {
  opacity: 0.78;
}
.sidebar-nav a:hover .vp-icon,
.sidebar-nav a.active .vp-icon {
  opacity: 1;
  color: #fff;
}
.sidebar-nav a.active .vp-icon {
  color: #f0a0a8;
}
.sidebar-back {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  color: #a8aab0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.sidebar-back:hover {
  background: #222226;
  color: #fff !important;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fbeaec;
  color: var(--vp-red);
  margin-bottom: 14px;
}
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fbeaec;
  color: var(--vp-red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f4f3f0;
  color: var(--vp-gray);
  display: grid;
  place-items: center;
}
.metric .metric-icon {
  position: relative;
  z-index: 1;
}
.step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #bbb;
  flex-shrink: 0;
}
.step-icon.done {
  background: #fbeaec;
  color: var(--vp-red);
}
.step-arrow { color: var(--vp-red); display: grid; }
.step-lock { color: #aaa; display: grid; }
.checklist .tick {
  display: grid;
  place-items: center;
}
.icon-box .vp-icon {
  display: block;
}

/* Profile page */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
}
.profile-summary {
  position: sticky;
  top: 76px;
}
.profile-summary-avatar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.profile-summary-avatar strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.profile-summary-avatar p {
  margin: 0;
  font-size: 12px;
  color: var(--vp-muted);
  word-break: break-all;
}
.avatar-preview.lg {
  width: 72px;
  height: 72px;
  font-size: 18px;
}
.profile-completion-block {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vp-border);
}
.profile-completion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.profile-completion-row strong { color: var(--vp-red); }
.profile-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--vp-muted);
}
.profile-meta-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-meta-list small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vp-muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.profile-meta-list strong {
  font-size: 13px;
  font-weight: 600;
}
.profile-upload .btn {
  width: 100%;
  cursor: pointer;
}
.profile-upload p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--vp-muted);
  text-align: center;
}
.profile-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.profile-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-section-head h2 {
  margin: 0 0 2px;
  font-size: 17px;
}
.profile-section-head p {
  margin: 0;
  font-size: 13px;
  color: var(--vp-gray);
}
.feature-icon.sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 0;
}
.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--vp-border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  bottom: 12px;
}
.profile-actions p {
  margin: 0;
  font-size: 13px;
  color: var(--vp-muted);
}

@media (max-width: 980px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-summary {
    position: static;
  }
}
@media (max-width: 760px) {
  .dashboard-main {
    width: 100%;
  }
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rating-option {
  display: inline-flex;
  cursor: pointer;
}
.rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rating-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--vp-border);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: border-color .15s, background .15s, color .15s;
}
.rating-option input:checked + span {
  background: var(--vp-red);
  border-color: var(--vp-red);
  color: #fff;
}
.rating-option:hover span {
  border-color: #101010;
}

/* Tracker lists (goals, habits, books, …) */
.tracker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tracker-toolbar h2 {
  margin: 0;
  font-size: 16px;
}
.tracker-count {
  font-size: 13px;
  color: var(--vp-muted);
  font-weight: 600;
}
.tracker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--vp-muted);
  font-weight: 500;
}
.tracker-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tracker-title {
  font-weight: 650;
  color: #101010;
}
.tracker-sub {
  font-size: 13px;
  color: var(--vp-gray);
  margin-top: 2px;
}
.icon-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.icon-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: middle;
}
.table .actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  border: 1px solid var(--vp-border);
  background: #fff;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  padding: 0;
}
.icon-btn:hover {
  border-color: #101010;
  color: #101010;
  background: #fafafa;
}
.icon-btn.is-active,
.icon-btn.tone-success {
  background: rgba(16, 120, 72, 0.08);
  border-color: rgba(16, 120, 72, 0.35);
  color: #0f6b40;
}
.icon-btn.tone-danger:hover {
  border-color: var(--vp-red);
  color: var(--vp-red);
  background: rgba(155, 17, 30, 0.05);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  background: #f3f3f2;
  color: #444;
  white-space: nowrap;
}
.status-pill.is-active,
.status-pill.is-in_progress,
.status-pill.is-reading,
.status-pill.is-building,
.status-pill.is-practising {
  background: rgba(155, 17, 30, 0.08);
  color: var(--vp-red);
}
.status-pill.is-completed,
.status-pill.is-launched,
.status-pill.is-mastered,
.status-pill.is-done {
  background: rgba(16, 120, 72, 0.1);
  color: #0f6b40;
}
.status-pill.is-paused,
.status-pill.is-archived,
.status-pill.is-abandoned,
.status-pill.is-want_to_read,
.status-pill.is-not_started,
.status-pill.is-idea {
  background: #eee;
  color: #666;
}
.mini-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}
.mini-progress .progress {
  flex: 1;
  height: 6px;
  background: #ececeb;
}
.mini-progress strong {
  font-size: 12px;
  font-weight: 700;
  min-width: 34px;
  text-align: right;
}
.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 800;
  font-size: 18px;
  color: var(--vp-red);
}
.score-chip small {
  font-size: 12px;
  font-weight: 600;
  color: var(--vp-muted);
}
.form-page {
  max-width: 720px;
}
.form-page .panel {
  padding: 22px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid-2 .full {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.empty-state {
  text-align: center;
  padding: 42px 20px;
  color: var(--vp-muted);
}
.empty-state strong {
  display: block;
  color: #101010;
  font-size: 16px;
  margin-bottom: 6px;
}
.audit-score-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.audit-score-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--vp-red) calc(var(--score) * 1%), #ececeb 0);
  font-weight: 800;
  font-size: 22px;
}
.audit-score-ring span {
  font-size: 12px;
  font-weight: 600;
  color: var(--vp-muted);
}
.tracker-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--vp-border);
  margin-top: 8px;
}
.tracker-pagination a,
.tracker-pagination span {
  font-size: 13px;
  font-weight: 650;
}
.tracker-pagination a {
  color: #101010;
  text-decoration: none;
  border: 1px solid var(--vp-border);
  border-radius: 8px;
  padding: 6px 12px;
}
.tracker-pagination a:hover { border-color: #101010; }
.tracker-pagination .is-disabled {
  color: #bbb;
  border: 1px solid transparent;
  padding: 6px 12px;
}
.tracker-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--vp-border);
}
.accountability-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}
.accountability-card h2 { margin: 0 0 4px; font-size: 17px; }
.accountability-invite {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.accountability-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--vp-border);
  border-radius: 14px;
  background: #fafaf8;
}
.accountability-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.accountability-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #101010;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}
.accountability-note {
  margin: 14px 0 0;
  color: var(--vp-muted);
  font-size: 13px;
}
.accountability-mentee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--vp-border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.accountability-mentee:hover {
  border-color: #cfcfc8;
  background: #fcfcfb;
}
.accountability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.accountability-chips span {
  font-size: 11px;
  font-weight: 650;
  color: var(--vp-muted);
  background: #f1f0ec;
  border-radius: 999px;
  padding: 4px 8px;
}
.accountability-empty {
  margin-top: 8px;
  padding: 18px;
  border: 1px dashed var(--vp-border);
  border-radius: 14px;
  color: var(--vp-gray);
}
.accountability-empty strong {
  display: block;
  color: #101010;
  margin-bottom: 4px;
}
.accountability-empty p { margin: 0; font-size: 14px; }
@media (max-width: 980px) {
  .accountability-layout { grid-template-columns: 1fr; }
}
.progress-check {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--vp-muted);
}
.progress-check.is-done { color: #1f7a46; }
.today-log { margin-bottom: 18px; }
.today-log-list { display: grid; gap: 10px; }
.today-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vp-border);
}
.today-log-row:last-child { border-bottom: 0; padding-bottom: 0; }
.audit-cat-group {
  margin: 18px 0 8px;
  padding: 12px 14px 4px;
  border: 1px solid var(--vp-border);
  border-radius: 14px;
  background: #fafaf8;
}
.audit-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--vp-border);
}
.audit-cat-head span { color: var(--vp-muted); font-size: 13px; }
.audit-q-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  margin: 8px 0;
  padding: 12px !important;
}
.attachment-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.rich-content img,
.rich-content video,
.rich-content iframe {
  max-width: 100%;
  height: auto;
}
.rich-content iframe { width: 100%; min-height: 320px; }
@media (max-width: 760px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .tracker-hide-sm { display: none; }
}

/* —— Value Audit v2 wizard —— */
.audit-wizard { display: grid; gap: 16px; max-width: 820px; }
.audit-progress-header { position: sticky; top: 0; z-index: 5; background: var(--vp-bg, #f7f6f4); padding: 10px 0 12px; }
.audit-progress-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--vp-muted); margin-bottom: 8px; }
.audit-progress-meta strong { color: #101010; letter-spacing: 0.08em; }
.audit-progress-bar { height: 8px; background: #e8e6e3; border-radius: 999px; overflow: hidden; }
.audit-progress-bar > span { display: block; height: 100%; background: var(--vp-red); border-radius: 999px; transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  .audit-progress-bar > span { transition: none; }
}
.audit-save-status { text-transform: none; letter-spacing: 0; font-weight: 650; }
.audit-save-status.is-saving { color: var(--vp-muted); }
.audit-save-status.is-saved { color: #1a7a3c; }
.audit-save-status.is-error { color: var(--vp-red); }
.audit-wizard-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 4px 0 24px; }
.audit-wizard-nav .btn { min-height: 44px; min-width: 44px; }
.audit-welcome-list { margin: 16px 0 24px; padding-left: 18px; display: grid; gap: 10px; color: var(--vp-muted); }
.audit-welcome-list strong { color: #101010; }
.audit-block h2 { margin: 0 0 6px; font-size: 16px; }
.audit-inventory-list { display: grid; gap: 14px; margin: 14px 0; }
.audit-item-card { border: 1px solid var(--vp-border); border-radius: 12px; padding: 14px; background: #fff; }
.audit-item-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.audit-item-label { margin: 0; font-size: 16px; }
.audit-dim-stack { display: grid; gap: 14px; }
.audit-dim-label-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.audit-rating-row { display: flex; flex-wrap: wrap; gap: 8px; }
.audit-rating-row .rating-option span { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.audit-add-item { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 640px) {
  .audit-add-item { grid-template-columns: 1fr 1fr auto; align-items: center; }
}
.audit-rubric { font-size: 13px; color: var(--vp-muted); }
.audit-rubric summary { cursor: pointer; color: #101010; font-weight: 650; list-style: none; }
.audit-rubric summary::-webkit-details-marker { display: none; }
.audit-rubric ul { margin: 8px 0 0; padding-left: 16px; }
.required-mark { color: var(--vp-red); font-weight: 700; }
.optional-mark { color: var(--vp-muted); font-size: 12px; font-weight: 500; }
.audit-diag-list { display: grid; gap: 16px; margin-top: 12px; }
.audit-diag-card { padding-bottom: 8px; border-bottom: 1px solid var(--vp-border); }
.audit-review-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.audit-review-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--vp-border); border-radius: 10px; background: #fff; }
.audit-review-row.is-complete { border-color: #b7d7c2; background: #f4faf6; }
.audit-review-row.is-incomplete { border-color: #e8c4a8; background: #fffaf5; }
.audit-issue-list { margin: 6px 0 0; padding-left: 16px; color: var(--vp-muted); font-size: 13px; }
.audit-submit-panel { text-align: left; }
.audit-submit-btn { min-height: 48px; width: 100%; max-width: 360px; margin-top: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.audit-action-hooks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.alert-success { background: #e8f6ec; color: #14532d; border: 1px solid #b7d7c2; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.admin-audit-accordion details { border: 1px solid var(--vp-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.admin-audit-accordion summary { cursor: pointer; font-weight: 700; }
.admin-dim-table { width: 100%; font-size: 13px; margin-top: 10px; }
.admin-dim-table th, .admin-dim-table td { padding: 6px 4px; text-align: left; vertical-align: top; }

.audit-item-title-wrap { flex: 1; min-width: 0; }
.audit-item-label-input {
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  min-height: 44px;
}
