:root {
  --ink: #1F2937;
  --muted: #667085;
  --page: #f8fafc;
  --panel: #ffffff;
  --line: #e5e7eb;
  --blue: #2563EB;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --charcoal: #1F2937;
  --charcoal-soft: #334155;
  --gold: #F4B400;
  --gold-dark: #9a6b00;
  --gold-soft: #fff7d6;
  --red: #b9473c;
  --red-soft: #fae3df;
  --green: #26754f;
  --green-soft: #dfeee7;
  --shadow: 0 22px 60px rgba(31, 41, 55, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 12%, rgba(37,99,235,.12), transparent 28%),
    radial-gradient(circle at 8% 82%, rgba(244,180,0,.14), transparent 24%),
    var(--page);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(31,41,55,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,41,55,.045) 1px, transparent 1px),
    radial-gradient(circle at 8% 10%, rgba(244,180,0,.20), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(31,41,55,.18), transparent 34%),
    #f8fafc;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.login-screen::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -210px;
  bottom: -240px;
  border-radius: 8px;
  background: rgba(31,41,55,.08);
  transform: rotate(18deg);
  pointer-events: none;
}

.home-back-link {
  position: absolute;
  z-index: 5;
  top: 22px;
  left: 24px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-weight: 900;
}

.home-back-link:hover {
  background: rgba(31,41,55,.18);
  border-color: rgba(255,255,255,.24);
  color: #fff;
  transform: translateY(-1px);
}

.login-brand-panel {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 42px;
  color: #fff;
  background: linear-gradient(150deg, #2563EB 0%, #1d4ed8 58%, #1F2937 100%);
  overflow: hidden;
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .55;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 8px;
  background: rgba(244,180,0,.18);
  transform: rotate(18deg);
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.login-mini-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.login-mini-brand b {
  display: block;
  font-size: 1.35rem;
}

.login-mini-brand span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.68);
  font-weight: 700;
}

.login-hero-copy h1 {
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.login-hero-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.65;
}

.login-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.login-proof {
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
}

.login-proof strong {
  display: block;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.login-proof span {
  color: rgba(255,255,255,.75);
  line-height: 1.35;
}

.login-form-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 34px;
}

.login-card {
  width: min(100%, 460px);
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,231,235,.94);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(31,41,55,.14);
}

.login-card .pill {
  background: var(--gold-soft);
  color: var(--gold-dark);
  border: 1px solid rgba(244,180,0,.28);
}

.login-card h2 {
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0 0 8px;
}

.login-card p {
  color: var(--muted);
  line-height: 1.55;
}

