:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #68717b;
  --line: #deded8;
  --line-soft: #ebeae4;
  --cream: #f5f3ec;
  --paper: #fbfaf6;
  --blue: #2f6092;
  --blue-deep: #234b73;
  --blue-wash: #e8eef4;
  --danger: #9d3f35;
  --sidebar: 248px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.brand-logo { display: block; height: auto; object-fit: contain; }
.brand-logo-login { width: min(290px, 100%); margin: -18px 0 16px; }
.brand-logo-sidebar { width: 190px; max-width: 100%; margin: -15px 0 -9px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(47, 96, 146, .05), transparent 48%),
    var(--cream);
}

.login-panel {
  width: min(420px, 100%);
  padding: 46px 44px;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, .92);
  box-shadow: 0 18px 60px rgba(23, 32, 42, .07);
}

.login-panel .eyebrow { margin-top: 18px; }
h1, h2 { font-family: inherit; font-weight: 600; letter-spacing: -.025em; }
.login-panel h1 { margin: 0; font-size: 36px; line-height: 1.1; }
.login-panel .muted { margin: 10px 0 30px; }

form { display: grid; gap: 10px; }
label { margin-top: 9px; color: #3d4650; font-size: 12px; font-weight: 650; }

input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cfcfc8;
  border-radius: 2px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 96, 146, .11); }

.primary-button {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
}

.primary-button:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.form-error { margin: 5px 0 0; color: var(--danger); font-size: 12px; }
.field-hint { margin: 0; color: var(--muted); font-size: 12px; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--cream);
}

.sidebar-head { padding: 20px 25px 18px; border-bottom: 1px solid var(--line-soft); }
.platform-label { display: block; margin-top: 0; color: var(--muted); font-size: 11px; }
nav { display: grid; gap: 2px; padding: 20px 12px; }

.nav-item {
  padding: 9px 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover { background: rgba(47, 96, 146, .06); }
.nav-item.active { background: var(--blue-wash); color: var(--blue-deep); font-weight: 650; }

.sidebar-foot { margin-top: auto; padding: 20px 24px 25px; border-top: 1px solid var(--line-soft); }
.user-name { font-weight: 650; }
.user-role { margin: 2px 0 9px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.text-button { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 12px; }

.workspace { margin-left: var(--sidebar); min-height: 100vh; }

.workspace-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, .93);
}

