@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,700;9..144,900&family=Inter+Tight:wght@400;500;600;700;800&display=swap');
.notif-bell[data-v-135a9a98] { position: relative;
}
.bell-btn[data-v-135a9a98] {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: transparent; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.bell-btn[data-v-135a9a98]:hover { background: var(--c-paper-alt);
}
.badge[data-v-135a9a98] {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; ;
  background: var(--c-danger); color: var(--ink);
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 1.5px solid var(--paper);
}
.notif-dropdown[data-v-135a9a98] {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; background: var(--c-white);
  border: 1px solid var(--rule); ;
  
  overflow: hidden; z-index: 100;
}
.notif-header[data-v-135a9a98] {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom:1px solid var(--rule-soft);
  font-size: 13px; font-weight: 700;
}
.mark-all-btn[data-v-135a9a98] {
  font-size: 11px; color: var(--ink-faint); background: none;
  border: none; cursor: pointer; font-weight: 500;
}
.mark-all-btn[data-v-135a9a98]:hover { color: var(--ink);
}
.notif-loading[data-v-135a9a98] { padding: 24px; text-align: center;
}
.notif-empty[data-v-135a9a98]   { padding: 24px; text-align: center; font-size: 13px; color: var(--ink-faint);
}
.notif-list[data-v-135a9a98] { max-height: 340px; overflow-y: auto;
}
.notif-item[data-v-135a9a98] {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; text-decoration: none; color: var(--ink);
  border-bottom:1px solid var(--rule-soft);
  transition: background 0.12s;
}
.notif-item[data-v-135a9a98]:hover         { background: var(--paper);
}
.notif-item--unread[data-v-135a9a98]       { background: rgba(124,29,29,0.06);
}
.notif-item[data-v-135a9a98]:last-child    { border-bottom: none;
}
.notif-dot[data-v-135a9a98] {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-dark); flex-shrink: 0; margin-top: 4px;
}
.notif-body[data-v-135a9a98] { flex: 1; min-width: 0;
}
.notif-body strong[data-v-135a9a98] { display: block; font-size: 13px; margin-bottom: 2px;
}
.notif-body p[data-v-135a9a98]      { font-size: 12px; color: var(--ink-soft); margin: 0 0 4px; line-height: 1.4;
}
.notif-time[data-v-135a9a98]        { font-size: 11px; color: var(--ink-faint);
}
.notif-drop-enter-active[data-v-135a9a98],
.notif-drop-leave-active[data-v-135a9a98] { transition: opacity 0.15s, transform 0.15s;
}
.notif-drop-enter-from[data-v-135a9a98],
.notif-drop-leave-to[data-v-135a9a98]     { opacity: 0; transform: translateY(-6px);
}

.app-nav[data-v-c791339c] {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}
.nav-brand[data-v-c791339c] {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  line-height: 1;
}
.wordmark[data-v-c791339c] {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -.035em;
  color: var(--ink);
}
.stamp[data-v-c791339c] {
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: .18rem .42rem;
  line-height: 1;
  align-self: center;
}
.nav-brand:hover .wordmark[data-v-c791339c] { color: var(--accent);
}
.nav-brand:hover .stamp[data-v-c791339c] { background: var(--accent); color: var(--paper);
}

.tab-bar[data-v-73ce3388] {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px calc(12px + var(--safe-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
  height: calc(var(--tab-height) + var(--safe-bottom));
  transition: transform .3s ease;
  will-change: transform;
}
.tab-bar.hidden[data-v-73ce3388] { transform: translateY(100%);
}
.tab-item[data-v-73ce3388] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  flex: 1;
  padding: 6px 4px 0;
  min-height: 44px;
  justify-content: center;
}
.ti[data-v-73ce3388] {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  transition: color .15s;
}
.tl[data-v-73ce3388] {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 500;
  color: var(--ink-faint);
  transition: color .15s;
}
.tab-item.active .ti[data-v-73ce3388] { color: var(--accent);
}
.tab-item.active .tl[data-v-73ce3388] { color: var(--accent); font-weight: 700;
}

.app-shell[data-v-96537620] {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
}
.app-main[data-v-96537620] {
  flex: 1;
  padding-bottom: calc(72px + var(--safe-bottom));
}
.skip-link[data-v-96537620] {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #C8F04A;
  color: #0F1923;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.1s;
}
.skip-link[data-v-96537620]:focus { top: 0;
}


/* ── Design tokens ────────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --paper:       #f5f1ea;
  --paper-dark:  #ebe4d6;
  --card:        #fbf8f1;

  /* Type */
  --ink:         #16110d;
  --ink-soft:    #5a4f44;
  --ink-faint:   #9a8d7e;

  /* Rules */
  --rule:        #d4c8b3;
  --rule-soft:   #e3dac6;

  /* Accent — oxblood */
  --accent:      #7c1d1d;
  --accent-dark: #5a1414;
  --accent-soft: #f4e4e2;

  /* Semantic */
  --warn:        #b45309;
  --success:     #166534;
  --success-bg:  #f0fdf4;
  --danger:      var(--accent);
  --danger-bg:   var(--accent-soft);

  /* Fonts */
  --serif:       'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --sans:        'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* App chrome */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-height:  72px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ── Base ──────────────────────────────────────────────────────────────────── */

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
}

/* ── Focus ─────────────────────────────────────────────────────────────────── */