.login-fields {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.login-input-wrap input {
  border: 0;
}

.login-toggle {
  border: 0;
  background: #fff;
  color: var(--charcoal);
  padding: 0 14px;
  font-weight: 900;
}

.login-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.login-row label {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  text-transform: none;
  font-size: .92rem;
  font-weight: 700;
}

.login-row input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.login-row a,
.login-request-link {
  color: var(--charcoal);
  font-weight: 900;
  text-decoration: none;
}

.login-submit {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(31,41,55,.22);
}

.login-submit:hover {
  background: #111827;
}

.login-submit:disabled {
  opacity: .68;
  cursor: wait;
}

.login-error {
  display: none;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.login-error.show {
  display: block;
}

.login-request-link {
  text-align: center;
  font-size: .92rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(244,180,0,.22);
}

.brand-logo {
  flex: 0 0 auto;
  width: 190px;
  height: 152px;
  max-width: 44vw;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  border: 1px solid rgba(31,41,55,.10);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.sidebar-logo {
  width: 108px;
  height: auto;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.brand-row h1 {
  font-size: 20px;
}

.brand-row p,
.account-card small,
.muted {
  color: var(--muted);
  font-size: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdfd;
  outline: 0;
}

.readonly-input {
  background: #eef2f7;
  border-color: #d8e0eb;
  color: var(--muted);
  cursor: not-allowed;
  font-weight: 900;
}

.select-hint {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.nav-button,
.account-card button {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37,99,235,.18);
}

.secondary-button {
  background: #e9eff0;
  color: var(--ink);
}

.danger-button {
  background: var(--red-soft);
  color: var(--red);
}

.icon-button {
  width: 40px;
  padding: 0;
  background: #e9eff0;
  color: var(--ink);
  font-size: 24px;
}

.error-text {
  min-height: 18px;
  color: var(--red);
  font-size: 13px;
}

.dialog-error {
  padding: 0 22px;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--charcoal);
  background-size: 44px 44px, 44px 44px, auto;
  color: #f6fbfa;
}

.sidebar .brand-row p,
.account-card small {
  color: #b8cacb;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-link,
.nav-button {
  text-align: left;
  background: transparent;
  color: #d7e7e6;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
}

.nav-link:hover,
.nav-button.active,
.nav-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.home-link {
  background: rgba(244,180,0,.14);
  color: #fff7d6;
}

.account-card {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.account-card span {
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: normal;
}

.account-card small {
  font-size: .78rem;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

.account-card button {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar h2 {
  font-size: 26px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-actions input {
  width: min(320px, 34vw);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric-card,
.panel,
.table-panel,
.audit-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.metric-card span:last-child {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.stack,
.audit-list {
  display: grid;
  gap: 10px;
}

.item-card,
.plan-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.item-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.item-card.clickable,
.plan-card.clickable {
  cursor: pointer;
}

.item-card.clickable:hover,
.plan-card.clickable:hover,
tbody tr:hover {
  background: #f3faf9;
}

.date-tile {
  padding: 9px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  text-align: center;
}

.date-tile strong {
  display: block;
  font-size: 18px;
}

.date-tile span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.item-card h4,
.plan-card h4 {
  margin: 0;
  font-size: 15px;
}

.item-card p,
.plan-card p,
.audit-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.pending {
  background: var(--gold-soft);
  color: var(--gold);
}

.pill.missing {
  background: var(--red-soft);
  color: var(--red);
}

.pill.done {
  background: var(--green-soft);
  color: var(--green);
}

.date-light {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 136px;
}

.date-light strong,
.date-light small {
  display: block;
}

.date-light strong {
  color: var(--ink);
}

.date-light small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.date-light-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(102, 112, 133, .10);
}

.date-light.done .date-light-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.date-light.pending .date-light-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.date-light.missing .date-light-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.doc-check-grid {
  display: grid;
  gap: 6px;
  min-width: 230px;
}

.doc-tick {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 850;
  gap: 7px;
  line-height: 1.25;
}

.doc-tick span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 18px;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.doc-tick.done {
  color: var(--green);
}

.doc-tick.done span {
  background: var(--green-soft);
}

.doc-tick.missing span {
  background: #eef2f7;
  color: #94a3b8;
}

.table-panel {
  overflow: auto;
  max-height: calc(100vh - 112px);
}

.subsection-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 16px;
  padding: 14px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  background: #f8fbfb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr {
  cursor: pointer;
}

.planner-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.planner-toolbar label {
  width: min(260px, 100%);
}

.planner-board,
.calendar-board {
  display: grid;
  gap: 14px;
  align-items: start;
}

.monthly-calendar,
.weekly-calendar {
  grid-template-columns: 1fr;
}

.yearly-calendar {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.calendar-panel,
.year-month {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.calendar-head,
.year-month-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-head h3,
.year-month h3 {
  margin: 0;
  font-size: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-weekdays {
  margin-bottom: 1px;
  border-bottom: 0;
  background: #dfe8eb;
}

.calendar-weekdays span {
  min-height: 34px;
  display: grid;
  place-items: center;
  background: #f7fafb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.week-grid {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow-x: auto;
}

.calendar-day {
  min-height: 150px;
  padding: 9px;
  background: #fbfdfd;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.calendar-day.empty {
  background: #f1f5f6;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.calendar-day-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.calendar-day-head strong {
  color: var(--ink);
}

.calendar-events,
.year-month-events {
  display: grid;
  gap: 6px;
}

.calendar-event {
  width: 100%;
  border: 1px solid #dbeafe;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink);
  padding: 7px;
  text-align: left;
  display: grid;
  gap: 3px;
}

.calendar-event.plan-only {
  border-left-color: var(--gold);
  background: var(--gold-soft);
}

.calendar-event strong,
.calendar-event span,
.calendar-event small {
  overflow-wrap: anywhere;
}

.calendar-event strong {
  font-size: 12px;
  line-height: 1.25;
}

.calendar-event span,
.calendar-event small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.year-month {
  min-height: 220px;
}

.audit-card {
  padding: 14px;
}

dialog {
  width: min(860px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(31, 41, 55, 0.42);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h3 {
  font-size: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 22px;
  max-height: 68vh;
  overflow: auto;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.check-editor {
  display: grid;
  gap: 10px;
}

.file-field {
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fbfdfd;
}

.file-field input[type="file"] {
  background: #fff;
}

.file-current {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.file-ready {
  display: grid;
  gap: 4px;
}

.file-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.file-link,
.file-current a {
  align-items: center;
  background: rgba(37, 99, 235, .1);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 6px;
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  padding: 5px 9px;
  text-decoration: none;
  width: fit-content;
}

.secondary-file-link {
  background: #fff;
  border-color: #dbe3ef;
  color: var(--ink);
}

.file-delete {
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .22);
  color: #b91c1c;
}

.file-pick-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

.file-pick-row input[type="file"] {
  flex: 1 1 220px;
  min-width: 0;
}

.file-upload-ok {
  flex: 0 0 auto;
}

.file-upload-ok:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.file-link:hover,
.file-current a:hover {
  text-decoration: underline;
}

.contact-with-action,
.wa-action-list {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-with-action {
  flex-direction: column;
}

.whatsapp-link,
.wa-missing {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  line-height: 1;
  padding: 6px 8px;
  text-decoration: none;
  white-space: nowrap;
}

.whatsapp-link {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .24);
  color: #15803d;
}

.whatsapp-link:hover {
  text-decoration: underline;
}

.wa-missing {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--muted);
}

.trainer-wa-action {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  line-height: 1.1;
  padding: 6px 8px;
  text-decoration: none;
}

.trainer-wa-action small {
  font-size: 10px;
  font-weight: 900;
  opacity: .82;
}

.trainer-wa-action.done {
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, .26);
  color: #15803d;
}

.trainer-wa-action.done::after {
  content: "✓";
}

.trainer-wa-action.pending {
  background: var(--gold-soft);
  border: 1px solid rgba(244, 180, 0, .34);
  color: #8a5f00;
}

.trainer-wa-action.missing {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.trainer-wa-action.muted {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--muted);
}

.trainer-wa-action.disabled {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: .72;
}

.trainer-wa-action[href]:hover {
  text-decoration: underline;
}

.wa-icon {
  border-radius: 5px;
  display: inline-block;
  flex: 0 0 18px;
  height: 18px;
  object-fit: cover;
  width: 18px;
}

.file-ready small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.suggested-trainer-list {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.suggested-trainer-list span {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 700;
  gap: 8px;
  line-height: 1.25;
}

.suggested-trainer-list strong {
  align-items: center;
  background: color-mix(in srgb, var(--blue) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, #fff);
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  padding: 4px 7px;
  text-transform: uppercase;
}

.trainer-picker {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

#suggestedTrainerRows {
  display: grid;
  gap: 8px;
}

.trainer-pick-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 112px minmax(0, 1fr);
}

.trainer-check {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  margin: 0;
  text-transform: none;
}

.trainer-check input {
  accent-color: var(--blue);
  height: 18px;
  width: 18px;
}

.file-current small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.file-current span,
.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.upload-progress {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.upload-progress-track {
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.upload-progress-bar {
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width .18s ease;
  width: 0;
}

.upload-progress-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.upload-progress.upload-done .upload-progress-bar {
  background: #16a34a;
}

.upload-progress.upload-done .upload-progress-label {
  color: #166534;
}

.upload-progress.upload-error .upload-progress-bar {
  background: #dc2626;
}

.upload-progress.upload-error .upload-progress-label {
  color: #991b1b;
}

#checklistRows {
  display: grid;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
}

.full-span {
  grid-column: 1 / -1;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
}

.spacer {
  flex: 1;
}

@media (max-width: 1080px) {
  .login-screen {
    grid-template-columns: 1fr;
    background:
      linear-gradient(rgba(31,41,55,.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(31,41,55,.045) 1px, transparent 1px),
      radial-gradient(circle at 8% 10%, rgba(244,180,0,.20), transparent 30%),
      radial-gradient(circle at 88% 8%, rgba(31,41,55,.18), transparent 34%),
      #f8fafc;
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
  }

  .login-brand-panel {
    padding: 82px 24px 28px;
  }

  .login-brand-inner {
    gap: 28px;
  }

  .login-proof-grid {
    grid-template-columns: 1fr;
  }

  .login-form-panel {
    padding: 24px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 16px;
  }

  nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .account-card {
    margin-top: 0;
  }

  .metric-grid,
  .grid-two,
  .planner-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .login-mini-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: min(190px, 72vw);
    height: auto;
  }

  .workspace {
    padding: 14px;
  }

  .topbar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions input {
    width: 100%;
  }

  .metric-grid,
  .grid-two,
  .planner-board,
  .yearly-calendar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid,
  .week-grid {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays {
    display: none;
  }

  .item-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .item-card .pill {
    grid-column: 2;
    justify-self: start;
  }

  .trainer-pick-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}
