/* Independent TT2600-inspired shell. No selector changes the existing templates.
   Content and draw state are the shared anonymous projection, not remote scripts. */
.site-template-preview--portal-tt2600,
.public-site:has(.public-home--portal-tt2600) {
    --tpl-page: #fff;
    --tpl-shell: #83b9fb;
    --tpl-brand: #4092ee;
    --tpl-surface: #fff;
    --tpl-ink: #151515;
    --tpl-muted: #555;
    --tpl-frame: #4092ee;
    --tpl-head: #4092ee;
    --tpl-head-text: #fff;
    --tpl-line: #dceafb;
    --tpl-shadow: none;
    --tpl-font: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.public-home.public-home--portal-tt2600 {
    position: relative;
    padding: 0;
    background: #83b9fb;
    color: #151515;
    font-size: 16px;
}
.public-home--portal-tt2600 a { text-decoration: none; }
.public-home--portal-tt2600 a:focus-visible { outline: 3px solid #ffdc65; outline-offset: -3px; }
.public-home.public-home--portal-tt2600 .pub-home-fixed {
    position: static;
    height: auto;
    overflow: visible;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.tt-brand-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px minmax(100px, .68fr);
    align-items: center;
    gap: 16px;
    min-height: 90px;
    padding: 10px 20px;
    background: #4092ee;
    color: #fff;
}
.tt-brand-name { min-width: 0; }
.tt-brand-name h1 {
    margin: 0;
    overflow: hidden;
    color: #ffe572;
    font-family: KaiTi, STKaiti, "Microsoft YaHei", serif;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    text-shadow: 1px 1px #234995;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tt-brand-name img { display: block; width: auto; max-width: 100%; height: 52px; object-fit: contain; }
.tt-brand-name--preset { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .6rem; align-items: center; }
.tt-brand-name--preset img { grid-row: 1 / 3; }
.tt-brand-name--preset h1 { margin: 0; overflow-wrap: anywhere; }
.tt-brand-name--preset > span { grid-column: 2; }
.tt-brand-name > span { display: block; overflow: hidden; color: #fff; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tt-brand-name--preset h1,
.tt-brand-name--preset > span { white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; }
.tt-brand-emblem {
    display: block;
    width: 64px;
    height: 64px;
    margin: auto;
    border: 5px solid #2595d2;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, #68c6f3, #2675bc 80%);
    box-shadow: 0 2px 10px #2859a2;
}
.tt-brand-rotor { display: block; width: 100%; height: 100%; animation: tt-pinwheel-turn 5s linear infinite; transform-origin: 50% 50%; }
@keyframes tt-pinwheel-turn { to { transform: rotate(360deg); } }
.tt-home-link { justify-self: end; padding: 9px 14px; border-radius: 22px; color: #fff; background: #65a8f2; font-size: 16px; white-space: nowrap; }
.tt-home-link:hover { color: #fff; background: #287bdd; }
.tt-featured-links { display: flex; flex-wrap: nowrap; min-width: 0; overflow-x: auto; gap: 0; padding: 0 8px; background: #4092ee; border-top: 1px solid #2477d0; scrollbar-width: thin; scrollbar-color: #b1d9ff #4092ee; scroll-snap-type: x proximity; }
.tt-featured-links a { display: grid; flex: 0 0 auto; min-width: 20%; align-items: center; min-height: 52px; padding: 4px 10px; color: #fff; font-size: 18px; text-align: center; white-space: nowrap; overflow-wrap: normal; scroll-snap-align: start; }
.tt-news-strip { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; margin: 7px 10px 10px; padding: 8px 10px; border-radius: 3px; background: #4092ee; color: #111; }
.tt-news-strip strong { flex: 0 0 auto; font-size: 15px; }
.tt-news-strip > span { flex: 1; min-width: 0; font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.tt-entry-tools { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch; gap: 4px; min-height: 144px; margin: 0 10px 10px; padding: 12px 8px 10px; border-radius: 16px; background: #f8fcff; }
.tt-entry-tools a { display: flex; container-type: inline-size; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; color: #080808; text-align: center; }
.tt-entry-mark { position: relative; display: grid; place-items: center; width: min(100%, 90px); aspect-ratio: 1; color: #080808; }
.tt-entry-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tt-entry-mark b { position: relative; font-family: KaiTi, STKaiti, "Kaiti SC", BiauKai, "Songti SC", serif; font-size: clamp(calc(20px / var(--tt-mark-length, 1)), calc(7vw / var(--tt-mark-length, 1)), calc(55px / var(--tt-mark-length, 1))); font-size: clamp(calc(20px / var(--tt-mark-length, 1)), calc(62cqw / var(--tt-mark-length, 1)), calc(55px / var(--tt-mark-length, 1))); font-weight: 700; line-height: 1; white-space: nowrap; -webkit-text-stroke: .25px currentColor; }
.tt-entry-tools strong { max-width: 100%; font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif; font-size: clamp(9px, 2.8vw, 23px); font-size: clamp(9px, 20cqw, 23px); font-weight: 800; line-height: 1.5; white-space: nowrap; text-shadow: 1px 1px #eaa647; }
.tt-calendar-strip { display: grid; place-items: center; gap: 6px; min-height: 56px; margin: 0 8px 8px; padding: 10px 8px; border: 1px solid #8dc1ff; border-radius: 7px; background: #15549b; color: #e9edff; font-size: 20px; font-weight: 700; }
.tt-calendar-date, .tt-calendar-daily { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 0; max-width: 100%; line-height: 1.65; }
.tt-calendar-date > span, .tt-calendar-daily > span { display: inline-block; white-space: nowrap; }
.tt-calendar-date > span + span::before, .tt-calendar-daily > span + span::before { content: "."; margin: 0 2px; }
.tt-calendar-date mark { padding: 1px 3px; border-radius: 3px; background: #777314; color: #fff29b; }
.tt-calendar-daily { font-size: 14px; font-weight: 400; }
.tt-calendar-daily b { color: #fff3b4; font-weight: 700; }
.tt-calendar-daily small { margin-left: 8px; font-size: 11px; color: #d4e7ff; }
.public-home.public-home--portal-tt2600 .pub-tabs { height: auto; gap: 5px; padding: 5px; background: #fff; }
.public-home.public-home--portal-tt2600 .pub-tab { min-height: 34px; border: 0; border-radius: 5px; background: #eee; color: #111; font-size: 15px; font-weight: 400; text-shadow: none; }
.public-home.public-home--portal-tt2600 .pub-tab.active { background: #4092ee; color: #fff; font-weight: 700; }
.public-home.public-home--portal-tt2600 .pub-draw-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; align-content: start; gap: 4px; height: auto; min-height: 0; padding: 0 12px 6px; overflow: visible; border-bottom: 9px solid #83b9fb; }
.public-home.public-home--portal-tt2600 .pub-result-row,
.public-home.public-home--portal-tt2600 .pub-draw-pending { grid-column: 1 / -1; min-width: 0; }
.public-home.public-home--portal-tt2600 .pub-draw-summary { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 40px; height: auto; gap: 9px; color: #111; font-size: 17px; }
.public-home.public-home--portal-tt2600 .pub-draw-countdown { font-size: 15px; color: #bd1818; }
.public-home.public-home--portal-tt2600 .pub-history-link { padding: 4px 10px; border-radius: 4px; color: #fff; background: #2d6dfb; font-size: 14px; }
.public-home.public-home--portal-tt2600 .pub-ball-row { height: auto; min-height: 68px; gap: 6px; padding: 3px 0; overflow: visible; align-items: center; }
.public-home.public-home--portal-tt2600 .pub-ball-wrap { flex: 1 1 0; max-width: none; min-width: 0; }
.public-home.public-home--portal-tt2600 .pub-ball-plus { flex: 0 0 16px; margin: 0; color: #f12618; font-size: 25px; }
.public-home.public-home--portal-tt2600.ball-style--classic-card .pub-ball { width: 100%; height: 78px; min-height: 60px; padding: 5px 2px; border: 0; border-radius: 10px; box-shadow: none; background-image: none; }
.public-home.public-home--portal-tt2600.ball-style--classic-card .pub-ball.wave-red { background-color: #c71920; }
.public-home.public-home--portal-tt2600.ball-style--classic-card .pub-ball.wave-green { background-color: #24792b; }
.public-home.public-home--portal-tt2600.ball-style--classic-card .pub-ball.wave-blue { background-color: #1260bc; }
.public-home.public-home--portal-tt2600.ball-style--classic-card .result-ball-number { display: grid; place-items: center; color: #fff; font-size: 30px !important; line-height: 1.2; text-shadow: none; }
.public-home.public-home--portal-tt2600.ball-style--classic-card .result-ball-meta { align-self: center; flex: 0 0 auto; height: auto; max-width: 100%; margin-top: 4px; padding: 1px 6px; border-radius: 13px; background: #fff; color: #111; font-size: 14px !important; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.public-home.public-home--portal-tt2600.ball-style--classic-card.ball-size--small .pub-ball { height: 68px; }
.public-home.public-home--portal-tt2600.ball-style--classic-card.ball-size--large .pub-ball { height: 88px; }
.public-home.public-home--portal-tt2600.ball-style--classic-card.ball-text--small .result-ball-number { font-size: 26px !important; }
.public-home.public-home--portal-tt2600.ball-style--classic-card.ball-text--large .result-ball-number { font-size: 34px !important; }
.public-home.public-home--portal-tt2600.ball-style--classic-card.ball-text--small .result-ball-meta { font-size: 12px !important; }
.public-home.public-home--portal-tt2600.ball-style--classic-card.ball-text--large .result-ball-meta { font-size: 16px !important; }
.public-home.public-home--portal-tt2600 .pub-ball-row-pending { filter: none; }
.public-home.public-home--portal-tt2600.ball-style--classic-card .pub-ball-pending { background-color: #647990; }
.public-home.public-home--portal-tt2600 .pub-ball-pending { filter: none; }
.public-home.public-home--portal-tt2600 .pub-ball-wait-text { color: #fff; font-size: 24px; text-shadow: none; }
.public-home.public-home--portal-tt2600 .pub-next-row { display: block; grid-column: 1; grid-row: 2; min-width: 0; min-height: 36px; height: auto; padding: 4px 0; border: 0; color: #222; font-size: 13px; line-height: 1.5; text-align: left; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.public-home.public-home--portal-tt2600 .pub-draw-refresh,
.public-home.public-home--portal-tt2600 .pub-draw-simulate { position: static; grid-row: 2; min-height: 36px; height: auto; margin: 0; padding: 5px 7px; align-self: center; white-space: nowrap; }
.public-home.public-home--portal-tt2600 .pub-draw-refresh { grid-column: 3; border: 0; color: #ec330d; background: #fff; }
.public-home.public-home--portal-tt2600 .pub-draw-simulate { grid-column: 2; color: #1f60a6; background: #eef6ff; }
.public-home.public-home--portal-tt2600 .pub-draw-refresh-status { position: static; grid-column: 1 / -1; grid-row: 3; display: block; margin: 2px 0; color: #1b518c; font-size: 12px; }
.public-home.public-home--portal-tt2600 .pub-draw-refresh-status:empty { display: none; }
.public-home.public-home--portal-tt2600 .pub-link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 9px 7px; border: 0; border-radius: 0; background: #83b9fb; }
.public-home.public-home--portal-tt2600 .pub-link-grid a { display: grid; place-items: center; min-height: 42px; padding: 5px 2px; border: 1px solid #fff; border-radius: 5px; background: #fff; color: #19589d; font-size: 14px; line-height: 1.35; }
.public-home.public-home--portal-tt2600 .pub-material-block { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
.public-home.public-home--portal-tt2600 .pub-material-block-head { padding: 10px 6px; border: 0; border-radius: 7px 7px 0 0; background: #4092ee; color: #fff; font-size: 22px; font-weight: 700; text-align: center; }
.tt-column-ornament { display: inline-block; width: 22px; height: 22px; margin-right: 6px; vertical-align: -3px; pointer-events: none; }
.tt-column-ornament svg { display: block; width: 100%; height: 100%; }
.tt-column-ornament--star { animation: tt-ornament-glint 2.5s ease-in-out infinite; }
.tt-column-ornament--windmill { animation: tt-pinwheel-turn 5s linear infinite; }
.tt-column-ornament--sparkles { animation: tt-ornament-glint 3.5s ease-in-out infinite; }
@keyframes tt-ornament-glint { 50% { opacity: .65; transform: scale(.88) rotate(-8deg); } }
.public-home.public-home--portal-tt2600 .pub-material-lines,
.public-home.public-home--portal-tt2600 .pub-material-fixed-text,
.public-home.public-home--portal-tt2600 .pub-material-empty,
.public-home.public-home--portal-tt2600 .pub-material-image-wrap { margin: 0 5px 8px; padding: 8px; border: 2px solid #4092ee; background: #fff; color: #111; }
.public-home.public-home--portal-tt2600 .pub-material-lines,
.public-home.public-home--portal-tt2600 .pub-material-fixed-text,
.public-home.public-home--portal-tt2600 .pub-material-block-head { font-family: Arial, Helvetica, STHeiti, STXihei, "Microsoft YaHei", "PingFang SC", Tahoma, sans-serif; }
.public-home.public-home--portal-tt2600 .pub-material-line { padding: 9px 0; border-bottom: 1px solid #d8e6f6; color: #333; font-size: 21px; line-height: 1.65; overflow-wrap: anywhere; }
.public-home.public-home--portal-tt2600 .tt-material-period { color: #333; font-weight: 700; }
.public-home.public-home--portal-tt2600 .tt-material-category { color: #009688; font-weight: 700; }
.public-home.public-home--portal-tt2600 .tt-material-prediction { color: #111; font-size: 1.1em; font-weight: 700; }
.public-home.public-home--portal-tt2600 .pub-column-custom-background :is(.tt-material-period, .tt-material-category, .tt-material-prediction) { color: var(--column-ink) !important; }
.public-home.public-home--portal-tt2600 .pub-material-line:last-child { border-bottom: 0; }
.public-home.public-home--portal-tt2600 .pub-material-image { display: block; width: auto; max-width: 100%; height: auto; margin: auto; }
/* Explicit per-column overrides remain effective after choosing the new shell. */
.public-home.public-home--portal-tt2600 .pub-column-layout--card { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 7px #0002; margin-bottom: 12px; }
.public-home.public-home--portal-tt2600 .pub-column-layout--section { border-left: 4px solid #307acc; }
.public-home.public-home--portal-tt2600 .pub-column-layout--compact .pub-material-line { padding-top: 3px; padding-bottom: 3px; line-height: 1.4; }
.public-home.public-home--portal-tt2600 .pub-column-layout--emphasis .pub-material-block-head { font-size: 1.1em; font-weight: 800; }
.tt-site-note { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; background: #0d3d6b; color: #cfe3f7; text-align: center; font-size: 12px; letter-spacing: .5px; }
.tt-site-note span { overflow-wrap: anywhere; }
.tt-site-note-dot { opacity: .55; }
.tt-floating-tools { position: fixed; right: 16px; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; gap: 12px; }
.tt-floating-tools a { display: grid; place-items: center; width: 50px; height: 50px; border: 2px solid #ffc0c0; border-radius: 50%; background: #ff3039; color: #fff; font-size: 18px; font-weight: 700; }
/* Actual visibility wins over flex and every optional ball-shape selector. */
.public-home.public-home--portal-tt2600 [hidden] { display: none !important; }
.public-site.site-template-preview--portal-tt2600 .public-header { background: #4092ee; color: #fff; }
.public-site.site-template-preview--portal-tt2600 .public-brand-name,
.public-site.site-template-preview--portal-tt2600 .public-brand-sub { color: #fff; }
.public-site.site-template-preview--portal-tt2600 .public-material-detail { border-color: #4092ee; background: #fff; color: #111; }
@media (max-width: 600px) {
    .tt-brand-header { grid-template-columns: minmax(0, 1fr) 48px 96px; gap: 9px; min-height: 72px; padding: 8px 12px; }
    .tt-brand-name img { height: 42px; }
    .tt-brand-name > span { font-size: 13px; }
    .tt-brand-emblem { width: 46px; height: 46px; border-width: 4px; }
    .tt-home-link { padding: 7px 9px; font-size: 12px; }
    .tt-featured-links a { min-height: 42px; padding: 4px; font-size: clamp(11px, 3vw, 14px); }
    .tt-news-strip { gap: 8px; min-height: 35px; margin: 6px 8px 8px; padding: 6px; }
    .tt-news-strip strong { font-size: 12px; }
    .tt-news-strip > span { font-size: 11px; }
    .tt-entry-tools { min-height: 96px; margin: 0 8px 8px; padding: 9px 3px; border-radius: 13px; }
    .tt-entry-tools a { gap: 3px; }
    .tt-calendar-strip { min-height: 44px; margin: 0 6px 6px; font-size: 16px; }
    .public-home.public-home--portal-tt2600 .pub-tab { min-height: 30px; font-size: 12px; }
    .public-home.public-home--portal-tt2600 .pub-draw-panel { padding: 0 10px 6px; }
    .public-home.public-home--portal-tt2600 .pub-draw-summary { gap: 5px; min-height: 38px; font-size: 13px; }
    .public-home.public-home--portal-tt2600 .pub-draw-countdown { font-size: 12px; }
    .public-home.public-home--portal-tt2600 .pub-history-link { padding: 4px 7px; font-size: 11px; }
    .public-home.public-home--portal-tt2600 .pub-ball-row { gap: 4px; min-height: 59px; }
    .public-home.public-home--portal-tt2600 .pub-ball-plus { flex-basis: 11px; font-size: 22px; }
    .public-home.public-home--portal-tt2600.ball-style--classic-card .pub-ball { height: 61px; min-height: 54px; border-radius: 9px; }
    .public-home.public-home--portal-tt2600.ball-style--classic-card.ball-size--small .pub-ball { height: 54px; }
    .public-home.public-home--portal-tt2600.ball-style--classic-card.ball-size--large .pub-ball { height: 68px; }
    .public-home.public-home--portal-tt2600.ball-style--classic-card .result-ball-number { font-size: 24px !important; }
    .public-home.public-home--portal-tt2600.ball-style--classic-card.ball-text--small .result-ball-number { font-size: 21px !important; }
    .public-home.public-home--portal-tt2600.ball-style--classic-card.ball-text--large .result-ball-number { font-size: 27px !important; }
    .public-home.public-home--portal-tt2600.ball-style--classic-card .result-ball-meta { padding: 1px 2px; font-size: clamp(9px, 2.8vw, 11px) !important; }
    .public-home.public-home--portal-tt2600.ball-style--classic-card.ball-text--small .result-ball-meta { font-size: clamp(8px, 2.5vw, 10px) !important; }
    .public-home.public-home--portal-tt2600.ball-style--classic-card.ball-text--large .result-ball-meta { font-size: clamp(10px, 3vw, 12px) !important; }
    .public-home.public-home--portal-tt2600 .pub-ball-wait-text { font-size: clamp(12px, 3.7vw, 16px); }
    .public-home.public-home--portal-tt2600 .pub-next-row { font-size: 11px; }
    .public-home.public-home--portal-tt2600 .pub-material-block-head { font-size: 18px; }
    .public-home.public-home--portal-tt2600 .pub-material-line { font-size: 16px; }
    .tt-calendar-daily { font-size: 12px; }
    .tt-floating-tools { right: 10px; gap: 9px; }
    .tt-floating-tools a { width: 44px; height: 44px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .tt-brand-rotor, .tt-column-ornament { animation: none; }
}
@media (max-height: 680px) {
    .tt-floating-tools { position: static; flex-direction: row; justify-content: center; padding: 12px; background: #0d3d6b; }
}
