.tense-cheatsheet-page-head {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f4f7f9, #fff);
  border-bottom: 1px solid var(--line);
}
@media(max-width:700px){.tense-cheat-sheet-row .tense-cheat-card{flex:0 0 calc((100% - 10px)/2)}.tense-cheat-sheet-row{scroll-snap-type:x proximity}}

.tense-cheatsheet-page-head small {
  display: block;
  margin-bottom: 5px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tense-cheatsheet-page-head h3 {
  margin: 0;
  color: var(--navy);
  font: 600 25px/1.2 Georgia, serif;
}

.tense-cheatsheet-page-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Approved redesigned cheatsheet: visible color coding and complete auxiliary/imperative tables. */
.tense-cheatsheet-standalone{border:1px solid #eadbc5;border-radius:14px;background:#fffdf9;overflow:hidden;box-shadow:0 8px 24px rgba(30,48,68,.06)}
.tense-cheatsheet-page-head{padding:28px 30px 20px;background:#fffdf9;border-bottom:0;text-align:center}
.tense-cheatsheet-page-head small{color:#c45d39}.tense-cheatsheet-page-head h3{font-size:34px}.tense-cheatsheet-page-head p{font-size:15px}
.tense-cheatsheet-body{padding:0 22px 24px}
.tense-cheat-legend{justify-content:center;gap:12px;margin:0 0 18px}.tense-cheat-legend a{border:1px solid;padding:8px 14px;background:#fff!important;font-size:12px;font-weight:700;text-decoration:none;border-radius:99px;transition:background .15s ease,transform .15s ease}.tense-cheat-legend a:hover{transform:translateY(-1px)}.tense-cheat-legend a:focus-visible{outline:3px solid rgba(35,104,153,.3);outline-offset:2px}.tense-cheat-legend .legend-simple{border-color:#174f8a;color:#174f8a}.tense-cheat-legend .legend-simple:hover{background:#f1f7fd!important}.tense-cheat-legend .legend-compound{border-color:#d69a0a;color:#a56e00}.tense-cheat-legend .legend-compound:hover{background:#fff8e7!important}.tense-cheat-legend .legend-command{border-color:#c94f25;color:#b13f1c}.tense-cheat-legend .legend-command:hover{background:#fff1e9!important}
.tense-cheat-section{scroll-margin-top:120px}
.tense-cheat-section{border:1px solid;border-radius:12px;margin:0 0 12px;overflow:hidden}.tense-cheat-section>h3{display:flex;align-items:center;gap:10px;margin:0;padding:13px 18px;font:600 24px/1.2 Georgia,serif}.tense-cheat-section>h3 i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font:700 17px Georgia,serif;color:#fff;font-style:normal}.section-simple{border-color:#174f8a;background:#f4f8fc}.section-simple>h3{color:#123f70;border-left:7px solid #174f8a}.section-simple>h3 i{background:#174f8a}.section-compound{border-color:#d69a0a;background:#fffaf0}.section-compound>h3{color:#a56e00;border-left:7px solid #d69a0a}.section-compound>h3 i{background:#d69a0a}.section-command{border-color:#c94f25;background:#fff7f2}.section-command>h3{color:#ad421f;border-left:7px solid #c94f25}.section-command>h3 i{background:#c94f25}
.section-simple .tense-cheat-table-wrap{border:1px solid #a9c4e1;background:#fff;margin:0 12px 12px}.section-simple .tense-cheat-table thead th{background:#174f8a}.section-simple .tense-cheat-table tbody th{border-left-color:#174f8a}
.tense-cheat-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 12px 12px}.tense-cheat-card{border:1px solid #e5c878;border-radius:10px;background:#fffdf7;overflow:hidden}.tense-cheat-card h4{margin:0;padding:12px 14px;background:#fff4d7;color:#966500;font:600 18px Georgia,serif}.tense-cheat-card table,.tense-cheat-command-card table{width:100%;border-collapse:collapse;font-size:12px}.tense-cheat-card th,.tense-cheat-card td,.tense-cheat-command-card th,.tense-cheat-command-card td{padding:6px 8px;border-bottom:1px solid #f0e1b8;text-align:left}.tense-cheat-card th{width:43%;font-weight:500}.tense-cheat-card td b{color:#8b5d00}.tense-cheat-card p{margin:0;padding:9px 12px;color:#655b48;font-size:12px;border-top:1px solid #f0e1b8}.tense-cheat-command-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 12px 12px}.tense-cheat-command-card{border:1px solid #e4b39e;border-radius:10px;overflow:hidden;background:#fffdfb}.tense-cheat-command-card h4{margin:0;padding:11px 14px;background:#fde6da;color:#ae421f;font:600 18px Georgia,serif}.tense-cheat-command-card thead th{background:#c94f25;color:#fff;font-size:11px}.tense-cheat-command-card th,.tense-cheat-command-card td{text-align:center}.tense-cheat-command-card th:first-child,.tense-cheat-command-card td:first-child{text-align:left}.tense-cheat-command-card thead small{font-weight:400}.tense-cheat-command-card td b{color:#8d371d}.tense-cheat-command-note{border:1px solid #e4b39e;border-radius:10px;background:#fffdfb;padding:14px;color:#713a28;font-size:13px;line-height:1.55}.tense-cheat-command-note b{color:#ae421f}.tense-cheat-command-note p{margin:9px 0 0}.tense-cheat-irregular-section{border:1px solid #e4b39e;border-radius:12px;background:#fff1e8;padding:15px 16px}.tense-cheat-irregular-section>h3{margin:0 0 10px;color:#b14524;font:600 23px Georgia,serif}.tense-cheat-irregular-section .tense-cheat-irregulars{gap:14px 20px}.tense-cheat-irregular-section .tense-cheat-irregulars section{border-top-color:#e4b39e}.tense-cheat-irregular-section .tense-cheat-irregulars h4{color:#b14524}.tense-cheat-irregular-section .tense-cheat-footnote{background:#fffaf7;border:1px solid #efd0c2;margin-top:14px}
@media(max-width:900px){.tense-cheat-card-grid{grid-template-columns:1fr 1fr}.tense-cheat-command-grid{grid-template-columns:1fr}.tense-cheat-command-note{grid-column:1/-1}}
@media(max-width:560px){.tense-cheatsheet-page-head{padding:22px 16px 16px}.tense-cheatsheet-page-head h3{font-size:28px}.tense-cheatsheet-body{padding:0 12px 16px}.tense-cheat-section>h3{font-size:20px}.tense-cheat-card-grid{grid-template-columns:1fr}.section-simple .tense-cheat-table{min-width:900px}.tense-cheat-command-card table{font-size:11px}.tense-cheat-command-card th,.tense-cheat-command-card td{padding:6px 4px}}
/* Shared card-sheet layout: desktop rows, horizontally scrollable rows on mobile. */
.tense-cheat-card-grid.sheet-grid{display:block;padding:0 12px 12px}.tense-cheat-sheet-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}.tense-cheat-sheet-row:last-child{margin-bottom:0}.tense-cheat-card-grid.sheet-grid .tense-cheat-card{min-width:0}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card h4{font-size:15px;padding:9px 10px}.tense-cheat-card-grid.sheet-grid .tense-cheat-card table{font-size:10px}.tense-cheat-card-grid.sheet-grid .tense-cheat-card th,.tense-cheat-card-grid.sheet-grid .tense-cheat-card td{padding:5px 6px}.tense-cheat-card-grid.sheet-grid .tense-cheat-card td{text-align:right}.tense-cheat-card-grid.sheet-grid .tense-cheat-card b{font-size:11px}
@media(max-width:700px){.tense-cheat-sheet-row{display:flex;overflow-x:auto;gap:12px;padding:0 0 9px;scroll-snap-type:x mandatory}.tense-cheat-sheet-row .tense-cheat-card{flex:0 0 calc(100vw - 56px);scroll-snap-align:start}.tense-cheat-card-grid.sheet-grid .tense-cheat-card table{min-width:0}.tense-cheat-card-grid.sheet-grid .tense-cheat-card h4{font-size:14px;line-height:1.15}.tense-cheat-card-grid.sheet-grid .tense-cheat-card th,.tense-cheat-card-grid.sheet-grid .tense-cheat-card td{padding:6px 8px;font-size:11px;white-space:nowrap}.tense-cheat-card-grid.sheet-grid .tense-cheat-card b{font-size:11px}}

/* Visual worksheet treatment matching the compact mobile reference. */
.cheatsheet-visual-head{max-width:980px;margin:0 auto 18px;text-align:center}
.cheatsheet-visual-head .eyebrow{color:#d7a62a;letter-spacing:.18em}
.cheatsheet-visual-head .title{margin-bottom:8px}
.cheatsheet-visual-head .lead{max-width:760px;margin:0 auto}
.sheet-model-chip{display:inline-flex;align-items:center;gap:8px;margin:0 auto 10px;padding:9px 22px;border-radius:999px;background:#102d50;color:#fff;font:600 15px Georgia,serif;box-shadow:0 5px 12px rgba(16,45,80,.16)}
.sheet-model-chip::first-letter{color:#e3b43a}
.tense-cheatsheet-page-head h3{font-size:36px;letter-spacing:-.02em}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card{box-shadow:0 4px 12px rgba(30,48,68,.08);border-color:#e7c46b}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card h4{display:flex;align-items:center;gap:7px;min-height:42px;font-size:16px;background:#fff2cc}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card h4 i{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;background:#e8d5a0;color:#173655;font:700 16px Georgia,serif;font-style:normal}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card table{background:#fffdfa}
.tense-cheat-card-grid.sheet-grid{overflow:hidden}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card table{table-layout:auto;width:max-content;min-width:0;max-width:100%}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card table th:first-child{width:auto}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card table thead th{text-align:right}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card table thead th:first-child{text-align:left}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card thead th{background:#f7e7ba;color:#5d4b2d;font-size:10px;font-weight:800}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card th{color:#314452}
.tense-cheat-card-grid.sheet-grid .tense-cheat-card td b{color:#c36b1e}
.sheet-card-perfecto h4 i,.sheet-card-imperfecto h4 i{background:#d9e7d1!important;color:#365c42!important}
.sheet-card-indefinido h4 i,.sheet-card-imperativo h4 i{background:#f1c7b5!important;color:#6f321f!important}
.sheet-card-pluscuamperfecto h4 i,.sheet-card-futuro h4 i{background:#d4e1f1!important;color:#254b70!important}
.sheet-card-condicional h4 i{background:#ddd3ed!important;color:#53406d!important}
.sheet-card-gerundio h4 i{background:#d8e7d7!important;color:#365c42!important}
.sheet-row-scroll-hint{display:none}
.sheet-notes{margin:4px 22px 24px;padding:18px 20px;background:#fff8e8}
.sheet-notes .tense-cheat-irregulars{margin-top:10px}
@media(max-width:700px){
 .cheatsheet-visual-head .title{font-size:38px}
 .tense-cheatsheet-page-head{padding-top:20px}
 .tense-cheatsheet-page-head h3{font-size:28px}
 .sheet-model-chip{font-size:13px;padding:8px 16px}
 .tense-cheat-card-grid.sheet-grid .tense-cheat-card h4{min-height:54px;display:flex;align-items:center;font-size:11px;padding:6px 5px}
 .tense-cheat-card-grid.sheet-grid .tense-cheat-card h4 i{width:22px;height:22px;flex-basis:22px;font-size:12px}
 .sheet-row-scroll-hint{display:flex;align-items:center;justify-content:center;gap:7px;height:18px;color:#c89220;font:700 19px Georgia,serif}
 .sheet-notes{margin:4px 12px 16px;padding:15px 14px}
 .sheet-row-scroll-hint i{display:block;width:34px;height:4px;border-radius:4px;background:#eadfc4}
 .sheet-row-scroll-hint b{display:block;width:42px;height:5px;border-radius:4px;background:#d5a22d}
}
@media(max-width:700px){.tense-cheat-sheet-row .tense-cheat-card{flex-basis:58vw!important;max-width:58vw}.tense-cheat-card-grid.sheet-grid .tense-cheat-card table th:first-child{width:34%}.tense-cheat-card-grid.sheet-grid .tense-cheat-card td{overflow:hidden}}
@media(max-width:700px){.tense-cheat-sheet-row .tense-cheat-card{flex:0 0 58vw!important;max-width:58vw}.tense-cheat-sheet-row{scroll-snap-type:x proximity}}
.verb-center-explanation{margin-top:18px}.verb-center-explanation .conj-block{border-top:1px solid #eadfca;padding:12px 0}.verb-center-explanation .conj-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.verb-center-explanation .conj-block table{display:none}.verb-center-explanation .conj-head h4{margin:0}
.compact-cheatsheet{padding:18px 22px}.compact-cheatsheet-scroll{overflow-x:auto}.compact-cheatsheet table{width:100%;min-width:820px;border-collapse:separate;border-spacing:0;background:#fff}.compact-cheatsheet th,.compact-cheatsheet td{padding:10px 11px;border-bottom:1px solid #ead9a7;text-align:left;white-space:nowrap}.compact-cheatsheet thead th{background:#fff1c9;color:#76500b;font-weight:800}.compact-cheatsheet tbody th{color:#344b58;background:#fffdf8}.compact-cheatsheet td{color:#a9610e;font-weight:750}.compact-cheatsheet small{font-size:10px}.compact-compounds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.compact-compounds article{padding:14px;border:1px solid #ead9a7;border-radius:12px;background:#fffdf8}.compact-compounds h4{margin:0 0 7px;color:#76500b;font:600 18px Georgia,serif}.compact-compounds p{margin:0;color:#53656e;line-height:1.5}@media(max-width:700px){.compact-cheatsheet{padding:12px}.compact-compounds{grid-template-columns:1fr}}