.workspace-header h1 { margin: 0; font-size: 30px; line-height: 1; }
.connection-state { color: #50665a; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.connection-state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #6e947d; vertical-align: 1px; }
.mobile-menu { display: none; }

.content, .password-change { padding: 38px clamp(28px, 5vw, 72px) 70px; }

.password-change {
  max-width: 620px;
}

.password-change h2 { margin: 0; font-size: 27px; }
.password-change > .muted { margin: 8px 0 24px; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.metric { min-height: 112px; padding: 19px 20px 18px 0; }
.metric + .metric { padding-left: 20px; border-left: 1px solid var(--line); }
.metric-label { display: block; min-height: 34px; color: var(--muted); font-size: 11px; line-height: 1.35; text-transform: uppercase; letter-spacing: .06em; }
.metric-value { display: block; margin-top: 8px; font-size: 30px; font-weight: 600; letter-spacing: -.025em; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 13px;
}

.section-head h2 { margin: 0; font-size: 22px; }
.section-head p { margin: 0; color: var(--muted); font-size: 12px; }

.toolbar { display: flex; gap: 9px; margin-bottom: 18px; }
.toolbar input { max-width: 360px; background: var(--paper); }

.club-directory-controls { margin-bottom: 18px; }
.club-search-toolbar { margin-bottom: 14px; }
.club-search-toolbar input { max-width: 440px; }
.club-search-toolbar .secondary-button { padding-inline: 18px; }
.alphabet-filter { display: flex; flex-wrap: wrap; gap: 5px; padding: 13px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.alphabet-button { min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 650; }
.alphabet-button:hover { border-color: var(--line); color: var(--blue-deep); }
.alphabet-button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.directory-summary { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.directory-footer { display: flex; justify-content: center; padding: 24px 0 4px; color: var(--muted); font-size: 12px; }
.directory-footer .secondary-button { min-width: 150px; }

.data-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.data-table th { padding: 11px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.primary-cell { font-weight: 650; }
.secondary-line { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

.status { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #eeede7; color: #515961; font-size: 10px; text-transform: capitalize; }
.status.in-progress { background: var(--blue-wash); color: var(--blue-deep); }
.status.blocked { background: #f3e5e2; color: var(--danger); }
.status.high { background: #f3e5e2; color: #7c3931; }
.status.active { background: #e6eee8; color: #3d6850; }
.status.paused { background: #f5efe2; color: #745c33; }
.status.closed, .status.cancelled { background: #eeede7; color: #626970; }

.record-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  cursor: pointer;
  font-weight: inherit;
  text-align: left;
}
.record-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-button { margin: 0 0 24px; padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 12px; }
.back-button:hover { color: var(--blue-deep); }

.record-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--ink);
}
.record-hero h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.record-hero p:last-child { margin: 8px 0 0; color: var(--muted); }
.record-section { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.record-section > h3 { margin: 0 0 20px; font-family: inherit; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.record-section > p { max-width: 860px; white-space: pre-wrap; }
.record-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line-soft); }
.record-fields div { min-width: 0; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line-soft); }
.record-fields dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.record-fields dd { margin: 0; overflow-wrap: anywhere; }
.data-table.compact td { padding-top: 11px; padding-bottom: 11px; }
.data-table a { color: var(--blue-deep); }

.narrative-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 27px; }
.narrative-grid h4, .version-subsection h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.narrative-grid p { margin: 0; color: #46505a; white-space: pre-wrap; }
.version-subsection { margin-top: 27px; }
.requirement-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.requirement-list li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.requirement-list span { color: var(--muted); text-align: right; }

.history-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.history-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.history-list strong { display: block; text-transform: capitalize; }
.history-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.version-entry { border-top: 1px solid var(--line); }
.version-entry:last-child { border-bottom: 1px solid var(--line); }
.version-entry > summary { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; cursor: pointer; font-weight: 650; }
.version-entry > summary small { color: var(--muted); font-weight: 400; }
.version-body { padding: 3px 0 28px; }
.evidence-block { margin-top: 26px; padding: 18px; border-left: 3px solid var(--blue); background: var(--blue-wash); }
.evidence-meta { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.evidence-block pre { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font: inherit; }
.revision-panel { margin: 30px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.revision-panel > summary { padding: 16px 0; color: var(--blue-deep); cursor: pointer; font-weight: 650; }
.revision-form { padding: 4px 0 30px; }
.success-banner { margin-bottom: 24px; padding: 13px 15px; border-left: 3px solid #5d826b; background: #e6eee8; color: #365744; }

.brief-list { border-top: 1px solid var(--ink); }
.brief-row { display: grid; grid-template-columns: 145px minmax(180px, .8fr) minmax(240px, 1.5fr) 100px; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.brief-code { color: var(--blue-deep); font-weight: 700; letter-spacing: .03em; }
.brief-title { font-weight: 650; }
.brief-summary { color: #4d5660; }

.empty-state { padding: 70px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.empty-state h2 { margin: 0; font-size: 24px; }
.empty-state p { max-width: 560px; margin: 8px 0 0; color: var(--muted); }
.loading { padding: 40px 0; color: var(--muted); }
.error-panel { padding: 18px; border-left: 3px solid var(--danger); background: #f7ece9; color: #71352f; }

.creation-tabs { display: flex; gap: 4px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.creation-tab { padding: 10px 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.creation-tab:hover { color: var(--ink); }
.creation-tab.active { border-bottom-color: var(--blue); color: var(--blue-deep); font-weight: 650; }
.form-intro { max-width: 720px; margin-bottom: 28px; }
.form-intro h2, .success-panel h2 { margin: 0; font-size: 27px; }
.form-intro > p:last-child, .success-panel > p { margin: 8px 0 0; color: var(--muted); }
.record-form { max-width: 900px; gap: 22px; }
.form-grid { display: grid; gap: 17px 20px; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin: 0 0 7px; }
.field .field-hint { margin-top: 6px; }
fieldset { min-width: 0; margin: 4px 0 0; padding: 22px 0 2px; border: 0; border-top: 1px solid var(--line); }
legend { padding: 0 14px 0 0; color: var(--ink); font-family: inherit; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
fieldset > .field-hint { margin: -2px 0 15px; }
.position-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.position-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px 9px 0; border-bottom: 1px solid var(--line-soft); }
.position-choice:nth-child(odd) { margin-right: 18px; }
.position-choice label, .compact-choice, .confirmation { margin: 0; font-weight: 400; }
.position-choice input, .compact-choice input, .confirmation input { width: auto; }
.position-choice span { display: inline-block; min-width: 35px; font-weight: 700; }
.position-choice small { color: var(--muted); }
.primary-position { color: var(--muted); font-size: 11px; white-space: nowrap; }
.confirmation { display: flex; align-items: flex-start; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.form-actions { border-top: 1px solid var(--ink); }
.form-actions .primary-button { min-width: 210px; }
.secondary-button { padding: 10px 14px; border: 1px solid #bfc3c4; border-radius: 2px; background: transparent; color: var(--blue-deep); cursor: pointer; }
.secondary-button:hover { border-color: var(--blue); background: var(--blue-wash); }
.brief-editor { margin-top: 8px; padding: 26px 0 30px; border-top: 1px solid var(--ink); }
.brief-editor-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.brief-editor-head h3 { margin: 0; font-family: inherit; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.compact-choices { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 11px 12px; border: 1px solid #cfcfc8; background: #fff; }
.compact-choice { display: flex; align-items: center; gap: 5px; color: #3d4650; font-size: 12px; }
.success-panel { max-width: 720px; padding: 32px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.success-panel .secondary-button { margin-top: 22px; }
.warning-panel { max-width: 900px; margin-bottom: 20px; padding: 14px 16px; border-left: 3px solid #b88a41; background: #f5efe2; color: #69532f; }

@media (max-width: 980px) {
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; }
  .brief-row { grid-template-columns: 120px 1fr; }
  .brief-summary, .brief-row > :last-child { grid-column: 2; }
  .record-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .narrative-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  :root { --sidebar: min(290px, 84vw); }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 15px 0 40px rgba(23, 32, 42, .13); }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-block; padding: 7px 9px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .workspace-header { min-height: 90px; padding: 20px; }
  .workspace-header h1 { font-size: 25px; }
  .content, .password-change { padding: 28px 20px 50px; }
  .club-search-toolbar { display: grid; grid-template-columns: 1fr auto; }
  .club-search-toolbar input { min-width: 0; }
  .alphabet-filter { gap: 4px; }
  .connection-state { display: none; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 95px; }
  .metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .metric:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .metric-value { font-size: 26px; }
  .data-table { min-width: 680px; }
  .table-scroll { overflow-x: auto; }
  .brief-row { grid-template-columns: 1fr; gap: 5px; }
  .brief-summary, .brief-row > :last-child { grid-column: 1; }
  .login-panel { padding: 36px 28px; }
  .creation-tabs { overflow-x: auto; margin-bottom: 28px; }
  .creation-tab { white-space: nowrap; }
  .form-grid.two-columns, .position-grid { grid-template-columns: 1fr; }
  .position-choice:nth-child(odd) { margin-right: 0; }
  .record-hero { align-items: flex-start; }
  .record-fields { grid-template-columns: 1fr; }
  .requirement-list li, .version-entry > summary { display: block; }
  .requirement-list span { display: block; margin-top: 3px; text-align: left; }
  .version-entry > summary small { display: block; margin-top: 3px; }
}

/* V0.5.2 — denser institutional workspace polish */
:root { --sidebar: 264px; --shadow-soft: 0 14px 34px rgba(23,32,42,.055); }
.brand-logo-sidebar { width: 194px; margin: -10px auto 0; }
.sidebar-head { padding: 23px 24px 25px; }
.platform-label { margin-top: 9px; text-align: center; letter-spacing: .075em; text-transform: uppercase; }
.platform-nav { display: block; padding: 15px 11px 18px; overflow-y: auto; }
.nav-group { display: grid; gap: 2px; padding: 7px 0 10px; }
.nav-group + .nav-group { border-top: 1px solid var(--line-soft); }
.nav-group-label { padding: 10px 12px 5px; color: #858b91; font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.nav-item { padding: 8px 12px; border-radius: 4px; font-size: 13px; }
.nav-item.active { box-shadow: inset 2px 0 0 var(--blue); }
.nav-item-create { color: var(--blue-deep); font-weight: 650; }
.sidebar-foot { padding: 17px 23px 22px; }
.workspace-header { position: sticky; top: 0; z-index: 6; min-height: 94px; padding-top: 21px; padding-bottom: 21px; backdrop-filter: blur(12px); }
.content { max-width: 1540px; }
.metric-strip { grid-template-columns: repeat(7, minmax(105px,1fr)); }
.metric { min-height: 102px; }
.metric-value { font-variant-numeric: tabular-nums; }
.data-table tbody tr { transition: background .12s ease; }
.data-table tbody tr:hover { background: rgba(47,96,146,.025); }
.record-section { max-width: 1180px; }
.record-section.record-section-wide { max-width: none; }
.queue-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.queue-card { padding: 18px 19px; border: 1px solid var(--line); background: rgba(255,255,255,.38); box-shadow: var(--shadow-soft); }
.queue-card h3 { margin: 0 0 5px; font-size: 17px; font-weight: 650; }
.queue-card p { margin: 5px 0 0; color: var(--muted); }
.queue-card .queue-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.knowledge-notice { margin: 0 0 24px; padding: 15px 17px; border-left: 3px solid var(--blue); background: var(--blue-wash); }
.knowledge-notice strong { display: block; margin-bottom: 3px; }
.knowledge-notice p { margin: 0; color: #4a5d70; }
.review-banner { margin: 18px 0 0; padding: 13px 15px; border: 1px solid #e3d6b8; background: #f7f2e8; color: #624f2c; }
.review-banner.safe { border-color: #cdded2; background: #edf3ef; color: #3d624b; }
.inline-options { display: grid; gap: 8px; padding: 12px 0 2px; }
.inline-option { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-weight: 400; }
.inline-option input { width: auto; margin-top: 3px; }
.inline-option strong { display: block; color: var(--ink); }
.inline-option span { display: block; color: var(--muted); font-size: 12px; }
.generic-kv { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line-soft); }
.generic-kv div { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line-soft); }
.generic-kv dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.generic-kv dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.sidebar-backdrop { display: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 1180px) {
  .metric-strip { grid-template-columns: repeat(4,1fr); }
  .metric:nth-child(5) { border-left: 0; padding-left: 0; }
  .queue-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 9; display: block; border: 0; background: rgba(23,32,42,.28); }
  .workspace-header { position: sticky; padding: 17px 18px; }
  .workspace-header > div { min-width: 0; }
  .workspace-header .eyebrow { margin-bottom: 5px; }
  .content, .password-change { padding: 24px 18px 48px; }
  .metric-strip { grid-template-columns: repeat(2,1fr); }
  .metric:nth-child(n) { padding-left: 0; border-left: 0; }
  .metric:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .generic-kv { grid-template-columns: 1fr; }
}

.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1rem 0 1.5rem;
}

.workspace-tab.active {
  border-color: currentColor;
  font-weight: 650;
}

.workspace-list {
  display: grid;
  gap: .65rem;
}

.workspace-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line, rgba(20, 35, 50, .12));
}

.workspace-item:first-child {
  border-top: 0;
}

.workspace-item p {
  margin: .35rem 0 0;
  max-width: 70ch;
}

@media (max-width: 720px) {
  .workspace-item {
    flex-direction: column;
  }
}

/* V0.6.0 operational/mobile surfaces */
.mobile-report-shell { max-width: 820px; margin: 0 auto; }
.mobile-match-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.mobile-match-grid .full { grid-column: 1 / -1; }
.mobile-player-add { margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--line,rgba(20,35,50,.12)); border-radius: 10px; }
.mobile-observation { display:flex; justify-content:space-between; gap:1rem; padding:.85rem 0; border-top:1px solid var(--line,rgba(20,35,50,.12)); }
.mobile-observation p { margin:.3rem 0 0; }
.mobile-submit-bar { position:sticky; bottom:0; display:flex; justify-content:flex-end; gap:.7rem; padding:1rem 0; background:var(--surface,#fff); }
.search-results { display:grid; max-height:220px; overflow:auto; border-radius:8px; }
.search-result { text-align:left; padding:.65rem .75rem; border:1px solid var(--line,rgba(20,35,50,.12)); background:transparent; cursor:pointer; }
.search-result span { display:block; font-size:.8rem; opacity:.7; }
.mobile-drafts { margin:1rem 0; }
.draft-resume { width:100%; display:flex; justify-content:space-between; gap:1rem; text-align:left; padding:.8rem; background:transparent; border:1px solid var(--line,rgba(20,35,50,.12)); }
@media (max-width:720px) {
  .mobile-match-grid { grid-template-columns:1fr; }
  .mobile-match-grid .full { grid-column:auto; }
  .mobile-report-shell .record-form { padding-bottom:5rem; }
  .mobile-submit-bar { margin:0 -.25rem; padding:.8rem .25rem; }
  .mobile-submit-bar button { flex:1; }
}

.build-version {
  margin-top: 0.35rem;
  color: var(--muted, #697386);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
