:root {
  --ink: #1c2430;
  --ink-soft: #5b6573;
  --paper: #eef2f6;
  --paper-2: #fffdfb;
  --line: #d5dde8;
  --navy: #1d4e89;
  --navy-deep: #13355e;
  --gold: #e8b923;
  --gold-soft: #f6e3a1;
  --teal: #2f6f6a;
  --sky: #3d6ea8;
  --ok: #2e7d4f;
  --bad: #b42318;
  --shadow: 0 14px 36px rgba(29, 78, 137, 0.1);
  --radius: 18px;
  --header-h: 4.25rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: "Source Code Pro", "SF Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(29, 78, 137, 0.12), transparent 52%),
    radial-gradient(800px 380px at 100% 0%, rgba(232, 185, 35, 0.16), transparent 46%),
    linear-gradient(180deg, #f7f9fc 0%, var(--paper) 42%, #e4ebf3 100%);
  line-height: 1.65;
  font-size: 1.02rem;
}

#main {
  flex: 1 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: calc(var(--safe-top) + 0.6rem);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: calc(0.55rem + var(--safe-top)) 11.5rem 0.55rem 1rem;
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.star-summary {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.1rem 0 calc(2rem + var(--safe-bottom));
}

.hero {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.hero .lead {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.mode-tabs {
  display: inline-flex;
  background: #e4ebf3;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.mode-tab {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
  font-family: inherit;
}

.mode-tab[aria-selected="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid #c5d6ea;
  background: #eef4fb;
  color: #24486c;
  font-size: 0.95rem;
}

.banner p {
  margin: 0;
}

.banner-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.panel h2 {
  margin: 0 0 0.7rem;
  font-size: 1.12rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.kcard {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}

.kcard h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.kcard p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.kcard:nth-child(1) { border-left-color: var(--navy); }
.kcard:nth-child(2) { border-left-color: var(--gold); }
.kcard:nth-child(3) { border-left-color: var(--teal); }

details.cheat {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

details.cheat summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--teal);
  list-style: none;
}

details.cheat summary::-webkit-details-marker {
  display: none;
}

.table-wrap {
  overflow-x: auto;
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.88rem;
}

.cheat-table th,
.cheat-table td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.cheat-table th {
  background: #eef3f8;
}

.motto {
  color: var(--navy);
  font-weight: 800;
}

.tutorial-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.tutor-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.tutor-steps li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e4ebf3;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.tutor-steps li.is-on {
  background: var(--sky);
  color: #fff;
}

.tutor-steps li.is-done {
  background: #dceee3;
  color: var(--ok);
}

#tutorial-desc {
  margin: 0.4rem 0 0.8rem;
}

#tutorial-align-hint {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 0.6rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 0 var(--navy-deep);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--navy-deep);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: #e4ebf3;
  color: var(--ink);
  box-shadow: 0 6px 0 #c5d0de;
}

.btn-sky {
  background: var(--sky);
  box-shadow: 0 6px 0 #2a507c;
}

.btn-ok {
  background: var(--ok);
  box-shadow: 0 6px 0 #1e5a38;
}

.btn-gold {
  background: var(--gold);
  color: #3a2a00;
  box-shadow: 0 6px 0 #b48d12;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.view-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.view-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.view-frame {
  background: #162033;
  color: #f3efe6;
  border-radius: 16px;
  min-height: 300px;
  padding: 1rem;
  overflow: auto;
}

.story-box {
  background: #eef4fb;
  border: 1px solid #c5d6ea;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
  color: #24486c;
  font-weight: 700;
}

.story-box p {
  margin: 0;
}

.chip-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip-card,
.group-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  min-width: 7.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.chip-card.is-off {
  opacity: 0.45;
  border-style: dashed;
}

.chip-card.is-unknown {
  border-color: var(--gold);
  background: #fffbeb;
}

.chip-top,
.group-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.chip-card input,
.group-card input {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
}

.chip-tools {
  display: flex;
  gap: 0.3rem;
}

.mini {
  appearance: none;
  border: 1px solid var(--line);
  background: #f4f7fb;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 0.65rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--navy);
}

.mini.is-on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.chip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
}

