/* Edition-bound SVIP guide. Presentation only; guide facts never live in this sheet. */
/* One shared appearance entry at the page top, with a nested-dialog entry for plans. */
[data-appearance-root] { flex:none; }
.appearance-trigger { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:8px 12px; margin:0; border:1px solid var(--line,#dce5dd); border-radius:12px; background:var(--paper,#fffefa); color:var(--ink,#173e38); font:600 13px/1.4 system-ui,sans-serif; white-space:nowrap; cursor:pointer; }
.appearance-trigger svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.4; }
.appearance-current { color:var(--muted,#657b73); padding-left:7px; border-left:1px solid var(--line,#dce5dd); font-size:12px; font-weight:400; }
dialog.appearance-panel { box-sizing:border-box; position:fixed; inset:auto; margin:0; width:358px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; padding:23px; border:1px solid #d9e1df; border-radius:19px; background:#fffefa; color:#223647; box-shadow:0 20px 75px #142c3b26; text-align:left; font:14px/1.6 system-ui,sans-serif; color-scheme:light; }
dialog.appearance-panel::backdrop { background:#1425361a; }
dialog.appearance-panel { animation:none; transform:none; }
dialog.appearance-panel *,dialog.appearance-panel *::before,dialog.appearance-panel *::after { box-sizing:border-box; }
dialog.appearance-panel .appearance-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 22px; padding:0; border:0; max-width:none; }
dialog.appearance-panel .appearance-eyebrow { color:#697983; font-size:10px; letter-spacing:.17em; }
dialog.appearance-panel h2 { margin:3px 0 0; color:inherit; font:650 22px/1.4 system-ui,sans-serif; }
dialog.appearance-panel button { cursor:pointer; font-family:inherit; }
dialog.appearance-panel .appearance-close { display:grid; place-items:center; width:34px; height:34px; min-height:34px; padding:0; margin:0; border:1px solid #dde3e6; border-radius:50%; background:transparent; color:inherit; font-size:22px; line-height:1; }
dialog.appearance-panel fieldset { min-width:0; margin:0 0 20px; padding:0; border:0; }
dialog.appearance-panel fieldset:last-child { margin-bottom:0; }
dialog.appearance-panel legend { margin-bottom:10px; padding:0; color:inherit; font-size:13px; font-weight:650; }
dialog.appearance-panel .appearance-skins { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
dialog.appearance-panel .appearance-skin { display:flex; flex-direction:column; gap:6px; align-items:stretch; min-width:0; min-height:44px; margin:0; padding:9px; border:1px solid #dce3e7; border-radius:12px; background:transparent; color:inherit; text-align:left; font-size:13px; line-height:1.5; box-shadow:none; }
dialog.appearance-panel .appearance-skin[aria-pressed="true"] { border-color:#315c75; box-shadow:0 0 0 1px #315c75; background:#edf3f7; }
dialog.appearance-panel .appearance-skin small { color:#627482; font-size:11px; font-weight:400; line-height:1.5; overflow-wrap:anywhere; }
dialog.appearance-panel .appearance-sample { display:grid; grid-template-columns:1.05fr 1fr; grid-template-rows:20px 12px; gap:5px; height:70px; padding:13px 10px; border-radius:6px; background:#24584a; }
dialog.appearance-panel .appearance-sample i { grid-row:1/3; background:linear-gradient(#d8c59d 0 3px,transparent 3px 9px,#dbe6ee 9px 14px,transparent 14px 20px,#aabccc 20px 23px,transparent 23px); }
dialog.appearance-panel .appearance-sample b { grid-row:1/3; background:#f7f3ea; border-left:3px solid #ba9b62; }
dialog.appearance-panel .appearance-sample em { display:none; }
dialog.appearance-panel .appearance-sample-anime { background:#e7f0fc; position:relative; }
dialog.appearance-panel .appearance-sample-anime i { background:linear-gradient(#52718e 0 4px,transparent 4px 10px,#a8c1d5 10px 13px,transparent 13px 20px,#a8c1d5 20px 23px,transparent 23px); }
dialog.appearance-panel .appearance-sample-anime b { border:1px solid #6f88a0; border-radius:5px; background:#fff9e9; transform:rotate(6deg); box-shadow:3px 3px 0 #bacfe3; }
dialog.appearance-panel .appearance-sample-anime em { position:absolute; display:block; left:12px; bottom:9px; width:16px; height:17px; border:1px solid #567589; border-radius:6px; background:#b8d0c5; }
dialog.appearance-panel .appearance-note { margin:10px 0 0; color:#627482; font-size:11px; line-height:1.6; }
dialog.appearance-panel .appearance-options { display:flex; gap:8px; }
dialog.appearance-panel .appearance-options button { flex:1; min-width:0; min-height:38px; padding:8px; margin:0; border:1px solid #dce3e7; border-radius:8px; background:transparent; color:inherit; font-size:12px; line-height:1.5; box-shadow:none; }
dialog.appearance-panel .appearance-options button[aria-pressed="true"] { background:#294f67; border-color:#294f67; color:#fffefa; }
dialog.appearance-panel button:disabled { opacity:.5; cursor:not-allowed; }
dialog.appearance-panel button:focus-visible,.appearance-trigger:focus-visible { outline:2px solid #557b96; outline-offset:3px; }
html[data-theme="night"] dialog.appearance-panel { background:#202d36; border-color:#4c6270; color:#e3edf2; color-scheme:dark; }
html[data-theme="night"] dialog.appearance-panel :is(.appearance-eyebrow,.appearance-note,.appearance-skin small) { color:#b3c2cf; }
html[data-theme="night"] dialog.appearance-panel :is(.appearance-close,.appearance-skin,.appearance-options button) { border-color:#4c6270; }
html[data-theme="night"] dialog.appearance-panel .appearance-skin[aria-pressed="true"] { background:#304b60; border-color:#b0cce2; box-shadow:0 0 0 1px #b0cce2; }
html[data-theme="night"] dialog.appearance-panel .appearance-options button[aria-pressed="true"] { color:#20313e; background:#b0cce2; border-color:#b0cce2; }
html[data-theme="night"]:has(.member-app) { --ink:#e5eee8; --muted:#a7bbb0; --line:#3b5548; --green:#b2d5bf; --paper:#1b2e28; color:#e5eee8; background:#14231f; color-scheme:dark; }
html[data-theme="night"] .member-app { --surface:#1b2e28; background:#14231f; }
html[data-motion="paused"] .member-app *,html[data-motion="paused"] .member-app *::before,html[data-motion="paused"] .member-app *::after { animation-duration:0s!important; transition-duration:0s!important; scroll-behavior:auto!important; }
@media(max-width:600px) {
  dialog.appearance-panel { inset:auto 0 0!important; width:100%; max-width:100%; max-height:88dvh; padding:23px 22px calc(24px + env(safe-area-inset-bottom)); border-radius:22px 22px 0 0; }
  dialog.appearance-panel::backdrop { background:#14253666; }
  dialog.appearance-panel .appearance-options button,dialog.appearance-panel .appearance-close { min-height:44px; }
  dialog.appearance-panel .appearance-close { width:44px; }
  .appearance-trigger { min-height:40px; padding:8px 10px; }
  .appearance-current { display:none; }
}
/* Skin chooses the illustration language; the site's day/night theme chooses luminance. */
.member-guide, dialog.mg-evidence-dialog {
  --mg-ink:#223647; --mg-muted:#69757f; --mg-body-ink:#4b5862;
  --mg-paper:#fffefa; --mg-wash:#f6f4ef; --mg-line:#dfe3e5;
  --mg-deep:#294f67; --mg-gold:#876936; --mg-outline:#576f85;
  --mg-shadow:#1d354212; --mg-offset:#d7e4ef;
  --mg-hero:#eef3f6; --mg-ticket:#fffefa; --mg-mascot:#d7e7ff;
  --mg-type-chapter:22px; --mg-type-item:18px; --mg-type-body:17px; --mg-type-meta:12px;
  --mg-reward:#294f67; --mg-reward-ink:#223e54; --mg-reward-muted:#5c7383;
  --mg-reward-line:#cfdae2; --mg-reward-wash:#eef3f6; --mg-reward-soft:#e3edf4;
  --mg-overview:#416a58; --mg-overview-ink:#315341; --mg-overview-muted:#657b6c;
  --mg-overview-line:#d1dfd5; --mg-overview-wash:#f2f6f0; --mg-overview-soft:#e7efe1;
  --mg-flow:#376d7b; --mg-flow-ink:#2d5260; --mg-flow-muted:#597681;
  --mg-flow-line:#d2e2e6; --mg-flow-wash:#f3f8f9; --mg-flow-soft:#eaf3f5;
  --mg-time:#6b6080; --mg-time-ink:#514763; --mg-time-muted:#71677e;
  --mg-time-line:#dfd9e8; --mg-time-wash:#f7f5fa; --mg-time-soft:#efebf4;
  --mg-details:#566d82; --mg-details-ink:#3b4e61; --mg-details-muted:#677787;
  --mg-details-line:#dbe2e9; --mg-details-wash:#f3f6f9; --mg-details-soft:#eaf0f5;
  --mg-caution:#876936; --mg-caution-ink:#6b542f; --mg-caution-muted:#816c47;
  --mg-caution-line:#e3d5ba; --mg-caution-wash:#f8f4ec; --mg-caution-soft:#f0e7d3;
  --mg-tone:var(--mg-reward); --mg-tone-ink:var(--mg-reward-ink);
  --mg-tone-muted:var(--mg-reward-muted); --mg-tone-line:var(--mg-reward-line);
  --mg-tone-wash:var(--mg-reward-wash); --mg-tone-soft:var(--mg-reward-soft);
  color-scheme:light; color:var(--mg-ink);
  font-family:var(--font-body,"HK Perks Inter","HK Perks Reading","PingFang SC","Microsoft YaHei",sans-serif);
  font-size:var(--mg-type-body); font-weight:400; line-height:1.75;
}
html[data-guide-skin="anime"] :is(.member-guide,dialog.mg-evidence-dialog) {
  --mg-ink:#2c4258; --mg-muted:#667889; --mg-body-ink:#465965;
  --mg-paper:#fffefb; --mg-wash:#f1f6fc; --mg-line:#c6d4e2;
  --mg-deep:#315778; --mg-gold:#826729; --mg-hero:#e8f0fb;
  --mg-ticket:#fffefb; --mg-outline:#2e4357; --mg-shadow:#304b6812;
  --mg-reward:#355d88; --mg-reward-ink:#2c4665; --mg-reward-muted:#5c7390;
  --mg-reward-line:#c5d8ec; --mg-reward-wash:#edf5ff; --mg-reward-soft:#deebfa;
  --mg-overview:#47705d; --mg-overview-ink:#345644; --mg-overview-muted:#607b6a;
  --mg-overview-line:#cbded0; --mg-overview-wash:#f1f8ed; --mg-overview-soft:#e3f0dc;
  --mg-flow:#397486; --mg-flow-ink:#2c5663; --mg-flow-muted:#577b86;
  --mg-flow-line:#c1dde5; --mg-flow-wash:#edf8fb; --mg-flow-soft:#dceff4;
  --mg-time:#70618f; --mg-time-ink:#534469; --mg-time-muted:#796c8a;
  --mg-time-line:#d7ccea; --mg-time-wash:#f3eefb; --mg-time-soft:#e9dff7;
  --mg-details:#57728f; --mg-details-ink:#3d566e; --mg-details-muted:#687e95;
  --mg-details-line:#cbd8e6; --mg-details-wash:#eff5fb; --mg-details-soft:#e1ebf6;
  --mg-caution:#86672f; --mg-caution-ink:#674e28; --mg-caution-muted:#846e47;
  --mg-caution-line:#c7a656; --mg-caution-wash:#fbf5e4; --mg-caution-soft:#f7edc9;
}
html[data-theme="night"] :is(.member-guide,dialog.mg-evidence-dialog) {
  --mg-ink:#e8eef1; --mg-muted:#aab6bf; --mg-body-ink:#c1cbd2;
  --mg-paper:#202a30; --mg-wash:#29323a; --mg-line:#44515c;
  --mg-deep:#a7cce2; --mg-gold:#d3b984; --mg-outline:#dce6ef;
  --mg-shadow:#00000024; --mg-offset:#17212c; --mg-hero:#2b3945;
  --mg-ticket:#202a30; --mg-mascot:#708bac;
  --mg-reward:#a7cce2; --mg-reward-ink:#d6e7f1; --mg-reward-muted:#b0c3d0;
  --mg-reward-line:#4d6475; --mg-reward-wash:#283946; --mg-reward-soft:#354b5f;
  --mg-overview:#b2d6bc; --mg-overview-ink:#dae9dc; --mg-overview-muted:#adbfaf;
  --mg-overview-line:#4c6355; --mg-overview-wash:#2b3932; --mg-overview-soft:#354a3a;
  --mg-flow:#a0cfdd; --mg-flow-ink:#d4e8ed; --mg-flow-muted:#a8c3cb;
  --mg-flow-line:#48616a; --mg-flow-wash:#293b43; --mg-flow-soft:#344b56;
  --mg-time:#c9b6dd; --mg-time-ink:#e4d9ed; --mg-time-muted:#c1b6ce;
  --mg-time-line:#625771; --mg-time-wash:#322e3b; --mg-time-soft:#443a51;
  --mg-details:#b3c6db; --mg-details-ink:#d9e2ed; --mg-details-muted:#b5c1d0;
  --mg-details-line:#4c5d70; --mg-details-wash:#2a3441; --mg-details-soft:#354355;
  --mg-caution:#d3b984; --mg-caution-ink:#eee2c9; --mg-caution-muted:#c8bba0;
  --mg-caution-line:#8f7b50; --mg-caution-wash:#39362e; --mg-caution-soft:#494332;
  color-scheme:dark;
}
html[data-guide-skin="anime"][data-theme="night"] :is(.member-guide,dialog.mg-evidence-dialog) {
  --mg-paper:#202d38; --mg-hero:#2b3e51; --mg-ticket:#202d38;
  --mg-ink:#e4edf7; --mg-body-ink:#c1cfdc; --mg-muted:#a9bbcc;
  --mg-deep:#aaccec; --mg-outline:#dce6f1; --mg-gold:#dfc77d;
  --mg-reward:#aaccec; --mg-reward-ink:#e3edf7; --mg-reward-line:#708499;
  --mg-reward-wash:#2b3e51; --mg-reward-soft:#364c65; --mg-reward-muted:#b1c5d9;
  --mg-caution:#dfc77d; --mg-caution-ink:#f0e7cb; --mg-caution-line:#d3bf7a;
  --mg-caution-wash:#3c3c30; --mg-caution-soft:#494735; --mg-caution-muted:#cabc99;
}
.member-guide { box-sizing:border-box; min-width:0; width:100%; padding:27px 30px 23px;
  border:1px solid var(--mg-line); border-radius:11px; background:var(--mg-paper);
  box-shadow:0 8px 28px var(--mg-shadow); text-align:left; }
.member-guide *,dialog.mg-evidence-dialog * { box-sizing:border-box; }
.member-guide [hidden],dialog.mg-evidence-dialog [hidden] { display:none; }
.member-guide p { margin:0; font-size:var(--mg-type-body); line-height:1.75; overflow-wrap:anywhere; }
.member-guide ol { margin:0; padding:0; list-style:none; }
.member-guide ol>li { margin:0; font-size:inherit; line-height:inherit; }
.member-guide h5 { margin:0 0 8px; color:var(--mg-tone-ink); font-size:var(--mg-type-item); font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
/* Each chapter keeps one recognizable hue, with neutral readable paragraphs. */
.member-guide :is(.mg-overview,.mg-highlights-reading) { --mg-tone:var(--mg-overview); --mg-tone-ink:var(--mg-overview-ink); --mg-tone-muted:var(--mg-overview-muted); --mg-tone-line:var(--mg-overview-line); --mg-tone-wash:var(--mg-overview-wash); --mg-tone-soft:var(--mg-overview-soft); }
.member-guide .mg-section:has(>.mg-choice-flow) { --mg-tone:var(--mg-flow); --mg-tone-ink:var(--mg-flow-ink); --mg-tone-muted:var(--mg-flow-muted); --mg-tone-line:var(--mg-flow-line); --mg-tone-wash:var(--mg-flow-wash); --mg-tone-soft:var(--mg-flow-soft); }
.member-guide .mg-time-section { --mg-tone:var(--mg-time); --mg-tone-ink:var(--mg-time-ink); --mg-tone-muted:var(--mg-time-muted); --mg-tone-line:var(--mg-time-line); --mg-tone-wash:var(--mg-time-wash); --mg-tone-soft:var(--mg-time-soft); }
.member-guide :is(.mg-details-library,.mg-table-section) { --mg-tone:var(--mg-details); --mg-tone-ink:var(--mg-details-ink); --mg-tone-muted:var(--mg-details-muted); --mg-tone-line:var(--mg-details-line); --mg-tone-wash:var(--mg-details-wash); --mg-tone-soft:var(--mg-details-soft); }
.member-guide :is(.mg-critical,.mg-notes,.mg-pending) { --mg-tone:var(--mg-caution); --mg-tone-ink:var(--mg-caution-ink); --mg-tone-muted:var(--mg-caution-muted); --mg-tone-line:var(--mg-caution-line); --mg-tone-wash:var(--mg-caution-wash); --mg-tone-soft:var(--mg-caution-soft); }
/* The toolbar is separate from the illustrated cover, as in the approved prototype. */
.member-guide .mg-header { display:flex; justify-content:space-between; align-items:center; gap:18px; max-width:none; margin:0 0 25px; padding:0 0 17px; border:0; border-bottom:1px solid var(--mg-line); }
.member-guide .mg-header>div:first-child { min-width:0; }
.member-guide .mg-eyebrow,dialog.mg-evidence-dialog .mg-eyebrow { display:block; color:var(--mg-muted); font-size:12px; font-weight:650; line-height:1.6; letter-spacing:.13em; }
.member-guide .mg-eyebrow i { padding:0 7px; color:var(--mg-gold); font-style:normal; }
.member-guide .mg-header-tools { display:flex; flex:0 0 auto; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; min-width:0; }
.member-guide .mg-skin-label { color:var(--mg-muted); font-size:11px; letter-spacing:.04em; line-height:1.4; }
.member-guide .mg-skin-switch { display:inline-flex; align-items:stretch; gap:3px; padding:3px; border:1px solid var(--mg-line); border-radius:7px; background:var(--mg-wash); }
.member-guide .mg-skin-switch button { display:inline-flex; align-items:center; justify-content:center; min-height:34px; margin:0; padding:6px 10px; border:1px solid transparent; border-radius:4px; background:transparent; color:var(--mg-muted); font:500 12px/1.4 "PingFang SC","Microsoft YaHei",sans-serif; white-space:nowrap; cursor:pointer; box-shadow:none; transition:background-color .16s ease,color .16s ease,border-color .16s ease; }
.member-guide .mg-skin-switch button[aria-pressed="true"] { background:var(--mg-deep); color:var(--mg-paper); border-color:var(--mg-deep); font-weight:700; }
.member-guide .mg-version { padding:4px 9px; border:1px solid var(--mg-caution-line); border-radius:5px; color:var(--mg-gold); background:var(--mg-caution-wash); font-size:11px; white-space:nowrap; line-height:1.5; }
.member-guide .mg-hero { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:start; position:relative; gap:32px; padding:20px 0 28px; margin:0 0 31px; border-bottom:1px solid var(--mg-line); }
.member-guide .mg-hero:not(:has(.mg-hero-visual)) { grid-template-columns:minmax(0,1fr); }
.member-guide .mg-hero-copy,.member-guide .mg-hero-visual { min-width:0; }
.member-guide .mg-hero-copy h4 { margin:8px 0 19px; color:var(--mg-deep); font-family:var(--font-editorial,"HK Perks Editorial","Songti SC","STSong","Noto Serif CJK SC",serif); font-size:clamp(27px,2.45vw,36px); line-height:1.45; font-weight:650; letter-spacing:-.025em; overflow-wrap:anywhere; text-wrap:balance; }
.member-guide .mg-hero-copy>.mg-hero-caption { margin-top:17px; color:var(--mg-body-ink); font-size:var(--mg-type-body); line-height:1.75; }
.member-guide .mg-hero-reward { margin:0; padding:0 0 0 26px; border-left:1px solid var(--mg-line); }
.member-guide .mg-hero-reward>.mg-section-title { font-size:var(--mg-type-chapter); margin-bottom:14px; }
.member-guide .mg-hero-reward>.mg-section-title::before { display:none; }
.member-guide .mg-section,.member-guide .mg-overview,.member-guide .mg-details-library { margin:31px 0; min-width:0; }
.member-guide .mg-section-title { margin:0 0 17px; color:var(--mg-tone); font-size:var(--mg-type-chapter); font-weight:700; line-height:1.45; letter-spacing:-.015em; overflow-wrap:anywhere; }
.member-guide .mg-section-title::before { content:''; display:inline-block; width:2px; height:18px; margin-right:10px; border-radius:1px; background:var(--mg-tone); vertical-align:-1px; }
/* Reading conditions are actual cards with full text, never oversized tab buttons. */
.member-guide .mg-critical { display:block; position:relative; margin:30px 0; padding:0; border:0; background:transparent; }
.member-guide .mg-critical>svg { position:absolute; top:0; left:0; width:29px; height:29px; padding:4px; border:1px solid var(--mg-tone-line); border-radius:8px; background:var(--mg-tone-wash); fill:none; stroke:var(--mg-tone); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.member-guide .mg-critical>div { min-width:0; }
.member-guide .mg-critical>div>strong { display:block; margin:0 0 19px 42px; color:var(--mg-tone); font-size:var(--mg-type-chapter); font-weight:700; line-height:1.45; letter-spacing:-.015em; }
.member-guide .mg-critical-items { display:grid; grid-template-columns:repeat(var(--mg-critical-columns,2),minmax(0,1fr)); gap:13px; }
.member-guide .mg-critical-item { min-width:0; padding:18px 20px; border:1px solid var(--mg-tone-line); border-radius:10px; background:var(--mg-tone-wash); }
.member-guide .mg-critical-item:last-child:nth-child(odd) { grid-column:1 / -1; }
.member-guide .mg-critical-item>header { display:flex; justify-content:space-between; align-items:start; gap:12px; max-width:none; margin:0 0 8px; padding:0; border:0; }
.member-guide .mg-critical-item h5 { margin:0; color:var(--mg-tone-ink); font-size:var(--mg-type-item); }
.member-guide .mg-critical-item p { color:var(--mg-body-ink); font-size:var(--mg-type-body); }
.member-guide .mg-critical-item .mg-reference { flex:0 0 auto; margin:0; min-height:27px; }
.member-guide .mg-scope-library .mg-critical { margin:0 0 18px; }
/* Local uncertainty has its own readable boundary in both skins and themes. */
.member-guide .mg-pending { margin:26px 0; padding:18px 20px; border:1px dashed var(--mg-tone-line); border-left:3px solid var(--mg-tone); border-radius:9px; background:var(--mg-tone-wash); }
.member-guide .mg-pending>header { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 10px; padding:0; border:0; }
.member-guide .mg-pending .mg-section-title { margin:0; font-size:var(--mg-type-item); }
.member-guide .mg-pending .mg-section-title::before { display:none; }
.member-guide .mg-pending-badge { padding:3px 8px; border:1px solid var(--mg-tone-line); border-radius:5px; background:var(--mg-tone-soft); color:var(--mg-tone-ink); font-size:12px; font-weight:700; }
.member-guide .mg-pending>.mg-pending-intro { color:var(--mg-body-ink); font-size:14px; line-height:1.7; }
.member-guide .mg-pending-items { display:grid; gap:14px; margin-top:17px; }
.member-guide .mg-pending-item { min-width:0; padding-top:14px; border-top:1px solid var(--mg-tone-line); }
.member-guide .mg-pending-item>header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 7px; padding:0; border:0; }
.member-guide .mg-pending-item>header>div { min-width:0; }
.member-guide .mg-pending-scope { display:block; margin-bottom:3px; color:var(--mg-tone-muted); font-size:12px; }
.member-guide .mg-pending-item h5 { margin:0; }
.member-guide .mg-pending-item p { color:var(--mg-body-ink); }
.member-guide .mg-pending-item .mg-reference { flex:0 0 auto; margin:0; }
.member-guide .mg-highlights-reading { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.member-guide .mg-highlights-reading>.mg-highlight { display:grid; grid-template-columns:28px minmax(0,1fr); gap:12px; padding:17px 19px; border:1px solid var(--mg-tone-line); border-radius:10px; background:var(--mg-tone-wash); }
.member-guide .mg-highlights-reading>.mg-highlight:last-child:nth-child(odd) { grid-column:1 / -1; }
.member-guide .mg-highlight p { color:var(--mg-body-ink); }
.member-guide .mg-number { display:inline-grid; place-items:center; width:28px; height:28px; flex:0 0 auto; border-radius:7px; background:var(--mg-tone-soft); color:var(--mg-tone); font-size:11px; font-weight:650; font-variant-numeric:tabular-nums; }
/* Compact labels control a single full reading panel. The buttons hold no reward values. */
.member-guide .mg-choice-group { display:flex; flex-direction:column; gap:14px; min-width:0; position:relative; }
.member-guide :is(.mg-compact-tabs,.mg-visual-grid,.mg-steps,.mg-milestones) { display:flex; flex-wrap:wrap; gap:8px; min-width:0; position:relative; }
.member-guide :is(.mg-visual-item,.mg-step,.mg-milestone) { min-width:0; max-width:100%; display:flex; }
.member-guide .mg-choice { display:inline-flex; align-items:center; justify-content:flex-start; gap:8px; width:auto; max-width:100%; min-width:0; min-height:43px; margin:0; padding:8px 12px; border:1px solid var(--mg-tone-line); border-radius:6px; background:var(--mg-paper); color:var(--mg-tone-muted); font:inherit; font-size:14px; line-height:1.5; text-align:left; cursor:pointer; box-shadow:none; transition:transform .16s ease,background-color .16s ease,border-color .16s ease,color .16s ease; }
.member-guide .mg-choice strong { min-width:0; font-size:14px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.member-guide .mg-choice-index,.member-guide .mg-node-number { flex:0 0 auto; color:var(--mg-tone-muted); font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; }
.member-guide .mg-choice-arrow { flex:0 0 auto; width:16px; height:16px; margin-left:2px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; transition:transform .16s ease; }
.member-guide .mg-choice[aria-selected="true"] { background:var(--mg-tone-soft); border-color:var(--mg-tone); color:var(--mg-tone-ink); }
.member-guide .mg-choice[aria-selected="true"] .mg-choice-index { color:var(--mg-tone); }
.member-guide .mg-choice:focus-visible,.member-guide .mg-skin-switch button:focus-visible { outline:2px solid var(--mg-gold); outline-offset:3px; }
.member-guide .mg-choice-panel { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; min-width:0; margin:0; padding:18px 21px; border:1px solid var(--mg-tone-line); border-radius:9px; background:var(--mg-tone-wash); color:var(--mg-body-ink); }
.member-guide .mg-choice-panel[hidden] { display:none; }
.member-guide .mg-choice-panel-body { min-width:0; flex:1 1 auto; }
.member-guide .mg-choice-panel h5 { color:var(--mg-tone-ink); font-size:var(--mg-type-item); }
.member-guide .mg-choice-panel p { color:var(--mg-body-ink); font-size:var(--mg-type-body); }
.member-guide .mg-choice-panel>.mg-reference { margin-top:0; flex:0 0 auto; }
.member-guide .mg-visual-plain { display:block; min-width:0; width:100%; margin:0 0 13px; }
.member-guide .mg-visual-value { display:block; color:var(--mg-tone); font-size:30px; font-weight:650; letter-spacing:-.035em; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; text-wrap:balance; }
.member-guide .mg-visual-value-long { font-size:24px; line-height:1.4; letter-spacing:-.015em; }
.member-guide .mg-visual-value-main { display:block; }
.member-guide .mg-visual-value-tail { display:block; padding-top:4px; font-size:var(--mg-type-body); font-weight:500; line-height:1.6; letter-spacing:0; }
.member-guide .mg-visual-value-annotated .mg-visual-value-main { display:inline; }
.member-guide .mg-visual-value-annotation { display:inline-block; max-width:100%; margin-left:.3em; color:var(--mg-muted); font-size:var(--mg-type-body); font-weight:500; line-height:1.6; letter-spacing:0; vertical-align:baseline; }
.member-guide .mg-choice-flow .mg-visual-value { font-size:var(--mg-type-item); }
.member-guide .mg-hero-reward .mg-choice-group { gap:18px; }
.member-guide .mg-hero-reward .mg-choice-panel { position:relative; display:block; padding:0; border:0; border-radius:0; background:transparent; }
.member-guide .mg-hero-reward .mg-choice-panel[hidden] { display:none; }
/* Every tier is a peer: switching panels must not change its type scale. */
.member-guide .mg-hero-reward .mg-visual-value { font-size:28px; line-height:1.35; color:var(--mg-deep); }
.member-guide .mg-hero-reward .mg-visual-value-long { font-size:24px; line-height:1.4; }
.member-guide .mg-hero-reward .mg-choice-panel h5 { margin:0 0 10px; }
.member-guide .mg-hero-reward .mg-choice-panel p { padding-top:12px; margin-top:13px; border-top:1px solid var(--mg-line); }
.member-guide .mg-hero-reward .mg-choice-panel>.mg-reference { margin-top:8px; }
.member-guide .mg-hero-reward .mg-compact-tabs { gap:6px; order:1; }
.member-guide .mg-hero-reward .mg-choice { min-height:36px; padding:6px 9px; font-size:12px; }
.member-guide .mg-hero-reward .mg-choice strong { font-size:12px; }
.member-guide .mg-hero-reward .mg-choice-arrow { width:13px; height:13px; }
.member-guide .mg-hero-reward .mg-choice-index { font-size:10px; }
.member-guide .mg-connector { display:none; }
.member-guide .mg-diagram-hint { color:var(--mg-muted); font-size:12px; margin-bottom:14px; }
/* Full tables, scenarios and notes retain readable titles and every authored character. */
.member-guide .mg-table-section { margin:0 0 11px; overflow:hidden; border:1px solid var(--mg-tone-line); border-radius:9px; background:var(--mg-paper); }
.member-guide .mg-table-section>summary { display:flex; align-items:center; gap:14px; min-height:74px; padding:16px 19px; cursor:pointer; list-style:none; }
.member-guide .mg-table-section>summary::-webkit-details-marker,.member-guide .mg-scenario>summary::-webkit-details-marker { display:none; }
.member-guide .mg-table-section>summary>svg { flex:0 0 auto; width:32px; height:32px; padding:6px; border-radius:7px; background:var(--mg-tone-soft); fill:none; stroke:var(--mg-tone); stroke-width:1.35; }
.member-guide .mg-table-section>summary>span:not(.mg-detail-toggle) { min-width:0; }
.member-guide .mg-table-section>summary strong { display:block; color:var(--mg-tone-ink); font-size:var(--mg-type-item); font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
.member-guide .mg-table-section>summary small { display:block; margin-top:3px; color:var(--mg-muted); font-size:11px; }
.member-guide .mg-detail-toggle { margin-left:auto; color:var(--mg-tone-muted); font-size:11px; white-space:nowrap; }
.member-guide .mg-detail-toggle i { display:inline-block; margin-left:8px; font-style:normal; transition:transform .16s ease; }
.member-guide .mg-table-section[open]>summary { background:var(--mg-tone-wash); }
.member-guide .mg-table-section[open] .mg-detail-toggle i { transform:rotate(45deg); }
.member-guide .mg-table-scroll { overflow-x:auto; border-top:1px solid var(--mg-line); scrollbar-width:thin; scrollbar-color:var(--mg-tone-line) transparent; }
.member-guide .mg-table-hint { display:none; margin:0; padding:0 19px 12px; color:var(--mg-muted); font-size:11px; }
.member-guide table { width:100%; border-collapse:collapse; table-layout:auto; color:var(--mg-body-ink); font-size:var(--mg-type-body); }
.member-guide th,.member-guide td { min-width:85px; padding:12px 15px; vertical-align:top; text-align:left; overflow-wrap:anywhere; line-height:1.8; }
.member-guide thead th { border-bottom:1px solid var(--mg-line); background:var(--mg-tone-wash); color:var(--mg-tone-ink); font-size:var(--mg-type-body); font-weight:700; }
.member-guide tbody tr+tr>* { border-top:1px solid var(--mg-line); }
.member-guide tbody th { font-weight:650; }
.member-guide .mg-evidence-column { width:60px; min-width:60px; padding-left:4px; padding-right:13px; }
.member-guide .mg-evidence-column .mg-reference { margin:0; }
.member-guide :is(.mg-table-section>summary,.mg-table-scroll,.mg-notes>summary,.mg-scenario>summary):focus-visible { outline:2px solid var(--mg-tone); outline-offset:-4px; }
.member-guide .mg-scenarios { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr)); gap:13px; }
.member-guide .mg-scenario { min-width:0; border:1px solid var(--mg-line); border-radius:9px; background:var(--mg-paper); }
.member-guide .mg-scenario>summary { display:flex; align-items:center; gap:12px; padding:17px; cursor:pointer; list-style:none; }
.member-guide .mg-scenario>summary strong { min-width:0; color:var(--mg-tone-ink); font-size:var(--mg-type-item); font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
.member-guide .mg-scenario>summary>i { flex:0 0 auto; margin-left:auto; color:var(--mg-tone-muted); font-size:14px; font-style:normal; transition:transform .16s ease; }
.member-guide .mg-scenario[open]>summary>i { transform:rotate(45deg); }
.member-guide .mg-scenario-body { padding:0 17px 17px; color:var(--mg-body-ink); }
.member-guide .mg-notes { margin:28px 0 0; padding:19px 0; border-top:1px solid var(--mg-tone-line); border-bottom:1px solid var(--mg-tone-line); }
.member-guide .mg-notes>summary { color:var(--mg-tone); font-size:var(--mg-type-chapter); font-weight:700; line-height:1.45; cursor:pointer; }
.member-guide .mg-notes>summary span { margin-left:10px; color:var(--mg-muted); font-size:11px; font-weight:400; }
.member-guide .mg-notes>ol { display:grid; gap:20px; padding-top:22px; }
.member-guide .mg-note { display:grid; grid-template-columns:28px minmax(0,1fr); gap:12px; }
.member-guide .mg-note h5 { font-size:var(--mg-type-item); color:var(--mg-tone-ink); }
.member-guide .mg-note p { color:var(--mg-body-ink); }
.member-guide .mg-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; max-width:none; margin:24px 0 0; padding:17px 0 0; border:0; border-top:1px solid var(--mg-line); color:var(--mg-muted); font-size:11px; }
.member-guide .mg-reference,dialog.mg-evidence-dialog [data-mg-show-all] { display:inline-flex; align-items:center; gap:5px; min-height:30px; margin:4px 0 0; padding:4px 0; border:0; border-radius:4px; background:transparent; color:var(--mg-tone-muted); font:inherit; font-size:var(--mg-type-meta); font-weight:500; line-height:1.5; cursor:pointer; white-space:nowrap; box-shadow:none; }
.member-guide .mg-reference:focus-visible,dialog.mg-evidence-dialog button:focus-visible { outline:2px solid var(--mg-tone); outline-offset:4px; }
/* Explicit dialog specificity wins against the workspace's generic dialog shell. */
dialog.mg-evidence-dialog { width:min(740px,calc(100vw - 32px)); max-height:min(760px,calc(100dvh - 48px)); margin:auto; padding:27px; border:1px solid var(--mg-line); border-radius:16px; background:var(--mg-paper); color:var(--mg-ink); box-shadow:0 28px 90px #00000035; overflow-y:auto; }
dialog.mg-evidence-dialog::backdrop { background:#14253599; backdrop-filter:blur(3px); }
dialog.mg-evidence-dialog>header { display:flex; justify-content:space-between; align-items:start; gap:18px; max-width:none; margin:0; padding:0; border:0; }
dialog.mg-evidence-dialog>header h3 { margin:7px 0 0; color:var(--mg-ink); font-size:23px; line-height:1.4; }
dialog.mg-evidence-dialog .mg-dialog-close { flex:0 0 auto; width:38px; height:38px; margin:0; padding:0; border:1px solid var(--mg-line); border-radius:9px; background:var(--mg-wash); color:var(--mg-ink); font-size:24px; cursor:pointer; box-shadow:none; }
dialog.mg-evidence-dialog .mg-evidence-tools { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin:15px 0 22px; color:var(--mg-muted); font-size:12px; }
dialog.mg-evidence-dialog .mg-evidence-tools p { margin:0; }
dialog.mg-evidence-dialog .mg-evidence-card { padding:20px 0; border-top:1px solid var(--mg-line); }
dialog.mg-evidence-dialog .mg-evidence-card h4 { margin:0 0 10px; color:var(--mg-tone-ink); font-size:var(--mg-type-item); font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
dialog.mg-evidence-dialog blockquote { margin:0 0 13px; padding:0 0 0 16px; border-left:2px solid var(--mg-gold); color:var(--mg-body-ink); font-size:var(--mg-type-body); line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
dialog.mg-evidence-dialog a { color:var(--mg-deep); font-size:var(--mg-type-meta); line-height:1.75; overflow-wrap:anywhere; }
.member-guide .mg-skin-mascot { display:none; }
.pay-guidance:has(>.member-guide) { min-width:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
/* Neutral anime uses the actual outlined cover, tilted ticket and warm condition cards. */
html[data-guide-skin="anime"] .member-guide { border:2px solid var(--mg-outline); border-radius:17px; box-shadow:5px 6px 0 var(--mg-offset); }
html[data-guide-skin="anime"] .member-guide .mg-header { padding-bottom:4px; border-bottom:0; }
html[data-guide-skin="anime"] .member-guide .mg-hero { padding:26px 25px 37px; gap:26px; border:2px solid var(--mg-outline); border-radius:17px; background:var(--mg-hero); }
html[data-guide-skin="anime"] .member-guide .mg-hero-copy h4 { margin-top:9px; color:var(--mg-ink); font-family:var(--font-body,"HK Perks Inter","HK Perks Reading","PingFang SC","Microsoft YaHei",sans-serif); font-size:clamp(26px,2.35vw,34px); font-weight:700; line-height:1.5; letter-spacing:-.035em; }
html[data-guide-skin="anime"] .member-guide .mg-hero-copy h4::first-line { text-decoration:underline; text-decoration-color:var(--mg-caution-soft); text-decoration-thickness:7px; text-underline-offset:-1px; text-decoration-skip-ink:none; }
html[data-guide-skin="anime"] .member-guide .mg-hero-copy>.mg-hero-caption { color:var(--mg-body-ink); }
html[data-guide-skin="anime"] .member-guide .mg-hero-reward { padding:0; border:0; }
html[data-guide-skin="anime"] .member-guide .mg-hero-reward>.mg-section-title { color:var(--mg-muted); font-size:var(--mg-type-chapter); }
html[data-guide-skin="anime"] .member-guide .mg-hero-reward .mg-choice-panel { position:relative; margin:7px 7px 5px; padding:20px 22px 22px; border:2px solid var(--mg-outline); border-radius:13px; background:var(--mg-ticket); box-shadow:5px 5px 0 var(--mg-offset); transform:rotate(2deg); }
html[data-guide-skin="anime"] .member-guide .mg-hero-reward .mg-choice-panel::after { content:''; display:block; height:7px; margin-top:14px; background:repeating-linear-gradient(90deg,var(--mg-outline) 0 2px,transparent 2px 5px,var(--mg-outline) 5px 6px,transparent 6px 10px); opacity:.43; }
html[data-guide-skin="anime"] .member-guide .mg-hero-reward .mg-choice-panel p { border-top:2px dashed var(--mg-reward-line); }
html[data-guide-skin="anime"] .member-guide .mg-hero-reward .mg-visual-value { color:var(--mg-reward); }
html[data-guide-skin="anime"] .member-guide .mg-skin-switch { border-radius:19px; }
html[data-guide-skin="anime"] .member-guide .mg-skin-switch button { border-radius:15px; }
html[data-guide-skin="anime"] .member-guide .mg-skin-switch button[aria-pressed="true"] { background:var(--mg-reward-soft); color:var(--mg-reward-ink); border-color:var(--mg-outline); }
html[data-guide-skin="anime"] .member-guide .mg-skin-mascot { position:absolute; display:block; right:50%; bottom:-12px; width:61px; height:58px; border:2px solid var(--mg-outline); border-radius:24px 24px 19px 19px; background:var(--mg-mascot); transform:rotate(-5deg); }
html[data-guide-skin="anime"] .member-guide .mg-mascot-cap { position:absolute; top:-9px; left:-1px; width:55px; height:17px; border:2px solid var(--mg-outline); border-radius:12px 12px 3px 3px; background:var(--mg-time-wash); }
html[data-guide-skin="anime"] .member-guide .mg-mascot-face::before { content:''; position:absolute; top:20px; left:16px; width:4px; height:6px; border-radius:4px; background:#162433; box-shadow:19px 0 0 #162433; }
html[data-guide-skin="anime"] .member-guide .mg-mascot-face::after { content:''; position:absolute; top:30px; left:25px; width:10px; height:6px; border-bottom:2px solid #162433; border-radius:0 0 9px 9px; }
html[data-guide-skin="anime"] .member-guide .mg-mascot-pass { position:absolute; bottom:-4px; left:-11px; width:28px; height:27px; border:2px solid var(--mg-outline); border-radius:5px; background:var(--mg-caution-wash); }
html[data-guide-skin="anime"] .member-guide .mg-mascot-pass::before { content:''; position:absolute; top:5px; left:5px; width:12px; height:12px; border:1.5px solid var(--mg-outline); border-radius:4px; }
html[data-guide-skin="anime"] .member-guide .mg-mascot-pass::after { content:''; position:absolute; bottom:4px; left:7px; width:9px; border-top:1.5px solid var(--mg-outline); }
html[data-guide-skin="anime"] .member-guide .mg-critical-item { border:1.5px solid var(--mg-caution-line); border-radius:12px; padding:18px 20px; }
html[data-guide-skin="anime"] .member-guide .mg-section-title::before { width:11px; height:11px; border:1.5px solid var(--mg-tone); border-radius:3px; background:var(--mg-tone-soft); vertical-align:1px; }
html[data-guide-skin="anime"] .member-guide .mg-choice { border-width:1.5px; border-radius:8px; box-shadow:0 2px 0 var(--mg-tone-line); }
html[data-guide-skin="anime"] .member-guide .mg-choice[aria-selected="true"] { box-shadow:none; }
html[data-guide-skin="anime"] .member-guide .mg-choice-panel:not([hidden]),html[data-guide-skin="anime"] .member-guide :is(.mg-highlight,.mg-table-section,.mg-scenario) { border-width:1.5px; border-radius:11px; }
html[data-guide-skin="anime"] dialog.mg-evidence-dialog { border:2px solid var(--mg-outline); border-radius:15px; box-shadow:5px 6px 0 var(--mg-offset),0 25px 80px #00000030; }
html[data-guide-skin="anime"] dialog.mg-evidence-dialog .mg-dialog-close { border:1.5px solid var(--mg-outline); border-radius:50%; background:var(--mg-reward-soft); }
html[data-guide-skin="anime"] dialog.mg-evidence-dialog blockquote { padding:13px 15px; border:1px dashed var(--mg-line); border-left:3px solid var(--mg-gold); border-radius:8px; background:var(--mg-caution-wash); }
@media (hover:hover) and (pointer:fine) {
  .member-guide .mg-choice:hover { border-color:var(--mg-tone); background:var(--mg-tone-wash); transform:translateY(-1px); }
  .member-guide .mg-choice:hover .mg-choice-arrow { transform:translateX(2px); }
  .member-guide .mg-choice[aria-selected="true"]:hover { background:var(--mg-tone-soft); }
  .member-guide .mg-skin-switch button[aria-pressed="false"]:hover { color:var(--mg-deep); background:var(--mg-reward-soft); }
  .member-guide .mg-reference:hover,dialog.mg-evidence-dialog [data-mg-show-all]:hover { color:var(--mg-tone-ink); text-decoration:underline; text-underline-offset:3px; }
  .member-guide :is(.mg-table-section>summary,.mg-scenario>summary):hover { background:var(--mg-tone-wash); }
  dialog.mg-evidence-dialog .mg-dialog-close:hover { background:var(--mg-reward-soft); }
}
.member-guide .mg-choice:active { transform:translateY(1px); }
@media (max-width:850px) {
  .member-guide .mg-header { align-items:flex-start; flex-wrap:wrap; }
  .member-guide .mg-header-tools { justify-content:flex-start; }
  .member-guide .mg-hero { grid-template-columns:minmax(0,1fr); gap:20px; }
  .member-guide .mg-hero-reward { padding:19px 0 0; border:0; border-top:1px solid var(--mg-line); }
  html[data-guide-skin="anime"] .member-guide .mg-hero { grid-template-columns:minmax(0,1fr); padding:24px 22px 30px; }
  html[data-guide-skin="anime"] .member-guide .mg-hero-reward { border:0; padding:0; }
  html[data-guide-skin="anime"] .member-guide .mg-skin-mascot { right:24px; }
}
@media (max-width:650px) {
  .member-guide,dialog.mg-evidence-dialog { --mg-type-chapter:20px; --mg-type-item:17px; --mg-type-body:16px; font-size:var(--mg-type-body); }
  .member-guide { padding:20px 17px 18px; }
  .member-guide .mg-header { gap:11px; margin-bottom:18px; padding-bottom:14px; }
  .member-guide .mg-eyebrow { font-size:11px; }
  .member-guide .mg-header-tools { width:100%; flex-wrap:wrap; justify-content:space-between; gap:8px; }
  .member-guide .mg-skin-label { display:none; }
  .member-guide .mg-skin-switch button { min-height:44px; }
  .member-guide .mg-hero-reward .mg-choice { min-height:44px; }
  .member-guide .mg-version { font-size:10px; }
  .member-guide .mg-hero { padding:8px 0 24px; margin-bottom:28px; }
  .member-guide .mg-hero-copy h4 { margin:0 0 13px; font-size:25px; line-height:1.5; }
  .member-guide .mg-hero-copy>.mg-hero-caption { margin-top:12px; }
  .member-guide .mg-hero-reward .mg-visual-value { font-size:26px; }
  .member-guide .mg-hero-reward .mg-visual-value-long { font-size:22px; }
  .member-guide .mg-critical,.member-guide .mg-overview,.member-guide .mg-section,.member-guide .mg-details-library { margin:27px 0; }
  .member-guide .mg-section-title { margin-bottom:14px; }
  .member-guide .mg-critical>div>strong { margin-left:39px; margin-bottom:16px; }
  .member-guide .mg-critical-items,.member-guide .mg-highlights-reading { grid-template-columns:minmax(0,1fr); gap:11px; }
  .member-guide .mg-critical-item { padding:16px; }
  .member-guide .mg-critical-item>header { flex-wrap:wrap; gap:3px 12px; }
  .member-guide .mg-critical-item .mg-reference { margin:0; }
  .member-guide .mg-highlights-reading>.mg-highlight { padding:16px; grid-template-columns:25px minmax(0,1fr); gap:10px; }
  .member-guide .mg-number { width:25px; height:25px; }
  .member-guide .mg-choice-group { gap:12px; }
  .member-guide .mg-choice { padding:8px 10px; }
  .member-guide .mg-choice-panel { flex-direction:column; gap:5px; padding:16px; }
  .member-guide .mg-choice-panel>.mg-reference { min-height:36px; }
  .member-guide .mg-visual-value { font-size:27px; }
  .member-guide .mg-visual-value-long { font-size:22px; }
  .member-guide .mg-table-section>summary { gap:10px; padding:14px; }
  .member-guide .mg-table-hint { display:block; padding:0 14px 10px; }
  .member-guide th,.member-guide td { min-width:84px; padding:11px 12px; }
  .member-guide .mg-long-column .mg-cell-text { display:block; min-width:250px; }
  .member-guide .mg-evidence-column { min-width:54px; padding-right:12px; }
  .member-guide .mg-reference { min-height:36px; }
  .member-guide .mg-scenario>summary { padding:16px; }
  .member-guide .mg-note { grid-template-columns:25px minmax(0,1fr); gap:10px; }
  .member-guide .mg-footer { align-items:flex-start; }
  html[data-guide-skin="anime"] .member-guide { padding:18px 15px; border-radius:14px; box-shadow:3px 4px 0 var(--mg-offset); }
  html[data-guide-skin="anime"] .member-guide .mg-hero { gap:20px; padding:19px 16px 29px; border-radius:13px; }
  html[data-guide-skin="anime"] .member-guide .mg-hero-copy h4 { font-size:24px; }
  html[data-guide-skin="anime"] .member-guide .mg-hero-reward>.mg-section-title { font-size:var(--mg-type-chapter); }
  html[data-guide-skin="anime"] .member-guide .mg-hero-reward .mg-choice-panel { margin:4px 3px 5px; padding:16px 17px 18px; transform:rotate(1deg); }
  html[data-guide-skin="anime"] .member-guide .mg-critical-item { padding:16px; }
  dialog.mg-evidence-dialog { max-height:calc(100dvh - 32px); padding:21px; border-radius:14px; }
  dialog.mg-evidence-dialog .mg-dialog-close { width:42px; height:42px; }
}
@media (max-width:379px) {
  .member-guide { padding:18px 13px 16px; }
  .member-guide .mg-header-tools { justify-content:flex-start; }
  .member-guide .mg-version { margin-left:0; }
  html[data-guide-skin="anime"] .member-guide { padding:16px 11px; }
  html[data-guide-skin="anime"] .member-guide .mg-hero { padding:17px 12px 26px; }
  html[data-guide-skin="anime"] .member-guide .mg-hero-reward .mg-choice-panel { margin-left:1px; margin-right:1px; padding:14px 13px 17px; transform:none; }
}
@media (prefers-reduced-motion:reduce) {
  .member-guide .mg-choice,.member-guide .mg-choice-arrow,.member-guide .mg-skin-switch button,.member-guide .mg-detail-toggle i,.member-guide .mg-scenario>summary>i { transition:none; }
  .member-guide .mg-choice:hover,.member-guide .mg-choice:active,.member-guide .mg-choice:hover .mg-choice-arrow { transform:none; }
}
@media (forced-colors:active) {
  .member-guide .mg-choice[aria-selected="true"],.member-guide .mg-skin-switch button[aria-pressed="true"] { outline:2px solid Highlight; outline-offset:-3px; }
  .member-guide .mg-skin-mascot { display:none!important; }
  .member-guide .mg-hero-reward .mg-choice-panel { transform:none; }
}

/* Readable highlight cards own their header inside every workspace shell. */
.member-guide .mg-highlight>div>header { display:flex; align-items:start; justify-content:space-between; gap:12px; max-width:none; margin:0 0 8px; padding:0; border:0; }
.member-guide .mg-highlight>div>header h5 { margin:0; min-width:0; flex:1 1 auto; }
.member-guide .mg-highlight>div>header .mg-reference { flex:0 0 auto; margin:0; }
@media(max-width:650px) { .member-guide .mg-highlight>div>header { flex-wrap:wrap; gap:3px 12px; } }
/* A drawn check marks selection without depending on a hue change. */
.member-guide .mg-choice[aria-selected="true"]::after { content:''; display:block; flex:0 0 auto; width:9px; height:5px; margin-left:2px; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); }
/* The cover's nested section carries no normal chapter outside margin. */
.member-guide .mg-hero .mg-hero-reward { margin:0; }
/* Nested plan dialogs must keep full article paragraphs at reading size. */
.member-guide :is(.mg-highlight,.mg-note,.mg-critical-item,.mg-choice-panel,.mg-scenario-body) p { font-size:var(--mg-type-body); line-height:1.75; }
.member-guide .mg-condition-icon { flex:0 0 auto; width:20px; height:20px; margin-top:3px; fill:none; stroke:var(--mg-tone); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.member-guide .mg-critical-item>header h5 { min-width:0; flex:1 1 auto; }
/* Original document glyphs distinguish condition titles from body paragraphs. */
.member-guide .mg-critical-item>header h5 { display:flex; align-items:flex-start; gap:8px; flex:1 1 auto; }
.member-guide .mg-critical-item>header h5>span { min-width:0; }

/* Material uncertainties are visible in public cards and both member skins. */
.terms-disclosure{color:#81300e;background:#fff3e5;border:2px solid #b75014;border-radius:16px;padding:20px;margin:18px 0;font:inherit;line-height:1.65;overflow-wrap:anywhere}
.terms-disclosure>header{display:flex;gap:12px;align-items:flex-start}.terms-disclosure>header>span{font-size:26px;line-height:1.4}.terms-disclosure h3{font:inherit;font-size:19px;font-weight:750;margin:0 0 6px}.terms-disclosure h4{font:inherit;font-weight:700;margin:0 0 6px}.terms-disclosure p{margin:6px 0}.terms-disclosure-issues{display:grid;gap:16px;margin-top:18px}.terms-disclosure-issues>article{border-top:1px solid #d9ab89;padding-top:14px}.terms-disclosure summary{cursor:pointer;font-weight:650}.terms-disclosure blockquote{font:inherit;font-size:13px;border-left:3px solid currentColor;padding-left:12px;margin:12px 0}.terms-disclosure a{color:inherit;text-decoration:underline}
.terms-disclosure-compact{margin:8px 0;padding:0;border:0;background:transparent;color:#8b5b23;font:inherit;font-size:12px;font-weight:500;line-height:1.5;flex-shrink:0}
[data-theme="night"] .terms-disclosure{color:#ffe1bc;background:#302018;border-color:#e7a16a}[data-theme="night"] .terms-disclosure-issues>article{border-color:#76533c}
[data-theme="night"] .terms-disclosure-compact{color:#daba83}
@media(max-width:600px){.terms-disclosure{padding:15px}.terms-disclosure h3{font-size:17px}.terms-disclosure>header{gap:8px}.terms-disclosure>header>span{font-size:23px}}

/* Distinct compositions, sharing the exact same authored facts and type scale. */
.member-guide .mg-appearance-trigger { display:none; }
dialog[open] .member-guide .mg-appearance-trigger { display:inline-flex; align-items:center; min-height:36px; padding:6px 10px; margin:0; border:1px solid var(--mg-line); border-radius:7px; background:var(--mg-paper); color:var(--mg-deep); font:600 12px/1.5 system-ui,sans-serif; cursor:pointer; }
.member-guide .mg-cover-art { display:none; }
.member-guide { counter-reset:guide-chapter; }
.member-guide :is(.mg-section,.mg-overview,.mg-details-library)[data-mg-section]>.mg-section-title { display:flex; align-items:center; gap:12px; counter-increment:guide-chapter; }
.member-guide :is(.mg-section,.mg-overview,.mg-details-library)[data-mg-section]>.mg-section-title::before { content:counter(guide-chapter,decimal-leading-zero); display:inline-grid; place-items:center; width:30px; height:30px; margin:0; flex:none; background:var(--mg-tone-soft); color:var(--mg-tone); border:0; border-radius:6px; font:600 12px/1 system-ui,sans-serif; }
html[data-guide-skin="business"] .member-guide { border-top:3px solid var(--mg-gold); border-radius:5px; box-shadow:0 8px 24px var(--mg-shadow); }
html[data-guide-skin="business"] .member-guide .mg-header { margin-bottom:20px; padding-bottom:13px; }
html[data-guide-skin="business"] .member-guide .mg-hero { align-items:start; gap:26px; margin-bottom:29px; padding:0; border:0; border-radius:5px; background:transparent; }
html[data-guide-skin="business"] .member-guide .mg-hero-copy { padding:27px; border-radius:5px; background:var(--mg-wash); }
html[data-guide-skin="business"] .member-guide .mg-hero-copy h4 { margin-top:0; color:var(--mg-deep); font-size:clamp(26px,2.25vw,34px); line-height:1.5; }
html[data-guide-skin="business"] .member-guide .mg-hero-copy::before { content:''; display:block; width:36px; height:3px; margin-bottom:19px; background:#c9b17d; }
html[data-guide-skin="business"] .member-guide .mg-hero-copy>.mg-hero-caption { color:var(--mg-body-ink); font-size:var(--mg-type-body); }
html[data-guide-skin="business"] .member-guide .mg-hero-reward { padding-left:0; border:0; }
html[data-guide-skin="business"] .member-guide .mg-hero-reward>.mg-section-title { color:var(--mg-deep); font-size:var(--mg-type-chapter); }
html[data-guide-skin="business"] .member-guide .mg-hero-reward .mg-choice-panel { padding:20px; border:0; border-left:3px solid var(--mg-gold); border-radius:3px; background:var(--mg-wash); }
html[data-guide-skin="business"] .member-guide .mg-highlights-reading>.mg-highlight { padding:18px 13px; border:0; border-top:1px solid var(--mg-tone-line); border-radius:0; background:transparent; }
html[data-guide-skin="business"] .member-guide .mg-critical-item { border:0; border-left:2px solid var(--mg-tone-line); border-radius:3px; }
html[data-guide-skin="business"] .member-guide .mg-visual-reward .mg-choice-panel { border-radius:3px; }
html[data-guide-skin="anime"] .member-guide { border:1px solid var(--mg-line); border-radius:16px; background-color:var(--mg-paper); background-image:radial-gradient(var(--mg-line) .6px,transparent .6px); background-size:14px 14px; box-shadow:0 5px 0 var(--mg-offset); }
html[data-guide-skin="anime"] .member-guide .mg-hero { padding:25px; margin-top:3px; border:1px solid var(--mg-outline); background:var(--mg-hero); border-radius:19px 19px 28px 9px; }
html[data-guide-skin="anime"] .member-guide .mg-hero-copy h4 { font-size:clamp(26px,2.25vw,34px); line-height:1.5; }
html[data-guide-skin="anime"] .member-guide .mg-cover-art { display:block; width:164px; max-width:70%; margin-top:16px; }
.member-guide .mg-cover-art svg { display:block; width:100%; height:auto; overflow:visible; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.member-guide .mg-art-shadow { fill:var(--mg-reward-line); opacity:.45; stroke:none; }
.member-guide .mg-art-page { fill:var(--mg-overview-soft); stroke:var(--mg-outline); }
.member-guide .mg-art-ticket { fill:var(--mg-caution-wash); stroke:var(--mg-outline); }
.member-guide .mg-art-line { fill:none; stroke:var(--mg-outline); stroke-width:1.6; }
.member-guide .mg-art-spark { fill:var(--mg-caution-soft); stroke:var(--mg-gold); }
html[data-guide-skin="anime"] .member-guide .mg-highlights-reading { grid-template-columns:minmax(0,1fr); gap:4px; margin-left:14px; padding-left:17px; border-left:2px dashed var(--mg-tone-line); }
html[data-guide-skin="anime"] .member-guide .mg-highlights-reading>.mg-highlight { grid-template-columns:29px minmax(0,1fr); gap:12px; margin-left:-33px; padding:15px 12px 15px 0; border:0; border-radius:0; background:var(--mg-paper); }
html[data-guide-skin="anime"] .member-guide .mg-highlight .mg-number { border:1px solid var(--mg-tone-line); border-radius:50%; background:var(--mg-tone-soft); }
html[data-guide-skin="anime"] .member-guide .mg-choice-flow>.mg-compact-tabs { padding:9px 0; }
html[data-guide-skin="anime"] .member-guide .mg-choice-flow>.mg-compact-tabs::before { content:''; position:absolute; top:50%; left:8px; right:8px; border-top:2px dashed var(--mg-tone-line); }
html[data-guide-skin="anime"] .member-guide .mg-choice-flow .mg-choice { position:relative; z-index:1; border-radius:22px; box-shadow:none; }
html[data-guide-skin="anime"] .member-guide .mg-choice-flow .mg-choice-panel { border-radius:15px; background:var(--mg-tone-wash); }
html[data-guide-skin="anime"] .member-guide .mg-hero-reward .mg-choice-panel { box-shadow:4px 4px 0 var(--mg-offset); transform:rotate(1deg); }
@media(max-width:800px) {
  html[data-guide-skin="business"] .member-guide .mg-hero { grid-template-columns:minmax(0,1fr); gap:19px; }
  html[data-guide-skin="business"] .member-guide .mg-hero-reward { padding:18px 0 0; border-top:1px solid #9bafbf66; }
}
@media(max-width:600px) {
  html[data-guide-skin="business"] .member-guide .mg-hero { padding:0; }
  html[data-guide-skin="business"] .member-guide .mg-hero-copy { padding:22px 18px; }
  html[data-guide-skin="anime"] .member-guide .mg-hero { padding:21px 16px; }
  html[data-guide-skin="business"] .member-guide .mg-hero-copy h4,html[data-guide-skin="anime"] .member-guide .mg-hero-copy h4 { font-size:25px; }
  html[data-guide-skin="anime"] .member-guide .mg-cover-art { width:130px; margin-top:12px; }
  html[data-guide-skin="anime"] .member-guide .mg-highlights-reading>.mg-highlight { gap:9px; }
  dialog[open] .member-guide .mg-appearance-trigger { min-height:44px; }
}

body:not(:has([data-member-guide])) [data-appearance-skin-label] { display:none; }
.site-header:has([data-appearance-root]) { gap:16px; }
@media(min-width:601px) and (max-width:1000px) {
  .site-header:has([data-appearance-root]) { flex-wrap:wrap; gap:14px; }
  .site-header:has([data-appearance-root]) .header-tools { margin-left:auto; }
  .site-header:has([data-appearance-root]) .primary-nav { order:3; width:100%; justify-content:center; }
}
@media(max-width:600px) {
  .site-header:has([data-appearance-root]) { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
  .site-header:has([data-appearance-root]) .header-tools { display:flex; flex-wrap:wrap; justify-content:flex-start; width:100%; gap:8px; }
}
html[data-theme="night"] .member-app :is(.panel,.plan,.compact-plan,.offer,.account-scope-bar,.workspace-navigation,.personal-actions) { background:var(--paper); color:var(--ink); }
html[data-theme="night"] .member-app :is(input,select,textarea) { background:#223b33; border-color:var(--line); color:var(--ink); }
html[data-theme="night"] .member-app dialog:not(.appearance-panel):not(.mg-evidence-dialog) { background:var(--paper); border-color:var(--line); color:var(--ink); }

/* Compose the article for its actual reading width, including a plan dialog.
   A wider viewport alone must not enlarge a guide inside a narrow container. */
.member-guide { container-name:member-reading; container-type:inline-size; }
@container member-reading (min-width:900px) {
  .member-guide .mg-hero-with-ticket {
    grid-template-columns:minmax(250px,.65fr) minmax(0,1.35fr);
    gap:28px;
  }
  html[data-guide-skin="business"] .member-guide .mg-hero-copy {
    padding:4px 0 4px 22px; border-left:3px solid var(--mg-gold);
    border-radius:0; background:transparent;
  }
  html[data-guide-skin="business"] .member-guide .mg-hero-copy::before { display:none; }
  html[data-guide-skin="business"] .member-guide .mg-hero-copy h4,
  html[data-guide-skin="anime"] .member-guide .mg-hero-copy h4 {
    margin:0 0 12px; font-size:26px; line-height:1.5;
  }
  html[data-guide-skin="business"] .member-guide .mg-hero-copy h4 { color:var(--mg-deep); }
  html[data-guide-skin="business"] .member-guide .mg-hero-copy>.mg-hero-caption {
    margin-top:0; color:var(--mg-muted);
  }
  html[data-guide-skin="anime"] .member-guide .mg-cover-art { width:112px; margin-top:12px; }
  .member-guide .mg-hero-reward .mg-choice-group { gap:12px; }
  .member-guide .mg-hero-reward .mg-compact-tabs { order:0; gap:8px; }
  .member-guide .mg-hero-reward .mg-choice { padding:8px 11px; min-height:38px; }
  .member-guide .mg-hero-reward .mg-choice strong { font-size:13px; }
  .member-guide .mg-hero-reward .mg-choice-panel h5 { margin-bottom:8px; }
  .member-guide .mg-hero-reward .mg-choice-panel p { margin-top:10px; padding-top:10px; }
  /* Restriction cards have one compact reading scale in both skins. Keep the
     chapter heading prominent and leave phone / narrow-dialog typography alone. */
  .member-guide .mg-critical {
    --mg-type-restriction-title:17px; --mg-type-restriction-body:16px;
    margin:24px 0;
  }
  .member-guide .mg-critical>div>strong { margin-bottom:12px; }
  .member-guide .mg-critical-items { align-items:start; gap:10px 12px; }
  .member-guide .mg-critical-item>header { align-items:flex-start; gap:10px; margin-bottom:6px; }
  .member-guide .mg-critical-item>header h5 {
    gap:7px; font-size:var(--mg-type-restriction-title); font-weight:700; line-height:1.45;
  }
  .member-guide .mg-critical-item .mg-condition-icon { width:18px; height:18px; }
  .member-guide .mg-critical-item .mg-reference {
    margin:0; padding:3px 0; min-height:24px; flex:none;
    font-size:var(--mg-type-meta); line-height:1.5;
  }
  html[data-guide-skin="business"] .member-guide .mg-critical-item {
    border:1px solid var(--mg-tone-line); border-top:3px solid var(--mg-tone-line);
    border-radius:8px;
  }
  html[data-guide-skin] .member-guide .mg-critical-item { padding:13px 16px; }
  .member-guide .mg-critical-item p {
    margin:0; font-size:var(--mg-type-restriction-body); line-height:1.6;
  }
}
@container member-reading (min-width:1200px) {
  .member-guide .mg-hero-reward .mg-choice-panel:not([hidden]) {
    display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px 18px; align-items:start;
  }
  .member-guide .mg-hero-reward .mg-choice-panel-body {
    display:grid; grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);
    gap:8px 26px; align-items:start;
  }
  .member-guide .mg-hero-reward .mg-visual-plain { grid-column:1; grid-row:1; margin:0; }
  .member-guide .mg-hero-reward .mg-choice-panel h5 { grid-column:1; grid-row:2; margin:0; }
  .member-guide .mg-hero-reward .mg-choice-panel p {
    grid-column:2; grid-row:1 / span 2; margin:0; padding:0; border:0;
  }
  .member-guide .mg-hero-reward .mg-choice-panel>.mg-reference {
    margin:0; align-self:start;
  }
  .member-guide .mg-hero-reward .mg-choice-panel::after { grid-column:1 / -1; }
  .member-guide .mg-critical-items:has(>.mg-critical-item:nth-child(3)) {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .member-guide .mg-critical-items:has(>.mg-critical-item:nth-child(3))>.mg-critical-item:last-child:nth-child(odd) {
    grid-column:auto;
  }
}

/* Pine and warm paper form the business palette. Chapter cues use restrained
   green/grey tones; gold accents and actual uncertainty retain separate roles. */
html:not([data-guide-skin="anime"]) :is(.member-guide,dialog.mg-evidence-dialog) {
  --mg-ink:#203c34; --mg-muted:#607369; --mg-body-ink:#3c5148;
  --mg-paper:#fffefb; --mg-wash:#f4f5ef; --mg-line:#dce4db;
  --mg-deep:#24584a; --mg-gold:#94733d; --mg-outline:#607369;
  --mg-reward:#24584a; --mg-reward-ink:#234c40; --mg-reward-muted:#607369;
  --mg-reward-line:#d7e1d7; --mg-reward-wash:#f2f5ee; --mg-reward-soft:#e8eee4;
  --mg-overview:#42664e; --mg-overview-ink:#34513f; --mg-overview-muted:#607369;
  --mg-overview-line:#d5dfd3; --mg-overview-wash:#f3f5ef; --mg-overview-soft:#e9eee3;
  --mg-flow:#35635a; --mg-flow-ink:#315149; --mg-flow-muted:#607369;
  --mg-flow-line:#d4e0d9; --mg-flow-wash:#f1f5f0; --mg-flow-soft:#e7eee8;
  --mg-time:#5b6a5b; --mg-time-ink:#455541; --mg-time-muted:#66735f;
  --mg-time-line:#dbe1d4; --mg-time-wash:#f5f6ef; --mg-time-soft:#eceee3;
  --mg-details:#53675e; --mg-details-ink:#3f544a; --mg-details-muted:#607369;
  --mg-details-line:#dce3dc; --mg-details-wash:#f4f6f1; --mg-details-soft:#eaf0e8;
}
html[data-theme="night"]:not([data-guide-skin="anime"]) :is(.member-guide,dialog.mg-evidence-dialog) {
  --mg-ink:#e5eee8; --mg-muted:#a7bbb0; --mg-body-ink:#c8d8ce;
  --mg-paper:#1b2e28; --mg-wash:#23392f; --mg-line:#3b5548;
  --mg-deep:#b2d5bf; --mg-gold:#d8bc82; --mg-outline:#a7bbb0;
  --mg-reward:#b2d5bf; --mg-reward-ink:#e0ede3; --mg-reward-muted:#a7bbb0;
  --mg-reward-line:#3f5b4a; --mg-reward-wash:#243d30; --mg-reward-soft:#2d4837;
  --mg-overview:#b8d2b7; --mg-overview-ink:#e0ebdc; --mg-overview-muted:#aabbab;
  --mg-overview-line:#465e47; --mg-overview-wash:#283d2b; --mg-overview-soft:#304935;
  --mg-flow:#b1d0c2; --mg-flow-ink:#dfebe5; --mg-flow-muted:#a7bbb0;
  --mg-flow-line:#425c50; --mg-flow-wash:#263c31; --mg-flow-soft:#30493e;
  --mg-time:#c6d0b3; --mg-time-ink:#e6ebd7; --mg-time-muted:#b5bda8;
  --mg-time-line:#535e45; --mg-time-wash:#323b29; --mg-time-soft:#3d4834;
  --mg-details:#bbcec0; --mg-details-ink:#e1eae2; --mg-details-muted:#a7bbb0;
  --mg-details-line:#485d4f; --mg-details-wash:#2a3c30; --mg-details-soft:#34483b;
}
html:not([data-guide-skin="anime"]) .member-guide :is(.mg-critical,.mg-notes) {
  --mg-tone:var(--mg-deep); --mg-tone-ink:var(--mg-ink); --mg-tone-muted:var(--mg-muted);
  --mg-tone-line:var(--mg-line); --mg-tone-wash:var(--mg-paper); --mg-tone-soft:var(--mg-wash);
}
html:not([data-guide-skin="anime"]) .member-guide .mg-critical-item { border-top-color:var(--mg-gold); }
