:root {
  color-scheme: light;
  --page: #fbf7ef;
  --card: #fffdf9;
  --ink: #301c18;
  --muted: #755e53;
  --border: #eaded0;
  --red: #a61d2e;
  --dark-red: #821728;
  --gold: #ffde8e;
  --soft-red: #fae9e5;
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, "Microsoft YaHei", serif;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  scroll-padding-top: 88px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ad6834; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1104px, calc(100% - 64px)); margin-inline: auto; }
.masthead { position: sticky; top: 0; z-index: 3; background: #fffcf6; border-bottom: 1px solid var(--border); }
.topbar { display: flex; align-items: center; min-height: 74px; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand strong { display: block; font-size: 17px; line-height: 1.25; letter-spacing: .03em; }
.brand small { display: block; color: #8d5b39; font: 700 9px/1.5 system-ui, sans-serif; margin-top: 3px; letter-spacing: .19em; }
.logo { position: relative; display: block; flex: none; overflow: hidden; height: 41px; width: 41px; border-radius: 13px; background: #f0d7a6; }
.logo img { position: absolute; top: 50%; left: 50%; width: 125%; height: 125%; object-fit: cover; transform: translate(-50%, -50%); }
nav { display: flex; gap: 5px; justify-content: center; margin-inline: auto; }
nav a { display: grid; place-items: center; padding: 8px 13px; font-size: 13px; font-weight: 650; color: var(--muted); border-radius: 8px; white-space: nowrap; }
nav a:hover, nav a[aria-current="page"] { background: var(--soft-red); color: var(--dark-red); }
.button { border: 1px solid var(--border); border-radius: 8px; min-height: 39px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--card); color: var(--ink); font-weight: 700; white-space: nowrap; }
.button:hover { border-color: #caa58b; background: #f8ede1; }
.button:active { transform: translateY(1px); }
.primary { color: white; background: var(--red); border-color: var(--red); }
.primary:hover { color: white; background: var(--dark-red); border-color: var(--dark-red); }
.account-button { font-size: 12px; overflow: hidden; max-width: 132px; text-overflow: ellipsis; display: inline-block; flex-shrink: 0; }
main { padding-top: 27px; min-height: 65vh; outline: none !important; }

















.home-grid { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(230px, 1fr); align-items: start; gap: 23px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.section-head h2 { display: flex; align-items: center; gap: 9px; font-size: 22px; line-height: 1.25; }
.section-head h2::before { content: ""; width: 4px; height: 20px; background: var(--red); border-radius: 2px; }
.text-link { color: var(--dark-red); font-size: 12px; font-weight: 700; white-space: nowrap; padding: 4px 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.stack { display: grid; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 13px; min-width: 0; }
.post { padding: 17px 18px; display: grid; grid-template-columns: 1fr 70px; align-items: center; gap: 15px; }
.post h3 { margin-top: 5px; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.post h3 a:hover { color: var(--red); }
.post .excerpt { color: var(--muted); margin: 5px 0 9px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; }
.post-meta { display: flex; gap: 13px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; width: max-content; padding: 2px 7px; border-radius: 4px; background: var(--soft-red); color: var(--dark-red); font-size: 10px; font-weight: 750; }
.badge.warm { background: #f9ebd6; color: #7a4923; }
.post-art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 11px; color: #ffd996; background: linear-gradient(145deg, #922139, #be4541); font: 750 32px/1 var(--serif); }
.post-art.warm { background: linear-gradient(145deg, #f8e4bc, #eeca88); color: #7d3025; }
.post-art.plum { background: linear-gradient(145deg, #f3e4e6, #e9b9bd); color: #8a293c; }
.side-card { padding: 16px; }
.side-card h3 { font-size: 15px; }
.side-card p { color: var(--muted); font-size: 12px; margin: 4px 0 9px; }
.quick-row { padding-block: 11px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); font-weight: 650; font-size: 13px; }
.quick-row:last-child { border: 0; padding-bottom: 1px; }
.quick-row:hover { color: var(--red); }
.quick-row span { color: var(--red); }
.footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 29px; padding: 15px 0 23px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.page-head { margin-bottom: 17px; }
.page-head h1 { font-size: clamp(27px, 5vw, 38px); line-height: 1.2; }
.page-head p { margin-top: 5px; color: var(--muted); }
.subpage { max-width: 760px; margin-inline: auto; }
.filters, .auth-switch { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.chip { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); white-space: nowrap; }
.chip:hover, .chip[aria-pressed="true"] { color: var(--dark-red); background: var(--soft-red); border-color: #e7b7b7; }
.article { padding: clamp(17px, 4vw, 35px); }
.article h1 { font-size: clamp(24px, 5vw, 38px); line-height: 1.2; margin: 8px 0 9px; overflow-wrap: anywhere; }
.article-body { margin: 22px 0; line-height: 1.9; max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.back-link { display: inline-block; margin-bottom: 13px; }
.interact { min-width: 84px; }
.interact[aria-pressed="true"] { background: var(--soft-red); color: var(--dark-red); border-color: #e7b7b7; }
.comments { margin-top: 12px; padding: 19px; }
.comments h2, .chat-title { font-size: 18px; }
.entry { border-bottom: 1px solid var(--border); padding: 10px 0; }
.entry:last-child { border: 0; }
.entry strong { font-size: 12px; }
.entry p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 12px 0; font-size: 13px; }
.padded { padding: 18px; }
.chat { display: grid; grid-template-columns: 160px 1fr; overflow: hidden; }
.chat-sidebar { border-right: 1px solid var(--border); padding: 10px; display: grid; align-content: start; gap: 5px; }
.chat-sidebar button { padding: 8px; min-height: 38px; white-space: normal; width: 100%; justify-content: flex-start; font-size: 12px; }
.chat-sidebar button[aria-pressed="true"] { background: var(--soft-red); border-color: #e7b7b7; color: var(--dark-red); }
.chat-panel { padding: 15px; min-width: 0; }
.messages { max-height: 46vh; min-height: 135px; margin: 10px 0; padding: 9px; border-radius: 8px; overflow-y: auto; background: #fbf4e9; }
.message { width: fit-content; max-width: 86%; margin: 5px 0 9px; padding: 7px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow-wrap: anywhere; }
.message.mine { margin-left: auto; background: var(--soft-red); }
.message b { display: block; font-size: 10px; color: var(--muted); }
form { display: grid; gap: 8px; }
form .button { justify-self: start; }
form label { font-size: 13px; font-weight: 700; }
form input, form textarea, form select { display: block; width: 100%; min-width: 0; border-radius: 8px; border: 1px solid var(--border); padding: 9px; background: #fffefa; color: var(--ink); }
form textarea { resize: vertical; }
.inline-form { grid-template-columns: minmax(0, 1fr) auto; align-items: start; margin-top: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.profile-card { display: grid; justify-items: start; gap: 12px; }
.profile-name { overflow-wrap: anywhere; }
.manage-form { margin-top: 12px; }
.manage-form textarea { min-height: 120px; }
dialog { width: min(395px, calc(100% - 36px)); position: fixed; padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); color: var(--ink); box-shadow: 0 18px 60px #401b1c36; }
dialog::backdrop { background: #28130f77; }
dialog h2 { margin-right: 26px; font-size: 21px; }
dialog .muted { margin: 4px 0 13px; }
.close { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 50%; width: 35px; height: 35px; background: var(--page); color: var(--ink); font-size: 23px; }
.form-message { color: var(--dark-red); font-size: 12px; }
.full { width: 100%; }
.toast { position: fixed; bottom: 19px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 28px); padding: 8px 13px; border-radius: 8px; background: #3b2620; color: white; z-index: 5; box-shadow: 0 5px 18px #301c1840; text-align: center; }
.toast:empty { display: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .topbar { gap: 13px; }
  nav { gap: 2px; }
  nav a { padding-inline: 8px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .topbar { min-height: 59px; justify-content: space-between; }
  .logo { width: 36px; height: 36px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 8px; }
  nav { position: fixed; inset: auto 0 0; display: flex; width: 100%; margin: 0; justify-content: space-around; background: #fffaf1; border-top: 1px solid var(--border); padding: 5px 2px calc(5px + env(safe-area-inset-bottom)); gap: 0; }
  nav a { flex: 1; padding: 10px 1px; }
  main { padding-top: 14px; }










  .home-grid { grid-template-columns: minmax(0, 1fr); margin-top: 22px; gap: 13px; }
  .section-head h2 { font-size: 19px; }
  .post { grid-template-columns: 1fr 55px; padding: 13px; }
  .post h3 { font-size: 15px; }
  .post-art { font-size: 26px; }
  .footer { margin-bottom: calc(51px + env(safe-area-inset-bottom)); padding-bottom: 13px; }
  .toast { bottom: calc(59px + env(safe-area-inset-bottom)); }
  .chat { grid-template-columns: minmax(0, 1fr); }
  .chat-sidebar { display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); }
  .chat-sidebar button { width: auto; }
}
@media (max-width: 360px) {


}

.draw-report { overflow: hidden; }
.draw-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fae9e5; }
.draw-switch button { border: 0; padding: 13px 3px; color: var(--dark-red); background: transparent; font-weight: 700; }
.draw-switch button[aria-pressed="true"] { background: var(--red); color: white; }
.draw-switch button:focus-visible { outline-offset: -4px; }
.draw-body { padding: clamp(12px, 3vw, 22px); }
.draw-heading, .draw-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.draw-heading h1 { font-size: clamp(19px, 3vw, 25px); }
.draw-refresh { padding: 4px 8px; min-height: 32px; font-size: 12px; }
.draw-issue { margin-top: 9px; color: var(--muted); font-size: 12px; }
.draw-issue b { color: var(--dark-red); }
.draw-numbers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto minmax(0, 1fr); align-items: start; gap: clamp(3px, 1.4vw, 13px); margin: 16px 0; }
.draw-tile { display: grid; justify-items: center; gap: 4px; font-size: 12px; }
.draw-ball { width: min(100%, 54px); aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--wave, #805e59); box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--wave, #805e59), white 65%); border-radius: 50%; font: 800 clamp(13px, 3.7vw, 24px)/1 system-ui, sans-serif; background: white; }
.draw-ball.red { --wave: #e21547; }
.draw-ball.blue { --wave: #265aff; }
.draw-ball.green { --wave: #008a58; }
.draw-plus { line-height: clamp(24px, 8vw, 52px); font-weight: 800; }
.draw-status { padding: 8px 10px; margin-top: 8px; border-radius: 8px; background: #f6efe9; color: var(--muted); font-size: 12px; }
.draw-footer, .draw-status { display:none; } .draw-footer { margin-top: 8px; color: var(--muted); font-size: 11px; }
.draw-countdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 9px 12px; border-radius: 9px; background: #f5ebe1; }
.draw-countdown small { display: block; color: var(--muted); }
.draw-countdown time { padding: 4px 8px; border-radius: 6px; background: var(--card); color: var(--dark-red); font-size: clamp(16px, 4vw, 24px); font-weight: 750; font-variant-numeric: tabular-nums; }

.draw-history { margin-top: 10px; border-top: 1px solid var(--border); }
.draw-history summary { padding: 10px 0; cursor: pointer; color: var(--dark-red); font-weight: 700; }
.draw-history-content { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.draw-history-content li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 18px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fffcf7; }
.history-meta b { color: var(--dark-red); }
.history-meta small { display: block; color: var(--muted); font-variant-numeric: tabular-nums; }
.history-numbers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto minmax(0, 1fr); gap: clamp(3px, 1vw, 9px); width: min(100%, 335px); }
.history-tile { display: grid; justify-items: center; align-content: start; gap: 2px; }
.history-ball { display: grid; place-items: center; width: min(100%, 36px); aspect-ratio: 1; border-radius: 50%; background: #725952; color: white; font-weight: 800; font-variant-numeric: tabular-nums; }
.history-ball.red { background: #da1345; }
.history-ball.blue { background: #2454ee; }
.history-ball.green { background: #008452; }
.history-special .history-ball { outline: 1px solid #93754b; outline-offset: 1px; }
.history-animal { font-size: 12px; color: var(--ink); }
.history-plus { color: var(--dark-red); font-weight: 800; align-self: center; margin-bottom: 17px; }

.history-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 9px; align-items: end; padding: 10px; border-radius: 10px; background: #f8f0e8; }
.history-controls label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.history-controls input, .history-controls select { width: 100%; min-height: 39px; min-width: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--ink); }
.history-note { margin: 8px 0; color: var(--muted); font-size: 12px; }
[data-history-more] { margin-top: 9px; }
.history-meta .button { margin-top: 5px; padding: 3px 7px; min-height: 29px; font-size: 12px; }
#draw-video-dialog { width: min(690px, calc(100% - 28px)); }
#draw-video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #1f1917; margin-top: 10px; border-radius: 8px; }
#draw-video-dialog .video-status { color: var(--muted); margin-top: 7px; }

.history-shortcuts { display: grid; gap: 8px; margin-bottom: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #f9f1e8; }
.history-shortcut-row { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 8px; align-items: start; }
.history-shortcut-label { color: var(--dark-red); font-size: 12px; font-weight: 750; padding-top: 7px; }
.history-shortcut-options { display: flex; flex-wrap: wrap; gap: 5px; }
.history-shortcut-options .chip { min-width: 33px; min-height: 32px; padding: 4px 8px; font-size: 12px; }
.history-shortcut-options .chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: white; }
.history-shortcut-options .history-clear { color: var(--dark-red); border-color: #e3bcb7; font-weight: 700; }
.history-placeholder .history-ball { opacity: .12; }
.history-tile { min-height: 52px; }

#draw-video-dialog iframe { width: 100%; aspect-ratio: 16 / 10; margin-top: 10px; border: 0; border-radius: 8px; background: #1f1917; }
#draw-video-dialog video[hidden], #draw-video-dialog iframe[hidden] { display: none; }

.picks-card { padding: 16px; }
.picks-disclosure > summary { position: relative; justify-content: flex-start; padding-right: 24px; cursor: pointer; list-style: none; }
.picks-disclosure > summary::-webkit-details-marker { display: none; }
.picks-disclosure > summary strong { margin-right: auto; font-size: 1.1rem; }
.picks-disclosure > summary::after { content: ""; position: absolute; right: 3px; top: .45em; width: 8px; height: 8px; border-right: 2px solid var(--dark-red); border-bottom: 2px solid var(--dark-red); transform: rotate(45deg); }
.picks-disclosure[open] > summary::after { transform: translateY(3px) rotate(225deg); }
.picks-disclosure:not([open]) > summary { margin-bottom: 0; }
.picks-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; margin-bottom: 8px; }
.picks-heading span { color: var(--muted); font-size: 12px; }
.picks-list { display: grid; gap: 4px; margin: 0 0 7px; }
.picks-list > div { display: grid; grid-template-columns: minmax(78px, 27%) 1fr; align-items: center; min-width: 0; border-radius: 7px; background: #f9f2e9; }
.picks-list dt { padding: 8px; color: var(--dark-red); font-weight: 700; }
.picks-list dd { padding: 8px; margin: 0; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.picks-editor { margin-bottom: 12px; }
.picks-form { margin-top: 12px; }
.picks-form label { display: grid; grid-template-columns: minmax(78px, 26%) 1fr; gap: 8px; align-items: center; }
.promo-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; align-items: stretch; }
.promo-banner { display: block; width: 100%; height: auto; align-self: center; }
.promo-action { display: grid; place-content: center; justify-items: center; gap: 7px; padding: 14px; background: #f0f5ff; text-align: center; }
.promo-action .promo-site { min-width: 126px; min-height: 44px; padding-inline: 14px; border-color: #18458e; background: linear-gradient(140deg, #2665ca, #153777); color: #fff4d6; font-size: 15px; font-weight: 800; box-shadow: 0 3px 8px #15377730; }
.promo-action .promo-site:hover { background: #123574; border-color: #123574; color: #fff4d6; }
.promo-site span { color: #ffd988; }
.promo-action p { margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.promo-action strong { color: #153777; font-variant-numeric: tabular-nums; }
.promo-action .promo-perks { color: #76520e; font-weight: 700; }
@media (max-width: 580px) {
  .promo-card { grid-template-columns: minmax(0, 1fr); }
  .promo-action { padding: 10px; gap: 5px; }
}

.canada-card { padding: 14px; min-width: 0; }
.canada-header, .canada-report-heading, .canada-meta, .canada-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; }
.canada-header h3, .canada-report h4 { margin: 0; font-size: 1rem; }
.canada-header p { color: var(--muted); font-size: .875rem; }
.canada-predict { background: #174f43; border-color: #174f43; color: white; }
.canada-predict:hover { background: #103e35; border-color: #103e35; color: white; }
.canada-report { margin-top: 11px; padding: 11px; border-radius: 10px; background: #edf6f2; color: #153e36; }
.canada-refresh { min-height: 28px; padding: 2px 7px; font-size: .8rem; }
.canada-meta { margin-top: 9px; font-size: .83rem; }
.canada-meta time, .canada-footer { font-variant-numeric: tabular-nums; color: #3e5f58; font-size: .77rem; }
.canada-equation { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(4px, 1vw, 8px); margin: 10px 0; font-weight: 700; }
.canada-ball, .canada-sum { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #9ac9ba; font-variant-numeric: tabular-nums; }
.canada-sum { padding: 0 8px; border-radius: 9px; background: #174f43; color: white; box-shadow: none; }
.canada-combo { padding: 3px 6px; border-radius: 6px; background: #f5dfad; color: #604218; font-size: .78rem; }
.canada-history { border-top: 1px solid #cadfd7; padding-top: 5px; font-size: .83rem; }
.canada-history summary { min-height: 27px; cursor: pointer; font-weight: 700; }
.canada-history ul { margin: 0; padding: 0; list-style: none; }
.canada-history li { display: grid; grid-template-columns: 1.2fr .55fr auto; gap: 5px; padding: 4px 0; border-top: 1px solid #d7e7e1; font-variant-numeric: tabular-nums; }
.canada-footer { margin-top: 5px; }
.canada-footer a { text-decoration: underline; text-underline-offset: 2px; }

.canada-forecast { margin-top: 14px; }
.canada-forecast h2 { margin-bottom: 9px; }

.canada-timer { display:grid; gap: 6px; padding:14px 0; border-bottom:1px solid #cadfd7; }
.canada-timer > strong { font-size:1.5rem; color:#173f36; font-variant-numeric:tabular-nums; }

.canada-data-table { overflow-x:auto; margin-top:8px; font-size:.875rem; }
.canada-data-table small {display:block;color:var(--muted);}
.canada-search { display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:9px 0;font-size:.875rem; }
.canada-search input {border:1px solid var(--border);border-radius:7px;padding:7px;min-width:0;max-width:100%;background:var(--card);color:var(--ink);}
body[data-view="home"] {
  background-color: #f8f0e7;
  background-image:
    radial-gradient(ellipse at 0% 9%, #e9a3a33b 0, transparent 44%),
    radial-gradient(ellipse at 100% 26%, #edc56c3b 0, transparent 42%),
    radial-gradient(ellipse at 14% 86%, #b6d5c42e 0, transparent 42%),
    linear-gradient(155deg, #fff9f1 0%, #faf0e6 45%, #f3e6dd 100%);
  background-attachment: fixed;
}
body[data-view="home"]::before,
body[data-view="home"]::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  width: min(72vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, transparent 0 26px, #b78b5b16 27px 28px, transparent 29px 52px);
  mask-image: radial-gradient(ellipse, #0009, transparent 71%);
}
body[data-view="home"] { isolation: isolate; }
body[data-view="home"]::before { top: 100px; right: -27vw; transform: scaleX(1.4); }
body[data-view="home"]::after { bottom: 5vh; left: -28vw; transform: scaleX(1.5); opacity: .65; }
body[data-view="home"] main { position: relative; }
body[data-view="home"] .card {
  border-color: #d9c3b3;
  box-shadow: 0 4px 16px #6c312509, 0 1px 2px #6c312506;
}
body[data-view="home"] .masthead {
  background: linear-gradient(110deg, #fffaf3, #fff3e9);
  box-shadow: 0 3px 14px #6c31250a;
}
body[data-view="home"] .section-head {
  padding: 8px 0;
  border-bottom: 1px solid #b48a5b42;
}
body[data-view="home"] .picks-disclosure {
  border-top: 3px solid #b43a43;
  background: linear-gradient(130deg, #fffcf8, #fff8ef);
}
body[data-view="home"] .canada-card {
  border-top: 3px solid #467b6c;
  background: linear-gradient(125deg, #fffefa, #f8fbf7);
}
body[data-view="home"] .canada-report {
  background: linear-gradient(135deg, #eaf5ef, #e0efe9);
  box-shadow: inset 0 1px 0 #ffffffb3;
}
body[data-view="home"] .draw-report {
  box-shadow: 0 7px 24px #7c243315;
  border-color: #dba6a7;
}
body[data-view="home"] .footer { border-color: #c1a78e66; }

.materials-toolbar {display:flex;flex-wrap:wrap;gap:9px;justify-content:space-between;align-items:start;margin-bottom:10px;}
.material-image {display:block;max-width:100%;max-height:650px;object-fit:contain;margin:10px auto;border-radius:8px;}
.material-text {white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0;}
#materials-list {margin-top:12px;}

.material-date {display:flex;align-items:center;gap:10px;margin:12px 0;font-weight:700;}
.material-date input {padding:7px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--ink);}
.materials-find {display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin:12px 0 16px;}
.materials-find .material-date {margin:0;flex-shrink:0;}
.material-search {display:flex;align-items:center;gap:10px;flex:1 1 210px;font-weight:700;min-width:0;}
.material-search span {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
.material-search input {width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--ink);font:inherit;font-weight:400;}
.material-search input:focus-visible {outline:2px solid #ad1b32;outline-offset:2px;}
.material-group-title {display:flex;justify-content:space-between;gap:10px;}
.material-gallery {display:grid;gap:8px;}
.material-notes {margin-top:10px;padding:12px;border-radius:8px;background:#f7efe6;}
.yan-download{padding:0;background:#11282b;border:1px solid #245457;overflow:hidden}.yan-figure{position:relative}.yan-figure>img{display:block;width:100%;height:auto}.yan-hit{position:absolute;top:61.25%;height:6.5%;background:transparent;border:0;padding:0;cursor:pointer;border-radius:6px}.yan-hit-ios{left:9.24%;width:11.9%}.yan-hit-android{left:21.99%;width:12.32%}.yan-hit-web{left:35.24%;width:11.6%}.yan-hit:focus-visible{outline:3px solid #20d5c8;outline-offset:2px}.yan-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}.yan-actions>a,.yan-actions>button{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 5px;background:#293e4b;color:#fff;border:1px solid #42616a;border-radius:9px;text-align:center;text-decoration:none;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.yan-actions>a:hover,.yan-actions>button:hover{background:#197f80}.yan-ios-dialog{width:272px;max-width:calc(100vw - 36px);padding:0;border:0;border-radius:12px;background:#fff;box-shadow:0 20px 70px #0006}.yan-ios-dialog::backdrop{background:#0009}.yan-qr-body{position:relative}.yan-qr-body>img{display:block;width:100%;height:auto}.yan-qr-close{position:absolute;left:3%;right:3%;bottom:5%;height:13%;border:0;border-radius:28px;background:transparent;cursor:pointer}.yan-qr-close:focus-visible{outline:3px solid #105f60;outline-offset:2px}@media(max-width:380px){.yan-actions{gap:6px;padding:10px}.yan-actions>a,.yan-actions>button{font-size:12px}}
.bell-benefits {padding:20px;background:linear-gradient(125deg,#fff8e6,#fffdf8 55%,#edf5ff);border-color:#ead3a4;}
.bell-label {display:inline-block;color:#936019;font-size:14px;font-weight:700;margin-bottom:8px;}
.bell-benefits h3 {margin:0;font-size:20px;line-height:1.5;}
.bell-benefits h3 strong {color:#ad1b32;}
.bell-benefits p {margin:6px 0 16px;color:#86551b;}
.bell-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.bell-links a {text-align:center;padding:10px 8px;border-radius:10px;background:#214d87;color:#fff;font-size:16px;font-weight:700;text-decoration:none;}
.bell-links a:first-child {grid-column:1 / -1;padding:17px 12px;font-size:21px;background:linear-gradient(110deg,#173d71,#2d62a7);}
.bell-benefits .bell-password {margin:12px 0 0;text-align:center;font-size:16px;color:#86551b;}
.bell-password strong {color:#ad1b32;letter-spacing:2px;}
.bell-links a:hover {background:#163b6e;}