.stage-box {
  margin-top: 1rem;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.stage-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-weight: 800;
}

.val-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.85rem;
  color: var(--navy);
}

.stage-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stage-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  min-height: 52px;
  min-width: 5.1rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
}

.stage-chip em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.stage-chip span {
  font-size: 0.88rem;
  font-weight: 800;
}

.stage-chip.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.stage-chip.is-on em {
  color: #cfe0f5;
}

.stage-chip.is-done {
  background: var(--gold-soft);
  border-color: #e0c36a;
}

.stage-caption {
  margin: 0.65rem 0 0;
  color: #3d5674;
  font-size: 0.9rem;
  font-weight: 700;
}

.presets {
  margin: 0 0 1rem;
}

.presets-label {
  margin: 0 0 0.5rem;
  font-weight: 800;
  color: var(--navy);
}

.preset-grid,
#preset-btns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.preset-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  min-height: 64px;
  padding: 0.65rem 0.7rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
}

.preset-btn strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

.preset-btn span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
}

.preset-btn.is-on {
  border-color: var(--navy);
  background: #eef4fb;
  box-shadow: inset 0 0 0 1px var(--navy);
}

.preset-btn.is-on strong {
  color: var(--navy);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bar-plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.45rem;
  min-height: 110px;
  padding: 1.1rem 0.2rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
}

.bar-labels {
  display: flex;
  justify-content: space-around;
  gap: 0.45rem;
}

.mean-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed #e8b923;
  pointer-events: none;
}

.mean-line span {
  position: absolute;
  right: 0;
  top: -1.2rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #e8b923;
}

.bar-col,
.bar-labels .bar-label {
  flex: 1;
  max-width: 4.2rem;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 100px;
}

.bar-val {
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
  color: #f6e3a1;
}

.bar {
  width: 100%;
  max-width: 2.2rem;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(#8eb6e4, #3d6ea8);
  min-height: 4px;
}

.bar-col.is-off .bar {
  background: rgba(255, 255, 255, 0.16);
  border: 1px dashed rgba(255, 255, 255, 0.28);
}

.bar-col.is-unknown .bar {
  background: repeating-linear-gradient(
    135deg,
    #e8b923,
    #e8b923 6px,
    #f6e3a1 6px,
    #f6e3a1 12px
  );
}

.bar-label {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c5d0de;
  text-align: center;
  line-height: 1.25;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.9rem;
}

.share-piece {
  min-width: 3.4rem;
  background: rgba(232, 185, 35, 0.16);
  border: 1px solid rgba(232, 185, 35, 0.45);
  color: #f6e3a1;
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.share-caption,
.formula-caption {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: #c5d0de;
  text-align: center;
}

.formula-box {
  display: grid;
  gap: 0.8rem;
}

.frac-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  text-align: center;
}

.frac {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.55rem 0.4rem;
}

.frac strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  line-height: 1.15;
}

.frac-bar {
  display: block;
  height: 2px;
  margin: 0.25rem auto;
  width: 70%;
  background: #e8b923;
}

.frac em,
.eq-mark,
.result-mark {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #9aabbf;
}

.eq-mark,
.result-mark {
  font-size: 1.6rem;
  font-weight: 900;
  color: #e8b923;
}

.frac.is-lit {
  outline: 2px solid #e8b923;
  outline-offset: 3px;
}

.model-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.model-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
}

.model-card.is-bad {
  border-color: rgba(180, 35, 24, 0.45);
}

.model-card.is-ok {
  border-color: rgba(46, 125, 79, 0.55);
}

.model-card p {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.eyebrow {
  margin: 0;
  color: #3d5674;
  font-weight: 800;
  font-size: 0.82rem;
}

.game-toolbar {
  margin-top: 0.35rem;
}

.game-answer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.7rem 1rem;
}

.game-answer-row .field {
  margin-top: 0;
}

