:root {
  color-scheme: light;
  --ink: #132b2b;
  --muted: #627472;
  --paper: #f5f2e9;
  --surface: #fffdf7;
  --line: #d9ddd4;
  --forest: #123b38;
  --teal: #1d7770;
  --mint: #bfe1d5;
  --amber: #e2a84b;
  --shadow: 0 12px 35px rgba(22, 49, 47, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 85% 0%, #dcece4 0, transparent 28rem), var(--paper); }
button, input, textarea { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: white; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 19rem minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 1.5rem; color: #eff8f4; background: linear-gradient(180deg, #102f2d, #0d2524); }
.brand { display: flex; gap: .85rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand-mark { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .75rem; color: var(--forest); background: var(--mint); font-weight: 900; }
.brand div { display: grid; gap: .15rem; }
.brand span:last-child { color: #b8ceca; font-size: .78rem; }
.term-progress { margin: 1.35rem 0; }
.progress-copy { display: flex; justify-content: space-between; color: #c9dbd7; font-size: .8rem; }
.progress-track { height: .45rem; margin-top: .55rem; overflow: hidden; border-radius: 1rem; background: rgba(255,255,255,.12); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #68c4b7); transition: width .25s ease; }
.day-navigation { display: grid; gap: .35rem; }
.nav-week { margin-bottom: .8rem; }
.nav-week h2 { margin: 0 0 .35rem; color: #7fa8a2; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.nav-day { width: 100%; display: grid; grid-template-columns: 3.6rem 1fr .55rem; gap: .45rem; align-items: center; padding: .58rem .65rem; border: 0; border-radius: .55rem; color: #e5f0ed; background: transparent; text-align: left; cursor: pointer; }
.nav-day:hover, .nav-day.active { background: rgba(255,255,255,.1); }
.nav-day span { font-size: .78rem; font-weight: 750; }
.nav-day small { min-width: 0; overflow: hidden; color: #a9c1bd; text-overflow: ellipsis; white-space: nowrap; }
.nav-day i { width: .5rem; height: .5rem; border: 1px solid #72918d; border-radius: 50%; }
.nav-day i.partial { border-color: var(--amber); background: var(--amber); }
.nav-day i.complete { border-color: #7ed0be; background: #7ed0be; }
.main-content { min-width: 0; padding: 0 3.2rem 4rem; }
.topbar { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(19,43,43,.12); }
.date-controls { display: flex; gap: .45rem; }
.icon-button, .today-button { min-height: 2.4rem; border: 1px solid var(--line); border-radius: .65rem; background: rgba(255,255,255,.65); cursor: pointer; }
.icon-button { min-width: 2.4rem; }
.today-button { padding: 0 .85rem; font-weight: 700; }
.save-status { color: var(--muted); font-size: .82rem; }
.site-links, .page-links { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.site-links a, .inline-link { color: var(--teal); font-size: .82rem; font-weight: 800; text-decoration: none; }
.site-links a:hover, .inline-link:hover { text-decoration: underline; }
.primary-cta { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 2.7rem; padding: 0 .9rem; border-radius: .65rem; color: white; background: var(--teal); font-size: .82rem; font-weight: 850; text-decoration: none; }
.day-hero { display: flex; justify-content: space-between; gap: 2rem; align-items: end; padding: 3.2rem 0 2rem; }
.eyebrow, .section-kicker { margin: 0 0 .55rem; color: var(--teal); font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 18ch; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.9rem); line-height: .98; letter-spacing: -.045em; }
.day-hero p:last-child { max-width: 45rem; color: var(--muted); font-size: 1.05rem; }
.hero-stat { min-width: 10rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--amber); }
.hero-stat span, .hero-stat small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-stat strong { display: block; margin: .15rem 0; font-family: Georgia, serif; font-size: 2.8rem; }
.snapshot-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,253,247,.8); box-shadow: var(--shadow); }
.snapshot-grid article { display: grid; padding: 1.2rem 1.35rem; border-right: 1px solid var(--line); }
.snapshot-grid article:last-child { border-right: 0; }
.snapshot-grid span { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.snapshot-grid strong { margin: .25rem 0; font-family: Georgia, serif; font-size: 1.7rem; }
.snapshot-grid small { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(18rem, .85fr); gap: 1rem; margin-top: 1rem; }
.panel { padding: 1.45rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.panel-wide { grid-column: span 1; }
.panel-full { grid-column: 1 / -1; }
.panel h2 { margin: 0 0 .7rem; font-family: Georgia, serif; font-size: 1.65rem; }
.panel p { color: var(--muted); line-height: 1.65; }
.exercise-preview { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem; border-radius: .75rem; background: #edf3ee; }
.exercise-preview div { display: grid; gap: .25rem; }
.exercise-preview span { color: var(--muted); font-size: .86rem; }
.check-button { padding: .6rem .8rem; border: 0; border-radius: .55rem; color: white; background: var(--teal); cursor: pointer; }
.check-row { display: flex; gap: .65rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.check-row input { width: 1.1rem; height: 1.1rem; accent-color: var(--teal); }
.check-row.compact { min-width: 9rem; align-self: start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .65rem; }
.section-heading, .cardio-panel { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.callout { margin: 1rem 0; padding: .9rem 1rem; border-left: 3px solid var(--teal); background: #eef4ef; line-height: 1.55; }
.warmup { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .7rem; }
.warmup summary { font-weight: 800; cursor: pointer; }
.warmup p { margin-bottom: 0; }
.table-scroll { overflow-x: auto; }
.exercise-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.exercise-table th, .exercise-table td { padding: .75rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.exercise-table thead th { color: var(--muted); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.exercise-table tbody th { min-width: 12rem; }
.routine-note { margin-bottom: 0; font-style: italic; }
.compact-list { margin: .5rem 0 1rem; padding: 0; list-style: none; }
.compact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.compact-list span { color: var(--muted); }
.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1rem; }
.traffic { display: grid; gap: .25rem; padding: .8rem; border-radius: .65rem; background: #f1f2ed; }
.traffic strong { font-size: .78rem; text-transform: uppercase; }
.traffic span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.traffic.green { border-top: 3px solid #4e9e7e; }.traffic.amber { border-top: 3px solid var(--amber); }.traffic.red { border-top: 3px solid #bd6058; }
.readiness-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cardio-dose { display: block; margin: .35rem 0; color: var(--teal); font-size: 1.15rem; }
.habit-list .check-row:first-child { border-top: 0; }
.macro-grid { display: grid; grid-template-columns: repeat(6, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; }
.macro-grid div { display: grid; gap: .15rem; padding: .85rem; border-right: 1px solid var(--line); text-align: center; }
.macro-grid div:last-child { border-right: 0; }
.macro-grid strong { font-family: Georgia, serif; font-size: 1.25rem; }
.macro-grid span { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.note-grid div { display: grid; gap: .25rem; padding: .85rem; border-radius: .65rem; background: #f0f3ed; }
.note-grid span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.meal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.meal-grid article { padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #f8f6ef; }
.meal-grid article > span { color: var(--teal); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.meal-grid p { margin-bottom: 0; }
.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.record-grid label { display: grid; gap: .35rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.record-grid label > div { display: flex; align-items: center; border: 1px solid var(--line); border-radius: .6rem; background: white; }
.record-grid input, .record-grid textarea { width: 100%; min-width: 0; padding: .7rem; border: 0; outline-color: var(--teal); background: transparent; color: var(--ink); }
.record-grid small { padding-right: .65rem; white-space: nowrap; }
.notes-field { grid-column: 1 / -1; }
.notes-field textarea { border: 1px solid var(--line); border-radius: .6rem; background: white; resize: vertical; }
.planner-footer { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; margin-top: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--forest); color: white; }
.planner-footer > div:first-child { display: grid; gap: .25rem; }
.planner-footer span { color: #bad0cc; font-size: .8rem; }
.footer-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 .85rem; border: 1px solid rgba(255,255,255,.25); border-radius: .6rem; cursor: pointer; }
.primary-button { border-color: var(--mint); color: var(--forest); background: var(--mint); font-weight: 800; }
.secondary-button { color: white; background: transparent; }
.file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.save-status[data-type="warning"] { color: #9b6417; }.save-status[data-type="success"] { color: var(--teal); }
button:disabled { opacity: .38; cursor: not-allowed; }
.mobile-only { display: none; }

.recipe-page { max-width: 88rem; margin: 0 auto; padding: 0 2rem 4rem; }
.recipe-header { display: flex; justify-content: space-between; gap: 2rem; align-items: end; padding: 3.5rem 0 2rem; }
.recipe-header h1 { max-width: 13ch; }
.recipe-intro { max-width: 42rem; color: var(--muted); line-height: 1.65; }
.recipe-filters { position: sticky; top: .5rem; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; padding: .7rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(245,242,233,.94); backdrop-filter: blur(12px); }
.filter-button { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); cursor: pointer; }
.filter-button.active { border-color: var(--forest); color: white; background: var(--forest); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.recipe-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.recipe-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #dbe5dc; }
.recipe-image img { width: 100%; height: 100%; object-fit: cover; }
.recipe-image img.failed { display: none; }
.recipe-image::after { content: "Food image unavailable"; position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; color: var(--muted); }
.recipe-image a { position: absolute; right: .55rem; bottom: .55rem; padding: .3rem .45rem; border-radius: .35rem; color: white; background: rgba(0,0,0,.62); font-size: .62rem; text-decoration: none; }
.recipe-body { padding: 1.15rem; }
.recipe-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--teal); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.recipe-card h2 { margin: .5rem 0; font-family: Georgia, serif; font-size: 1.55rem; }
.recipe-card .description { min-height: 3.9rem; color: var(--muted); line-height: 1.5; }
.recipe-card details { margin-top: .7rem; border-top: 1px solid var(--line); }
.recipe-card summary { padding: .75rem 0 .25rem; font-weight: 800; cursor: pointer; }
.recipe-card ul, .recipe-card ol { margin: .5rem 0 .8rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.55; }
.recipe-card li + li { margin-top: .28rem; }
.recipe-note { padding: .75rem; border-radius: .55rem; background: #eef4ef; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.dashboard-page { max-width: 94rem; margin: 0 auto; padding: 0 2rem 4rem; }
.dashboard-header { display: flex; justify-content: space-between; gap: 2rem; align-items: end; padding: 3rem 0 2rem; }
.dashboard-header h1 { max-width: 12ch; }
.dashboard-position { margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; }
.dashboard-summary { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.dashboard-summary article { display: grid; gap: .15rem; padding: 1.25rem; border-right: 1px solid var(--line); }
.dashboard-summary article:last-child { border-right: 0; }
.dashboard-summary span { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-summary strong { font-family: Georgia, serif; font-size: 2rem; }
.dashboard-summary small { color: var(--muted); }
.dashboard-panel { padding: 1.35rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.dashboard-panel h2 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; }
.dashboard-section-heading, .chart-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.data-status { color: var(--muted); font-size: .75rem; }
.roadmap { display: flex; gap: .6rem; margin-top: 1rem; overflow-x: auto; padding-bottom: .3rem; }
.roadmap-phase { flex: 0 0 var(--phase-width); min-width: 9rem; display: flex; justify-content: space-between; gap: .6rem; min-height: 9.5rem; padding: .9rem; border-top: 4px solid #aab8b2; border-radius: .6rem; background: #f0f2ed; }
.roadmap-phase.current { border-color: var(--amber); background: #fff5df; }
.roadmap-phase.past { border-color: var(--teal); background: #edf4ef; }
.roadmap-phase div { display: grid; align-content: start; gap: .35rem; }
.roadmap-phase span { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.roadmap-phase strong { font-size: .9rem; }
.roadmap-phase p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.roadmap-phase i { align-self: start; padding: .24rem .36rem; border-radius: .35rem; color: var(--muted); background: white; font-size: .6rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.chart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.chart-panel { min-width: 0; }
.chart-change { color: var(--muted); font-size: .85rem; font-weight: 800; }
.chart-change.positive { color: var(--teal); }
.chart-host { min-height: 15rem; margin-top: .75rem; }
.chart-host svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-host .axis { stroke: #cbd3cc; stroke-width: 1; }
.chart-host .target-line { stroke: #a5ada8; stroke-width: 1.5; stroke-dasharray: 6 5; }
.chart-host .axis-label, .chart-host .target-label { fill: var(--muted); font-size: 11px; }
.chart-empty { min-height: 12rem; display: grid; place-content: center; gap: .35rem; padding: 1rem; border: 1px dashed var(--line); border-radius: .7rem; color: var(--muted); text-align: center; }
.chart-empty strong { color: var(--ink); }
.dashboard-lower-grid { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr; gap: 1rem; margin-top: 1rem; }
.adherence-bars { display: grid; gap: .75rem; margin-top: 1rem; }
.adherence-bars > div { display: grid; grid-template-columns: 7rem minmax(5rem, 1fr) 3rem; gap: .65rem; align-items: center; }
.adherence-bars span { display: flex; justify-content: space-between; gap: .4rem; color: var(--muted); font-size: .78rem; }
.adherence-bars small { color: #91a09b; }
.adherence-bars > div > div { height: .5rem; overflow: hidden; border-radius: 1rem; background: #e5e9e3; }
.adherence-bars i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.adherence-bars strong { font-size: .75rem; text-align: right; }
.latest-records { margin-top: .8rem; }
.latest-records > div:not(.chart-empty) { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.latest-records span { color: var(--muted); font-size: .78rem; }
.latest-records strong { font-size: .82rem; }
.goal-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.goal-progress article { display: grid; gap: .65rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(255,255,255,.58); }
.goal-progress span, .goal-progress small { display: block; color: var(--muted); font-size: .76rem; }
.goal-progress strong { display: block; margin: .2rem 0; font-size: 1.05rem; }
.goal-progress b { color: var(--teal); font-size: .76rem; }
.goal-meter { height: .45rem; overflow: hidden; border-radius: 1rem; background: #dfe8e5; }
.goal-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--teal)); }
.dashboard-lower-grid .primary-cta { margin-top: .6rem; }

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { display: none; position: fixed; z-index: 20; width: min(86vw, 21rem); }
  body.menu-open .sidebar { display: block; }
  .main-content { padding: 0 1.2rem 3rem; }
  .mobile-only { display: inline-grid; place-items: center; }
  .snapshot-grid { grid-template-columns: 1fr 1fr; }
  .snapshot-grid article:nth-child(2) { border-right: 0; }
  .snapshot-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .content-grid { grid-template-columns: 1fr; }
  .panel-wide, .panel-full { grid-column: 1; }
  .macro-grid { grid-template-columns: repeat(3, 1fr); }
  .macro-grid div:nth-child(3) { border-right: 0; }
  .macro-grid div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .record-grid { grid-template-columns: 1fr 1fr; }
  .planner-footer { align-items: flex-start; flex-direction: column; }
  .recipe-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-summary { grid-template-columns: 1fr 1fr; }
  .dashboard-summary article:nth-child(2) { border-right: 0; }
  .dashboard-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .chart-grid { grid-template-columns: 1fr; }
  .dashboard-lower-grid { grid-template-columns: 1fr 1fr; }
  .goal-progress { grid-template-columns: 1fr 1fr; }
  .dashboard-lower-grid article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .day-hero { display: block; padding-top: 2rem; }
  .hero-stat { margin-top: 1.4rem; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .snapshot-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .snapshot-grid article:last-child { border-bottom: 0; }
  .traffic-grid, .readiness-grid, .meal-grid, .note-grid, .record-grid { grid-template-columns: 1fr; }
  .macro-grid { grid-template-columns: 1fr 1fr; }
  .macro-grid div { border-bottom: 1px solid var(--line); }
  .macro-grid div:nth-child(even) { border-right: 0; }
  .macro-grid div:nth-last-child(-n+2) { border-bottom: 0; }
  .section-heading, .cardio-panel { display: block; }
  .check-row.compact { margin-top: 1rem; }
  .primary-cta { margin-top: 1rem; }
  .notes-field { grid-column: 1; }
  .recipe-page { padding: 0 1rem 3rem; }
  .recipe-header { display: block; padding-top: 2rem; }
  .recipe-grid { grid-template-columns: 1fr; }
  .dashboard-page { padding: 0 1rem 3rem; }
  .dashboard-header { display: block; padding-top: 2rem; }
  .dashboard-header .page-links { margin-top: 1rem; }
  .dashboard-summary { grid-template-columns: 1fr; }
  .dashboard-summary article { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-summary article:last-child { border-bottom: 0; }
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .goal-progress { grid-template-columns: 1fr; }
  .dashboard-lower-grid article:last-child { grid-column: 1; }
}


/* ---- PIN gate -------------------------------------------------------- */
#pin-gate { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 12%, #1b4a45 0, var(--forest) 60%); padding: 1.5rem; }
.pin-card { width: min(22rem, 100%); background: var(--surface); border-radius: 1.25rem;
  padding: 2.25rem 1.75rem; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.pin-mark { width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: .9rem;
  background: url("icon-192.png") center / cover no-repeat; }
.pin-card h1 { margin: 0 0 .35rem; font-size: 1.15rem; color: var(--forest); }
.pin-card p { margin: 0 0 1.25rem; color: var(--muted); font-size: .92rem; }
#pin-input { width: 100%; padding: .85rem 1rem; text-align: center; font-size: 1.9rem;
  letter-spacing: .7em; text-indent: .7em; border: 2px solid var(--line); border-radius: .75rem;
  background: var(--paper); color: var(--ink); }
#pin-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(29, 119, 112, .16); }
.pin-error { margin: 1rem 0 0 !important; color: #a8433a; font-weight: 600; }
.shake { animation: pin-shake .32s ease; }
@keyframes pin-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); } }
