/* R10-7: only resets and live shared hooks remain. Page-specific Night City
   styling lives in ui/workout-ticket.css. The remaining legacy declarations
   are deliberately preserved where migrated surfaces override their paint. */
[hidden] { display: none !important; }

:root {
  --card: #fffefa;
  --ink: #18251f;
  --muted: #63716a;
  --line: #d9ddd4;
  --green: #285d48;
  --rust: #bb4e35;
  font-family: var(--t-han);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--t-stock);
  color: var(--t-navy);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--t-stock); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--t-stock); }
button, input, select, textarea { font: inherit; }
button, select, input { min-height: 44px; }
.app-shell { min-height: 100vh; }

/* Still generated by app status/alerts and sync controls. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.button:active { transform: translateY(1px); }
.button-small { min-height: 44px; padding: 0 11px; border-radius: 10px; font-size: 12px; }
.notice { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border: 1px solid #e8d8ae; border-radius: 14px; background: #fbf5e5; color: #5c4a23; font-size: 13px; line-height: 1.5; }
/* The badge box is shared by the variant glyphs below; the old "i" mark and its
   Georgia face are gone (K3.2). */
.notice::before { flex: 0 0 20px; display: grid; place-items: center; height: 20px; border-radius: 50%; font-weight: 900; }
.notice-error::before { content: "!"; background: var(--rust); color: white; }
.update-notice { align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Field helpers, in-session history and conflict summaries are still live. */
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { color: #4f5e56; font-size: 11px; font-weight: 750; letter-spacing: .035em; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.45; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #cdd4cc; border-radius: 11px; background: #fff; color: var(--ink); font-size: 16px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(87, 143, 105, .27); outline-offset: 2px; border-color: #679079; }
textarea { min-height: 95px; resize: vertical; line-height: 1.5; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.labeled-value { display: grid; gap: 4px; min-width: 0; }
.labeled-value strong { font-size: 14px; font-weight: 740; line-height: 1.35; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.5; }
.tiny { font-size: 10px; line-height: 1.4; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.exercise-history { display: grid; gap: 8px; }
.exercise-history summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--green); font-size: 11px; font-weight: 750; }
.exercise-history summary::-webkit-details-marker { display: none; }
.exercise-history summary::after { content: "+"; margin-left: auto; color: var(--green); font-size: 17px; }
.exercise-history[open] summary::after { content: "−"; }
.history-set-lines { display: grid; gap: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }

/* Live body-map interaction and workout deletion. */
.body-region { cursor: pointer; outline: none; }
.delete-control { margin-top: 4px; }
.delete-confirm { margin-top: 10px; padding: 12px; border: 1px solid #e7c9bd; border-radius: 8px; background: #fff9f6; }
.delete-confirm p { margin: 0 0 6px; font-size: 12px; color: #9b3d2a; }
.delete-confirm-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Stable sync slots keep partial form input independent of status updates. */
.sync-compare { display: grid; gap: 9px; }
.sync-card-slot { display: grid; min-width: 0; }
.sync-conflict { flex-wrap: wrap; justify-content: space-between; }
.sync-conflict-body { display: grid; gap: 11px; min-width: 0; flex: 1 1 320px; }
.sync-conflict-columns { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sync-conflict-side { display: grid; gap: 6px; align-content: start; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, .58); }
.import-panel { display: grid; gap: 11px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