.game-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.game-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.game-tools-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.field input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.7rem;
  font-size: 1.05rem;
  font-family: inherit;
  width: 8rem;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: min(100%, 22rem);
}

.choice {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  min-height: 44px;
  font-family: inherit;
  cursor: pointer;
}

.choice.is-on {
  border-color: var(--navy);
  background: #eef4fb;
  font-weight: 700;
}

.choice.is-ok {
  background: #d4edda;
  border-color: var(--ok);
}

.choice.is-bad {
  background: #f8d7da;
  border-color: var(--bad);
}

.game-start,
.game-result {
  text-align: center;
  padding: 1.4rem 1rem;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.2rem;
  text-align: left;
}

.diff-card {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.diff-card em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
}

.diff-card strong {
  display: block;
  margin: 0.15rem 0 0.2rem;
  font-size: 1rem;
}

.diff-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.diff-card.is-on {
  border-color: var(--navy);
  background: #eef4fb;
  box-shadow: inset 0 0 0 1px var(--navy);
}

.game-expr {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin: 0.2rem 0 0.8rem;
  line-height: 1.5;
}

.game-result-stars {
  font-size: 2rem;
  margin: 0 0 0.3rem;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.pill {
  background: #eef4fb;
  color: var(--navy);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.88rem;
}

.feedback {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  font-weight: 700;
}

.feedback.is-ok { color: var(--ok); }
.feedback.is-bad { color: var(--bad); }

#game-mission-hint {
  color: #8a5a22;
  font-weight: 700;
}

.wrong-list {
  text-align: left;
  max-width: 36rem;
  margin: 0.8rem auto 1rem;
  padding: 0;
  list-style: none;
}

.wrong-list li {
  background: #eef3f8;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
}

.site-footer {
  text-align: center;
  padding: 1.1rem 1rem calc(1.2rem + var(--safe-bottom));
  color: var(--ink-soft);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--navy);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.2rem + var(--safe-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  z-index: 80;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .cards,
  .sim-grid,
  .model-pair,
  .diff-grid,
  .preset-grid,
  #preset-btns {
    grid-template-columns: 1fr 1fr;
  }

  .brand-text strong {
    font-size: 0.86rem;
  }

  .star-summary {
    display: none;
  }

  .hero h1 {
    font-size: 1.28rem;
  }
}

@media (max-width: 640px) {
  .game-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .game-tools-main,
  .game-primary {
    width: 100%;
  }

  #game-end-btn {
    width: 100%;
  }

  .frac-line {
    grid-template-columns: 1fr;
  }

  .stage-chip {
    min-width: 4.4rem;
  }

  .preset-grid,
  #preset-btns {
    grid-template-columns: 1fr;
  }
}


.am-board {
  text-align: left;
}

.am-board-intro {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 0.9rem;
}

.am-board-mine,
.am-board-status {
  background: #fff8e8;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.85rem;
  color: #6a4d00;
  font-weight: 700;
}

.am-board-status.is-ok {
  background: #eef7f0;
  border-color: #b7dcc2;
  color: var(--ok);
}

.am-board-status.is-bad {
  background: #eef4fb;
  border-color: #c5d6ea;
  color: var(--navy-deep);
}

.am-board-table-wrap {
  overflow-x: auto;
}

.am-board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.am-board-table th,
.am-board-table td {
  padding: 0.65rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.am-board-table th {
  background: #eef4fb;
  color: var(--navy-deep);
  font-weight: 800;
}

.am-board-table tr.is-me {
  background: #eef4fb;
  font-weight: 800;
}

.am-board-empty,
.am-board-error {
  padding: 1.2rem 0.6rem;
  color: var(--ink-soft);
}

.am-board-login {
  margin: 0.9rem 0 0;
  font-weight: 700;
}

.am-board-login a {
  color: var(--sky);
}

.am-board-actions {
  margin-top: 0.9rem;
}

@media (max-width: 860px) {
  .site-header {
    padding-right: 1rem;
  }
}
