:root {
  --magenta: #a76f98;
  --magenta-deep: #94517f;
  --magenta-light: #d9bfd3;
  --magenta-pale: #fcf9fb;
  --text: #3f3d49;
  --muted: #696571;
  --line: #d9d4dc;
  --paper: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; scroll-behavior: smooth; }
body { height: 100%; margin: 0; overflow: hidden; color: var(--text); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 1.45; }
body.intro-page { min-height: 100vh; display: flex; flex-direction: column; }
body.intro-page .topbar { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); }
body.intro-page .logo-space,
body.intro-page .user-tools { display: none; }
body.intro-page .app-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
body.intro-page .user-panel { display: none; }
body.intro-page .main-panel { display: grid; padding: 0; place-items: center; overflow: hidden; }
.project-intro { display: grid; width: 100%; height: 100%; place-content: center; text-align: center; }
.project-intro h1 { margin: 0; color: var(--magenta); font-size: 34px; font-weight: 700; }
.project-intro p { margin: 12px 0 0; color: var(--text); font-size: 17px; }
.project-intro p:last-child { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
button, input { font: inherit; }
button { color: inherit; }
.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; }

.topbar { height: 66px; display: grid; grid-template-columns: 250px minmax(460px, 1fr) 220px; align-items: center; border-bottom: 1px solid var(--magenta-light); }
.logo-space { width: 150px; height: 34px; margin-left: 38px; }
.search { position: relative; display: flex; align-items: center; width: min(68%, 620px); height: 36px; justify-self: center; border: 1px solid var(--magenta-light); border-radius: 9px; }
.search-icon { width: 17px; height: 17px; margin: 0 17px; padding: 0; background: transparent; border: 1.5px solid var(--magenta); border-radius: 50%; position: relative; flex: 0 0 auto; cursor: pointer; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 1.5px; right: -6px; bottom: -3px; background: var(--magenta); transform: rotate(45deg); transform-origin: left center; }
.search input { width: 100%; height: 100%; padding: 0 18px 0 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 13px; }
.search input::placeholder { color: #555264; opacity: 1; }
.user-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-right: 38px; color: var(--magenta); }
.icon-button, .account-button { border: 0; background: transparent; cursor: pointer; }
.icon-button { position: relative; width: 24px; height: 24px; transform: scale(.75); }
.moon::before { content: ""; position: absolute; width: 23px; height: 23px; left: 1px; top: 2px; border: 2px solid var(--magenta); border-radius: 50%; }
.moon::after { content: ""; position: absolute; width: 22px; height: 22px; left: 9px; top: -1px; background: white; border-radius: 50%; }
.bell::before { content: ""; position: absolute; width: 18px; height: 21px; left: 6px; top: 4px; border: 2px solid var(--magenta); border-radius: 10px 10px 4px 4px; }
.bell::after { content: ""; position: absolute; width: 24px; height: 2px; left: 3px; top: 24px; background: var(--magenta); box-shadow: 10px 4px 0 -1px var(--magenta); }
.account-button { display: flex; align-items: center; gap: 10px; color: var(--magenta); font-size: 12px; font-weight: 600; white-space: nowrap; }
.account-icon { position: relative; width: 27px; height: 27px; border: 1.5px solid var(--magenta); border-radius: 50%; }
.account-icon::before { content: ""; position: absolute; width: 7px; height: 7px; left: 8px; top: 5px; border: 1.5px solid var(--magenta); border-radius: 50%; }
.account-icon::after { content: ""; position: absolute; width: 15px; height: 8px; left: 4px; bottom: 3px; border: 1.5px solid var(--magenta); border-radius: 10px 10px 6px 6px; }
.down { width: 9px; height: 9px; border-right: 2px solid var(--magenta); border-bottom: 2px solid var(--magenta); transform: rotate(45deg); margin: -5px 0 0 3px; }

