:root {
  --bg: #03050d;
  --panel: #081020;
  --panel-2: #10172d;
  --ink: #eef4ff;
  --muted: #91a0c4;
  --line: #24396d;
  --blue: #18d8ff;
  --purple: #8b5cf6;
  --green: #00e5a8;
  --pink: #ff4d9b;
  --radius: 14px;
  --shadow: 0 20px 55px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(24, 216, 255, .13), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(139, 92, 246, .18), transparent 34rem),
    linear-gradient(180deg, #03050d, #070b18 50%, #03050d);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(87, 126, 194, .25);
  background: rgba(3, 7, 18, .96);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1400px, calc(100% - 40px));
  height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: auto;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  text-decoration: none;
}
.brand img { width: clamp(150px, 15vw, 205px); height: auto; max-height: 58px; border: 0; border-radius: 0; background: transparent; object-fit: contain; }
.brand span { display: grid; line-height: 1; }
.brand strong { font-size: 15px; letter-spacing: .15em; }
.brand small { margin-top: 7px; color: #70e7ff; font-size: 9px; letter-spacing: .22em; }
.desktop-nav { min-width: 0; display: flex; align-items: center; gap: 2px; }
.desktop-nav button, .desktop-nav a, .mobile-nav button, .mobile-nav a, .workspace-tabs button {
  border: 0;
  border-radius: 9px;
  padding: 10px 11px;
  background: transparent;
  color: #9ba9c8;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav button:hover, .desktop-nav a:hover, .desktop-nav .active, .mobile-nav .active { background: #111b37; color: #fff; }
.market-status { margin-left: auto; color: #8290af; font-size: 9px; font-weight: 850; letter-spacing: .1em; white-space: nowrap; }
.market-status i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.menu-toggle { display: none; width: 39px; height: 39px; border: 1px solid #2b4780; border-radius: 9px; background: #0b1530; color: #fff; }
.mobile-nav { width: min(100% - 24px, 600px); display: grid; gap: 5px; margin: 0 auto; padding: 0 0 14px; }
.mobile-nav button, .mobile-nav a { width: 100%; text-align: left; }

.main-content { width: min(1400px, calc(100% - 40px)); margin: auto; padding: 22px 0 80px; }
.workspace-tabs { width: 100%; display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 0 12px; scrollbar-width: none; }
.workspace-tabs button { flex: 0 0 auto; }
.workspace-tabs button.active { background: linear-gradient(135deg, #0e2a5b, #341c6e); color: #fff; }
.view { display: none; padding-top: 24px; }
.view.active { display: block; }
#view-dashboard { padding-top: 18px; }
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: 510px;
  border: 1px solid rgba(83, 117, 194, .46);
  border-radius: 30px;
  padding: clamp(32px, 5vw, 68px);
  background:
    radial-gradient(circle at 17% 24%, rgba(24, 216, 255, .19), transparent 28rem),
    radial-gradient(circle at 87% 16%, rgba(160, 78, 255, .25), transparent 25rem),
    linear-gradient(135deg, rgba(6, 14, 34, .99), rgba(12, 7, 32, .99) 55%, rgba(23, 8, 48, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 50px rgba(67, 81, 255, .08);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .13;
  background-image: linear-gradient(rgba(103, 224, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 224, 255, .22) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.home-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -55%;
  z-index: -1;
  width: 620px;
  aspect-ratio: 1;
  border: 1px solid rgba(131, 92, 246, .3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 49, 220, .24), rgba(24, 216, 255, .04) 48%, transparent 70%);
  box-shadow: 0 0 110px rgba(139, 92, 246, .2), inset 0 0 80px rgba(24, 216, 255, .06);
}
.home-hero-copy { position: relative; z-index: 2; min-width: 0; }
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(79, 209, 255, .34);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(7, 27, 56, .66);
  color: #94edff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
  box-shadow: inset 0 0 18px rgba(24, 216, 255, .06);
}
.home-eyebrow i, .home-live i, .home-secure-badge i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 229, 168, .11), 0 0 14px var(--green);
  animation: home-live-pulse 1.8s ease-in-out infinite;
}
.dashboard-heading { margin: 20px 0 28px; }
.dashboard-heading h1 {
  max-width: 790px;
  margin: 0;
  background: linear-gradient(120deg, #fff 8%, #dce8ff 44%, #8eeaff 72%, #cfadff 100%);
  color: #fff;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: .94;
  letter-spacing: -.06em;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
  filter: drop-shadow(0 8px 28px rgba(38, 151, 255, .1));
}
.dashboard-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.home-action {
  min-width: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 12px 14px;
  color: #fff;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-action.primary { border-color: rgba(86, 200, 255, .62); background: linear-gradient(135deg, #075faf, #3936a6 64%, #722bb7); box-shadow: 0 12px 30px rgba(30, 103, 230, .25), inset 0 1px 0 rgba(255, 255, 255, .18); }
.home-action.secondary { border-color: rgba(125, 99, 216, .5); background: linear-gradient(135deg, rgba(15, 29, 63, .96), rgba(39, 21, 83, .96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.home-action:hover { z-index: 1; border-color: #8eeaff; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(21, 112, 236, .28), 0 0 24px rgba(139, 92, 246, .14); }
.home-action-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 11px; background: rgba(3, 8, 24, .32); color: #9beeff; font-size: 19px; }
.home-action-copy { min-width: 0; display: grid; gap: 4px; }
.home-action-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.home-action-copy small { overflow: hidden; color: #afc5e8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-action-arrow { color: #a9efff; font-size: 18px; }
.home-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.home-trust span { min-width: 0; display: grid; gap: 4px; border-left: 1px solid rgba(80, 113, 180, .35); padding-left: 12px; }
.home-trust span:first-child { border-left: 0; padding-left: 0; }
.home-trust i { color: #f6f9ff; font-size: 16px; font-style: normal; font-weight: 950; }
.home-trust b { overflow: hidden; color: #7284aa; font-size: 8px; letter-spacing: .09em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.home-feature {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(108, 126, 217, .6);
  border-radius: 25px;
  padding: 24px;
  background: linear-gradient(150deg, rgba(8, 20, 48, .96), rgba(27, 13, 64, .96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 45px rgba(77, 80, 218, .13);
}
.home-feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, #2de4ff, #a96bff, transparent); box-shadow: 0 0 20px rgba(63, 226, 255, .6); }
.home-feature-top, .home-feature-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-feature-top > span:last-child { color: #64769f; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.home-live { display: inline-flex; align-items: center; gap: 9px; color: #87ffd7; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.home-feature-market { display: grid; gap: 8px; margin: 36px 0 24px; text-align: center; }
.home-feature-market small { color: #7285ad; font-size: 8px; font-weight: 900; letter-spacing: .2em; }
.home-feature-market strong { color: #fff; font-size: clamp(21px, 3vw, 32px); letter-spacing: .13em; text-shadow: 0 0 22px rgba(24, 216, 255, .2); }
.home-feature-result { min-height: 76px; display: grid; place-items: center; border-block: 1px solid rgba(73, 100, 166, .3); padding: 18px 0; }
.home-feature-result .number-balls { gap: 9px; }
.home-feature-result .number-ball { width: 50px; height: 50px; border-width: 2px; box-shadow: inset -6px -8px 12px rgba(0, 0, 0, .5), 0 8px 18px rgba(0, 0, 0, .48), 0 0 18px rgba(24, 216, 255, .18); }
.home-feature-result .number-ball b { width: 30px; height: 30px; font-size: 21px; }
.feature-loading { color: #7183a7; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-feature-slider-controls { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 10px; margin-top: 14px; }
.home-feature-slider-controls > button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255, 200, 87, .42); border-radius: 50%; background: rgba(12, 19, 44, .82); color: #ffe39c; font-size: 20px; line-height: 1; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.home-feature-slider-controls > button:hover { border-color: #68eaff; background: #172a55; transform: scale(1.06); }
.home-feature-dots { display: flex; align-items: center; justify-content: center; gap: 7px; }
.home-feature-dots button { width: 7px; height: 7px; border: 0; border-radius: 999px; padding: 0; background: #435173; transition: width .2s ease, background .2s ease, box-shadow .2s ease; }
.home-feature-dots button.active { width: 24px; background: linear-gradient(90deg, #ffc857, #3ce7ff); box-shadow: 0 0 12px rgba(60, 231, 255, .48); }
.home-feature-bottom { margin-top: 14px; }
.home-feature-bottom > span { color: #8698bc; font-size: 10px; font-weight: 750; }
.home-feature-bottom button { border: 0; padding: 6px 0; background: transparent; color: #75eaff; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.home-feature-bottom button b { margin-left: 5px; font-size: 13px; }
.home-feature-bottom button:disabled { color: #53617e; }
.home-quick-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin: 14px 0 24px; }
.home-quick-link {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  border: 1px solid rgba(47, 69, 126, .8);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(8, 17, 39, .96), rgba(17, 11, 43, .94));
  color: #fff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.home-quick-link:hover { border-color: #4eaee9; background: linear-gradient(145deg, #0a2448, #27155a); transform: translateY(-2px); }
.home-quick-link > span { grid-row: 1 / 3; align-self: center; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #2d568e; border-radius: 10px; background: linear-gradient(135deg, #0c315d, #30176a); color: #79eaff; font-size: 17px; }
.home-quick-link strong { min-width: 0; overflow: hidden; align-self: end; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-quick-link small { align-self: start; color: #7182a5; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.home-results-panel { position: relative; border: 1px solid rgba(43, 61, 111, .65); border-radius: 24px; padding: clamp(18px, 3vw, 30px); background: linear-gradient(180deg, rgba(5, 11, 25, .8), rgba(7, 8, 22, .5)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); }
.section-kicker, .card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-kicker { margin-bottom: 14px; }
.section-kicker h2, .card-head h2 { margin: 4px 0 0; }
.home-section-title { margin-bottom: 18px; }
.home-section-title h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; }
.home-secure-badge { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(45, 139, 119, .55); border-radius: 999px; padding: 8px 11px; background: rgba(5, 47, 41, .55); color: #78f3d0; font-size: 8px; font-weight: 900; letter-spacing: .11em; white-space: nowrap; }
.eyebrow { color: #65e7ff; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.count-badge, .secure-badge, .sync-badge, .origin-badge, .day-badge, .dream-number, .live-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #385384;
  border-radius: 999px;
  padding: 5px 9px;
  background: #0d1935;
  color: #b8c7e8;
  font-size: 10px;
  font-weight: 800;
}
.latest-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.latest-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 178px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 15px;
  border: 1px solid rgba(63, 83, 146, .75);
  border-left: 5px solid var(--market-accent, var(--blue));
  border-radius: 26px;
  padding: 21px clamp(18px, 4vw, 38px);
  background: linear-gradient(135deg, rgba(8, 17, 38, .99), rgba(18, 10, 43, .98));
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--market-accent, var(--blue)) 20%, transparent), transparent 24rem),
    linear-gradient(135deg, rgba(8, 17, 38, .99), rgba(18, 10, 43, .98));
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.latest-card::after { content: ""; position: absolute; inset: auto 12% 0; height: 1px; background: linear-gradient(90deg, transparent, var(--market-accent, var(--blue)), transparent); box-shadow: 0 0 15px var(--market-accent, var(--blue)); opacity: .62; }
.latest-card:hover { border-color: var(--market-accent, var(--blue)); transform: translateY(-2px); box-shadow: 0 23px 55px rgba(0, 0, 0, .4), 0 0 24px color-mix(in srgb, var(--market-accent, var(--blue)) 18%, transparent); }
.latest-card-head { display: grid; justify-items: center; gap: 5px; text-align: center; }
.latest-card-head strong { font-size: 17px; letter-spacing: .11em; text-transform: uppercase; }
.latest-card-head em { color: #6f82a8; font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .18em; }
.latest-card-result { display: grid; place-items: center; }
.latest-card-result .number-ball { width: 43px; height: 43px; }
.latest-card-result .number-ball b { width: 26px; height: 26px; font-size: 18px; }
.latest-card-meta { width: min(100%, 540px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(62, 83, 139, .34); padding-top: 12px; color: #8294b8; font-size: 10px; }
.latest-card-meta b { color: #71e9ff; font-size: 8px; letter-spacing: .11em; }
.latest-card-meta i { margin-left: 4px; font-size: 12px; font-style: normal; }
.latest-card-empty { cursor: default; }
.loading-card { display: grid; place-items: center; min-height: 150px; border: 1px dashed #355086; border-radius: 20px; color: var(--muted); }

@keyframes home-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}

/* Homepage Luxury Portal · v1.13.0 */
#view-dashboard { --gold: #ffc857; --gold-soft: rgba(255, 200, 87, .22); }
.home-newsbar {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 87, .32);
  border-radius: 13px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #17101f, #080f25 45%, #11102b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px rgba(0, 0, 0, .22);
}
.home-newsbar-label, .home-newsbar-time { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-inline: 14px; font-size: 8px; font-weight: 950; letter-spacing: .13em; white-space: nowrap; }
.home-newsbar-label { gap: 8px; background: linear-gradient(135deg, #b67512, #ffd86f); color: #211400; }
.home-newsbar-label i { width: 7px; height: 7px; border-radius: 50%; background: #fff4c3; box-shadow: 0 0 12px #fff; animation: home-live-pulse 1.8s ease-in-out infinite; }
.home-newsbar-time { border-left: 1px solid rgba(255, 200, 87, .2); color: #d9b96f; }
.home-newsbar-track { min-width: 0; overflow: hidden; color: #aebbd6; font-size: 8px; font-weight: 850; letter-spacing: .14em; white-space: nowrap; }
.home-newsbar-track span { display: inline-block; min-width: 100%; padding-left: 100%; animation: home-news-scroll 23s linear infinite; }
.home-hero { border-color: rgba(255, 200, 87, .34); background: radial-gradient(circle at 14% 18%, rgba(31, 218, 255, .19), transparent 25rem), radial-gradient(circle at 88% 12%, rgba(150, 57, 255, .3), transparent 26rem), linear-gradient(135deg, #07122c, #0c0824 52%, #210b37); box-shadow: 0 34px 100px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(24, 216, 255, .05); }
.home-hero::before { opacity: .17; background-size: 44px 44px; }
.home-hero-copy::before { content: "PAITONUSA"; position: absolute; left: -5px; top: 36%; z-index: -1; color: rgba(255, 255, 255, .025); font-size: clamp(68px, 10vw, 145px); font-weight: 1000; letter-spacing: -.08em; pointer-events: none; }
.home-hero-copy::after { content: ""; position: absolute; right: -6%; top: 50%; z-index: -1; width: min(38vw, 320px); aspect-ratio: 1; transform: translateY(-50%); background: url("../img/paitonusa-icon.webp") center / contain no-repeat; opacity: .09; filter: saturate(1.3) drop-shadow(0 0 32px rgba(35, 164, 255, .7)); pointer-events: none; }
.home-eyebrow { border-color: rgba(255, 200, 87, .48); background: linear-gradient(90deg, rgba(96, 59, 5, .38), rgba(18, 32, 68, .68)); color: #ffe19b; box-shadow: inset 0 0 18px rgba(255, 200, 87, .08); }
.dashboard-heading h1 { background: linear-gradient(115deg, #fff 8%, #f5e6bd 38%, #71e8ff 68%, #d2a7ff); -webkit-background-clip: text; background-clip: text; }
.home-hero-lead { max-width: 650px; margin: -13px 0 25px; color: #9eadd0; font-size: 13px; line-height: 1.7; }
.home-action.primary { border-color: rgba(255, 217, 118, .7); background: linear-gradient(135deg, #b36b0a, #d79821 42%, #6e35b8 100%); box-shadow: 0 14px 38px rgba(184, 112, 14, .24), inset 0 1px 0 rgba(255, 255, 255, .25); }
.home-feature { border-color: rgba(255, 200, 87, .5); background: radial-gradient(circle at 50% -10%, rgba(255, 200, 87, .13), transparent 16rem), linear-gradient(150deg, rgba(7, 22, 50, .98), rgba(33, 12, 62, .98)); }
.home-feature::before { height: 3px; background: linear-gradient(90deg, transparent, #ffc857 23%, #3ce7ff 52%, #b26eff 78%, transparent); }
.home-feature-market small { color: #cba75b; }
.home-market-rail { display: block; overflow: hidden; border: 1px solid rgba(255, 200, 87, .34); border-radius: 18px; margin: 0 0 22px; background: radial-gradient(circle at 50% 120%, rgba(42, 102, 190, .2), transparent 28rem), rgba(4, 10, 24, .9); box-shadow: 0 15px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035); }
.home-market-rail-head { width: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: linear-gradient(135deg, #81500d, #d18a16); color: #fff3c8; }
.home-market-rail-head span { font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.home-market-rail-head small { color: #ffe4a0; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.home-market-strip { min-width: 0; overflow: hidden; }
.home-market-marquee-track { width: max-content; display: flex; animation: market-result-marquee 34s linear infinite; will-change: transform; }
.home-market-strip:hover .home-market-marquee-track, .home-market-strip:focus-within .home-market-marquee-track, .home-market-strip:active .home-market-marquee-track { animation-play-state: paused; }
.home-market-chip { position: relative; width: 180px; flex: 0 0 180px; display: grid; gap: 5px; border: 0; border-left: 1px solid rgba(55, 74, 126, .55); padding: 12px 13px; background: transparent; color: #fff; text-align: left; transition: background .2s ease; }
.home-market-chip:hover { background: rgba(43, 67, 125, .3); }
.home-market-chip-label { display: flex; align-items: center; gap: 6px; color: #93a4c6; font-size: 7px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.home-market-chip-label > i { width: 5px; height: 5px; border-radius: 50%; background: var(--market-accent, #18d8ff); box-shadow: 0 0 8px var(--market-accent, #18d8ff); }
.home-market-chip strong { color: #fff4cc; font-size: 16px; letter-spacing: .16em; }
.home-market-chip small { overflow: hidden; color: #617293; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.home-market-chip-result { min-height: 31px; display: flex; align-items: center; }
.home-market-chip-result .number-balls { gap: 3px; }
.home-market-chip-result .number-ball { width: 27px; height: 27px; border-width: 1px; }
.home-market-chip-result .number-ball b { width: 17px; height: 17px; font-size: 11px; letter-spacing: 0; }
.market-result-empty { color: #7786a8; font-size: 12px; letter-spacing: .08em; }
@keyframes market-result-marquee { to { transform: translateX(-50%); } }
.home-quick-links { margin: 14px 0; }
.home-quick-link { border-color: rgba(255, 200, 87, .28); background: linear-gradient(145deg, rgba(8, 20, 43, .98), rgba(24, 10, 45, .96)); }
.home-quick-link > span { border-color: rgba(255, 200, 87, .38); background: linear-gradient(135deg, #5f3b0c, #33206d); color: #ffe39c; }
.home-results-panel { border-color: rgba(255, 200, 87, .25); background: radial-gradient(circle at 100% 0, rgba(130, 59, 222, .12), transparent 27rem), linear-gradient(180deg, rgba(5, 13, 30, .9), rgba(8, 7, 23, .72)); }
.latest-card { border-color: rgba(79, 99, 160, .7); box-shadow: 0 19px 48px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .05); }
.latest-card-head strong { color: #fff3cf; }
@keyframes home-news-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 900px) { .home-market-chip { width: 155px; flex-basis: 155px; } }
@media (max-width: 620px) { .home-newsbar-time { display: none; } .home-newsbar { grid-template-columns: auto minmax(0, 1fr); } .home-newsbar-label { padding-inline: 10px; font-size: 7px; } .home-hero-lead { font-size: 11px; } .home-hero-copy::after { right: -20%; width: 250px; opacity: .06; } .home-market-rail { border-radius: 14px; } .home-market-rail-head { padding: 11px 13px; } }
@media (prefers-reduced-motion: reduce) { .home-newsbar-track span, .home-market-marquee-track { animation: none; } .home-market-strip { overflow-x: auto; } .home-market-marquee-track > .home-market-chip:nth-child(n+8) { display: none; } }

.number-balls { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.number-ball {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0 11%, #f3a22f 12% 35%, #5d2a00 75%, #160b04 100%);
  box-shadow: inset -5px -7px 10px rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .38), 0 0 12px rgba(24, 216, 255, .12);
  font-style: normal;
}
.number-ball:nth-child(2) { background: radial-gradient(circle at 34% 28%, #fff 0 11%, #1da9e8 12% 35%, #082e63 75%, #020917 100%); }
.number-ball:nth-child(3) { background: radial-gradient(circle at 34% 28%, #fff 0 11%, #ed486a 12% 35%, #6d0c24 75%, #170207 100%); }
.number-ball:nth-child(4) { background: radial-gradient(circle at 34% 28%, #fff 0 11%, #9b5ce6 12% 35%, #3d176f 75%, #0e041b 100%); }
.number-ball b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #f8fbff; color: #111; font-size: 17px; font-weight: 950; box-shadow: inset 0 0 3px #8591a6; }

.view-header { display: flex; align-items: center; gap: 17px; margin: 6px 0 22px; }
.view-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #31558d; border-radius: 14px; background: linear-gradient(135deg, #0d2c59, #361b70); color: #76e9ff; font-size: 25px; }
.view-header h1 { margin: 6px 0 7px; font-size: clamp(29px, 4vw, 49px); line-height: 1; letter-spacing: -.04em; }
.view-header p, .card-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.control-card, .data-card, .live-stage, .latest-feature, .source-note, .admin-card {
  border: 1px solid #263d72;
  border-radius: var(--radius);
  background: rgba(7, 14, 32, .94);
  box-shadow: var(--shadow);
}
.control-card { margin-bottom: 15px; padding: 15px; }
.control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 11px; }
label { min-width: 0; display: grid; gap: 6px; }
label > span, .source-url > span { color: #8c9cc0; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #2c477e;
  border-radius: 9px;
  padding: 10px 11px;
  outline: 0;
  background: #050c1d;
  color: #eef4ff;
  box-shadow: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 216, 255, .12); }
select, input { height: 42px; }
textarea { resize: vertical; line-height: 1.55; }
.control-summary { min-width: 120px; display: grid; gap: 3px; border-left: 1px solid var(--line); padding: 5px 0 5px 14px; text-align: right; }
.control-summary span { color: #7f8eae; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.control-summary strong { color: #fff; font-size: 22px; }
.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.btn.primary { border-color: #4154c6; background: linear-gradient(135deg, #1766c8, #7037cc); color: #fff; }
.btn.ghost { border-color: #2c477c; background: #0a1530; color: #d8e4fb; }
.btn.danger { border-color: #7b2d60; background: #290d26; color: #ffacd0; }

.paito-shell { width: 100%; overflow: hidden; border: 3px solid #74787d; border-radius: 0; background: #fff; box-shadow: none; }
.paito-grid { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; background: #fff; color-scheme: light; }
.paito-grid caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.paito-grid th {
  height: 36px;
  overflow: hidden;
  border: 2px solid #d2d2d2;
  border-bottom: 3px solid #9ea1a4;
  padding: 0 2px;
  background: #eeeeee;
  color: #111;
  font-size: clamp(8px, .9vw, 12px);
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
.paito-grid th + th { border-left: 3px solid #9ea1a4; }
.paito-grid td {
  height: 38px;
  border: 2px solid #dedede;
  padding: 0;
  background: #fff;
}
.paito-grid tbody tr:nth-child(even) td { background: #f1f1f1; }
.paito-grid td:nth-child(5n + 1) { border-left: 3px solid #b4b6b8; }
.paito-grid td:nth-child(5n) { border-right: 3px solid #b4b6b8; }
.paito-grid td.empty-cell { background: #ebebeb; }
.paito-grid tbody tr:nth-child(even) td.empty-cell { background: #e5e5e5; }
.paito-cell {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: #080808;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(9px, 1.65vw, 22px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.paito-cell[data-position="4"] { color: #d0d0d0; font-weight: 500; }
.paito-cell:focus-visible { position: relative; z-index: 1; outline: 2px solid #1766c8; outline-offset: -2px; }
.paito-hitam { border-color: #4b5360; background: #101723; }
.paito-hitam .paito-grid { background: #101723; }
.paito-hitam .paito-grid th { border-color: #465264; border-bottom-color: #667187; background: #1d2938; color: #fff; }
.paito-hitam .paito-grid th + th { border-left-color: #667187; }
.paito-hitam .paito-grid td { border-color: #3d495a; background: #101723; }
.paito-hitam .paito-grid tbody tr:nth-child(even) td { background: #151f2d; }
.paito-hitam .paito-grid td:nth-child(5n + 1) { border-left-color: #667187; }
.paito-hitam .paito-grid td:nth-child(5n) { border-right-color: #667187; }
.paito-hitam .paito-grid td.empty-cell, .paito-hitam .paito-grid tbody tr:nth-child(even) td.empty-cell { background: #151f2d; }
.paito-hitam .paito-cell { color: #f0f4ff; }
.paito-hitam .paito-cell[data-position="4"] { color: #6f7989; }
.paint-box, .highlight-box { border: 1px solid #2b477d; border-radius: 11px; padding: 12px; background: rgba(7, 16, 36, .95); }
.paint-box {
  position: -webkit-sticky;
  position: sticky;
  top: 84px;
  z-index: 32;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
  margin: 0 0 13px;
  background: rgba(7, 16, 36, .96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(40, 111, 255, .12), 0 0 20px rgba(139, 92, 246, .08);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}
.highlight-box { margin-top: 13px; }
.palette-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)) minmax(58px, auto); gap: 5px; align-items: stretch; }
.palette-swatch { min-width: 0; height: 34px; border: 2px solid transparent; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.palette-swatch.selected { border-color: #fff; box-shadow: 0 0 0 2px var(--blue), 0 0 15px rgba(24, 216, 255, .55); }
.palette-row .btn { min-width: 0; padding-inline: 7px; }
.highlight-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.highlight-title { display: grid; gap: 4px; }
.highlight-title span { color: #7182aa; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.highlight-title strong { font-size: 12px; white-space: nowrap; }
.highlight-controls { display: flex; align-items: end; gap: 7px; }
.highlight-controls label { width: 54px; }
.highlight-controls input { height: 36px; padding: 6px; text-align: center; }
.legend-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 2px; color: #9ba9c5; font-size: 9px; font-weight: 700; }
.legend-row span { display: inline-flex; align-items: center; gap: 5px; }
.legend-row i { width: 8px; height: 8px; border-radius: 2px; }
.legend-row .as { background: #f59e0b; }.legend-row .kop { background: #0ea5e9; }.legend-row .kep { background: #22c55e; }.legend-row .ekr { background: #ef4444; }.legend-row .jml { background: #7c3aed; }

.data-controls { display: grid; grid-template-columns: 1fr 2fr 1fr auto; align-items: end; gap: 11px; }
.dream-controls { display: grid; grid-template-columns: 1fr 2fr auto; align-items: end; gap: 11px; }
.search-field { min-width: 0; }
.data-card { overflow: hidden; }
.data-card .card-head, .live-stage .card-head, .admin-card .card-head { border-bottom: 1px solid #20345f; padding: 16px 18px; }
.data-card .card-head select { width: 140px; }
.table-wrap { width: 100%; overflow: hidden; }
.no-scroll { overflow-x: hidden; }
.data-table, .dream-table, .admin-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.data-table th, .dream-table th, .admin-table th { height: 40px; padding: 0 10px; background: #09142d; color: #9eadd0; font-size: 9px; letter-spacing: .1em; text-align: left; }
.data-table td, .dream-table td, .admin-table td { height: 52px; overflow: hidden; border-top: 1px solid #19294e; padding: 7px 10px; color: #d4def2; font-size: 12px; text-overflow: ellipsis; }
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 11%; }
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 31%; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 22%; }
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 36%; text-align: center; }
.data-table .number-ball { width: 29px; height: 29px; }
.data-table .number-ball b { width: 18px; height: 18px; font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 13px; border-top: 1px solid #20345f; padding: 13px 16px; color: #8999bb; font-size: 11px; }
.pagination > div { display: flex; gap: 7px; }
.dream-table th:last-child, .dream-table td:last-child { width: 32%; text-align: center; }
.dream-table td:first-child { white-space: normal; line-height: 1.45; }
.dream-number { border-color: #5644a2; background: #231747; color: #ded5ff; }
.empty-state { padding: 30px !important; color: var(--muted) !important; text-align: center !important; }
.empty-state.compact { min-height: 86px; display: grid; place-items: center; border: 1px dashed #2d477b; border-radius: 11px; padding: 18px !important; }

.prediction-controls { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto auto; align-items: end; gap: 11px; }
.prediction-status { margin: 0 0 15px; border: 1px solid #3a568c; border-radius: 11px; padding: 13px 15px; background: rgba(9, 22, 50, .9); color: #b9c9e8; font-size: 12px; }
.prediction-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 14px; }
.prediction-primary-card, .prediction-method-card, .prediction-list-card, .prediction-stat-card, .prediction-backtest-card {
  min-width: 0;
  border: 1px solid #2c467e;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(7, 18, 42, .98), rgba(30, 15, 70, .96));
  box-shadow: var(--shadow);
}
.prediction-primary-card { position: relative; overflow: hidden; padding: clamp(20px, 3vw, 30px); }
.prediction-primary-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, #ffc857, #32e6ff, #a970ff, transparent); }
.prediction-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.prediction-card-head h2, .prediction-method-card h2, .prediction-list-card h2, .prediction-stat-card h2, .prediction-backtest-card h2 { margin: 5px 0 0; font-size: 21px; }
.prediction-auto-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(0, 229, 168, .4); border-radius: 999px; padding: 6px 9px; background: rgba(0, 77, 63, .28); color: #83f4d4; font-size: 8px; font-weight: 900; letter-spacing: .12em; white-space: nowrap; }
.prediction-auto-badge i { width: 6px; height: 6px; border-radius: 50%; background: #00e5a8; box-shadow: 0 0 10px #00e5a8; }
.prediction-primary { min-height: 112px; display: grid; place-items: center; margin: 22px 0 16px; border-block: 1px solid rgba(72, 98, 164, .35); padding: 20px 0; }
.prediction-primary .number-balls { gap: clamp(7px, 1.4vw, 14px); }
.prediction-primary .number-ball { width: clamp(52px, 7vw, 72px); height: clamp(52px, 7vw, 72px); box-shadow: inset -7px -9px 14px rgba(0, 0, 0, .5), 0 10px 22px rgba(0, 0, 0, .42), 0 0 22px rgba(88, 190, 255, .18); }
.prediction-primary .number-ball b { width: clamp(31px, 4vw, 43px); height: clamp(31px, 4vw, 43px); font-size: clamp(20px, 3vw, 29px); }
.prediction-primary-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.prediction-primary-meta span { border: 1px solid #2c467d; border-radius: 999px; padding: 7px 10px; background: rgba(4, 12, 29, .65); color: #7f90b5; font-size: 9px; }
.prediction-primary-meta strong { margin-left: 5px; color: #fff; letter-spacing: .08em; }
.prediction-position-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.prediction-position-grid article { min-width: 0; display: grid; gap: 5px; border: 1px solid #273f71; border-radius: 10px; padding: 11px; background: rgba(3, 10, 25, .58); }
.prediction-position-grid span { color: #7385aa; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.prediction-position-grid strong { color: #fff0bd; font-size: 20px; letter-spacing: .18em; }
.prediction-position-grid small { overflow: hidden; color: #8798ba; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.prediction-method-card { padding: 24px; }
.prediction-method-card > p { margin: 14px 0 20px; color: #9aa9c7; font-size: 12px; line-height: 1.7; }
.prediction-method-metrics { display: grid; gap: 9px; margin: 0; }
.prediction-method-metrics div { display: grid; gap: 4px; border-top: 1px solid #243b6b; padding-top: 10px; }
.prediction-method-metrics dt { color: #7082a8; font-size: 9px; }
.prediction-method-metrics dd { overflow: hidden; margin: 0; color: #f0f4ff; font-size: 12px; font-weight: 800; text-overflow: ellipsis; }
.prediction-candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.prediction-list-card { padding: 18px; }
.prediction-number-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.prediction-number-chip { min-width: 0; display: grid; gap: 3px; border: 1px solid #2d477c; border-radius: 9px; padding: 9px 10px; background: rgba(4, 12, 29, .68); }
.prediction-number-chip b { color: #fff2c7; font-size: 16px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.prediction-number-chip small { overflow: hidden; color: #7182a5; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.prediction-empty { display: grid; place-items: center; min-height: 52px; color: #7e8fb3; font-size: 10px; }
.prediction-stat-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 14px; margin-top: 14px; }
.prediction-stat-card { padding: 18px; }
.prediction-stat-card > .card-head, .prediction-backtest-card > .card-head { padding: 0 0 15px; }
.prediction-hot-cold { display: flex; gap: 7px; }
.prediction-hot-cold span { border: 1px solid #334d7f; border-radius: 999px; padding: 6px 8px; color: #8595b6; font-size: 8px; }
.prediction-hot-cold b { margin-left: 4px; color: #fff; letter-spacing: .09em; }
.prediction-digit-stats { display: grid; gap: 7px; }
.prediction-digit-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 48px; align-items: center; gap: 9px; }
.prediction-digit-row > strong { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #39598d; border-radius: 9px; background: #0a1733; color: #fff; font-size: 15px; }
.prediction-digit-row > div { min-width: 0; display: grid; gap: 5px; }
.prediction-digit-row > div > span { display: flex; justify-content: space-between; gap: 8px; color: #dce6f9; font-size: 9px; }
.prediction-digit-row > div small { color: #7183a9; font-weight: 500; }
.prediction-digit-row > div > i { height: 6px; overflow: hidden; border-radius: 999px; background: #121e3b; }
.prediction-digit-row > div > i > b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #246cca, #17d7ff, #8b5cf6); }
.prediction-digit-row > em { color: #7181a4; font-size: 7px; font-style: normal; font-weight: 850; text-align: right; text-transform: uppercase; }
.prediction-digit-row.status-hot > strong { border-color: #a86a18; background: #402609; color: #ffe2a0; }
.prediction-digit-row.status-hot > em { color: #ffc857; }
.prediction-digit-row.status-cold > strong { border-color: #325c89; background: #0a2843; color: #9cddff; }
.prediction-digit-row.status-cold > em { color: #5fc8ff; }
.prediction-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prediction-summary article { min-width: 0; display: grid; gap: 4px; border: 1px solid #293f72; border-radius: 10px; padding: 11px; background: rgba(4, 12, 29, .58); }
.prediction-summary span, .prediction-summary small { overflow: hidden; color: #7586aa; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.prediction-summary strong { color: #fff; font-size: 19px; }
.prediction-pair-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.prediction-pair-head h3 { margin: 0; font-size: 15px; }
.prediction-pair-head span { color: #6f80a3; font-size: 8px; }
.prediction-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.prediction-pairs > span { min-width: 0; display: grid; grid-template-columns: 20px 36px minmax(0, 1fr); align-items: center; gap: 6px; border: 1px solid #283f71; border-radius: 8px; padding: 7px; background: rgba(4, 11, 27, .55); }
.prediction-pairs i { color: #63759c; font-size: 8px; font-style: normal; }
.prediction-pairs b { color: #ffe7a7; letter-spacing: .1em; }
.prediction-pairs small { overflow: hidden; color: #7889ac; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.prediction-backtest-card { margin-top: 14px; padding: 18px; }
.prediction-backtest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.prediction-backtest-grid article { display: grid; gap: 6px; border: 1px solid #2b4478; border-radius: 11px; padding: 14px; background: rgba(4, 12, 29, .62); }
.prediction-backtest-grid article > span { color: #70dcff; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.prediction-backtest-grid article > strong { color: #fff; font-size: 27px; }
.prediction-backtest-grid article > strong small { color: #7c8dae; font-size: 12px; }
.prediction-backtest-grid article > b { color: #cbd7ec; font-size: 10px; }
.prediction-backtest-grid article > p { margin: 0; color: #7485a8; font-size: 8px; line-height: 1.5; }
.prediction-disclaimer { display: flex; gap: 12px; margin-top: 14px; border: 1px solid #725326; border-radius: 12px; padding: 13px 15px; background: rgba(74, 43, 6, .28); }
.prediction-disclaimer strong { flex: 0 0 auto; color: #ffd981; font-size: 10px; }
.prediction-disclaimer p { margin: 0; color: #bdad8e; font-size: 10px; line-height: 1.55; }

.posts-controls { display: grid; grid-template-columns: 1fr 2fr auto; align-items: end; gap: 11px; }
.market-posts-panel { margin-top: 24px; border: 1px solid #263d73; border-radius: 16px; padding: 17px; background: rgba(7, 14, 32, .9); box-shadow: var(--shadow); }
.market-posts-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.market-posts-head h2 { margin: 5px 0 0; font-size: 20px; }
.post-teaser-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.post-teaser { min-width: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 11px; border: 1px solid #263f72; border-radius: 12px; padding: 9px; background: #09142b; color: #eef4ff; text-align: left; }
.post-teaser:hover { border-color: #4b66ca; background: #101a3a; }
.post-teaser-image { width: 82px; height: 72px; display: grid; place-items: center; border-radius: 9px; object-fit: cover; background: linear-gradient(135deg, #0c315c, #412081); color: #75e9ff; font-size: 24px; }
.post-teaser > span { min-width: 0; display: grid; gap: 4px; }
.post-teaser small { color: #7385ac; font-size: 9px; }
.post-teaser strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.post-teaser em { overflow: hidden; color: #93a1be; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.post-card { min-width: 0; overflow: hidden; display: grid; grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); border: 1px solid #263e76; border-radius: 17px; background: linear-gradient(145deg, #071024, #141037); box-shadow: var(--shadow); }
.post-card-image { width: 100%; height: 100%; min-height: 230px; display: grid; place-items: center; object-fit: cover; background: linear-gradient(145deg, #0a3762, #421f83); color: #75e9ff; font-size: 48px; }
.post-card > div:last-child { min-width: 0; align-self: center; padding: 20px; }
.post-card h2 { margin: 8px 0; font-size: 21px; line-height: 1.25; }
.post-card p { display: -webkit-box; overflow: hidden; margin: 0 0 16px; color: #99a7c4; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.posts-empty { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; border: 1px dashed #315083; border-radius: 15px; }
.post-detail { max-width: 960px; margin: 0 auto; border: 1px solid #2c437a; border-radius: 19px; padding: 22px; background: linear-gradient(145deg, #071024, #100c2c); box-shadow: var(--shadow); }
.post-detail > .btn { margin-bottom: 18px; }
.post-detail-image { width: 100%; max-height: 520px; border-radius: 14px; object-fit: cover; }
.post-detail-heading { max-width: 780px; margin: 24px auto; text-align: center; }
.post-detail-heading h1 { margin: 9px 0; font-size: clamp(31px, 5vw, 52px); line-height: 1.05; letter-spacing: -.04em; }
.post-detail-heading p { color: #8594b5; }
.site-banner { box-sizing: border-box; width: min(1000px, calc(100% - 24px)); max-width: 100%; margin: 16px auto; overflow: hidden; border: 1px solid #314b80; border-radius: 10px; background: #050b18; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.site-banner-stack { display: grid; gap: 8px; width: 100%; padding: 16px 0; }
.site-banner-stack .site-banner { margin-top: 0; margin-bottom: 0; }
.site-banner a { display: block; width: 100%; }
.site-banner a[href] { cursor: pointer; }
.site-banner img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 100 / 9; display: block; object-fit: contain; }
.site-banner-header { padding-bottom: 0; }
.site-banner-footer { padding-top: 0; }
.floating-banner { position: fixed; left: 50%; z-index: 1200; width: min(1000px, calc(100% - 24px)); overflow: visible; transform: translateX(-50%); border: 1px solid #41639c; border-radius: 10px; background: #050b18; box-shadow: 0 12px 35px rgba(0, 0, 0, .55); }
.floating-banner-header { top: max(8px, env(safe-area-inset-top)); }
.floating-banner-footer { bottom: max(8px, env(safe-area-inset-bottom)); }
.floating-banner a, .floating-banner img { display: block; width: 100%; }
.floating-banner img { height: auto; aspect-ratio: 100 / 9; border-radius: 9px; object-fit: contain; }
.floating-banner-close { position: absolute; top: -10px; right: -10px; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #7895d0; border-radius: 50%; padding: 0; background: #0a1630; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.post-content { max-width: 780px; margin: 0 auto; color: #c0cae0; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.post-content h2, .post-content h3, .post-content h4 { margin: 30px 0 10px; color: #f2f5ff; line-height: 1.25; }
.post-content h2 { font-size: 28px; }.post-content h3 { font-size: 23px; }.post-content h4 { font-size: 19px; }
.post-content p, .post-content blockquote, .post-content ul, .post-content ol { margin: 0 0 17px; }
.post-content blockquote { border-left: 3px solid var(--purple); padding: 10px 17px; background: rgba(91, 61, 172, .12); color: #d7d0ee; }
.post-content a { color: #68e6ff; text-decoration: underline; }
.post-embed-paito {
  position: relative;
  left: 50%;
  width: min(916px, calc(100vw - 64px));
  max-width: none;
  margin: 26px 0;
  transform: translateX(-50%);
  color: #c0cae0;
}
.post-embed-palette-box {
  position: -webkit-sticky;
  position: sticky;
  top: 84px;
  z-index: 32;
  width: 100%;
  border: 1px solid #2b477d;
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 16, 36, .97);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .48), 0 0 24px rgba(40, 111, 255, .14), 0 0 20px rgba(139, 92, 246, .1);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}
.post-embed-palette { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)) minmax(58px, auto); gap: 5px; align-items: stretch; }
.post-embed-palette .palette-swatch { width: 100%; }
.post-embed-palette .btn { min-width: 0; min-height: 34px; padding-inline: 7px; }
.post-embed-paito-shell { width: 100%; overflow: hidden; border: 3px solid #74787d; background: #fff; }
.post-embed-highlight-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
  border: 1px solid #2b477d;
  border-radius: 11px;
  padding: 12px;
  background: rgba(7, 16, 36, .95);
}
.post-embed-highlight-title { display: grid; gap: 4px; }
.post-embed-highlight-title span { color: #7182aa; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.post-embed-highlight-title strong { color: #eef4ff; font-size: 12px; white-space: nowrap; }
.post-embed-highlight-controls { display: flex; align-items: end; gap: 7px; }
.post-embed-highlight-controls label { width: 54px; }
.post-embed-highlight-controls label > span { display: block; }
.post-embed-highlight-controls input { width: 100%; height: 36px; padding: 6px; text-align: center; }
.post-embed-paito-meta { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 10px 2px 0; color: #8191b2; font-size: 9px; line-height: 1.45; }
.post-embed-paito-meta .btn { flex: 0 0 auto; min-height: 32px; padding: 5px 9px; font-size: 9px; }
.post-embed-card { overflow: hidden; border: 1px solid #354d82; border-radius: 14px; margin: 26px 0; background: linear-gradient(145deg, #08142b, #150e35); box-shadow: 0 16px 40px rgba(0, 0, 0, .26); }
.post-embed-head, .post-embed-foot { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 13px 14px; }
.post-embed-head { border-bottom: 1px solid #2d4272; }
.post-embed-head > div { display: grid; gap: 3px; }
.post-embed-head span { color: #6de7ff; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.post-embed-head h3 { margin: 0; color: #f0f4ff; font-size: 17px; line-height: 1.3; }
.post-embed-head > strong { border: 1px solid #3b568a; border-radius: 999px; padding: 5px 8px; background: #0e1b38; color: #c3d2ee; font-size: 9px; white-space: nowrap; }
.post-embed-foot { border-top: 1px solid #293e6c; color: #8191b2; font-size: 9px; line-height: 1.45; }
.post-embed-foot .btn { flex: 0 0 auto; min-height: 32px; padding: 5px 9px; font-size: 9px; }
.post-embed-table-wrap { width: 100%; overflow: hidden; }
.post-embed-paito-table, .post-embed-data-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.post-embed-paito-table caption, .post-embed-data-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.post-embed-paito-table { color-scheme: light; background: #fff; }
.post-embed-paito-table th { height: 27px; overflow: hidden; border: 1px solid #c4c7cc; border-bottom: 2px solid #979ba1; padding: 0 1px; background: #ebebeb; color: #111; font-size: clamp(6px, 1.1vw, 9px); font-weight: 900; white-space: nowrap; }
.post-embed-paito-table th + th { border-left-width: 2px; border-left-color: #979ba1; }
.post-embed-paito-table td { height: 25px; border: 1px solid #d9d9d9; padding: 0; background: #fff; }
.post-embed-paito-table tbody tr:nth-child(even) td { background: #f0f0f0; }
.post-embed-paito-table td:nth-child(5n + 1) { border-left-width: 2px; border-left-color: #adafb2; }
.post-embed-paito-table td:nth-child(5n) { border-right-width: 2px; border-right-color: #adafb2; }
.post-embed-paito-table td.post-embed-empty, .post-embed-paito-table tbody tr:nth-child(even) td.post-embed-empty { background: #e9e9e9; }
.post-embed-digit { width: 100%; height: 100%; display: grid; place-items: center; border: 0; padding: 0; background: transparent; color: #090909; font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-size: clamp(7px, 1.5vw, 14px); font-weight: 900; line-height: 1; touch-action: pan-y; }
.post-embed-digit[data-position="4"] { color: #c8c8c8; font-weight: 500; }
.post-embed-digit:focus-visible { position: relative; z-index: 1; outline: 2px solid #1766c8; outline-offset: -2px; }
.post-embed-data-table th, .post-embed-data-table td { border-bottom: 1px solid #263e6c; padding: 9px 7px; color: #b9c7df; font-size: 10px; text-align: left; }
.post-embed-data-table th { background: #0b1731; color: #7f91b5; font-size: 8px; letter-spacing: .08em; }
.post-embed-data-table th:nth-child(1), .post-embed-data-table td:nth-child(1) { width: 10%; text-align: center; }
.post-embed-data-table th:nth-child(2), .post-embed-data-table td:nth-child(2) { width: 28%; }
.post-embed-data-table th:nth-child(3), .post-embed-data-table td:nth-child(3) { width: 20%; }
.post-embed-data-table th:nth-child(4), .post-embed-data-table td:nth-child(4) { width: 42%; text-align: center; }
.post-embed-data-table .day-badge { padding: 3px 6px; font-size: 8px; }
.post-embed-data-table .number-balls { gap: 3px; }
.post-embed-data-table .number-ball { width: 25px; height: 25px; border-width: 1px; }
.post-embed-data-table .number-ball b { width: 16px; height: 16px; font-size: 10px; }
.post-embed-error { border: 1px solid #7e3269; border-radius: 10px; margin: 20px 0; padding: 13px; background: #290d26; color: #ffb1d1; font-size: 12px; }

.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 15px; }
.live-stage { overflow: hidden; }
.live-stage .card-head select { width: 190px; }
.live-badge { border-color: #21816d; background: #082e2a; color: #72f2d1; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.frame-stack { display: grid; gap: 10px; padding: 12px; }
.frame-stack iframe { width: 100%; height: 560px; border: 0; border-radius: 10px; background: #fff; }
.frame-fallback { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 25px; color: var(--muted); text-align: center; }
.frame-fallback p { margin: 0; }
.live-layout aside { display: grid; align-content: start; gap: 14px; }
.latest-feature, .source-note { padding: 20px; }
.latest-feature h2 { margin: 8px 0 18px; font-size: 17px; letter-spacing: .08em; text-align: center; }
.latest-feature > div { text-align: center; }
.latest-feature p, .source-note p { color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.source-note { border-color: #483874; background: rgba(23, 13, 50, .9); }
.source-note strong { display: block; text-align: center; }

.article-panel { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 28px; }
.article-heading { display: flex; align-items: center; gap: 12px; }
.article-heading > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #4055a3; border-radius: 10px; background: #161446; color: #cbb9ff; }
.article-heading h2 { margin: 4px 0 0; font-size: 23px; }
.article-content { max-width: 900px; color: #a8b4ce; font-size: 13px; line-height: 1.8; }
.article-content h2, .article-content h3, .article-content h4 { margin-top: 25px; color: #e9efff; }
.article-list-item { padding-left: 16px; }
.article-list-item::before { content: "•"; margin-right: 8px; color: var(--blue); }
.site-footer { display: grid; justify-items: center; gap: 8px; border-top: 1px solid #1d2d54; padding: 28px; background: #030611; }
.site-footer p { margin: 0; color: #7786a7; font-size: 11px; line-height: 1.55; text-align: center; white-space: pre-line; }
.message { border: 1px solid #347a6e; border-radius: 10px; margin: 0 0 17px; padding: 12px 14px; background: #082824; color: #83f0d2; font-size: 12px; line-height: 1.5; }
.message.error { border-color: #7e3269; background: #290d26; color: #ffb1d1; }
.message.warning { border-color: #846226; background: #2c210b; color: #f4d081; }

/* Admin */
.admin-body { background: radial-gradient(circle at 50% 0%, rgba(74, 67, 255, .18), transparent 32rem), #03050d; }
.admin-header { width: min(1260px, calc(100% - 40px)); min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: auto; }
.admin-account { display: flex; align-items: center; gap: 8px; }
.admin-account > span { color: #9ba9c8; font-size: 12px; }
.admin-main { width: min(1260px, calc(100% - 40px)); margin: auto; padding: 36px 0 80px; }
.admin-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-title h1 { margin: 8px 0; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.admin-title p { margin: 0; color: var(--muted); }
.secure-badge { border-color: #278273; background: #082c29; color: #71f2d0; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.admin-stats article { min-height: 105px; display: grid; align-content: center; gap: 6px; border: 1px solid #24396e; border-radius: 13px; padding: 18px; background: linear-gradient(145deg, #091329, #171038); box-shadow: var(--shadow); }
.admin-stats span { color: #8494b6; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.admin-stats strong { font-size: 27px; }
.admin-tabs { display: flex; gap: 7px; overflow-x: auto; border-bottom: 1px solid var(--line); padding-bottom: 11px; scrollbar-width: none; }
.admin-tabs button { flex: 0 0 auto; border: 1px solid transparent; border-radius: 9px; padding: 10px 14px; background: transparent; color: #8e9cbd; font-size: 12px; font-weight: 750; }
.admin-tabs button.active { border-color: #36538e; background: linear-gradient(135deg, #0f2d5e, #341c70); color: #fff; }
.admin-panel { display: none; gap: 15px; padding-top: 16px; }
.admin-panel.active { display: grid; }
.admin-card { overflow: hidden; }
.admin-card > form, .admin-card > .source-url, .admin-card > .source-actions, .admin-card > .source-toggle, .admin-card > .sync-metrics, .admin-card > .sync-error { margin-inline: 17px; }
.admin-form-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr auto; align-items: end; gap: 11px; padding: 17px 0; }
.admin-table th:nth-child(1) { width: 21%; }.admin-table th:nth-child(2) { width: 18%; }.admin-table th:nth-child(3) { width: 18%; }.admin-table th:nth-child(4) { width: 17%; }.admin-table th:nth-child(5) { width: 26%; }
.admin-table td { white-space: nowrap; }
.admin-result-number { color: #72e9ff; font-family: ui-monospace, monospace; font-size: 17px; font-weight: 900; letter-spacing: .1em; }
.table-actions { text-align: right; }
.table-actions .btn { min-height: 31px; margin-left: 4px; padding: 5px 8px; font-size: 10px; }
.result-maintenance-card { border-color: #5f3a62; background: linear-gradient(145deg, rgba(28, 13, 43, .98), rgba(8, 20, 41, .98)); }
.maintenance-scope { min-width: 205px; }
.maintenance-scope span { color: #8797b9; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.maintenance-scope select { margin-top: 5px; }
.maintenance-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 16px 17px 0; }
.maintenance-metrics > div { display: grid; gap: 5px; border: 1px solid #304675; border-radius: 10px; padding: 12px; background: rgba(4, 13, 30, .62); }
.maintenance-metrics span { color: #7f90b5; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.maintenance-metrics strong { color: #eff4ff; font-size: 20px; }
.maintenance-safety { display: grid; gap: 4px; border: 1px solid #6f536c; border-radius: 10px; margin: 11px 17px 0; padding: 12px 13px; background: rgba(42, 15, 37, .62); }
.maintenance-safety strong { color: #ffd1e4; font-size: 12px; }
.maintenance-safety span { color: #a698b5; font-size: 10px; line-height: 1.55; }
.maintenance-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 17px 17px; }
.maintenance-actions .btn { width: 100%; min-width: 0; }
.maintenance-actions .btn:disabled { cursor: not-allowed; opacity: .4; }
.maintenance-dialog { width: min(680px, calc(100% - 28px)); }
.maintenance-dialog form { display: grid; gap: 13px; }
.maintenance-dialog [hidden] { display: none !important; }
.maintenance-dialog-description { margin: 0; color: #a8b5cf; font-size: 12px; line-height: 1.65; }
.maintenance-dialog-scope { display: grid; gap: 4px; border: 1px solid #304776; border-radius: 10px; padding: 11px 12px; background: #0a1731; }
.maintenance-dialog-scope span { color: #7f90b5; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.maintenance-dialog-scope strong { color: #fff; font-size: 13px; }
.maintenance-dialog label { display: grid; gap: 6px; }
.maintenance-dialog label > span { color: #93a3c2; font-size: 10px; font-weight: 750; }
.maintenance-dialog code { width: fit-content; border: 1px solid #715171; border-radius: 7px; padding: 6px 8px; background: #281329; color: #ffb9d7; font-size: 11px; font-weight: 850; }
.maintenance-dialog input { border-color: #405687; background: #08142c; color: #fff; }
.maintenance-backup-check { display: flex !important; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 9px !important; border: 1px solid #74512e; border-radius: 9px; padding: 11px; background: #281b09; }
.maintenance-backup-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--purple); }
.maintenance-backup-check span { color: #e4c995 !important; line-height: 1.5; }
.maintenance-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #243a6a; padding-top: 13px; }
.source-card { background: linear-gradient(145deg, rgba(5, 29, 49, .98), rgba(25, 12, 58, .98)); }
.sync-badge { border-color: #278273; background: #082c29; color: #72f2d1; }
.sync-badge.disabled { border-color: #5b4d79; background: #1c1730; color: #b9add8; }
.source-url { border: 1px solid #315687; border-radius: 11px; margin-top: 16px; padding: 13px; background: rgba(3, 12, 29, .65); }
.source-url small { color: #7585a8; font-size: 10px; }
.source-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 9px; }
.source-toggle { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #29416c; border-bottom: 1px solid #29416c; margin-top: 14px; padding-block: 13px; }
.source-toggle > label { display: flex; align-items: center; gap: 11px; }
.source-toggle input { width: 38px; height: 21px; accent-color: var(--purple); }
.source-toggle label > span { display: grid; gap: 3px; color: #e7edfc; font-size: 12px; letter-spacing: 0; }
.source-toggle small { color: #7e8fb4; font-size: 10px; }
.sync-metrics { display: grid; grid-template-columns: 1.4fr 1fr .7fr auto; align-items: center; gap: 10px; padding: 15px 0; }
.sync-metrics > div { min-width: 0; display: grid; gap: 4px; }
.sync-metrics span { color: #7d8eb4; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.sync-metrics strong { overflow: hidden; color: #eaf1ff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sync-error { border: 1px solid #71345e; border-radius: 8px; margin-bottom: 15px; padding: 10px; background: #2b0d27; color: #ffb1d1; font-size: 11px; }
.history-card { background: linear-gradient(145deg, rgba(17, 13, 49, .98), rgba(5, 30, 44, .98)); }
.history-form { display: grid; gap: 13px; padding: 17px 0 13px; }
.history-url { border: 1px solid #3a4d87; border-radius: 11px; padding: 13px; background: rgba(3, 12, 29, .65); }
.history-url small { color: #7585a8; font-size: 10px; }
.history-fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 11px; }
.history-safety { display: grid; gap: 4px; border: 1px solid #386b68; border-radius: 10px; padding: 12px 13px; background: rgba(7, 42, 40, .7); }
.history-safety strong { color: #8ef2d8; font-size: 12px; }
.history-safety span { color: #90a6b8; font-size: 10px; line-height: 1.5; }
.history-actions { display: flex; justify-content: flex-end; gap: 8px; }
.history-metrics { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 9px; border-top: 1px solid #29416c; margin: 0 17px 17px; padding-top: 14px; }
.history-metrics > div { min-width: 0; display: grid; gap: 4px; border: 1px solid #253c68; border-radius: 9px; padding: 11px; background: rgba(4, 13, 30, .55); }
.history-metrics span { color: #7d8eb4; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.history-metrics strong { overflow: hidden; color: #eaf1ff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.appearance-form { display: grid; gap: 18px; padding: 17px 0; }
.appearance-copy-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.appearance-copy-fields label:first-child { grid-column: 1 / -1; }
.appearance-copy-fields small { color: #7889ad; font-size: 9px; line-height: 1.45; }
.appearance-banner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.banner-position-group { display: grid; gap: 12px; }
.appearance-banner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.appearance-seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.appearance-seo-editor { min-width: 0; display: grid; gap: 10px; border: 1px solid #304777; border-radius: 12px; padding: 13px; background: rgba(4, 13, 30, .62); }
.appearance-seo-editor > strong { color: #63c7ff; font-size: 11px; letter-spacing: .04em; }
.appearance-route-section { display: grid; gap: 13px; border-top: 1px solid #253c68; padding-top: 16px; }
.appearance-route-seo { display: grid; gap: 16px; }
.appearance-route-group { display: grid; gap: 10px; }
.appearance-route-group > h4 { margin: 0; color: #9ddfff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.appearance-route-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.appearance-banner-editor { min-width: 0; display: grid; align-content: start; gap: 9px; border: 1px solid #304777; border-radius: 12px; padding: 13px; background: rgba(4, 13, 30, .62); }
.appearance-banner-editor p { margin: 2px 0 0; color: #8292b2; font-size: 10px; }
.appearance-banner-editor > input[type="file"] { height: auto; border-style: dashed; padding: 10px; background: #08142c; font-size: 10px; }
.appearance-banner-editor > small { color: #7889ad; font-size: 9px; line-height: 1.45; }
.appearance-banner-preview { display: grid; gap: 8px; }
.appearance-banner-preview img { width: 100%; height: auto; aspect-ratio: 100 / 9; display: block; border: 1px solid #41639c; border-radius: 7px; background: #030813; object-fit: contain; }
.appearance-banner-preview .btn { width: 100%; }
.appearance-actions { display: flex; justify-content: flex-end; border-top: 1px solid #263d6d; padding-top: 15px; }
.live-editors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.live-editor textarea { width: calc(100% - 34px); margin: 16px 17px 10px; font-family: ui-monospace, monospace; font-size: 11px; }
.live-editor > .btn { margin: 0 17px 17px; }
.security-card { max-width: 720px; }
.security-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 17px 0; }
.security-card form label:first-child { grid-column: 1 / -1; }
.security-card form .btn { grid-column: 1 / -1; justify-self: start; }
.post-editor-card { background: linear-gradient(145deg, rgba(6, 20, 45, .98), rgba(25, 11, 55, .98)); }
.post-editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 17px; padding: 17px 0; }
.post-editor-main, .post-editor-sidebar { min-width: 0; display: grid; gap: 13px; }
.post-editor-sidebar { border: 1px solid #2a4277; border-radius: 13px; padding: 13px; background: rgba(3, 10, 26, .62); }
.post-shortcode-box { display: grid; gap: 8px; border: 1px solid #3d397d; border-radius: 10px; padding: 11px; background: linear-gradient(145deg, rgba(18, 20, 55, .92), rgba(29, 13, 54, .9)); }
.post-shortcode-box .field-label { margin: 0; color: #7fe9ff; }
.post-shortcode-box > p { margin: 0; color: #8292b2; font-size: 9px; line-height: 1.5; }
.post-shortcode-box > div { display: grid; gap: 6px; }
.post-shortcode-box code { overflow: hidden; border: 1px solid #3c5283; border-radius: 7px; padding: 7px; background: #07142d; color: #d5c8ff; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.post-shortcode-box .btn { width: 100%; min-height: 32px; padding: 5px 7px; font-size: 9px; }
.field-label { display: block; margin-bottom: 6px; color: #8c9cc0; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.rich-editor-shell { min-width: 0; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; border: 1px solid #2c477e; border-bottom: 0; border-radius: 10px 10px 0 0; padding: 8px; background: #071126; }
.editor-toolbar button { min-height: 30px; border: 1px solid #2d477b; border-radius: 6px; padding: 5px 8px; background: #101d3c; color: #d6e1f8; font-size: 10px; font-weight: 750; }
.editor-toolbar button:hover { border-color: #4b68c1; background: #172957; }
.rich-editor { min-height: 360px; overflow-y: auto; border: 1px solid #2c477e; border-radius: 0 0 10px 10px; padding: 18px; background: #f7f9ff; color: #172033; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.7; outline: 0; }
.rich-editor:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 216, 255, .1); }
.rich-editor:empty::before { content: attr(data-placeholder); color: #8190a7; }
.rich-editor h2, .rich-editor h3, .rich-editor blockquote { color: #15203a; }
.post-editor-main textarea, .post-editor-sidebar textarea { width: 100%; }
.featured-image-field { display: grid; gap: 7px; }
.featured-image-field > input[type="file"] { height: auto; border: 1px dashed #35538a; border-radius: 9px; padding: 10px; background: #08142c; font-size: 10px; }
.featured-image-field small, .post-editor-form label small { color: #7889ad; font-size: 9px; line-height: 1.45; }
.post-image-preview { display: grid; gap: 7px; }
.post-image-preview img { width: 100%; max-height: 190px; border: 1px solid #365184; border-radius: 9px; object-fit: cover; }
.post-image-preview .btn { width: 100%; }
.post-editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.post-list-filters { display: flex; gap: 7px; }
.post-list-filters select { width: 155px; }
.post-admin-table th:nth-child(1) { width: 26%; }.post-admin-table th:nth-child(2) { width: 13%; }.post-admin-table th:nth-child(3) { width: 12%; }.post-admin-table th:nth-child(4) { width: 17%; }.post-admin-table th:nth-child(5) { width: 32%; }
.post-admin-table td:first-child { white-space: normal; }
.post-slug { display: block; overflow: hidden; margin-top: 3px; color: #7182a7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.post-status { display: inline-flex; border: 1px solid #3b4f7f; border-radius: 999px; padding: 4px 7px; background: #111b36; color: #b9c7df; font-size: 9px; font-weight: 850; }
.post-status.status-published { border-color: #247865; background: #082b25; color: #79efce; }
.post-status.status-scheduled { border-color: #6850a4; background: #21143f; color: #d0bfff; }
.post-status.status-archived { border-color: #704263; background: #281323; color: #e9a7c7; }
.post-actions { white-space: normal !important; }
.admin-dialog { width: min(920px, calc(100% - 28px)); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid #3a4d88; border-radius: 17px; padding: 20px; background: #071024; color: #eef4ff; box-shadow: 0 30px 100px rgba(0, 0, 0, .65); }
.admin-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 13px; border-bottom: 1px solid #243a6a; margin-bottom: 15px; padding-bottom: 13px; }
.dialog-head h2 { margin: 5px 0 0; }
.post-preview-meta { margin-bottom: 15px; color: #8fa0c0; font-size: 11px; text-align: center; }
.post-preview-image { width: 100%; max-height: 460px; margin-bottom: 18px; border-radius: 13px; object-fit: cover; }
.post-preview-shortcode { display: grid; gap: 5px; border: 1px solid #40558d; border-radius: 11px; margin: 14px 0; padding: 13px; background: linear-gradient(145deg, #0b1935, #211344); }
.post-preview-shortcode strong { color: #f0f4ff; font-size: 13px; }
.post-preview-shortcode span { color: #91a1c0; font-size: 10px; line-height: 1.5; }
.post-preview-shortcode code { width: fit-content; max-width: 100%; overflow: hidden; border: 1px solid #4d4a89; border-radius: 6px; padding: 5px 7px; background: #0a1127; color: #d8c9ff; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.revision-list { display: grid; gap: 8px; }
.revision-list article { display: flex; align-items: center; justify-content: space-between; gap: 13px; border: 1px solid #283f70; border-radius: 10px; padding: 11px; background: #0b1730; }
.revision-list article > div { display: grid; gap: 3px; }
.revision-list article span { color: #8797b8; font-size: 10px; }
.admin-login-page { display: grid; place-items: center; padding: 22px; }
.login-card { width: min(440px, 100%); display: grid; justify-items: center; border: 1px solid #363e79; border-radius: 19px; padding: 36px; background: linear-gradient(145deg, #09142c, #160d35); box-shadow: 0 28px 80px rgba(0, 0, 0, .5); text-align: center; }
.login-card > img { width: min(280px, 100%); height: auto; max-height: 100px; margin-bottom: 14px; border: 0; border-radius: 0; object-fit: contain; }
.login-card h1 { margin: 7px 0; font-size: 32px; }
.login-card > p { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-card form { width: 100%; display: grid; gap: 12px; text-align: left; }
.login-card form .btn { width: 100%; margin-top: 4px; }
.login-card > a { margin-top: 17px; color: #75e9ff; font-size: 12px; text-decoration: none; }

@media (max-width: 1060px) {
  .desktop-nav { display: none; }
  .market-status { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-feature { width: 100%; }
  .home-quick-links { grid-template-columns: 1fr 1fr; }
  .prediction-overview, .prediction-stat-layout { grid-template-columns: 1fr; }
  .control-grid { grid-template-columns: repeat(4, 1fr); }
  .control-summary { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; padding: 10px 0 0; }
  .live-layout { grid-template-columns: 1fr; }
  .live-layout aside { grid-template-columns: 1fr 1fr; }
  .live-editors { grid-template-columns: 1fr; }
  .sync-metrics { grid-template-columns: 1fr 1fr; }
  .sync-metrics .btn { justify-self: end; }
  .history-metrics { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-editor-form { grid-template-columns: 1fr; }
  .post-teaser-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner, .main-content, .admin-header, .admin-main { width: min(100% - 24px, 1400px); }
  .header-inner { height: 64px; }
  .brand img { width: 152px; height: auto; max-height: 52px; }
  .brand strong { font-size: 13px; }
  .workspace-tabs { padding-bottom: 9px; }
  .workspace-tabs button { padding-inline: 9px; font-size: 11px; }
  #view-dashboard { padding-top: 14px; }
  .home-hero { gap: 24px; border-radius: 23px; padding: 24px 20px; }
  .home-hero::after { right: -48%; bottom: -26%; width: 540px; }
  .dashboard-heading { margin: 17px 0 22px; }
  .dashboard-heading h1 { font-size: clamp(39px, 10.5vw, 58px); }
  .home-actions { grid-template-columns: 1fr; }
  .home-feature { border-radius: 20px; padding: 21px; }
  .home-feature-market { margin: 28px 0 20px; }
  .home-quick-links { gap: 9px; margin-block: 11px 20px; }
  .home-results-panel { border-radius: 20px; padding: 18px 14px; }
  .home-section-title { align-items: flex-end; }
  .latest-card { min-height: 164px; border-radius: 22px; padding: 18px; }
  .view-header { align-items: flex-start; }
  .view-icon { width: 44px; height: 44px; font-size: 20px; }
  .view-header h1 { font-size: 30px; }
  .control-grid { grid-template-columns: 1fr 1fr; }
  .paito-shell { border-width: 2px; }
  .paito-grid th { height: 30px; padding: 0 1px; font-size: clamp(6px, 1.7vw, 9px); }
  .paito-grid td { height: 26px; border-width: 1px; }
  .paito-grid td:nth-child(5n + 1) { border-left-width: 2px; }
  .paito-grid td:nth-child(5n) { border-right-width: 2px; }
  .paito-cell { font-size: clamp(7px, 2vw, 11px); }
  .paint-box { top: 72px; padding: 10px; }
  .palette-row { grid-template-columns: repeat(10, minmax(0, 1fr)) minmax(42px, auto); gap: 3px; }
  .palette-swatch { height: 28px; }
  .palette-row .btn { min-height: 28px; padding: 4px; font-size: 10px; }
  .highlight-box { align-items: stretch; flex-direction: column; }
  .highlight-controls { display: grid; grid-template-columns: repeat(5, 1fr); }
  .highlight-controls label { width: auto; }
  .highlight-controls .btn { grid-column: 1 / -1; }
  .data-controls, .dream-controls, .posts-controls, .prediction-controls { grid-template-columns: 1fr; }
  .prediction-controls .control-summary { border-top: 1px solid var(--line); border-left: 0; padding: 10px 0 0; text-align: left; }
  .prediction-candidate-grid { grid-template-columns: 1fr; }
  .prediction-position-grid { grid-template-columns: 1fr 1fr; }
  .prediction-backtest-grid { grid-template-columns: 1fr; }
  .data-table th, .data-table td, .dream-table th, .dream-table td { padding-inline: 5px; font-size: 10px; }
  .data-table th:nth-child(1), .data-table td:nth-child(1) { width: 10%; }
  .data-table th:nth-child(2), .data-table td:nth-child(2) { width: 29%; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { width: 21%; }
  .data-table th:nth-child(4), .data-table td:nth-child(4) { width: 40%; }
  .data-table .number-balls { gap: 2px; }
  .data-table .number-ball { width: 23px; height: 23px; }
  .data-table .number-ball b { width: 15px; height: 15px; font-size: 9px; }
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination > div { display: grid; grid-template-columns: 1fr 1fr; }
  .frame-stack iframe { height: 500px; }
  .live-layout aside { grid-template-columns: 1fr; }
  .admin-header { min-height: 66px; }
  .admin-account > span { display: none; }
  .admin-title { align-items: flex-start; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr; gap: 9px; }
  .admin-stats article { min-height: 80px; }
  .admin-form-grid { grid-template-columns: 1fr 1fr; }
  .admin-form-grid .btn { grid-column: 1 / -1; }
  .result-maintenance-card .card-head { align-items: stretch; flex-direction: column; }
  .maintenance-scope { width: 100%; min-width: 0; }
  .maintenance-actions { grid-template-columns: 1fr 1fr; }
  .admin-table th:nth-child(1) { width: 24%; }.admin-table th:nth-child(2) { width: 22%; }.admin-table th:nth-child(3) { width: 20%; }.admin-table th:nth-child(4) { display: none; }.admin-table th:nth-child(5) { width: 34%; }
  .admin-table td:nth-child(4) { display: none; }
  .table-actions .btn { margin: 2px; }
  .source-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .source-toggle { align-items: stretch; flex-direction: column; }
  .source-toggle > .btn { width: 100%; }
  .sync-metrics { grid-template-columns: 1fr; }
  .sync-metrics .btn { width: 100%; justify-self: stretch; }
  .history-fields, .history-metrics { grid-template-columns: 1fr; }
  .history-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .appearance-copy-fields, .appearance-banner-grid, .appearance-banner-list, .appearance-seo-grid, .appearance-route-group-grid { grid-template-columns: 1fr; }
  .appearance-copy-fields label:first-child { grid-column: auto; }
  .appearance-actions .btn { width: 100%; }
  .posts-grid, .post-teaser-list { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 120px minmax(0, 1fr); }
  .post-card-image { min-height: 190px; }
  .post-embed-paito { width: min(916px, calc(100vw - 24px)); }
  .post-embed-palette-box { top: 72px; padding: 10px; }
  .post-embed-palette { grid-template-columns: repeat(10, minmax(0, 1fr)) minmax(42px, auto); gap: 3px; }
  .post-embed-palette .palette-swatch { height: 28px; }
  .post-embed-palette .btn { min-height: 28px; padding: 4px; font-size: 10px; }
  .post-embed-paito-shell { border-width: 2px; }
  .post-embed-highlight-box { align-items: stretch; flex-direction: column; }
  .post-embed-highlight-controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .post-embed-highlight-controls label { width: auto; }
  .post-embed-highlight-controls .btn { grid-column: 1 / -1; }
  .post-embed-paito-meta { align-items: stretch; flex-direction: column; }
  .post-embed-paito-meta .btn { width: 100%; }
  .post-embed-head, .post-embed-foot { align-items: flex-start; flex-direction: column; }
  .post-embed-foot .btn { width: 100%; }
  .post-embed-paito-table th { height: 23px; font-size: clamp(5px, 1.7vw, 8px); }
  .post-embed-paito-table td { height: 22px; }
  .post-embed-digit { font-size: clamp(6px, 2vw, 10px); }
  .post-embed-data-table th, .post-embed-data-table td { padding-inline: 4px; font-size: 9px; }
  .post-embed-data-table .number-balls { gap: 2px; }
  .post-embed-data-table .number-ball { width: 21px; height: 21px; }
  .post-embed-data-table .number-ball b { width: 14px; height: 14px; font-size: 8px; }
  .market-posts-head { align-items: flex-start; flex-direction: column; }
  .market-posts-head .btn { width: 100%; }
  .post-list-filters { width: 100%; }
  .post-list-filters select { flex: 1 1 0; width: auto; }
  .post-admin-table th:nth-child(1), .post-admin-table td:nth-child(1) { width: 37%; display: table-cell; }
  .post-admin-table th:nth-child(2), .post-admin-table td:nth-child(2) { display: none; }
  .post-admin-table th:nth-child(3), .post-admin-table td:nth-child(3) { width: 20%; display: table-cell; }
  .post-admin-table th:nth-child(4), .post-admin-table td:nth-child(4) { display: none; }
  .post-admin-table th:nth-child(5), .post-admin-table td:nth-child(5) { width: 43%; display: table-cell; }
  .admin-dialog { padding: 14px; }
  .security-card form { grid-template-columns: 1fr; }
  .security-card form label:first-child, .security-card form .btn { grid-column: auto; }
  .login-card { padding: 28px 20px; }
}

@media (max-width: 430px) {
  .brand small { display: none; }
  .home-hero { padding: 21px 14px; }
  .home-eyebrow { padding: 7px 10px; font-size: 8px; }
  .dashboard-heading h1 { font-size: clamp(36px, 11.5vw, 48px); }
  .home-action { min-height: 64px; padding: 10px 11px; }
  .home-action-icon { width: 36px; height: 36px; }
  .home-trust { gap: 4px; }
  .home-trust span { padding-left: 7px; }
  .home-trust i { font-size: 14px; }
  .home-trust b { font-size: 6px; letter-spacing: .04em; }
  .home-feature { padding: 19px 14px; }
  .home-feature-top > span:last-child { display: none; }
  .home-feature-market strong { font-size: 21px; }
  .home-feature-result .number-balls { gap: 5px; }
  .home-feature-result .number-ball { width: 42px; height: 42px; }
  .home-feature-result .number-ball b { width: 25px; height: 25px; font-size: 17px; }
  .home-feature-bottom > span { font-size: 9px; }
  .home-quick-link { column-gap: 8px; padding: 11px 9px; }
  .home-quick-link > span { width: 31px; height: 31px; font-size: 14px; }
  .home-quick-link strong { font-size: 9px; }
  .home-quick-link small { font-size: 7px; }
  .prediction-primary-card, .prediction-method-card, .prediction-list-card, .prediction-stat-card, .prediction-backtest-card { border-radius: 13px; }
  .prediction-primary-card, .prediction-method-card { padding: 16px; }
  .prediction-card-head, .prediction-stat-card > .card-head, .prediction-backtest-card > .card-head { align-items: flex-start; flex-direction: column; }
  .prediction-primary .number-ball { width: 48px; height: 48px; }
  .prediction-primary .number-ball b { width: 29px; height: 29px; font-size: 19px; }
  .prediction-position-grid { grid-template-columns: 1fr; }
  .prediction-number-list, .prediction-summary, .prediction-pairs { grid-template-columns: 1fr; }
  .prediction-digit-row { grid-template-columns: 30px minmax(0, 1fr); }
  .prediction-digit-row > strong { width: 28px; height: 28px; }
  .prediction-digit-row > em { display: none; }
  .prediction-hot-cold { flex-wrap: wrap; }
  .prediction-disclaimer { flex-direction: column; }
  .home-secure-badge { display: none; }
  .home-section-title h2 { font-size: 25px; }
  .latest-card-result .number-ball { width: 36px; height: 36px; }
  .latest-card-result .number-ball b { width: 22px; height: 22px; font-size: 15px; }
  .latest-card-meta { gap: 8px; font-size: 8px; }
  .latest-card-meta b { font-size: 7px; }
  .view-icon { display: none; }
  .control-grid { grid-template-columns: 1fr; }
  .paito-grid th { height: 27px; font-size: clamp(6px, 2vw, 8px); }
  .paito-grid td { height: 24px; }
  .paito-cell { font-size: clamp(7px, 2.15vw, 9px); }
  .palette-row { grid-template-columns: repeat(10, minmax(0, 1fr)) minmax(38px, auto); }
  .paint-box { top: 70px; padding: 8px; }
  .palette-swatch { height: 24px; border-radius: 5px; }
  .data-card .card-head, .live-stage .card-head, .admin-card .card-head { align-items: flex-start; flex-direction: column; }
  .data-card .card-head select, .live-stage .card-head select { width: 100%; }
  .dream-table th:last-child, .dream-table td:last-child { width: 39%; }
  .admin-account .btn { min-width: 36px; padding-inline: 8px; font-size: 10px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .maintenance-metrics { grid-template-columns: 1fr; }
  .maintenance-actions { grid-template-columns: 1fr; }
  .maintenance-dialog-actions { display: grid; grid-template-columns: 1fr; }
  .admin-table th:nth-child(1) { width: 28%; }.admin-table th:nth-child(2) { display: none; }.admin-table th:nth-child(3) { width: 24%; }.admin-table th:nth-child(5) { width: 48%; }
  .admin-table td:nth-child(2) { display: none; }
  .source-actions { grid-template-columns: 1fr; }
  .history-actions { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-card-image { height: 180px; min-height: 0; }
  .post-teaser { grid-template-columns: 72px minmax(0, 1fr); }
  .post-teaser-image { width: 72px; height: 66px; }
  .post-editor-actions, .post-list-filters { grid-template-columns: 1fr; display: grid; }
  .post-shortcode-box code { font-size: 8px; }
  .post-embed-palette-box { top: 70px; padding: 8px; }
  .post-embed-palette { grid-template-columns: repeat(10, minmax(0, 1fr)) minmax(38px, auto); }
  .post-embed-palette .palette-swatch { height: 24px; border-radius: 5px; }
  .post-embed-data-table th:nth-child(1), .post-embed-data-table td:nth-child(1) { width: 9%; }
  .post-embed-data-table th:nth-child(2), .post-embed-data-table td:nth-child(2) { width: 28%; }
  .post-embed-data-table th:nth-child(3), .post-embed-data-table td:nth-child(3) { width: 18%; }
  .post-embed-data-table th:nth-child(4), .post-embed-data-table td:nth-child(4) { width: 45%; }
  .post-embed-data-table .number-ball { width: 18px; height: 18px; }
  .post-embed-data-table .number-ball b { width: 12px; height: 12px; font-size: 7px; }
  .post-admin-table th:nth-child(1), .post-admin-table td:nth-child(1) { width: 42%; }
  .post-admin-table th:nth-child(3), .post-admin-table td:nth-child(3) { display: none; }
  .post-admin-table th:nth-child(5), .post-admin-table td:nth-child(5) { width: 58%; }
  .post-actions .btn { padding-inline: 6px; font-size: 9px; }
  .dialog-head { align-items: flex-start; flex-direction: column; }
  .dialog-head .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.route-posts-panel{margin-top:24px}.route-posts-content{display:grid;gap:22px}.route-post-card{overflow:hidden;padding:clamp(18px,3vw,30px);border:1px solid rgba(124,58,237,.22);border-radius:22px;background:linear-gradient(145deg,rgba(13,20,44,.98),rgba(16,12,38,.96));box-shadow:0 20px 55px rgba(2,6,23,.25)}.route-post-heading{margin-bottom:18px}.route-post-heading h2{margin:6px 0 4px;font-size:clamp(1.35rem,3vw,2rem)}.route-post-heading time{color:var(--muted);font-size:.85rem}.route-post-image{display:block;width:100%;max-height:440px;margin-bottom:20px;border-radius:16px;object-fit:cover}.route-post-body{line-height:1.75}

/* Tema ungu-magenta: #6402ab, #2f034f, #7a0266 */
:root {
  --bg: #2f034f;
  --panel: #2f034f;
  --panel-2: #6402ab;
  --line: #7a0266;
  --blue: #6402ab;
  --purple: #7a0266;
  --green: #7a0266;
  --pink: #7a0266;
  --shadow: 0 20px 55px rgba(47, 3, 79, .42);
}
body {
  background:
    radial-gradient(circle at 10% 0%, rgba(100, 2, 171, .34), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(122, 2, 102, .32), transparent 34rem),
    linear-gradient(180deg, #2f034f, #6402ab 52%, #2f034f);
}
.site-header { border-bottom-color: rgba(122, 2, 102, .7); background: rgba(47, 3, 79, .96); }
.brand small, .eyebrow, .home-feature-bottom button, .admin-result-number, .appearance-seo-editor > strong, .appearance-route-group > h4, .post-shortcode-box .field-label, .login-card > a { color: #fff; }
.desktop-nav button:hover, .desktop-nav a:hover, .desktop-nav .active, .mobile-nav .active,
.menu-toggle, .btn.ghost, .editor-toolbar button, .post-status { border-color: #7a0266; background: #2f034f; color: #fff; }
.workspace-tabs button.active, .admin-tabs button.active, .btn.primary,
.view-icon, .post-teaser-image, .post-card-image, .home-quick-link > span {
  border-color: #7a0266;
  background: linear-gradient(135deg, #6402ab, #7a0266);
  color: #fff;
}
.home-hero {
  border-color: #7a0266;
  background:
    radial-gradient(circle at 14% 18%, rgba(100, 2, 171, .52), transparent 25rem),
    radial-gradient(circle at 88% 12%, rgba(122, 2, 102, .5), transparent 26rem),
    linear-gradient(135deg, #2f034f, #6402ab 52%, #2f034f);
  box-shadow: 0 34px 100px rgba(47, 3, 79, .58), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 50px rgba(100, 2, 171, .2);
}
.home-hero::before { background-image: linear-gradient(rgba(122, 2, 102, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 2, 102, .35) 1px, transparent 1px); }
.home-hero::after { border-color: rgba(122, 2, 102, .65); background: radial-gradient(circle, rgba(100, 2, 171, .42), rgba(122, 2, 102, .2) 48%, transparent 70%); box-shadow: 0 0 110px rgba(100, 2, 171, .34), inset 0 0 80px rgba(122, 2, 102, .22); }
.home-eyebrow { border-color: #7a0266; background: rgba(47, 3, 79, .72); color: #fff; box-shadow: inset 0 0 18px rgba(100, 2, 171, .22); }
.dashboard-heading h1 { background: linear-gradient(115deg, #fff 8%, #fff 38%, #c993ee 68%, #e08bd2); -webkit-background-clip: text; background-clip: text; }
.home-action.primary { border-color: #7a0266; background: linear-gradient(135deg, #6402ab, #7a0266); box-shadow: 0 14px 38px rgba(100, 2, 171, .35), inset 0 1px 0 rgba(255, 255, 255, .22); }
.home-action.secondary, .home-feature, .home-quick-link, .home-results-panel, .latest-card,
.control-card, .data-card, .live-stage, .latest-feature, .source-note, .admin-card,
.market-posts-panel, .post-card, .post-detail, .post-embed-card, .route-post-card,
.prediction-primary-card, .prediction-method-card, .prediction-list-card, .prediction-stat-card, .prediction-backtest-card {
  border-color: #7a0266;
  background: linear-gradient(145deg, rgba(47, 3, 79, .98), rgba(100, 2, 171, .68));
}
.home-action:hover, .home-quick-link:hover, .post-teaser:hover { border-color: #6402ab; box-shadow: 0 16px 38px rgba(100, 2, 171, .38); }
.home-feature::before { background: linear-gradient(90deg, transparent, #7a0266, #6402ab, transparent); box-shadow: 0 0 20px rgba(100, 2, 171, .65); }
.home-feature-slider-controls > button, .home-feature-dots button, .home-newsbar,
.home-market-rail, .home-market-rail-head, .home-market-chip:hover {
  border-color: #7a0266;
  background: linear-gradient(135deg, #2f034f, #6402ab);
  color: #fff;
}
.home-feature-dots button.active, .home-newsbar-label { background: linear-gradient(90deg, #6402ab, #7a0266); color: #fff; }
.home-market-chip { border-left-color: rgba(122, 2, 102, .7); }
.latest-card-meta, .data-card .card-head, .live-stage .card-head, .admin-card .card-head,
.pagination, .appearance-route-section, .appearance-actions, .source-toggle,
.history-metrics, .maintenance-dialog-actions, .dialog-head, .prediction-method-metrics div,
.prediction-stat-card > .card-head, .prediction-backtest-card > .card-head { border-color: #7a0266; }
.view-icon, input, select, textarea, .paint-box, .highlight-box, .paito-toolbar,
.post-paint-box, .post-highlight-box, .post-embed-editor,
.appearance-seo-editor, .appearance-banner-editor, .post-editor-sidebar,
.source-url, .history-url, .maintenance-metrics > div, .maintenance-dialog-scope,
.featured-image-field > input[type="file"], .appearance-banner-editor > input[type="file"],
.prediction-position-grid article, .prediction-number-chip, .prediction-summary article,
.prediction-pairs > span, .prediction-backtest-grid article, .prediction-status {
  border-color: #7a0266;
  background: rgba(47, 3, 79, .86);
  color: #fff;
}
input:focus, select:focus, textarea:focus, .rich-editor:focus { border-color: #6402ab; box-shadow: 0 0 0 3px rgba(100, 2, 171, .3); }
.data-table th, .dream-table th, .admin-table th, .post-embed-data-table th { background: #2f034f; color: #fff; }
.data-table td, .dream-table td, .admin-table td, .post-embed-data-table td { border-color: #7a0266; }
.dream-number, .article-heading > span, .post-preview-shortcode, .post-shortcode-box,
.revision-list article, .admin-dialog, .login-card, .maintenance-dialog code {
  border-color: #7a0266;
  background: linear-gradient(145deg, #2f034f, #6402ab);
  color: #fff;
}
.post-teaser { border-color: #7a0266; background: #2f034f; }
.site-banner, .floating-banner, .appearance-banner-preview img { border-color: #7a0266; background: #2f034f; }
.floating-banner-close { border-color: #fff; background: #6402ab; color: #fff; }
.site-footer { border-top-color: #7a0266; background: #2f034f; }
.admin-body { background: radial-gradient(circle at 50% 0%, rgba(100, 2, 171, .42), transparent 32rem), #2f034f; }
.admin-stats article, .result-maintenance-card, .source-card, .history-card, .post-editor-card {
  border-color: #7a0266;
  background: linear-gradient(145deg, #2f034f, #6402ab);
}
.admin-tabs { border-bottom-color: #7a0266; }
.admin-tabs button.active { border-color: #7a0266; }
.secure-badge, .sync-badge, .live-badge, .home-secure-badge,
.message, .history-safety, .maintenance-safety {
  border-color: #7a0266;
  background: rgba(47, 3, 79, .88);
  color: #fff;
}
.btn.danger, .message.error, .sync-error, .post-embed-error { border-color: #7a0266; background: #7a0266; color: #fff; }
.message.warning, .maintenance-backup-check { border-color: #6402ab; background: #2f034f; color: #fff; }