*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

*:focus:not(:focus-visible) { outline: none; }

/* ── Typography ────────────────────────────────────────────────────────────── */

h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--ink);
}

h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--ink);
}

h3 { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); }

h4 { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--ink); }

p  { margin-bottom: 1em; }

p:last-child { margin-bottom: 0; }

/* Kicker — replaces ALL CAPS section labels */

.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .5rem;
}

/* ── App layout ────────────────────────────────────────────────────────────── */

.app-main > * {
  padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px) + 24px);
}

[class*="-view"] {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
}

/* Page transitions */

.page-enter-active,
.page-leave-active { transition: opacity 0.18s ease, transform 0.18s ease; }

.page-enter-from   { opacity: 0; transform: translateY(6px); }

.page-leave-to     { opacity: 0; transform: translateY(-4px); }

/* ── Card — editorial surface on paper ─────────────────────────────────────── */

/* Hard constraint: no border-radius, no drop-shadows, no glassmorphism */

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
}

.card-accent {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

/* Hard constraint: no border-radius */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  border: 0;
  cursor: pointer;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  padding: .9rem 1.5rem;
}

.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary  { background: var(--ink); color: var(--paper); }

.btn-primary:not(:disabled):hover { background: var(--accent); color: var(--paper); transform: translateY(-1px); }

.btn-ghost    { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

.btn-ghost:not(:disabled):hover { background: var(--ink); color: var(--paper); }

.btn-accent   { background: var(--accent); color: var(--paper); }

.btn-accent:not(:disabled):hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-danger   { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }

.btn-danger:not(:disabled):hover { background: var(--accent); color: var(--paper); }

.btn-full     { width: 100%; }

/* ── Form inputs ───────────────────────────────────────────────────────────── */

/* Hard constraint: no border-radius */

.input, .input-solid {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1.5px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  transition: border-color .15s;
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.input:focus, .input-solid:focus { border-color: var(--accent); }

.input::-moz-placeholder, .input-solid::-moz-placeholder { color: var(--ink-faint); }

.input::placeholder, .input-solid::placeholder { color: var(--ink-faint); }

.input option, .input-solid option { background: var(--card); color: var(--ink); }

label { font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--ink); }

/* ── Score display ─────────────────────────────────────────────────────────── */

.score-display {
  font-family: var(--serif);
  font-weight: 900;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
  line-height: 1;
}

.score-band {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ── Status badges ─────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid;
}

/* No border-radius — hard constraint */

.status-draft       { background: var(--paper-dark); color: var(--ink-soft); border-color: var(--rule); }

.status-ready       { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.status-submitted   { background: #dbeafe; color: #1e3a8a; border-color: #93c5fd; }

.status-won         { background: var(--success-bg); color: var(--success); border-color: #86efac; }

.status-lost        { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.status-analysing   { background: #fef9c3; color: #713f12; border-color: #fde68a; }

.status-analysed    { background: var(--success-bg); color: var(--success); border-color: #86efac; }

.status-error       { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.status-expired     { background: var(--paper-dark); color: var(--ink-faint); border-color: var(--rule); }

/* ── Spinner ───────────────────────────────────────────────────────────────── */

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.spinner-sm { width: 14px; height: 14px; border-width: 1.5px; }

.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

/* ── Progress bar ──────────────────────────────────────────────────────────── */

.progress-track {
  height: 4px;
  background: var(--rule-soft);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .6s cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Dividers & rules ──────────────────────────────────────────────────────── */

hr, .rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

.rule-soft { border-top: 1px solid var(--rule-soft); }

/* ── Callout / warning boxes ───────────────────────────────────────────────── */

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}

.warn-box {
  background: #fef3c7;
  border-left: 3px solid var(--warn);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ── Prose letter ──────────────────────────────────────────────────────────── */

.prose-letter {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.4rem;
}

.prose-letter h1 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

.prose-letter h2 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 14px 0 4px; }

.prose-letter p  { margin: 0 0 10px; }

/* ── Radio / choice buttons ────────────────────────────────────────────────── */

.radio-btn {
  background: var(--card) !important;
  border: 1.5px solid var(--rule) !important;
  color: var(--ink-soft) !important;
  font-family: var(--sans);
  font-size: .95rem;
}

.radio-btn.active {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--paper) !important;
}

.radio-btn:hover:not(.active) {
  border-color: var(--ink-soft) !important;
  color: var(--ink) !important;
}

/* ── Back button ───────────────────────────────────────────────────────────── */

.back-btn {
  color: var(--ink-soft) !important;
  font-size: .9rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.back-btn:hover { color: var(--accent) !important; }

/* ── Page title ────────────────────────────────────────────────────────────── */

.page-title {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 0 0 1.2rem;
  padding-top: 4px;
}

/* ── Section title (app-internal) ──────────────────────────────────────────── */

.section-title {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .6rem;
}

/* ── Links ─────────────────────────────────────────────────────────────────── */

a:not(.btn):not(.tab-item):not(.nav-brand) { color: var(--accent); }

/* ── Pulse animation ───────────────────────────────────────────────────────── */

@keyframes pulse-bg { 0%,100%{opacity:1} 50%{opacity:.5} }

.pulse { animation: pulse-bg 1.8s ease-in-out infinite; }

/* ── Motion gating ─────────────────────────────────────────────────────────── */

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