body.portal { line-height: 1.6; }
.c4-shell { max-width: 860px; margin: auto; padding: 24px 16px 56px; }
.c4-tool { margin: 22px 0 36px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.c4-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 8px; max-width: 500px; background: #224b9b; border-radius: 12px; }
/* Column marks share the grid's columns, so each result sits above its column. */
.c4-marks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 0 8px 6px; max-width: 500px; }
.c4-mark { min-width: 0; min-height: 44px; padding: 2px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--text); font: 700 13px/1.15 inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.c4-mark small { font-size: 11px; font-weight: 700; }
.c4-mark.win { background: #dcf1df; border-color: #3f9a52; color: #1d5a2a; } .c4-mark.draw { background: #ecebe6; color: #4b4a44; } .c4-mark.loss { background: #f8dcdc; border-color: #c95050; color: #7c2121; }
.c4-mark.best { box-shadow: 0 0 0 3px var(--accent); } .c4-mark:disabled { opacity: .45; cursor: default; }
.c4-cell { min-width: 0; padding: 0; aspect-ratio: 1; border: 2px solid #17346d; border-radius: 50%; background: #f4f2e9; cursor: pointer; touch-action: manipulation; }
.c4-v1 { background: #d33838; } .c4-v2 { background: #f3c82f; }
.c4-cell:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.c4-controls { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.c4-chip { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); cursor: pointer; }
.c4-chip[aria-pressed="true"] { background: var(--accent); color: white; }
.c4-status { min-height: 2em; } .c4-result { border-top: 1px solid var(--line); margin-top: 20px; }
.c4-best { font-weight: bold; color: var(--accent-strong); } .c4-faq details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.c4-article h2 { margin-top: 30px; } [hidden] { display: none !important; }
