.grammar-guide {
  --g-ink: #243f39;
  --g-green: #285b48;
  --g-muted: #5e7067;
  --g-line: #dce3d9;
  --g-paper: #fffef9;
  color: var(--g-ink);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.grammar-guide *, .grammar-guide *::before, .grammar-guide *::after { box-sizing: border-box; }
.grammar-guide [hidden] { display: none !important; }
.grammar-guide h1, .grammar-guide h2, .grammar-guide h3, .grammar-guide h4, .grammar-guide h5 { color: var(--g-ink); font-weight: 800; line-height: 1.5; }
.grammar-guide h3 { font-size: 1.35rem; margin: 7px 0 12px; }
.grammar-guide h4 { font-size: 1.08rem; }
.grammar-guide p { margin: 0 0 16px; }
.grammar-guide button, .grammar-guide select { font: inherit; }
.grammar-guide button { cursor: pointer; }
.grammar-guide button:disabled { cursor: default; }
.grammar-guide button:focus-visible, .grammar-guide a:focus-visible, .grammar-guide summary:focus-visible, .grammar-guide select:focus-visible, .grammar-guide [tabindex]:focus-visible { outline: 3px solid #d28f21; outline-offset: 4px; }
.grammar-guide [tabindex="-1"]:focus { outline: none; }
.grammar-guide a { color: #28624d; text-underline-offset: 4px; }
.g-page-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: -4px 0 20px; font-size: .8rem; color: var(--g-muted); }
.g-back { padding: 8px 0; text-decoration: none; font-weight: 700; }
.g-hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 370px; background: #f6f4e9; border: 1px solid #e4e2d4; border-radius: 24px; overflow: hidden; position: relative; }
.g-hero-copy { padding: 42px 0 36px 42px; position: relative; z-index: 1; }
.g-kicker { font-family: system-ui, sans-serif; color: #577265; font-size: .7rem; letter-spacing: .16em; font-weight: 800; }
.g-tiny-star { color: #b88629; margin-right: 7px; font-size: 1rem; }
.g-hero h1 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); margin: 14px 0 20px; letter-spacing: -.025em; }
.g-hero h1 > span { display: block; font-size: .79em; color: #658070; margin-top: 6px; }
.g-hero-copy > p:not(.g-kicker) { font-size: .9rem; line-height: 2; color: #586c60; }
.g-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.g-button { border: 1px solid #becdc1; border-radius: 9px; padding: 10px 18px; min-height: 44px; background: var(--g-paper); color: var(--g-green); font-weight: 700 !important; font-size: .86rem !important; transition: background .15s, transform .15s; }
.g-button:hover:not(:disabled) { background: #edf3ea; transform: translateY(-1px); }
.g-button:disabled { opacity: .42; }
.g-button.g-primary { background: var(--g-green); border-color: var(--g-green); color: white; box-shadow: 0 4px 0 #173b2e; }
.g-button.g-primary:hover { background: #204d3c; }
.g-primary span { margin-left: 18px; }
.g-text-button { border: 0; border-radius: 4px; padding: 8px 0; background: none; color: var(--g-green); font-weight: 700 !important; font-size: .8rem !important; text-align: left; min-height: 44px; }
.g-text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 5px; }
.g-text-button:disabled { color: #7c847b; }
.g-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .7rem; color: #667364; margin-top: 23px; }
.g-hero-meta span::before { content: "✓"; margin-right: 5px; }
.g-hero-art { min-width: 0; position: relative; min-height: 360px; align-self: stretch; }
.g-orbit { width: 85%; aspect-ratio: 1; border-radius: 50%; position: absolute; right: 6%; top: 6%; background: #e4ead7; border: 1px solid #d2ddc4; box-shadow: 0 0 0 17px #efefde, 0 0 0 18px #e1e5d1; }
.g-hero-art img { position: absolute; mix-blend-mode: multiply; object-fit: contain; filter: drop-shadow(0 12px 6px #42543212); }
.g-hero-dragon { width: 76%; height: 86%; left: -4%; bottom: 8%; transform: rotate(-4deg); }
.g-hero-wolf { width: 57%; height: 76%; right: -2%; bottom: 7%; transform: rotate(5deg); }
.g-art-word { position: absolute; z-index: 1; font-family: Georgia, serif; font-style: italic; background: #fffef6; padding: 3px 16px; border: 1px solid #d5decc; border-radius: 8px; box-shadow: 0 4px 10px #3d51300c; font-size: 1.3rem; }
.g-art-word-one { left: 3%; top: 16%; transform: rotate(-10deg); color: #427661; }
.g-art-word-two { right: 8%; top: 7%; transform: rotate(9deg); color: #b9664e; }
.g-art-word-three { right: 7%; bottom: 21%; transform: rotate(-5deg); font-family: inherit; font-size: .78rem; font-weight: 700; }
.g-art-caption { position: absolute; bottom: 6%; left: 15%; font-family: Georgia, serif; font-style: italic; color: #728269; font-size: .88rem; }
.g-route-map { display: flex; align-items: center; justify-content: space-around; gap: 10px; padding: 23px 12px 30px; color: #536958; font-size: .8rem; }
.g-route-map b { margin-right: 6px; font-family: Georgia, serif; color: #889e79; }
.g-route-map i { font-style: normal; color: #a8b5a0; }
.g-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 36px; align-items: start; }
.g-sidebar { position: sticky; top: 92px; }
.g-sidebar nav > .g-kicker { margin: 0 0 12px 13px; }
.g-chapter-link { display: flex; gap: 13px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 12px; background: transparent; border: 1px solid transparent; border-radius: 10px; color: #557162; margin: 0 0 5px; }
.g-chapter-link:hover { background: #f1f5ec; }
.g-chapter-link[aria-current] { background: #e9f0e3; border-color: #d4e0c9; color: #234e3c; }
.g-chapter-number { font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.2; color: #8fa584; }
.g-chapter-link[aria-current] .g-chapter-number { color: #32694d; }
.g-chapter-link strong { display: block; font-size: .86rem; }
.g-chapter-link small { display: block; font-size: .69rem; color: #708170; }
.g-nav-status { display: block; font-size: .65rem; margin-top: 4px; color: #69815e; }
.g-progress { padding: 18px 14px; border-top: 1px solid #dce2d3; margin-top: 21px; }
.g-progress > div > span { display: block; font-size: .7rem; color: var(--g-muted); }
.g-progress strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1.5; }
.g-progress strong small { font-family: "Yu Gothic", "Meiryo", sans-serif; font-size: .7rem; font-weight: normal; }
.g-progress progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; background: #dce5d7; accent-color: #5e8b59; }
.g-progress progress::-webkit-progress-bar { background: #dce5d7; }
.g-progress progress::-webkit-progress-value { background: #5e8b59; border-radius: 10px; }
.g-progress progress::-moz-progress-bar { background: #5e8b59; }
.g-progress p { font-size: .7rem; margin: 10px 0 0; }
.g-storage { color: #6b766b; font-size: .66rem; padding: 0 14px; line-height: 1.7; }
.g-sidebar-tip { display: flex; align-items: center; gap: 5px; background: #f3f0e5; border-radius: 12px; padding: 8px 4px; margin-top: 22px; }
.g-sidebar-tip img { object-fit: contain; mix-blend-mode: multiply; width: 60px; height: 75px; }
.g-sidebar-tip p { font-size: .63rem; margin: 0; }
.g-lesson { min-width: 0; background: var(--g-paper); border: 1px solid var(--g-line); border-radius: 18px; padding: 32px; box-shadow: 0 8px 40px #2d493507; }
.g-chapter-header { padding-bottom: 26px; border-bottom: 1px solid #e9e9df; margin-bottom: 25px; }
.g-chapter-header .g-kicker { display: flex; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.g-chapter-header .g-kicker span { font-size: .67rem; letter-spacing: normal; font-weight: normal; }
.g-chapter-header h2 { margin: 0; font-size: 1.8rem; scroll-margin-top: 88px; }
.g-chapter-header h2 > span { display: block; font-size: .46em; font-weight: 500; color: var(--g-muted); margin-top: 7px; }
.g-note { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: #eff4e8; border-left: 3px solid #8bab72; border-radius: 0 10px 10px 0; font-size: .84rem; margin: 22px 0; }
.g-note > span { color: #86a363; font-size: 1.3rem; line-height: 1.4; }
.g-note strong { display: block; font-size: .91rem; margin-bottom: 5px; }
.g-note p { margin: 0; color: #53624e; }
.g-comic { margin: 30px 0 36px; padding: 0; }
.g-comic figcaption { display: flex; flex-wrap: wrap; align-items: center; column-gap: 13px; margin: 0 0 10px; }
.g-comic figcaption h3 { font-size: 1rem; margin: 0; }
.g-comic figcaption > span:last-child { font-size: .63rem; color: #7a8175; width: 100%; margin-top: 5px; }
.g-comic-open { display: block; width: 100%; border: 1px solid #dddccf; background: #fcfaf0; padding: 0; overflow: hidden; border-radius: 10px; text-align: center; }
.g-comic-open img { display: block; width: 100%; height: auto; }
.g-comic-open > span { display: block; padding: 8px 12px; color: #51674d; font-size: .72rem; }
.g-comic-open:hover > span { background: #eaf0df; }
.g-transcript { font-size: .76rem; border-bottom: 1px solid #e9e9df; padding: 10px 0; color: #63715e; }
.g-transcript summary { cursor: pointer; padding: 6px; min-height: 36px; }
.g-transcript ol { padding-left: 28px; margin: 12px 0; }
.g-transcript li { margin-bottom: 10px; }
.g-section-heading { margin-bottom: 20px; }
.g-section-heading > p { color: var(--g-muted); font-size: .83rem; }
.g-lesson > section { margin: 36px 0; }
.g-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g-mint { --g-tint: #e5efe2; --g-tone: #356447; }
.g-coral { --g-tint: #f9e8df; --g-tone: #a64f36; }
.g-gold { --g-tint: #f8efd2; --g-tone: #856319; }
.g-lavender { --g-tint: #eeebf6; --g-tone: #685689; }
.g-sky { --g-tint: #e5eef2; --g-tone: #3e7183; }
.g-part-card { display: grid; grid-template-columns: 30px 1fr; text-align: left; align-items: center; gap: 8px; border: 1px solid #e4e6da; border-radius: 10px; background: #fcfcf7; padding: 12px; color: var(--g-ink); position: relative; }
.g-part-card:hover { border-color: var(--g-tone); }
.g-part-card[aria-pressed="true"] { border-color: var(--g-tone); background: var(--g-tint); box-shadow: inset 0 0 0 1px var(--g-tone); }
.g-part-icon { display: inline-flex; justify-content: center; align-items: center; width: 31px; height: 33px; background: var(--g-tint); color: var(--g-tone); border-radius: 7px; font-size: .88rem; font-weight: 800; }
.g-part-card strong { font-size: .88rem; line-height: 1.4; }
.g-part-card strong small { display: block; font-family: Georgia, serif; font-style: italic; font-weight: normal; color: #6a7768; font-size: .67rem; }
.g-part-card > span:last-child { grid-column: 1 / -1; font-size: .65rem; color: #68735f; }
.g-definition { background: #f5f6ed; border: 1px solid #dfe6d7; border-radius: 12px; padding: 24px; margin: 15px 0 0; font-size: .88rem; }
.g-definition-title { display: flex; gap: 12px; align-items: center; margin-bottom: 13px; }
.g-definition-title h4 { margin: 0; }
.g-definition-title small { margin-left: 10px; font-family: Georgia, serif; font-style: italic; font-weight: normal; color: #7a8471; }
.g-word-examples { font-size: .78rem; color: #52654c; }
.g-example { padding: 15px 18px; border-radius: 9px; background: white; border: 1px solid #e5e6dd; margin: 16px 0; }
.g-example > p { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 600; line-height: 1.5; margin: 0 0 5px; color: #2d443b; overflow-wrap: anywhere; }
.g-example > span { font-size: .75rem; color: var(--g-muted); }
.g-example mark { color: #244e34; background: #d9e8b7; padding: 0 3px; border-radius: 2px; }
.g-tip { font-size: .76rem; color: #607153; margin: 12px 0 0 !important; }
.g-tip b { font-size: .7rem; padding-right: 7px; color: #3f6346; }
.g-lab { background: #f8f9f3; border: 1px solid #e0e5d7; border-radius: 13px; padding: 24px; }
.g-lab-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.g-lab-tools label { flex: 1 1 220px; font-size: .7rem; color: var(--g-muted); }
.g-lab-tools select { display: block; min-height: 44px; width: 100%; max-width: 100%; border: 1px solid #d7dece; background: white; padding: 9px; border-radius: 7px; color: var(--g-ink); font-size: .85rem; margin-top: 4px; }
.g-switch { display: flex; gap: 3px; border: 1px solid #d5dfcf; border-radius: 9px; padding: 3px; background: #e9eee1; flex-shrink: 0; }
.g-switch button { border: 0; border-radius: 6px; background: transparent; color: #5d7057; padding: 7px 12px; font-size: .75rem; min-height: 38px; }
.g-switch button[aria-pressed="true"] { background: white; box-shadow: 0 1px 5px #38522b18; color: #28503b; font-weight: 700; }
.g-tokens { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 7px 0; }
.g-token { display: flex; flex-direction: column; gap: 4px; align-items: center; background: var(--g-tint); color: var(--g-tone); border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; min-height: 71px; }
.g-token > span { font: 600 1.3rem Georgia, serif; }
.g-token > small { font-size: .63rem; }
button.g-token[aria-pressed="true"] { border-color: var(--g-tone); box-shadow: 0 2px 0 var(--g-tone); }
.g-period { font: 2rem Georgia, serif; color: #74856c; }
.g-translation { color: #60715c; font-size: .79rem; margin: 14px 0 !important; }
.g-token-detail { display: flex; flex-wrap: wrap; gap: 15px 24px; align-items: center; border-top: 1px dashed #cdd8c3; border-bottom: 1px dashed #cdd8c3; padding: 16px 0; margin: 19px 0 14px; }
.g-token-detail > strong { font: 600 1.5rem Georgia, serif; }
.g-token-detail > span { font-size: .8rem; }
.g-token-detail small { display: block; font-size: .61rem; color: #74806c; }
.g-small { font-size: .74rem; color: var(--g-muted); line-height: 1.85; margin-bottom: 0 !important; }
.g-details { border: 1px solid #e1e5d7; border-radius: 9px; margin: 16px 0; background: #fcfcf7; font-size: .83rem; }
.g-details summary { padding: 15px 18px; cursor: pointer; color: #4d6546; font-weight: 700; min-height: 48px; }
.g-details[open] summary { border-bottom: 1px solid #e8eade; }
.g-details > div, .g-details > ul { padding: 18px; margin: 0; color: #5c6a55; }
.g-details > ul { padding-left: 35px; }
.g-details > div > p:last-child { margin-bottom: 0; }
.g-role-list { display: grid; gap: 0; }
.g-role-list > div { display: flex; align-items: flex-start; gap: 17px; padding: 17px 0; border-bottom: 1px solid #ebebdf; }
.g-role-letter { display: inline-flex; width: 41px; height: 43px; flex-shrink: 0; justify-content: center; align-items: center; background: var(--g-tint); color: var(--g-tone); border-radius: 9px; font: bold 1.3rem Georgia, serif; }
.g-role-list h4 { font-size: .93rem; margin: 0 0 4px; }
.g-role-list h4 small { display: inline-block; font-size: .71rem; font-weight: 500; color: #677760; margin-left: 8px; }
.g-role-list p { font-size: .79rem; color: #68735e; margin: 0; }
.g-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.g-chip { border: 1px solid #dbe1d0; border-radius: 8px; padding: 9px 17px; background: #fffef9; color: #567149; min-height: 44px; font-size: .83rem !important; }
.g-chip:hover { border-color: #8caa72; }
.g-chip[aria-pressed="true"] { border-color: #537348; background: #e8eedc; box-shadow: inset 0 0 0 1px #537348; color: #2b5030; }
.g-chip small { display: block; font-size: .66rem; color: #6a7a5e; margin-top: 2px; }
.g-pattern-title { margin: 24px 0 12px; }
[data-g-pattern-detail] > p:last-child { font-size: .84rem; margin-bottom: 0; }
.g-tense-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.g-tense-options .g-chip { padding: 12px 7px; font-size: .78rem !important; }
.g-time-scene { padding: 35px 20px 25px; margin: 20px 0; background: #edf2e3; border-radius: 10px; }
.g-time-line { position: relative; display: flex; justify-content: space-between; margin: 14px 20px; height: 5px; background: #becdb3; }
.g-time-line i { position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 50%; border: 3px solid #bac9af; background: #edf2e3; margin-top: -4px; }
.g-time-line b { position: absolute; width: 24px; height: 24px; background: #437044; border: 5px solid #d0e0b8; border-radius: 50%; top: -10px; left: calc(50% - 12px); z-index: 2; }
.g-time-labels { display: flex; justify-content: space-between; gap: 10px; margin-top: 25px; font-size: .72rem; color: #617452; }
.g-time-labels span { width: 33.33%; text-align: center; }
.g-time-labels span:first-child { text-align: left; }
.g-time-labels span:last-child { text-align: right; }
.g-time-past .g-time-line b { left: -5px; }
.g-time-future .g-time-line b { left: calc(100% - 19px); }
.g-time-repeat .g-time-line { background: repeating-linear-gradient(90deg, #789565 0 16px, transparent 16px 25px); }
.g-time-repeat .g-time-line i { background: #57834d; border-color: #b3c69d; }
.g-time-repeat .g-time-line b { display: none; }
.g-time-now .g-time-line b { box-shadow: 0 0 0 8px #73965125; }
.g-time-connection .g-time-line::before, .g-time-ongoing .g-time-line::before { content: ""; position: absolute; width: 50%; background: #618849; height: 7px; top: -1px; }
.g-time-ongoing .g-time-line::before { height: 14px; top: -4px; background: repeating-linear-gradient(110deg, #70965a 0 5px, #abc18d 5px 10px); border-radius: 7px; }
.g-formula { color: #517140; font-size: .74rem; font-weight: 700; letter-spacing: .02em; border-radius: 5px; background: #eaf0df; padding: 8px 11px; margin: 14px 0 !important; }
[data-g-tense-detail] > p:not(.g-formula) { font-size: .86rem; }
.g-table-wrap { overflow-x: auto; border: 1px solid #e1e5d7; border-radius: 10px; }
.g-table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .84rem; }
.g-table th, .g-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #e6e8dd; }
.g-table thead { background: #edf2e5; color: #526b41; font-size: .72rem; }
.g-table tbody th { color: #46693e; background: #f4f6ed; }
.g-table tbody tr:last-child > * { border-bottom: 0; }
.g-table-wrap + .g-small { margin-top: 13px; }
.g-advanced-times > p { border-bottom: 1px solid #e5e8db; padding-bottom: 18px; }
.g-advanced-times > p:last-child { border-bottom: 0; padding: 0; margin: 0; }
.g-advanced-times b, .g-advanced-times code, .g-advanced-times small { display: block; }
.g-advanced-times code { font-family: Georgia, serif; color: #3a6340; font-size: 1rem; margin: 5px 0; overflow-wrap: anywhere; }
.g-advanced-times small { font-size: .72rem; color: #7b846d; margin-top: 7px; }
.g-compare-options { display: flex; flex-wrap: wrap; gap: 9px; }
.g-compare-options .g-chip { flex: 1 1 150px; padding: 12px; }
.g-compare-options .g-chip strong { font-family: Georgia, serif; font-size: .96rem; }
.g-compare-question { font-size: 1.06rem !important; margin: 28px 0 16px; }
.g-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.g-compare-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g-compare-card { --compare-color: #477649; --compare-tint: #edf3e5; border: 1px solid #dce4d1; border-top: 4px solid var(--compare-color); border-radius: 10px; padding: 20px 17px 16px; min-width: 0; }
.g-compare-color-1 { --compare-color: #b47936; --compare-tint: #f6eddb; }
.g-compare-color-2 { --compare-color: #677c99; --compare-tint: #eaf0f6; }
.g-compare-title { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.g-compare-title h5 { font: 700 2rem Georgia, serif; color: var(--compare-color); margin: 0 0 7px; }
.g-compare-title > span { font-size: .65rem; white-space: nowrap; color: #78806d; }
.g-compare-card > strong { font-size: .75rem; color: var(--compare-color); }
.g-compare-card .g-formula { font-size: .7rem; background: var(--compare-tint); color: var(--compare-color); min-height: 45px; display: flex; align-items: center; }
.g-compare-card .g-example { padding: 10px 0; border: 0; }
.g-compare-card .g-example > p { font-size: 1.12rem; }
.g-compare-card .g-example > span { font-size: .7rem; }
.g-compare-card > p:last-child { font-size: .77rem; margin: 13px 0 0; }
.g-diagram { background: var(--compare-tint); border-radius: 7px; padding: 22px 10px 10px; margin: 20px 0; min-height: 112px; }
.g-diagram-drawing { position: relative; height: 30px; margin: 0 7px; display: flex; justify-content: space-between; align-items: center; }
.g-diagram-drawing::before { content: ""; position: absolute; height: 3px; background: var(--compare-color); opacity: .35; left: 0; right: 0; top: 13px; }
.g-diagram-drawing i { width: 12px; height: 12px; border: 3px solid var(--compare-color); border-radius: 50%; background: var(--compare-tint); position: relative; z-index: 1; }
.g-diagram-drawing b { position: absolute; top: 8px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--compare-color); }
.g-diagram-labels { display: flex; justify-content: space-between; gap: 4px; color: var(--compare-color); font-size: .6rem; margin-top: 10px; }
.g-diagram-labels span { flex: 1; text-align: center; }
.g-diagram-labels span:first-child { text-align: left; }
.g-diagram-labels span:last-child { text-align: right; }
.g-diagram-interval .g-diagram-drawing { border-radius: 4px; background: #92b07945; border: 1px solid #75975c60; }
.g-diagram-interval .g-diagram-drawing::before { display: none; }
.g-diagram-interval .g-diagram-drawing i { visibility: hidden; }
.g-diagram-endpoints .g-diagram-drawing b { width: calc(100% - 28px); left: 14px; height: 5px; top: 12px; border-radius: 0; }
.g-diagram-duration .g-diagram-drawing b { left: 0; width: 100%; height: 17px; top: 7px; border-radius: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--compare-color) calc(10% - 2px) 10%); border-bottom: 2px solid var(--compare-color); }
.g-diagram-duration .g-diagram-drawing i { display: none; }
.g-diagram-parallel .g-diagram-drawing::before { top: 3px; height: 8px; border-radius: 5px; opacity: .65; }
.g-diagram-parallel .g-diagram-drawing b { top: 21px; left: 0; width: 100%; height: 8px; border-radius: 5px; }
.g-diagram-parallel .g-diagram-drawing i { display: none; }
.g-diagram-inside .g-diagram-drawing, .g-diagram-surface .g-diagram-drawing, .g-diagram-point .g-diagram-drawing { width: 58px; height: 40px; margin: 0 auto; border: 2px solid var(--compare-color); border-radius: 4px; }
.g-diagram-inside .g-diagram-drawing::before, .g-diagram-surface .g-diagram-drawing::before, .g-diagram-point .g-diagram-drawing::before { display: none; }
.g-diagram-inside i, .g-diagram-surface i, .g-diagram-point i { display: none; }
.g-diagram-inside b { top: 11px; }
.g-diagram-surface .g-diagram-drawing { height: 30px; margin-top: 10px; border-bottom: 0; border-radius: 0; }
.g-diagram-surface b { top: -13px; height: 11px; width: 27px; left: 13px; border-radius: 2px; }
.g-diagram-point .g-diagram-drawing { border: 0; }
.g-diagram-point b { transform: rotate(-45deg); border-radius: 50% 50% 50% 0; width: 25px; height: 25px; left: 17px; top: 0; border: 5px solid var(--compare-color); background: var(--compare-tint); }
.g-diagram-notice .g-diagram-drawing::before { background: repeating-linear-gradient(90deg, var(--compare-color) 0 6px, transparent 6px 12px); opacity: .7; }
.g-diagram-focus .g-diagram-drawing b, .g-diagram-follow .g-diagram-drawing b { height: 0; width: 0; border: 8px solid transparent; border-left-color: var(--compare-color); border-radius: 0; left: calc(100% - 17px); top: 7px; background: none; }
.g-diagram-follow .g-diagram-drawing::after { content: "› › ›"; color: var(--compare-color); position: absolute; left: 27%; top: -15px; letter-spacing: 5px; font-weight: bold; }
.g-diagram-message b { width: 43px; height: 25px; left: calc(50% - 21px); top: 0; border-radius: 8px 8px 8px 0; }
.g-diagram-recipient .g-diagram-drawing i:last-child { width: 24px; height: 24px; background: var(--compare-color); box-shadow: 0 0 0 5px #bd955333; }
.g-recipe { background: #f4f1e5; border: 1px solid #e8e1cb; border-radius: 11px; padding: 24px; }
.g-vocab-recipe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.g-vocab-recipe > span { padding: 12px 15px; background: #fffdf4; border: 1px solid #e4dfca; border-radius: 7px; flex: 1; min-width: 100px; }
.g-vocab-recipe small { display: block; font-size: .63rem; color: #837e61; }
.g-vocab-recipe b { font-size: .88rem; }
.g-vocab-recipe i { font-style: normal; color: #a29671; }
.g-recipe > p { font-size: .8rem; margin-bottom: 0; }
.g-quiz { background: #f6f5ed; border: 1px solid #e5e4d4; border-radius: 13px; padding: 25px; scroll-margin-top: 85px; }
.g-quiz-header { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.g-quiz-header h3 { margin-bottom: 8px; }
.g-quiz-header p { font-size: .76rem; color: #778069; margin: 0; }
.g-quiz-medal { display: flex; align-items: center; justify-content: center; font: italic 2.5rem Georgia, serif; border: 2px solid #d6c795; border-radius: 50%; color: #b29142; background: #f3ebd1; width: 60px; height: 60px; flex-shrink: 0; }
.g-quiz-tools { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 20px 0 13px; padding-top: 12px; border-top: 1px dashed #d9ddcd; }
.g-quiz-tools > span { font-size: .73rem; color: #727b64; }
.g-quiz-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.g-quiz-field legend { float: none; width: auto; padding: 0; margin: 0 0 17px; font-size: .98rem; font-weight: 700; line-height: 1.7; }
.g-choices { display: grid; gap: 9px; }
.g-choice { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; border: 1px solid #dfe1d3; border-radius: 9px; background: #fffef9; padding: 13px 15px; font-size: .84rem !important; color: var(--g-ink); min-height: 51px; }
.g-choice > span { width: 25px; height: 25px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; border: 1px solid #dbdfcd; border-radius: 5px; font: .75rem Georgia, serif; color: #6e7d5b; }
.g-choice > b { margin-left: auto; font-size: 1rem; }
.g-choice:hover:not(:disabled) { border-color: #6d8c5b; background: #f0f5e6; }
.g-choice.g-correct { border-color: #6d9965; background: #e8f2df; color: #315634; }
.g-choice.g-incorrect { border-color: #c89871; background: #faeee2; color: #865337; }
.g-feedback { padding: 15px 0; margin-top: 8px; font-size: .77rem; color: #7b826e; min-height: 55px; }
.g-feedback > strong { display: block; margin-bottom: 7px; }
.g-feedback > p { margin-bottom: 0; }
.g-feedback-correct, .g-feedback-retry { border: 1px solid #cfdfc1; background: #eef5e6; border-radius: 9px; color: #476239; padding: 16px; margin: 15px 0; }
.g-feedback-retry { border-color: #e5d3b3; background: #fbf0dc; color: #866234; }
.g-quiz-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.g-quiz-pagination > span { display: flex; gap: 5px; }
.g-quiz-pagination .g-button { font-size: .73rem !important; padding: 8px 11px; }
.g-question-dot { min-height: 38px; min-width: 33px; border: 1px solid #d4dcc5; border-radius: 7px; font-size: .73rem !important; background: #fffef9; color: #5c7151; padding: 3px 6px; }
.g-question-dot[aria-current] { outline: 2px solid #72895e; outline-offset: 2px; }
.g-question-dot.g-dot-correct { background: #dceacb; }
.g-question-dot.g-dot-wrong { background: #f2dfbd; }
.g-quiz-complete { background: #e7eecd; border-radius: 8px; text-align: center; font-size: .8rem; color: #4e6b35; padding: 13px; margin: 20px 0 0 !important; }
.g-read-row { text-align: center; padding: 6px 0 22px; }
.g-read-row p { font-size: .68rem; color: #7a856c; margin: 8px 0 0; }
.g-read-row button[aria-pressed="true"] { background: #eaf2de; border-color: #99b47b; font-size: .76rem !important; }
.g-chapter-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e6e9dc; padding-top: 22px; }
.g-achievement { text-align: center; margin: 30px 0; border: 1px solid #c9d6b7; background: #eef3df; border-radius: 20px; padding: 30px; }
.g-achievement > span { font-size: 3rem; color: #b09948; }
.g-achievement h2 { font-size: 1.4rem; }
.g-achievement p { margin: 12px 0 0; font-size: .85rem; color: #677755; }
.g-footer { text-align: center; padding: 35px 0 0; color: #6d7d61; }
.g-footer > span { font-family: "Yu Mincho", Georgia, serif; font-size: 1rem; }
.g-footer > p { font-size: .66rem; margin: 13px 0 0; }
.g-footer > .g-details { width: min(560px, 100%); margin: 18px auto 0; text-align: left; font-size: .72rem; }
.g-zoom { width: min(1350px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 18px; border: 1px solid #98ab8b; border-radius: 15px; color: var(--g-ink); background: #fffef7; box-shadow: 0 20px 90px #18291c66; }
.g-zoom::backdrop { background: #152b23bf; backdrop-filter: blur(5px); }
.g-zoom-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 13px; }
.g-zoom-bar h2 { font-size: 1rem; margin: 0; }
.g-zoom-bar .g-button { white-space: nowrap; }
.g-zoom-scroll { max-height: 74dvh; overflow: auto; border-radius: 6px; }
.g-zoom-scroll img { display: block; width: 100%; min-width: 780px; height: auto; }
.g-zoom > p { font-size: .7rem; margin: 10px 0 0; }

@media (min-width: 1000px) {
  .g-compare-count-3 .g-compare-card { padding: 17px 12px; }
  .g-compare-count-3 .g-compare-title h5 { font-size: 1.7rem; }
}
@media (max-width: 1000px) {
  .g-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .g-lesson { padding: 25px; }
  .g-hero-copy { padding: 30px 0 30px 28px; }
  .g-hero-art { min-height: 340px; }
  .g-hero-actions { gap: 5px; }
  .g-hero h1 { font-size: 1.85rem; }
  .g-hero h1 > span { font-size: .76em; }
  .g-compare-count-3 { grid-template-columns: 1fr; }
  .g-compare-count-3 .g-compare-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .g-compare-count-3 .g-compare-title, .g-compare-count-3 .g-compare-card > strong, .g-compare-count-3 .g-compare-card .g-formula, .g-compare-count-3 .g-compare-card > p:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .g-page-top { font-size: .69rem; }
  .g-hero { min-height: 0; grid-template-columns: 1fr .65fr; border-radius: 17px; }
  .g-hero h1 { font-size: 1.65rem; }
  .g-hero h1 > span { font-size: .7em; }
  .g-hero-copy { padding: 25px 0 25px 23px; }
  .g-hero-copy > p:not(.g-kicker) { font-size: .76rem; }
  .g-hero-art { min-height: 320px; }
  .g-orbit { top: 26%; }
  .g-hero-dragon { width: 102%; height: 67%; left: -14%; bottom: 19%; }
  .g-hero-wolf { width: 74%; height: 52%; bottom: 12%; right: -5%; }
  .g-art-word-one { top: 15%; left: 5%; font-size: 1rem; }
  .g-art-word-two { top: 28%; right: 3%; font-size: 1rem; }
  .g-art-word-three { display: none; }
  .g-art-caption { left: 2%; right: 5%; bottom: 5%; text-align: center; font-size: .68rem; }
  .g-hero-actions .g-button { font-size: .76rem !important; padding: 10px 13px; }
  .g-hero-actions .g-text-button { font-size: .68rem !important; }
  .g-hero-meta { font-size: .6rem; gap: 6px 10px; }
  .g-route-map { font-size: .69rem; gap: 6px; padding: 20px 0; flex-wrap: wrap; }
  .g-route-map b { margin-right: 3px; }
  .g-layout { display: block; }
  .g-sidebar { position: static; }
  .g-sidebar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0 0 16px; }
  .g-sidebar nav > .g-kicker { grid-column: 1 / -1; margin: 2px 0 3px; }
  .g-chapter-link { display: block; margin: 0; padding: 12px 10px; border-color: #dce4d2; background: #f8faf2; }
  .g-chapter-number { display: block; font-size: 1.3rem; margin-bottom: 6px; }
  .g-chapter-link strong { font-size: .75rem; }
  .g-chapter-link small { display: none; }
  .g-nav-status { font-size: .6rem; }
  .g-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border: 0; padding: 0; margin: 0; }
  .g-progress > div > span { font-size: .65rem; }
  .g-progress strong { font-size: 1.25rem; }
  .g-progress progress { flex: 1; width: auto; min-width: 70px; }
  .g-progress p { margin: 0; font-size: .68rem; }
  .g-storage { padding: 0; font-size: .61rem; margin: 10px 0 22px !important; }
  .g-sidebar-tip { display: none; }
  .g-lesson { padding: 26px; }
  .g-chapter-header h2 { font-size: 1.65rem; scroll-margin-top: 132px; }
  .g-compare-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-compare-count-3 .g-compare-card { display: block; padding: 16px 11px; }
  .g-compare-title h5 { font-size: 1.7rem; }
}
@media (max-width: 540px) {
  .g-page-top > span { display: none; }
  .g-page-top { margin: -10px 0 9px; }
  .g-hero { grid-template-columns: 1fr; }
  .g-hero-copy { padding: 25px 23px 16px; }
  .g-hero-copy > .g-kicker { margin-bottom: 12px; }
  .g-hero h1 { font-size: 1.7rem; margin-top: 8px; }
  .g-hero h1 > span { font-size: .72em; }
  .g-hero-copy > p:not(.g-kicker) { font-size: .8rem; }
  .g-hero-actions { margin-top: 18px; }
  .g-hero-meta { margin-top: 14px; }
  .g-hero-art { min-height: 195px; max-height: 195px; background: linear-gradient(transparent, #e9edde); }
  .g-orbit { width: 55%; top: 2%; right: 23%; }
  .g-hero-dragon { width: 59%; height: 117%; left: 6%; bottom: 1%; transform: rotate(-3deg); }
  .g-hero-wolf { width: 43%; height: 108%; right: 7%; bottom: -2%; transform: rotate(4deg); }
  .g-art-word-one { left: 8%; top: 10%; }
  .g-art-word-two { right: 7%; top: 14%; }
  .g-art-caption { display: none; }
  .g-route-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; font-size: .68rem; padding: 18px 7px 23px; }
  .g-route-map i { display: none; }
  .g-sidebar nav { gap: 5px; }
  .g-chapter-link { padding: 10px 7px; border-radius: 8px; }
  .g-chapter-link strong { font-size: .65rem; letter-spacing: -.04em; }
  .g-chapter-number { font-size: 1.2rem; }
  .g-lesson { padding: 21px 16px; border-radius: 13px; }
  .g-chapter-header h2 { font-size: 1.45rem; scroll-margin-top: 132px; }
  .g-chapter-header h2 > span { font-size: .53em; }
  .g-chapter-header { margin-bottom: 18px; padding-bottom: 19px; }
  .g-chapter-header .g-kicker span { font-size: .59rem; }
  .g-note { padding: 15px 12px; gap: 9px; font-size: .875rem; margin: 18px 0; }
  .g-note strong { font-size: .83rem; }
  .g-note > span { font-size: 1rem; }
  .g-comic { margin: 25px -4px 29px; }
  .g-comic figcaption h3 { font-size: .91rem; }
  .g-comic figcaption .g-kicker { font-size: .6rem; }
  .g-transcript { font-size: .73rem; }
  .grammar-guide h3 { font-size: 1.1rem; }
  .g-section-heading > p { font-size: .76rem; }
  .g-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .g-part-card { padding: 11px 10px; gap: 8px; }
  .g-part-card strong { font-size: .83rem; }
  .g-part-card > span:last-child { font-size: .61rem; }
  .g-definition { padding: 18px 15px; font-size: .875rem; }
  .g-example { padding: 13px; }
  .g-example > p { font-size: 1.2rem; }
  .g-lab { padding: 19px 14px; }
  .g-lab-tools { gap: 13px; }
  .g-switch { width: 100%; }
  .g-switch button { flex: 1; min-height: 42px; }
  .g-tokens { gap: 7px; }
  .g-token { padding: 9px 10px; }
  .g-token > span { font-size: 1.2rem; }
  .g-token-detail { gap: 12px 20px; }
  .g-token-detail > strong { flex-basis: 100%; font-size: 1.4rem; }
  .g-token-detail > span { font-size: .74rem; }
  .g-role-list h4 small { display: block; margin: 5px 0 0; }
  .g-tense-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-tense-options .g-chip { padding: 11px 6px; font-size: .74rem !important; }
  .g-time-scene { padding: 20px 12px; }
  .g-time-labels { font-size: .61rem; }
  .g-table th, .g-table td { padding: 10px; }
  .g-compare-options .g-chip { flex-basis: 120px; }
  .g-compare-options .g-chip strong { font-size: .9rem; }
  .g-compare-grid, .g-compare-count-3 { grid-template-columns: 1fr; gap: 15px; }
  .g-compare-card, .g-compare-count-3 .g-compare-card { padding: 20px; }
  .g-compare-title h5 { font-size: 2rem; }
  .g-compare-card > strong { font-size: .81rem; }
  .g-compare-card .g-example > p { font-size: 1.3rem; }
  .g-compare-card > p:last-child { font-size: .875rem; }
  .g-diagram { padding: 22px 17px 13px; }
  .g-diagram-labels { font-size: .66rem; }
  .g-compare-question { font-size: .98rem !important; }
  .g-recipe { padding: 20px 15px; }
  .g-vocab-recipe { gap: 6px; }
  .g-vocab-recipe > span { padding: 10px; min-width: 65px; }
  .g-vocab-recipe b { font-size: .71rem; }
  .g-quiz { padding: 20px 14px; }
  .g-quiz-header p { font-size: .72rem; }
  .g-quiz-medal { width: 46px; height: 46px; font-size: 2rem; }
  .g-quiz-tools { flex-wrap: wrap; gap: 0 10px; }
  .g-quiz-field legend { font-size: .86rem; }
  .g-choice { padding: 13px 10px; gap: 10px; font-size: .78rem !important; }
  .g-feedback { font-size: .74rem; }
  .g-quiz-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .g-quiz-pagination > span { grid-column: 1 / -1; grid-row: 1; justify-content: center; gap: 8px; }
  .g-question-dot { min-height: 44px; min-width: 44px; }
  .g-chapter-pagination { flex-direction: column; align-items: stretch; gap: 10px; }
  .g-chapter-pagination .g-button { font-size: .77rem !important; }
  .g-zoom { padding: 12px; }
  .g-zoom-bar h2 { font-size: .82rem; }
  .g-zoom-bar .g-button { padding: 8px 12px; font-size: .73rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .grammar-guide *, .grammar-guide *::before, .grammar-guide *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .g-hero, .g-sidebar, .g-route-map, .g-page-top, .g-quiz, .g-chapter-pagination, .g-read-row, .g-zoom, .g-comic-open > span { display: none !important; }
  .g-layout { display: block; }
  .g-lesson { border: 0; box-shadow: none; padding: 0; }
  .g-comic { break-inside: avoid; }
  .g-compare-grid, .g-parts { break-inside: avoid; }
}
