/* One visual language: ink, paper, weathered gold. No extra learning modes. */
/* Keep long drafts editable, without a permanent scrollbar or helper copy. */
[data-discussion-layout="calm"] .composer {
  margin:12px 20px 20px; padding:10px 12px; border:0; border-radius:24px;
  background:#f3eee5; box-shadow:0 2px 12px #493a2010;
}
[data-discussion-layout="calm"] .composer:focus-within { box-shadow:0 2px 12px #493a2010,0 0 0 1px #b9aa902e; }
.composer-input-row, [data-discussion-layout="calm"] .composer-input-row {
  grid-template-columns:minmax(0,1fr) 40px 40px; gap:6px; align-items:center;
}
.composer-input-row #chatInput { min-width:0; min-height:40px; max-height:160px; padding:9px 8px; line-height:1.5; font-size:16px; overflow-y:auto; scrollbar-width:none; border:0; background:transparent; box-shadow:none; outline:none; }
.composer-input-row .composer-mic-btn { width:40px; height:40px; background:transparent; color:#806e55; }
.composer-input-row .composer-mic-btn:hover { background:#e9dfce; }
.composer-input-row .composer-primary-btn { width:40px; height:40px; background:#354e40; color:#fffaf0; box-shadow:none; }
.composer-input-row .composer-primary-btn:disabled { background:#e3ddd2; color:#a89d8a; opacity:1; }
.composer-input-row .composer-mic-btn,.composer-input-row .composer-primary-btn { align-self:center; display:grid; place-items:center; padding:0; line-height:1; }
.composer-input-row .composer-primary-btn svg,.composer-input-row .composer-mic-btn svg { width:20px; height:20px; }
.composer-input-row #chatInput::-webkit-scrollbar { display:none; width:0; height:0; }
.status-box[data-empty="1"], [data-discussion-layout="calm"] .status-box[data-empty="1"] { display:none; }
[data-discussion-layout="calm"] .status-box:not([data-empty="1"]) { flex:0 0 auto; min-height:0; max-height:none; white-space:pre-wrap; overflow-wrap:anywhere; overflow:visible; }
.reading-meta-bar #documentMeta { display:block; width:100%; max-width:none; text-align:center; margin-inline:auto; }
/* Center on the text column, excluding the notes rail and its gap. */
body[data-workspace-mode=read] .reading-meta-bar:has(~ .reading-stage .today-vocabulary-rail:not([hidden])) { width:calc(100% - 234px); box-sizing:border-box; }
.cover-phone-form { display:grid; gap:10px; width:100%; text-align:left; }
.cover-phone-form label { font-size:14px; color:#695e50; margin-top:8px; }
.cover-phone-form input { box-sizing:border-box; width:100%; min-width:0; min-height:52px; padding:12px 16px; border:1px solid #d6cfc3; border-radius:12px; background:#fffcf7; color:#302b24; font:18px Georgia,serif; outline:none; }
.cover-phone-form input:focus { border-color:#987346; box-shadow:0 0 0 3px #b49a7420; }
.cover-phone-form .ink-btn { margin-top:14px; justify-content:center; }
.cover-phone-form .ink-btn:disabled { opacity:.55; cursor:wait; }
.auth-methods { display:flex; gap:24px; margin:20px 0; }
.auth-methods button { background:none; border:0; padding:8px 0; color:#928677; font:inherit; cursor:pointer; }
.auth-methods button[aria-pressed=true] { color:#302b24; box-shadow:0 2px #9f7f4e; }
.auth-other-methods { margin-top:20px; font-size:13px; color:#807262; }
.auth-other-methods summary { cursor:pointer; }
.auth-session-note { font-size:12px; line-height:1.6; color:#887d70; }
.auth-fields [hidden], .auth-actions [hidden] { display:none !important; }
#coverGoogleBtn { width:auto; margin:18px 0 0 auto; border:0; background:transparent; box-shadow:none; font-size:13px; opacity:.75; }
#coverGoogleBtn .ink-btn-icon { width:16px; height:16px; }
.auth-avatar-btn.has-photo { display:block; line-height:0; padding:0; background:transparent; box-shadow:none; }
.auth-avatar-btn.has-photo .auth-avatar-img { display:block; width:100%; height:100%; border-radius:50%; object-fit:cover; }
.auth-avatar-btn.has-emoji { box-shadow:none; }
.hp-journey { --map-paper:#f3ecdf; --map-ink:#514638; --map-gold:#ac8952; margin:20px 0 36px; color:var(--map-ink); }
.hp-journey header { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding:8px 12px 24px; }
.hp-journey header small { font-size:10px; letter-spacing:.25em; color:#938568; }
.hp-journey h2 { font:38px Georgia,"Songti SC",serif; margin:10px 0; letter-spacing:.03em; }
.hp-journey header p { color:#8a806e; font-size:13px; margin:0; line-height:1.6; }
.hp-journey header > span { font:11px Georgia,serif; letter-spacing:.12em; color:#99886c; padding-top:12px; }
.hp-map-scroll { overflow-x:auto; border-radius:3px; background:var(--map-paper); scrollbar-width:thin; scrollbar-color:#b5a68c var(--map-paper); }
.hp-map { position:relative; aspect-ratio:3 / 2; min-width:720px; background:var(--map-paper); isolation:isolate; }
.hp-map-art { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; z-index:-1; mix-blend-mode:multiply; filter:sepia(.65) saturate(.55) contrast(.82); }
.hp-map-node { position:absolute; left:var(--x); top:var(--y); transform:translate(-50%,-50%); background:none; border:0; color:#727565; cursor:pointer; display:flex; flex-direction:column; align-items:center; width:150px; padding:8px; font:inherit; }
.hp-node-trigger { display:flex; flex-direction:column; align-items:center; width:100%; padding:0; border:0; background:transparent; box-shadow:none; border-radius:0; font:inherit; cursor:pointer; }
.hp-map-node strong { font:600 17px Georgia,"Songti SC",serif; margin:3px 0 4px; padding:0; background:none; box-shadow:none; white-space:nowrap; color:var(--map-ink); text-shadow:0 0 3px var(--map-paper),0 0 6px var(--map-paper),0 0 10px var(--map-paper); }
.hp-map-node .hp-node-status { font-size:11px; letter-spacing:.08em; padding:0; background:none; color:#6b5d49; text-shadow:0 0 4px var(--map-paper),0 0 8px var(--map-paper); }
.hp-node-volume { margin-top:9px; font:10px Georgia,serif; letter-spacing:.22em; color:#85704e; text-shadow:0 0 4px var(--map-paper); }
.hp-node-seal { position:relative; display:block; width:50px; height:72px; border-radius:2px 5px 5px 2px; border:1px solid #d5b578; background:#293e3c; box-shadow:3px 3px 0 -1px #d9c9a4,5px 8px 14px #171a16a0; transition:transform .18s ease; transform:rotate(-4deg); }
.hp-node-seal > img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.hp-node-badge { position:absolute; right:-5px; bottom:-3px; display:grid; place-items:center; width:21px; height:21px; border-radius:50%; background:#f3e5c5; color:#6a573a; box-shadow:0 1px 4px #3b2e2740; }
.hp-node-badge svg { width:13px; height:13px; stroke-width:1.8; }
.hp-map-node.is-open { color:#485740; }
.hp-map-node.is-open .hp-node-seal { border-color:#d8cd9c; }
.hp-map-node.is-current { color:#304c3b; }
.hp-map-node:not(.is-current) .hp-node-seal { background:#b8a683; border-color:#998662; box-shadow:2px 3px 0 -1px #c5b797,3px 5px 8px #47382125; }
.hp-map-node:not(.is-current) .hp-node-seal > img { filter:grayscale(.9) sepia(.65) saturate(.35) brightness(.72); opacity:.6; }
.hp-map-node:not(.is-current) strong { color:#796c54; font-weight:400; }
.hp-map-node.is-current .hp-node-seal { border-color:#ffe4a2; box-shadow:0 0 0 3px #b78031,0 0 0 6px #ffe8b5b0,0 0 30px 12px #ffe1a275,5px 10px 16px #47382150; transform:rotate(0deg) scale(1.2); }
.hp-map-node.is-current strong { color:#51350d; font-weight:700; text-shadow:0 0 3px #fff5d5,0 0 8px #fff5d5,0 0 14px #fff5d5; }
.hp-map-node.is-current .hp-node-volume { margin-top:16px; color:#66410f; font-weight:700; }
.hp-map-node.is-current .hp-node-badge { background:#c9a760; color:#243f30; }
.hp-map-node.is-current .hp-node-status { font-weight:700; color:#55380d; background:#f8dda3; border:1px solid #ae8540; border-radius:10px; padding:2px 9px; text-shadow:none; }
.hp-map-node:hover .hp-node-seal { transform:translateY(-3px) rotate(0deg); }
.hp-map-node.is-current:hover .hp-node-seal { transform:translateY(-3px) rotate(0deg) scale(1.2); }
.hp-node-detail { display:none; position:fixed; inset:auto; margin:0; width:208px; max-width:calc(100vw - 24px); box-sizing:border-box; padding:12px; background:#faf6ee; border:0; border-radius:8px; box-shadow:0 10px 35px #493b2528; text-align:left; font-size:11px; line-height:1.45; color:#6e614b; cursor:default; overflow-y:auto; overscroll-behavior:contain; }
.hp-node-detail:popover-open { display:block; }
.hp-node-detail > * { display:block; }
.hp-personal-progress { color:#3e4b3b; font-weight:600; font-size:12px; }
.hp-learning-stats { margin:7px 0; }
.hp-learning-stats > div { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:4px 0; }
.hp-learning-stats dt { color:var(--muted-color); font-size:12px; }
.hp-learning-stats dd { margin:0; color:var(--ink-color); font-size:17px; font-weight:700; font-variant-numeric:tabular-nums; }
.hp-metrics-note { font-size:10px; color:var(--muted-color); }
.hp-node-detail .hp-node-open { display:block; margin-top:10px; padding:4px 0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#805a24; font-family:inherit; font-size:12px; font-weight:600; line-height:1.6; cursor:pointer; }
.hp-node-open:disabled { opacity:.55; cursor:default; }
.hp-map-node:hover,.hp-map-node:focus-within,.hp-map-node.is-preview { z-index:3; }
.hp-map-node.is-dismissed .hp-node-detail { display:none; }
.hp-node-trigger:focus-visible,.hp-node-open:focus-visible { outline:2px solid #745727; outline-offset:4px; border-radius:3px; }
.hp-map-footnote { font-size:11px; color:#9b8d74; text-align:right; padding:8px; }
#homeMineView .study-heatmap-section { margin:36px 0 28px; scroll-margin-top:32px; }
#homeMineView .study-plan-section { display:none; }
#libraryFilters[hidden] { display:none; }
.content-library-card { border:0 !important; box-shadow:none !important; background:transparent !important; }
.content-library-cover.has-image { border-radius:2px 7px 7px 2px; position:relative; box-shadow:5px 7px 0 -2px #ece5d5,6px 8px 0 -2px #c9c0af,9px 15px 24px #3b2c1820; overflow:hidden; }
.content-library-cover.has-image::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,#0003,transparent 3%,#fff2 4%,transparent 6%); }
.content-library-title { font-family:Georgia,"Songti SC",serif; }
body[data-workspace-mode=read] .reading-stage:has(.today-vocabulary-rail:not([hidden])) { display:grid; grid-template-columns:minmax(0,1fr) 210px; gap:24px; }
.today-vocabulary-rail { padding:30px 16px 24px 0; overflow:auto; min-height:0; }
.today-vocabulary-rail[hidden] { display:none; }
.today-vocabulary-rail h3 { font:17px "Songti SC",serif; color:#75654c; margin:8px 0 22px; }
.today-word { margin-bottom:16px; color:#554b3d; }
.today-word summary { cursor:pointer; font:16px Georgia,serif; }
.today-word p,.today-words-empty { font-size:12px; line-height:1.7; color:#948671; }
.chapter-illustration { width:100%; max-width:640px; margin:32px auto 40px; border-radius:3px; box-shadow:none; background:transparent; }
.chapter-illustration img { display:block; width:100%; height:auto; max-height:520px; aspect-ratio:auto; object-fit:contain; }
body[data-workspace-mode=read] #englishSurfaceChips,body[data-workspace-mode=input] #englishSurfaceChips { position:fixed; top:24px; left:max(74px,calc((100vw - 1480px)/2 + 74px)); z-index:35; }
body[data-workspace-mode=read] #workspaceHomeBtn,body[data-workspace-mode=input] #workspaceHomeBtn { position:fixed; top:24px; left:max(24px,calc((100vw - 1480px)/2 + 24px)); z-index:35; }
@media(max-width:800px) {
  .hp-map-node { width:120px; }
  .hp-map-node strong { font-size:13px; }
  .hp-node-detail { width:198px; }
  .hp-map-node:nth-child(n+6) .hp-node-detail { right:0; }
  .hp-journey header > span { display:none; }
  .hp-journey h2 { font-size:30px; }
  body[data-workspace-mode=read] .reading-stage:has(.today-vocabulary-rail:not([hidden])) { grid-template-columns:minmax(0,1fr); gap:0; }
  body[data-workspace-mode=read] .reading-meta-bar:has(~ .reading-stage .today-vocabulary-rail:not([hidden])) { width:100%; }
  .today-vocabulary-rail { max-height:150px; padding:12px 24px; }
  .today-vocabulary-rail h3 { margin:0 0 10px; }
}
@media(prefers-reduced-motion:reduce) { .hp-node-seal { transition:none; } }