.app-layout { display: grid; grid-template-columns: 250px minmax(660px, 1fr) 220px; height: calc(100vh - 66px); min-height: 0; overflow: hidden; }
.left-panel { position: relative; display: flex; min-height: 0; flex-direction: column; padding: 63px 31px 30px 38px; overflow: hidden; border-right: 1px solid var(--line); }
.primary-nav { display: grid; gap: 53px; }
.nav-item, .footer-link { justify-self: start; padding: 0; color: var(--magenta); background: transparent; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.nav-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.nav-item span:first-child { white-space: nowrap; }
.nav-label { display: inline-block; padding-bottom: 0; border-bottom: 1px dotted var(--magenta-light); line-height: 1.15; }
.primary-nav .nav-label { color: var(--magenta-deep); }
.external-icon { position: relative; width: 16px; height: 16px; border: 2px solid var(--magenta); }
.external-icon::before { content: ""; position: absolute; width: 8px; height: 8px; right: -3px; top: -3px; background: white; border-top: 2px solid var(--magenta); border-right: 2px solid var(--magenta); }
.external-icon::after { content: ""; position: absolute; width: 9px; height: 2px; right: -1px; top: 3px; background: var(--magenta); transform: rotate(-45deg); }
.left-divider { margin-top: 67px; border-top: 1px solid var(--line); }
.project-footer { margin-top: auto; color: var(--magenta); }
.footer-link { padding-bottom: 0; border-bottom: 1px dotted var(--magenta-light); font-size: 13px; font-weight: 500; line-height: 1.15; }
.project-footer p { margin: 42px 0 0; color: #353244; font-size: 12px; line-height: 1.6; }

.main-panel { min-height: 0; padding: 41px 59px 60px; overflow-y: auto; overflow-x: hidden; scrollbar-color: var(--magenta-light) var(--magenta-pale); scrollbar-width: auto; scrollbar-gutter: stable; }
.main-panel::-webkit-scrollbar { width: 12px; }
.main-panel::-webkit-scrollbar-track { background: var(--magenta-pale); }
.main-panel::-webkit-scrollbar-thumb { min-height: 44px; background: var(--magenta-light); border: 2px solid var(--magenta-pale); border-radius: 999px; }
.main-panel::-webkit-scrollbar-thumb:hover { background: var(--magenta); }
.term-header { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--magenta-light); }
.main-panel h1 { display: flex; align-items: baseline; gap: 4px; margin: 3px 0 0; color: var(--text); font-size: 13px; font-weight: 400; }
.main-panel h1 strong { color: var(--magenta-deep); font-size: 23px; line-height: 1; }
.main-panel h1 span { font-size: 12px; }
.main-panel h1 em { font-weight: 400; }
.entry-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.entry-card { display: flex; min-height: 57px; padding: 2px 0 0; flex-direction: column; text-align: left; background: transparent; border: 0; }
.entry-card:hover { background: transparent; }
.entry-card-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; color: var(--magenta-deep); background: transparent; border: 0; cursor: pointer; text-align: left; }
.entry-card-heading strong { padding-bottom: 0; border-bottom: 1px dotted var(--magenta-light); font-size: 15px; line-height: 1.15; }
.entry-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.entry-links a { color: var(--magenta-deep); text-decoration: none; line-height: 1.15; }
.entry-links a span { border-bottom: 1px dotted var(--magenta-light); }
.entry-links a em { color: var(--muted); font-weight: 400; }
.entry-links a:hover { color: #754063; }
.plain-senses { color: var(--muted); }
.entry-card-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding: 4px 0 0; color: var(--magenta); background: transparent; border: 0; cursor: pointer; font-size: 10px; line-height: 1; }
.entry-card-more span { border-bottom: 1px dotted var(--magenta-light); }
.entry-card-more b { font-size: 11px; font-weight: 400; line-height: 1; }
.entry-card-more:hover, .entry-card-more:focus-visible { color: var(--magenta-deep); }
.right-arrow { display: block; width: 11px; height: 11px; flex: 0 0 auto; border-top: 2px solid var(--magenta); border-right: 2px solid var(--magenta); transform: rotate(45deg); margin-right: 7px; }

.develop-links { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 5px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.develop-prompt { color: var(--muted); }
.collocations { margin-top: 16px; padding-top: 0; }
.section-title-row { display: flex; align-items: center; gap: 18px; }
.section-title-row h2 { margin: 0; color: var(--magenta-deep); font-size: 15px; white-space: nowrap; }
.section-title-row > span { display: block; width: 100%; border-top: 1px solid var(--magenta-light); }
.expression-group { padding: 17px 14px 15px; border-bottom: 1px dotted var(--magenta-light); }
.expression-group h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; color: var(--magenta-deep); font-size: 14px; font-weight: 700; }
.expression-group.source-only { padding-top: 10px; padding-bottom: 2px; border-bottom: 0; }
.expression-group.source-only h3 { margin-bottom: 0; }
.adjective-selection { border-bottom: 0; }
.property-flow::before, .adjective-flow::before { content: "•"; margin-right: .32em; color: var(--magenta); }
.property-flow strong, .formulation-flow strong { color: var(--magenta-deep); }
.formulation-flow { margin-top: 5px; }
.formulation-flow::before { content: "•"; margin-right: .32em; color: var(--magenta); }
.figurative-flow::before { content: "•"; margin-right: .32em; color: var(--magenta); }
.mountain-elements-flow::before { content: "•"; margin-right: .32em; color: var(--magenta); }
.mountain-elements-flow { margin-top: 5px; }
.mountain-elements-flow:first-of-type { margin-top: 0; }
.subject-flow::before { content: "•"; margin-right: .32em; color: var(--magenta); }
.subject-flow strong { color: var(--magenta-deep); }
.subject-construction-flow { margin-top: 5px; }
.complement-flow::before { content: "•"; margin-right: .32em; color: var(--magenta); }
.complement-flow { margin-top: 5px; }
.complement-flow:first-of-type { margin-top: 0; }
.complement-flow strong { color: var(--magenta-deep); }
.manner-flow { color: #625d66; }
.source-title-link { display: inline; padding: 0; color: inherit; background: transparent; border: 0; border-bottom: 1px dotted #c49ab9; cursor: pointer; font: inherit; line-height: 1.15; letter-spacing: inherit; }
.source-title-link:hover, .source-title-link:focus-visible { color: var(--magenta); border-bottom-color: var(--magenta); }
span.source-title-link { border-bottom: 1px dotted var(--magenta-light); cursor: pointer; }
#open-senses.entry-card-heading { cursor: pointer; }
#open-senses.entry-card-heading strong { border-bottom: 1px dotted var(--magenta-light); }
.word-flow { margin: 0; color: #4d4952; font-size: 15px; line-height: 1.68; }
.adjective-selection .word-flow { color: #625e67; font-size: 15px; }
.paired-sections { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 5px; }
.paired-sections > .expression-group { min-width: 0; border-bottom: 0; }
.sentence-model, .example-item { margin: 0 0 9px; color: #4d4952; font-size: 15px; line-height: 1.55; }
.sentence-model::before, .example-item::before { content: "•"; margin-right: .38em; color: var(--magenta); }
.examples-content { padding-left: 1px; }
#develop-dialog-content p { margin: 0; color: #4d4952; font-size: 15px; line-height: 1.8; }
.word-flow.pending { color: var(--muted); font-style: italic; }
.figurative-group { padding-top: 9px; background: var(--magenta-pale); }
.collocation-section { border-bottom: 1px dotted var(--magenta-light); }
.collocation-title { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 77px; padding: 15px 17px; color: var(--magenta); background: transparent; border: 0; cursor: pointer; text-align: left; font-size: 16px; font-weight: 700; }
.collocation-title:hover { background: var(--magenta-pale); }
.collocation-section.open .collocation-title { min-height: 52px; background: var(--magenta-pale); }
.collocation-section.open .right-arrow { transform: rotate(135deg); }
.collocation-content { display: none; padding: 1px 18px 17px; color: #504c57; font-size: 13px; }
.collocation-section.open .collocation-content { display: block; }
.collocation-content p { margin: 7px 0; }
.collocation-content strong { color: #45414b; }
.collocation-content em { color: var(--magenta); font-weight: 700; }
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.user-panel { padding: 48px 36px; border-left: 1px solid var(--line); }
.user-panel h2 { display: inline-block; margin: 0; padding-bottom: 0; color: var(--magenta); border-bottom: 1px dotted var(--magenta-light); font-size: 12px; line-height: 1.15; }

.information-dialog, .contents-dialog { width: min(760px, calc(100vw - 40px)); max-height: 84vh; padding: 0; color: var(--text); background: white; border: 1px solid var(--magenta-light); border-radius: 5px; box-shadow: 0 22px 65px rgba(53, 31, 54, .2); }
.information-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.information-dialog > header { position: relative; z-index: 2; flex: 0 0 auto; background: white; }
.information-dialog > .dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-color: var(--magenta-light) var(--magenta-pale); scrollbar-width: auto; scrollbar-gutter: stable; }
.information-dialog > .dialog-body::-webkit-scrollbar { width: 9px; }
.information-dialog > .dialog-body::-webkit-scrollbar-track { background: var(--magenta-pale); }
.information-dialog > .dialog-body::-webkit-scrollbar-thumb { background: var(--magenta-light); border-radius: 999px; }
.contents-dialog { width: min(520px, calc(100vw - 40px)); }
.contents-dialog.contents-drawer {
  position: static;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 18px 0 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.contents-dialog.contents-drawer[open] { display: flex; flex: 1 1 auto; flex-direction: column; }
.contents-drawer header { display: none; }
.contents-drawer-body { flex: 1 1 auto; min-height: 0; padding: 2px 7px 12px 0; overflow-y: scroll; scrollbar-color: var(--magenta-light) var(--magenta-pale); scrollbar-width: auto; scrollbar-gutter: stable; }
.contents-drawer-body::-webkit-scrollbar { width: 11px; }
.contents-drawer-body::-webkit-scrollbar-track { background: var(--magenta-pale); border-radius: 999px; }
.contents-drawer-body::-webkit-scrollbar-thumb { min-height: 36px; background: var(--magenta-light); border: 2px solid var(--magenta-pale); border-radius: 999px; }
.contents-drawer-body::-webkit-scrollbar-thumb:hover { background: var(--magenta); }
.contents-search { width: 100%; height: 34px; margin-bottom: 10px; padding: 0 9px; color: var(--text); background: white; border: 1px solid var(--magenta-light); border-radius: 7px; outline: 0; font-size: 14px; }
.contents-search:focus { border-color: var(--magenta); }
.contents-chapter { padding: 0; border-bottom: 1px solid var(--line); }
.contents-chapter > summary { position: relative; list-style: none; padding: 10px 2px 9px 18px; color: var(--magenta-deep); cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.contents-chapter > summary::-webkit-details-marker,
.contents-folder > summary::-webkit-details-marker { display: none; }
.contents-chapter > summary::before { content: '▸'; position: absolute; left: 1px; top: 9px; color: var(--magenta); font-size: 14px; transition: transform .15s ease; }
.contents-chapter[open] > summary::before { transform: rotate(90deg); }
.contents-folder { position: relative; margin: 0 0 2px 8px; padding-left: 10px; }
.contents-folder::before { content: ''; position: absolute; left: 1px; top: 0; bottom: 10px; border-left: 1px solid var(--magenta-light); }
.contents-folder > summary { position: relative; list-style: none; padding: 6px 1px 6px 16px; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 650; letter-spacing: .015em; }
.contents-folder > summary::before { content: '▸'; position: absolute; left: 0; top: 5px; color: var(--magenta); font-size: 11px; transition: transform .15s ease; }
.contents-folder[open] > summary::before { transform: rotate(90deg); }
.contents-folder > summary::after { content: ''; position: absolute; left: -8px; top: 12px; width: 8px; border-top: 1px solid var(--magenta-light); }
.contents-group p { position: relative; display: grid; gap: 5px; margin: 1px 0 7px 16px; padding: 4px 0 5px 10px; line-height: 1.35; }
.contents-group p::before { content: ''; position: absolute; left: 0; top: 0; bottom: 3px; border-left: 1px solid var(--magenta-light); }
.drawer-term { display: block; width: max-content; max-width: 100%; color: var(--magenta-deep); text-decoration: none; font-size: 14px; line-height: 1.3; }
a.drawer-term { border-bottom: 1px dotted #c49ab9; }
.drawer-term.pending-term { color: #89848d; }
.drawer-term.current-term { color: var(--magenta-deep); font-weight: 700; }
a.drawer-term.current-term { border-bottom-color: var(--magenta-deep); }
.contents-close { width: 30px; height: 30px; font-size: 17px; }
.left-panel.contents-visible { padding-top: 27px; padding-bottom: 18px; }
.left-panel.contents-visible .primary-nav { gap: 18px; }
.left-panel.contents-visible .left-divider { display: none; }
.left-panel.contents-visible .project-footer { margin-top: 13px; }
.left-panel.contents-visible .project-footer p { display: none; }
.contents-links a { color: var(--magenta-deep); border-bottom: 1px dotted var(--magenta-light); text-decoration: none; line-height: 1.15; }
.paired-sections.examples-only { grid-template-columns: 1fr; }
.examples-corpus summary, .examples-corpus p { font-size: 15px; }
.examples-corpus p { line-height: 1.65; }
.chapter-intro { max-width: 690px; margin: 0 0 27px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.chapter-map { display: grid; gap: 18px; }
.map-section { padding: 17px 18px 19px; border: 1px solid var(--magenta-light); border-radius: 5px; }
.map-section h2 { margin: 0 0 12px; color: var(--magenta-deep); font-size: 13px; }
.map-terms { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: 0; color: var(--muted); line-height: 1.7; }
.map-terms a { color: var(--magenta-deep); border-bottom: 1px dotted var(--magenta-light); text-decoration: none; line-height: 1.25; }
.map-terms a:hover, .map-terms a:focus-visible { color: var(--magenta); border-bottom-color: var(--magenta); }
.map-terms .pending-term { color: #85818a; }
.chapter-back { display: inline-block; margin-top: 24px; color: var(--magenta); border-bottom: 1px dotted var(--magenta-light); text-decoration: none; font-size: 11px; line-height: 1.2; }
dialog::backdrop { background: rgba(42, 32, 44, .35); }
.contents-drawer::backdrop { background: transparent; }
dialog header { display: flex; align-items: center; justify-content: space-between; padding: 18px 23px; border-bottom: 1px solid var(--magenta-light); }
dialog header h2 { margin: 0; color: var(--magenta); font-size: 18px; }
.close-dialog { width: 32px; height: 32px; color: var(--magenta); background: transparent; border: 1px solid var(--magenta-light); border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; }
.dialog-body { padding: 18px 23px 25px; }
.family-words { color: var(--magenta); line-height: 1.8; }
details { padding: 11px 0; border-bottom: 1px dotted var(--magenta-light); }
summary { color: var(--magenta); cursor: pointer; font-weight: 600; }
.senses-list p { display: grid; grid-template-columns: 25px auto 1fr; gap: 7px; align-items: start; }
.senses-list .sense-intro { display: block; margin: 0 0 17px; color: var(--muted); font-size: 11px; font-style: italic; }
.senses-list span { display: grid; place-items: center; width: 22px; height: 22px; color: var(--magenta); background: var(--magenta-pale); border-radius: 50%; font-size: 11px; }
.source-dialog { width: min(920px, calc(100vw - 40px)); }
.source-dialog-body { padding-top: 8px; }
.source-sheet { padding: 18px 0 24px; border-bottom: 1px solid var(--magenta-light); }
.source-sheet:last-child { border-bottom: 0; }
.source-sheet > h3 { margin: 0 0 14px; color: var(--magenta-deep); font-size: 16px; }
.source-sheet details { padding: 9px 0; }
.source-sheet summary { font-size: 13px; }
.source-sheet h4 { margin: 14px 0 5px; color: var(--magenta-deep); font-size: 12px; }
.source-sheet p { margin: 5px 0; color: #4d4952; font-size: 15px; line-height: 1.65; }
.senses-list .source-sheet p { display: block; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 50; transform: translate(-50%, 20px); padding: 9px 15px; color: white; background: #57525b; border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s; font-size: 12px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 190px 1fr 170px; }
  .app-layout { grid-template-columns: 195px minmax(580px, 1fr) 170px; }
  .left-panel { padding-left: 25px; padding-right: 20px; }
  .main-panel { padding-left: 38px; padding-right: 38px; }
  .account-button > span:not(.account-icon):not(.down) { display: none; }
  .user-tools { gap: 14px; padding-right: 22px; }
}
@media (max-width: 900px) {
  .topbar { height: 54px; grid-template-columns: 165px minmax(330px, 1fr) 130px; }
  .logo-space { width: 95px; height: 27px; margin-left: 24px; }
  .search { width: min(78%, 400px); height: 33px; border-radius: 8px; }
  .search-icon { margin-left: 14px; margin-right: 15px; }
  .search input { font-size: 14px; }
  .user-tools { gap: 7px; padding-right: 18px; }
  .user-tools .icon-button { transform: scale(.65); }
  .account-button > span:not(.account-icon):not(.down) { display: none; }
  .account-icon { width: 25px; height: 25px; transform: scale(.9); }
  .down { margin-left: 0; }
  .app-layout { grid-template-columns: 165px minmax(0, 1fr) 130px; min-height: calc(100vh - 54px); }
  .left-panel { padding: 38px 18px 25px 24px; }
  .primary-nav { gap: 46px; }
  .nav-item { gap: 9px; font-size: 13px; }
  .main-panel { padding: 25px 28px 48px; }
  .main-panel h1 strong { font-size: 22px; }
  .term-header { grid-template-columns: 1fr; gap: 12px; }
  .entry-cards { gap: 15px; }
  .entry-card { min-height: 55px; padding: 0; }
  .entry-card-heading strong { font-size: 15px; }
  .expression-group { padding: 14px 12px 12px; }
  .expression-group h3 { font-size: 14px; }
  .word-flow { font-size: 15px; }
  .collocations { margin-top: 26px; }
  .collocation-title { min-height: 66px; padding-left: 14px; font-size: 14px; }
  .user-panel { padding: 31px 21px; }
  .user-panel h2 { font-size: 12px; }
}
@media (max-width: 680px) {
  body { height: auto; overflow: auto; }
  .topbar { display: block; }
  .logo-space, .user-tools { display: none; }
  .search { width: 100%; }
  .app-layout { display: block; height: auto; overflow: visible; }
  .left-panel { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .primary-nav { display: flex; gap: 20px; flex-wrap: wrap; }
  .left-divider, .project-footer { display: none; }
  .main-panel { padding: 28px 18px 45px; overflow: visible; }
  .entry-cards { grid-template-columns: 1fr; }
  .paired-sections { grid-template-columns: 1fr; gap: 0; }
  .usage-grid { grid-template-columns: 1fr; }
}
