/* GENERATED by scripts/lotto-style-bundle.mjs; edit source modules. */
/* SINGLE OWNER: all page chrome, responsive geometry and semantic movements.
 * Legacy component styles are consolidated by lotto-style-bundle.mjs. Do not
 * add a route-specific header override or another fixed-height rescue sheet.
 */
/* The first named layer wins the !important cascade. The shared touch-input safety layer
 * (packages/design-tokens/src/form-controls.css: >=16px on coarse pointers and <=900px) is named
 * before this sheet, so the 13px control text below applies to desktop only. Otherwise iOS zooms
 * the page when the login, join or workspace inputs receive focus. */
@layer formulab-input-safety, lotto-product, lotto-terminal;
/* The shared template contains every current screen. Keep route visibility
 * in the canonical owner, including before the deferred runtime starts. */
@layer lotto-terminal {
body.ll-dashboard .workspace-page{display:none}
body.ll-dashboard[data-screen='feed'] #feedPage{display:flex!important;flex-direction:column}
body.ll-dashboard[data-screen='member'] #memberPage{display:flex!important;flex-direction:column}
body.ll-dashboard[data-screen='lab'] #generationPage{display:flex!important;flex-direction:column}
}
/* Current member/lab components migrated from 00bb8b2^ restore-overrides. */
@layer lotto-terminal {
body.ll-dashboard[data-screen="member"] .workspace-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:160px;padding:22px 16px;text-align:center;background:#fafbfc;border:1px solid #f0f2f5;border-radius:12px;color:rgb(78,80,82);gap:8px}body.ll-dashboard[data-screen="member"] .workspace-empty h2{font-size:20px;color:rgba(26,31,41,.89);margin:4px}body.ll-dashboard[data-screen="member"] .workspace-empty h3{font-size:15px;color:rgba(26,31,41,.89);margin:4px}body.ll-dashboard[data-screen="member"] .workspace-empty p{font-size:13px;line-height:1.7;max-width:400px;margin:0 0 8px}body.ll-dashboard[data-screen="member"] .workspace-empty .workspace-glyph{width:46px;height:52px;border:1px solid #d5e5fb;box-shadow:4px 4px 0 #edf4ff;transform:rotate(-6deg)}
body.ll-dashboard[data-screen="member"] .workspace-tabs{display:flex;flex:none;gap:8px;padding:8px 20px;border-bottom:1px solid #e5e8eb;overflow-x:auto;scrollbar-width:thin}body.ll-dashboard[data-screen="member"] .workspace-tabs button{flex:none;border:0;background:none;padding:8px 10px;border-radius:7px;color:rgb(78,80,82);font:inherit;font-size:13px;min-height:36px;white-space:nowrap}body.ll-dashboard[data-screen="member"] .workspace-tabs button[aria-pressed='true']{background:#edf4ff;color:#1b64da;font-weight:600}
body.ll-dashboard[data-screen="member"] .owner-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:14px 22px 8px;flex:none}body.ll-dashboard[data-screen="member"] .owner-stat{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #eef0f3;border-radius:10px;background:#fafbfc}body.ll-dashboard[data-screen="member"] .owner-stat>span{font-size:13px;color:rgb(78,80,82)}body.ll-dashboard[data-screen="member"] .owner-stat strong{font-size:24px;color:rgba(26,31,41,.89);line-height:1.4;font-variant-numeric:tabular-nums}body.ll-dashboard[data-screen="member"] .owner-stat small{font-size:13px!important;font-weight:500;margin-left:3px}
body.ll-dashboard[data-screen="member"] #ownerContent{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:16px 22px;scrollbar-width:thin}body.ll-dashboard[data-screen="member"] #ownerMessage:not(:empty){padding:8px 22px;font-size:13px;background:#f7f8fa;color:rgb(78,80,82)}body.ll-dashboard[data-screen="member"] #ownerMore{margin:4px 22px 12px;flex:none}body.ll-dashboard[data-screen="member"] #ownerContent>h2{font-size:18px}
body.ll-dashboard[data-screen="member"] .wallet-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:14px;align-items:start}
body.ll-dashboard[data-screen="member"] .wallet-ticket{container:ticket / inline-size;position:relative;background:#fffdf7;border:1px solid #e2d7c2;border-radius:6px;margin-bottom:12px;overflow:hidden;animation:workspace-enter .22s ease-out;box-shadow:0 1px 3px #191f2814;padding-left:26px}
body.ll-dashboard[data-screen="member"] .wallet-ticket .ticket-stub{position:absolute;left:0;top:0;bottom:0;width:22px;background:repeating-linear-gradient(180deg,#f5efe3 0 6px,#e8dcc8 6px 8px);border-right:1px dashed #c9b89a}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-head{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:12px 14px 8px;background:linear-gradient(180deg,#fff8ea,#fffdf7);border-bottom:2px solid #1b64da}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-brand{display:grid;gap:0;line-height:1.1}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-brand-mark{font-size:15px;font-weight:600;letter-spacing:.12em;color:#1b64da}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-brand-sub{font-size:11px;letter-spacing:.18em;color:#5b6675}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-round{flex:1;min-width:0;text-align:right;display:grid;gap:2px}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-round strong{font-size:16px;color:rgba(26,31,41,.89);letter-spacing: 0}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-round small{font-size:12px;color:rgb(78,80,82)}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-actions{display:flex;gap:4px;flex:none}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-actions button{border:1px solid #dce1e7;background:#fff;border-radius:6px;font-size:13px;color:rgb(78,80,82);padding:6px 10px;min-height:32px;cursor:pointer}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-actions button:hover{border-color:#1b64da;color:#1b64da}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-meta{display:flex;flex-wrap:wrap;gap:8px 14px;padding:7px 14px;font-size:12px;color:rgb(78,80,82);border-bottom:1px dashed #dce1e7;background:#faf8f3}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-foot{padding:8px 14px 10px;background:repeating-linear-gradient(90deg,#fffdf7 0 4px,#f5efe3 4px 8px);border-top:1px dashed #c9b89a}
body.ll-dashboard[data-screen="member"] .ticket-redeem .ticket-foot p{margin:6px 0 0;font-size:12px;color:#5b6675;line-height:1.5}
body.ll-dashboard[data-screen="member"] .ticket-barcode{display:flex;align-items:flex-end;gap:1px;height:28px;overflow:hidden;opacity:.75}
body.ll-dashboard[data-screen="member"] .ticket-barcode i{display:block;width:2px;height:var(--h,40%);background:#191f28;flex:none}
body.ll-dashboard[data-screen="member"] .ticket-redeem .wallet-game{border-top:1px dashed #dce1e7;padding:10px 14px;grid-template-columns:22px minmax(0,1fr) auto}
body.ll-dashboard[data-screen="member"] .ticket-redeem .wallet-game>b{display:grid;place-items:center;width:22px;height:22px;border:1.5px solid #1b64da;border-radius:50%;color:#1b64da;font-size:12px;font-weight:600}
body.ll-dashboard[data-screen="member"] .ticket-redeem .wallet-note{padding:0 14px 8px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
body.ll-dashboard[data-screen="member"] .wallet-game{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 14px;border-top:1px dashed #dce1e7}body.ll-dashboard[data-screen="member"] .wallet-game>small{grid-column:2/-1;font-size:12px!important;color:rgb(78,80,82)}body.ll-dashboard[data-screen="member"] .wallet-game>b{font-size:13px;color:#5b6675}body.ll-dashboard[data-screen="member"] .wallet-balls{display:flex;gap:4px;align-items:center;flex-wrap:wrap;min-width:0}body.ll-dashboard[data-screen="member"] .wallet-ball{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;flex:none;background:#eef0f3;color:rgb(78,80,82);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;box-shadow:none}body.ll-dashboard[data-screen="member"] .wallet-ball.matched{text-underline-offset:3px}body.ll-dashboard[data-screen="member"] .wallet-ball[data-band='1']{background:#f5bf00;color:#3a3000}body.ll-dashboard[data-screen="member"] .wallet-ball[data-band='2']{background:#64bfea;color:#123d53}body.ll-dashboard[data-screen="member"] .wallet-ball[data-band='3']{background:#d63b50;color:#fff}body.ll-dashboard[data-screen="member"] .wallet-ball[data-band='4']{background:#626d7b;color:#fff}body.ll-dashboard[data-screen="member"] .wallet-ball[data-band='5']{background:#aad349;color:#25340b}
body.ll-dashboard[data-screen="member"] .generation-game{padding:12px 14px;border-top:1px dashed #dce1e7;display:flex;gap:8px;flex-wrap:wrap;align-items:center}body.ll-dashboard[data-screen="member"] .generation-game>strong{width:100%;font-size:13px}body.ll-dashboard[data-screen="member"] .generation-game>span{font-size:13px}body.ll-dashboard[data-screen="member"] .generation-game button{margin-left:auto}body.ll-dashboard[data-screen="member"] .usage-notice{padding:10px 12px;margin-bottom:14px;background:#f4f8fe;border-radius:8px;font-size:13px;color:rgb(78,80,82)}
body.ll-dashboard[data-screen="member"] .owner-formula{display:flex;align-items:flex-start;gap:12px;padding:15px 12px;border-bottom:1px solid #eef0f3}body.ll-dashboard[data-screen="member"] .owner-formula>div:nth-child(2){flex:1;min-width:0}body.ll-dashboard[data-screen="member"] .owner-formula h3{font-size:15px;margin:0 0 5px}body.ll-dashboard[data-screen="member"] .owner-formula p{font-size:13px;line-height:1.6;margin:0 0 4px;color:rgb(78,80,82)}body.ll-dashboard[data-screen="member"] .owner-formula span{font-size:12px;color:#5b6675}body.ll-dashboard[data-screen="member"] .formula-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:230px}body.ll-dashboard[data-screen="member"] .formula-explore{padding:12px 0}body.ll-dashboard[data-screen="member"] .formula-explore>summary{cursor:pointer;font-size:15px;font-weight:600}
body.ll-dashboard[data-screen="member"] .owner-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}body.ll-dashboard[data-screen="member"] .overview-intro{display:flex;align-items:center;gap:24px;padding:22px;background:#f8faff;border-radius:12px;border:1px solid #edf1f7}body.ll-dashboard[data-screen="member"] .overview-intro h2{font-size:20px;margin:0 0 8px}body.ll-dashboard[data-screen="member"] .overview-intro p{font-size:13px;color:rgb(78,80,82);line-height:1.6;margin:0 0 14px}body.ll-dashboard[data-screen="member"] .workspace-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}body.ll-dashboard[data-screen="member"] .workspace-section-title h2{font-size:17px;margin:0}body.ll-dashboard[data-screen="member"] .workspace-section-title button{border:0;background:none;font-size:13px;color:#1b64da}
body.ll-dashboard[data-screen="member"] .owner-chart{border:1px solid #e5e8eb;border-radius:12px;padding:14px 18px}body.ll-dashboard[data-screen="member"] .owner-chart h3{font-size:15px;margin:0 0 4px}body.ll-dashboard[data-screen="member"] .distribution-bars{height:130px;display:flex;gap:12px;align-items:stretch;margin-top:10px}body.ll-dashboard[data-screen="member"] .distribution-bars>div{display:flex;flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:4px;min-width:0}body.ll-dashboard[data-screen="member"] .distribution-bars span{width:100%;max-width:35px;height:var(--bar);min-height:2px;max-height:85px;background:#8bbaff;border-radius:4px 4px 0 0;transition:height .25s ease}body.ll-dashboard[data-screen="member"] .distribution-bars b,body.ll-dashboard[data-screen="member"] .distribution-bars small{font-size:12px!important;color:rgb(78,80,82);font-weight:500}
body.ll-dashboard[data-screen="member"] .owner-security{max-width:720px;padding:18px;border:1px solid #e5e8eb;border-radius:12px}body.ll-dashboard[data-screen="member"] .owner-security h2{font-size:18px}body.ll-dashboard[data-screen="member"] .owner-security dl>div{display:flex;gap:20px;padding:10px 0;border-bottom:1px solid #f2f4f6}body.ll-dashboard[data-screen="member"] .owner-security dt{width:70px;font-size:13px;color:#5b6675}body.ll-dashboard[data-screen="member"] .owner-security dd{margin:0;font-size:14px;overflow-wrap:anywhere}body.ll-dashboard[data-screen="member"] .owner-security p{font-size:13px;color:rgb(78,80,82);line-height:1.7}
body.desk.ll-dashboard[data-screen="member"] .workspace-dialog{width:580px;padding:18px;max-height:calc(100dvh - 28px)!important;border-radius:14px}body.ll-dashboard[data-screen="member"] .workspace-dialog form>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}body.ll-dashboard[data-screen="member"] .workspace-dialog h2{font-size:20px;margin:0}body.ll-dashboard[data-screen="member"] .workspace-dialog label{display:flex;flex-direction:column;gap:8px;margin:12px 0;font-size:13px;font-weight:500}body.ll-dashboard[data-screen="member"] .workspace-dialog input:not([type=checkbox]):not([type=radio]),body.ll-dashboard[data-screen="member"] .workspace-dialog textarea{width:100%;padding:10px;font-size:16px!important;min-height:42px!important}body.ll-dashboard[data-screen="member"] .workspace-dialog textarea{resize:vertical;line-height:1.8!important}body.ll-dashboard[data-screen="member"] .workspace-dialog details{padding:10px 0}body.ll-dashboard[data-screen="member"] .workspace-dialog summary{cursor:pointer;color:#1b64da;font-size:13px}body.ll-dashboard[data-screen="member"] .workspace-dialog button[type='submit']{width:100%;min-height:42px!important}

body.ll-dashboard:is([data-screen="member"],[data-screen="lab"]) .workspace-page-heading{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px}
body.ll-dashboard:is([data-screen="member"],[data-screen="lab"]) .workspace-glyph{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px}
body.ll-dashboard:is([data-screen="member"],[data-screen="lab"]) .workspace-glyph svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.ll-dashboard:is([data-screen="member"],[data-screen="lab"]) .workspace-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px}
body.ll-dashboard:is([data-screen="member"],[data-screen="lab"]) .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 12px;border:1px solid var(--ui-line);border-radius:6px;text-decoration:none;font:inherit;cursor:pointer}
body.ll-dashboard:is([data-screen="member"],[data-screen="lab"]) .button.primary{background:var(--work-accent,#202124);border-color:transparent;color:white}
body.ll-dashboard:is([data-screen="member"],[data-screen="lab"]) .button.secondary{background:var(--ui-surface-sunken);color:var(--ui-body)}
body.ll-dashboard[data-screen="member"] .wallet-ticket>header:not(.ticket-head){padding:12px 14px}
body.ll-dashboard[data-screen="member"] .generation-game>a{display:flex;align-items:center;gap:8px;flex-basis:100%}
body.ll-dashboard[data-screen="member"] .community-author{display:flex;align-items:center;gap:8px}
body.ll-dashboard[data-screen="member"] .feed-post{padding:12px;border-bottom:1px solid var(--ui-line)}
body.ll-dashboard[data-screen="member"] .feed-post>header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
body.ll-dashboard[data-screen="member"] .feed-post>p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
body.ll-dashboard[data-screen="lab"] .lab-workflow{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
body.ll-dashboard[data-screen="lab"] .lab-workflow a{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 10px;border:1px solid var(--ui-line);border-radius:6px;text-decoration:none;color:var(--ui-body);font-size:13px}
body.ll-dashboard[data-screen="lab"] .lab-workflow b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ui-surface-sunken)}
@container ticket (max-width:380px){body.ll-dashboard[data-screen="member"] .wallet-game{grid-template-columns:60px minmax(0,1fr);padding:10px}body.ll-dashboard[data-screen="member"] .wallet-game>.result-badge{grid-column:2;justify-self:start}body.ll-dashboard[data-screen="member"] .wallet-ball{width:25px;height:25px;font-size:13px}body.ll-dashboard[data-screen="member"] .wallet-balls{gap:4px}}
@media(min-width:768px){body.ll-dashboard[data-screen="member"] #lottoBody #memberPage{overflow:hidden!important}body.ll-dashboard[data-screen="member"] #ownerSummary,body.ll-dashboard[data-screen="member"] #ownerTabs{position:static!important}body.ll-dashboard[data-screen="member"] #ownerContent{flex:1;min-height:0;overflow:auto}}
@media(max-width:1179px){body.ll-dashboard[data-screen="member"] .owner-overview{grid-template-columns:1fr}}
@media(max-width:767px){body.ll-dashboard[data-screen="member"] .owner-formula{flex-wrap:wrap}body.ll-dashboard[data-screen="member"] .formula-actions{width:100%;max-width:none;justify-content:flex-start}body.ll-dashboard[data-screen="member"] .workspace-tabs{max-width:100%;gap:2px}body.ll-dashboard[data-screen="member"] .workspace-tabs button{min-height:44px}body.ll-dashboard[data-screen="member"] .owner-summary{grid-template-columns:repeat(2,minmax(0,1fr))}body.ll-dashboard[data-screen="member"] .workspace-dialog{width:calc(100vw - 24px);max-width:580px;box-sizing:border-box}body.ll-dashboard:is([data-screen="member"],[data-screen="lab"]) .workspace-page-heading{flex-wrap:wrap}body.ll-dashboard[data-screen="lab"] .lab-workflow a{min-height:44px}}

}
@layer lotto-terminal{/* Toss Securities financial palette. One cool-grey family, one cobalt accent, Korean
   * market semantics (up = red, down = blue). Shadows carry the canvas hue instead of
   * pure black so white work surfaces read as elevated rather than outlined. */
  body.ll-dashboard{
    --ui-bg:#f4f5f8;--ui-surface:#fbfcfd;--ui-surface-sunken:#f1f2f5;
    --ui-text:#191f28;--ui-body:#4e5968;--ui-muted:#657181;--ui-faint:#657181;
    --ui-line:#e5e8eb;--ui-line-soft:#f0f2f4;
    --ui-brand:#3182f6;--ui-action-reference:#2272eb;--ui-blue:#216de2;--ui-blue-ink:#1b64da;--ui-blue-soft:#e8f3ff;
    --ui-up:#de2b39;--ui-down:#216de2;--ui-flat:#5d6b7f;
    --ui-good:#0f9d76;--ui-warn:#b26a00;--ui-warn-soft:#fff6e5;
    /* Three elevation levels: work surface, card, floating. Tinted, never black. */
    --ui-panel-shadow:inset 0 0 0 1px rgba(7,25,76,.06);
    --ui-card-shadow:0 1px 2px rgba(25,31,40,.05), 0 8px 24px rgba(25,31,40,.07);
    --ui-float-shadow:0 2px 6px rgba(25,31,40,.07), 0 16px 40px rgba(25,31,40,.12);
    --ui-control-shadow:0 1px 2px rgba(25,31,40,.05);
    --ui-motion:cubic-bezier(.22,.68,.2,1);
    --ui-hover:#eceef2;--ui-radius:12px;--ui-gap:12px;--ui-row:36px;
    /* Type scale: 13px base for dense numeric tables, larger steps for headings. */
    --ui-t-micro:12px;--ui-t-meta:13px;--ui-t-base:13px;--ui-t-read:14px;
    --ui-t-panel:16px;--ui-t-value:24px;--ui-t-figure:30px;
    --lotto-rail-width:56px;--ll-rail-w:56px;--lotto-header-height:52px;
    --home-row:44px!important;--home-gap:12px!important;
    margin:0!important;color:var(--ui-text)!important;background:var(--ui-bg)!important;
    /* 500 as the Toss UI reads (2026-11-12 measurement: 600 and 500 carry most text, 400 only prose). Before: 400. */
    font:500 13px/1.5 'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,'Segoe UI','Malgun Gothic',sans-serif!important;
    font-variant-numeric:tabular-nums!important;font-synthesis:none;-webkit-text-size-adjust:100%;
  }
/* Live state is communicated by a steady tinted dot plus the label next to
   * it, never by blinking or colour alone. */
  body.ll-dashboard [data-live='true'] .ll-live-dot,
  body.ll-dashboard .ll-live-dot{box-shadow:0 0 0 0 rgba(15,157,118,.18)}
body.ll-dashboard *,body.ll-dashboard *::before,body.ll-dashboard *::after{box-sizing:border-box}
body.ll-dashboard #template-root{display:contents!important}
body.ll-dashboard :is(button,input,select,textarea){font-family:inherit!important;font-size:13px!important}
body.ll-dashboard :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--ui-blue)!important;outline-offset:3px!important}
body.ll-dashboard :is(button,a){touch-action:manipulation}
body.ll-dashboard .appbar{
    /* Measured: as a sticky element the header never stuck and travelled with the scroll
     * (top -171/-314/-264 at three widths) while the strip below it stayed pinned, so the top
     * menu fell off and everything under it floated. position:fixed holds it at 0..52 through a
     * full scroll on every page, and the body carries the 52px it used to occupy, so nothing
     * shifts. The mobile branch below restores sticky, where the document is the scroll owner. */
    position:fixed!important;top:0!important;left:0!important;right:0!important;display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:1fr!important;
    align-items:center!important;gap:14px!important;flex:0 0 52px!important;
    width:100%!important;height:52px!important;min-height:52px!important;max-height:52px!important;
    padding:0 calc(12px + var(--lotto-rail-width)) 0 16px!important;
    background:var(--ui-surface)!important;border:0!important;border-bottom:1px solid var(--ui-line)!important;
    border-radius:0!important;box-shadow:var(--ui-control-shadow)!important;transform:none!important;z-index:110!important;
    font:600 13px/1.4 'Pretendard Variable',Pretendard,'Malgun Gothic',sans-serif!important;
  }
body.ll-dashboard .appbar>.brand{grid-area:1/1!important;display:flex!important;align-items:center!important;gap:8px!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;font-size:18px!important;white-space:nowrap!important}
body.ll-dashboard .appbar>.brand{min-height:44px!important;text-decoration:none!important}
body.ll-dashboard .appbar>.brand .lotto-brand-logo{display:block!important;width:120px!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain!important;flex:none!important}
body.ll-dashboard .appbar>.desk-nav{grid-area:1/2!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;flex-wrap:nowrap!important;position:static!important;transform:none!important;width:auto!important;height:100%!important;min-width:0!important;margin:0!important;padding:0!important;overflow-x:auto!important;scrollbar-width:none!important}
body.ll-dashboard .appbar .desk-nav-item{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:7px!important;font-size:13px!important;line-height:1.4!important;font-weight:600!important;color:var(--ui-muted)!important;background:transparent!important;text-decoration:none!important;white-space:nowrap!important;transform:none!important}
body.ll-dashboard .appbar .desk-nav-item:hover{background:#e9edf3!important;color:var(--ui-text)!important}
body.ll-dashboard .appbar .desk-nav-item[aria-current='page']{color:var(--ui-text)!important;background:transparent!important}
body.ll-dashboard .appbar>.header-actions{grid-area:1/3!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;position:static!important;transform:none!important;flex-wrap:nowrap!important;width:auto!important;min-width:0!important;height:auto!important;margin:0!important;padding:0!important}
body.ll-dashboard .header-actions [hidden]{display:none!important}
body.ll-dashboard .header-actions :is(a,button):not([hidden]){min-height:32px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;white-space:nowrap!important}
body.ll-dashboard .header-actions .ll-global-search{display:flex!important;align-items:center!important;gap:8px!important;width:clamp(150px,18vw,320px)!important;min-width:0!important;height:32px!important;margin:0!important;background:#ebedf2!important;border:1px solid #e1e5eb!important;border-radius:8px!important}
body.ll-dashboard .ll-global-search input{width:100%!important;min-width:0!important;height:30px!important;border:0!important;background:transparent!important;font-size:13px!important}
body.ll-dashboard .brand-text,body.ll-dashboard .brand-text b{color:var(--ui-text)!important;font-size:18px!important;line-height:1.4!important;letter-spacing: 0!important}
body.ll-dashboard .delta-positive{color:var(--ui-up)!important}
body.ll-dashboard .delta-negative{color:var(--ui-down)!important}
body.ll-dashboard .template-mode{color:var(--ui-muted)!important;background:transparent!important;font-size:12px!important}
body.ll-dashboard #dashboardRail{display:flex!important;position:fixed!important;inset:0 0 0 auto!important;flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;width:var(--lotto-rail-width)!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;padding:6px 2px!important;margin:0!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin!important;background:var(--ui-surface)!important;border:0!important;border-left:1px solid var(--ui-line)!important;z-index:120!important;transform:none!important}
body.ll-dashboard #dashboardRail .dashboard-rail-item{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:4px!important;flex:0 0 52px!important;width:100%!important;height:52px!important;min-height:52px!important;margin:0!important;padding:6px 2px!important;font-size:13px!important;line-height:1.35!important;border:0!important;border-radius:8px!important;color:var(--ui-muted)!important;background:transparent!important}
body.ll-dashboard #dashboardRail .dashboard-rail-item:hover{background:var(--ui-hover)!important;color:var(--ui-text)!important}
body.ll-dashboard #dashboardRail .dashboard-rail-item[aria-pressed='true']{background:var(--ui-blue-soft)!important;color:var(--ui-blue-ink)!important;box-shadow:inset 2px 0 var(--ui-blue)!important}
body.ll-dashboard #dashboardRail :is(svg,.rail-icon){width:20px!important;height:20px!important}
body.ll-dashboard[data-home-mode='explore'] :is(.dense-record-filter-body,.dense-rank-filter-body)[popover]{position:fixed!important;inset:auto!important;left:var(--filter-menu-left,12px)!important;top:var(--filter-menu-top,96px)!important;width:var(--filter-menu-width,320px)!important;max-height:var(--filter-menu-height,60dvh)!important;margin:0!important;overflow:auto!important;background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;box-shadow:var(--ui-float-shadow)!important;padding:12px!important}
body.ll-dashboard[data-home-mode='explore'] :is(.dense-record-filter-body,.dense-rank-filter-body)[popover]:not(:popover-open){display:none!important}
/* Explore record rows become card grids when the record panel is narrow (live-performance.css,
   * @container record-panel). The generic table geometry of this file (cell height/padding,
   * 500px mobile table width) and legacy desk.css column widths must not size those grid items.
   * Wider panels keep the table, laid out by content so ids, rounds and number balls never spill.
   * The 450px boundary is the table's own measured minimum (66 sequence + 48 round + 166 numbers
   * + 60 result = 340, plus a formula name worth reading), and the explore grid floors the left
   * column at the same number, so the panel is never in the band where the table cannot fit. */
  @container record-panel (max-width:449px){body.ll-dashboard[data-home-mode='explore'] #recordsLiveBody tr[data-record-preview='heading']{display:block!important;min-width:0!important}
body.ll-dashboard[data-home-mode='explore'] #recordsLiveBody tr[data-record-preview='heading'] td{display:block!important;width:auto!important;white-space:normal!important;overflow-wrap:anywhere!important}
/* End record formula alignment. */}
/* The retired dashboard-scroll layer owned the home section heading. Without it the title and the
   * scroll hint ran together ("기간별 검증 결과아래로 스크롤하여 …"). The hint is desktop-only, as before. */
  @media(max-width:1100px){body.ll-dashboard .summary-section-heading>span:last-child{display:none!important}}
/* Guests get one sign-in call to action instead of controls they cannot use yet. Signed-in members
   * see the unchanged form: #generationGuest is hidden for them and #ownerAdd is enabled. */
  body.ll-dashboard #generationPage:has(#generationGuest:not([hidden])) #generationForm,
  body.ll-dashboard #generationPage:has(#generationGuest:not([hidden])) #generationFinalization :is(.finalization-content>select,.finalization-controls,.finalization-blocked,.finalization-results){display:none!important}
body.ll-dashboard #memberPage #ownerAdd:disabled{display:none!important}
body.ll-dashboard :is(.section-heading,.summary-panel-heading){min-height:36px!important;height:auto!important;margin:0!important;padding:7px 10px!important;border-bottom:1px solid #edf0f3!important;gap:8px!important;align-items:center!important}
body.ll-dashboard :is(.section-heading h2,.summary-panel-heading h2,.fluid-analysis-card h3){font-size:14px!important;line-height:1.45!important;font-weight:600!important;letter-spacing: 0!important;word-break:keep-all!important}
body.ll-dashboard :is(.records-scroll,.live-scroll,.ranking-scroll){min-width:0!important;max-width:100%!important;scrollbar-width:thin!important;scrollbar-gutter:stable;overscroll-behavior:contain!important}
body.ll-dashboard :is(.records-scroll,.live-scroll,.ranking-scroll) table{width:100%!important;font-size:13px!important;border-collapse:separate!important;border-spacing:0!important}
body.ll-dashboard :is(.records-scroll,.live-scroll,.ranking-scroll) th{position:sticky!important;top:0!important;z-index:4!important;height:30px!important;background:#fafbfc!important;color:var(--ui-muted)!important;font-size:13px!important;font-weight:500!important}
body.ll-dashboard :is(.records-scroll,.live-scroll,.ranking-scroll) td{height:var(--ui-row)!important;padding:5px 6px!important;border-bottom:1px solid #edf0f3!important;font-size:13px!important;line-height:1.45!important}
body.ll-dashboard :is(.records-scroll,.live-scroll,.ranking-scroll) tr:hover>td{background:var(--ui-hover)!important}
body.ll-dashboard .ranking-table{min-width:320px!important;table-layout:auto!important}
body.ll-dashboard .ranking-table :is(th,td){min-width:0!important}
body.ll-dashboard .ranking-table th:first-child{width:58%!important;min-width:0!important}
body.ll-dashboard .rank-chart-link{display:block!important;min-width:0!important;max-width:100%!important;text-align:left!important;white-space:normal!important}
body.ll-dashboard .method-cell{min-width:0!important;gap:8px!important}
body.ll-dashboard .balls .ball{width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important;flex:0 0 24px!important;aspect-ratio:1!important;font-size:13px!important;line-height:1!important;box-shadow:none!important}
body.ll-dashboard .prize-count.has-prize:is(.p4,.p5){color:var(--ui-blue)!important}
body.ll-dashboard .connection:not(.offline){color:var(--ui-muted)!important}
body.ll-dashboard :is(.method-name,.rank-chart-link){font-size:13px!important;line-height:1.45!important}
body.ll-dashboard :is(.method-meta,.rank-move,.rank-spark){display:flex!important}
body.ll-dashboard .method-meta{align-items:center!important;gap:8px!important;font-size:13px!important;color:var(--ui-muted)!important}
body.ll-dashboard .ranking-table .method-meta{line-height:16px!important}
body.ll-dashboard .ranking-table .rank-spark{height:16px!important}
body.ll-dashboard .ranking-table td{padding-block:3px!important}
body.ll-dashboard .ranking-table th{height:26px!important;padding-block:3px!important}
body.ll-dashboard #recordsLiveBody[hidden]{display:none!important}
body.ll-dashboard .records-table td{padding-block:4px!important}
body.ll-dashboard .records-table th{height:26px!important;padding-block:3px!important}
body.ll-dashboard .rank-position{min-width:42px!important}
body.ll-dashboard .rank-move{font-size:13px!important;white-space:nowrap!important}
body.ll-dashboard .rank-move.up,body.ll-dashboard [data-sign='positive'],body.ll-dashboard [data-terminal-trend='up']{color:var(--ui-up)!important}
body.ll-dashboard .rank-move.down,body.ll-dashboard [data-sign='negative'],body.ll-dashboard [data-terminal-trend='down']{color:var(--ui-down)!important}
body.ll-dashboard [data-sign='equal']{color:var(--ui-muted)!important}
body.ll-dashboard :is(.rank-move.up,.rank-move.down){font-weight:600!important}
body.ll-dashboard .terminal-rank-track{display:block;position:relative;height:4px;width:100%;min-width:24px;max-width:180px;margin-top:1px;overflow:hidden;background:#edf1f6;border-radius:3px}
body.ll-dashboard .terminal-rank-fill{display:block;height:100%;width:var(--terminal-score,0%);background:var(--ui-blue);transition:width 420ms cubic-bezier(.2,.7,.2,1);border-radius:inherit}
body.ll-dashboard tr[data-terminal-trend='up'] .terminal-rank-fill{background:var(--ui-up)}
body.ll-dashboard .terminal-rank-legend{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:2px 10px;font-size:12px;color:var(--ui-muted);border-bottom:1px solid #edf0f3}
body.ll-dashboard .terminal-rank-legend .up{color:var(--ui-up)}
body.ll-dashboard .terminal-rank-legend .down{color:var(--ui-down)}
body.ll-dashboard :is(.quote,.prize-quote,.quote-card,.best-prize,.result-badge).grade-4{background:#f1f4f8!important;color:rgb(78,80,82)!important}
body.ll-dashboard :is(.quote,.prize-quote,.quote-card)[data-prize-pick]{background:#f5f7fa!important;color:rgb(78,80,82)!important}
body.ll-dashboard [data-prize-pick][aria-pressed='true']{background:#eaf2ff!important;color:var(--ui-blue)!important;border-color:#b6d1ff!important}
body.ll-dashboard .fluid-heat-cell{font-size:13px!important;min-height:28px!important;color:#546579!important;background:#f1f4f8!important;border:1px solid transparent!important;border-radius:4px!important}
body.ll-dashboard .fluid-heat-cell[data-level='1']{background:#e8f1ff!important}
.fluid-heat-cell[data-level='2']{background:#d6e7ff!important}
.fluid-heat-cell[data-level='3']{background:#b7d6ff!important}
.fluid-heat-cell[data-level='4']{background:#82b4fb!important;color:#183e75!important}
body.ll-dashboard .fluid-heat-cell.draw-number{border-color:var(--ui-blue)!important}
body.ll-dashboard .fluid-heat-cell[aria-pressed='true']{outline:2px solid var(--ui-blue)!important;outline-offset:1px!important}
body.ll-dashboard .fluid-mean-meter{accent-color:var(--ui-blue)!important}
body.ll-dashboard .fluid-mean-meter::-webkit-meter-optimum-value{background:var(--ui-blue)!important}
body.ll-dashboard .fluid-bar{background:var(--ui-blue)!important}
body.ll-dashboard .fluid-live-progress{background:#e8edf5!important}
.fluid-live-progress::after,.fluid-live-progress::before{background:#3182f6!important}
body.ll-dashboard .fluid-analysis-card{height:auto!important;min-height:0!important;min-width:0!important;max-height:none!important;padding:0!important;border:0!important;overflow:visible!important}
body.ll-dashboard .fluid-analysis-card+.fluid-analysis-card{padding-top:10px!important;border-top:1px solid #edf0f3!important}
body.ll-dashboard .fluid-match-bars{height:100px!important;min-height:100px!important;max-height:100px!important;margin:6px 0 0!important}
body.ll-dashboard .fluid-number-map{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:4px!important;margin:8px 0!important}
body.ll-dashboard :is(.fluid-chart-meta,.chart-description,.chart-readout,#chartDescription,#chartReadout){font-size:13px!important;line-height:1.5!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:anywhere!important}
body.ll-dashboard #chartStage,body.ll-dashboard #labChart{width:100%!important;height:clamp(170px,20dvh,236px)!important;min-height:170px!important;max-height:236px!important;aspect-ratio:auto!important}
body.ll-dashboard #chartValue{font-size:24px!important;line-height:1.35!important}
body.ll-dashboard :is(.mini-hist,.inspector-distribution){max-height:120px!important}
body.ll-dashboard :is(.dashboard-panel-tabs,#summaryDensity){display:none!important}
@media(min-width:980px){html:has(body.ll-dashboard),body.ll-dashboard{height:100%!important;min-height:0!important;overflow:hidden!important}
body.ll-dashboard{display:flex!important;flex-direction:column!important;height:100dvh!important}
body.ll-dashboard .shell{display:block!important;flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;width:100%!important;padding:12px calc(12px + var(--lotto-rail-width)) 12px 12px!important;overflow:hidden!important}
body.ll-dashboard #workspace{min-height:0!important;height:100%!important;padding:0!important;width:100%!important;overflow:visible!important}
/* The header is fixed, so the shell carries the band it used to hold. One number, shared by
   * every desktop branch, so the 768-979px range cannot drift away from the compensation. */
    body.ll-dashboard{--appbar-h:52px;padding-top:var(--appbar-h)!important}
/* Desktop workspaces have explicit scroll owners. Each bounded list remains
     * keyboard reachable; the body never hides unscrollable panel content. */
    body.ll-dashboard[data-home-mode='explore'] #dashboardInsights{height:auto!important;min-height:56px!important;flex:0 0 auto!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='explore'] .shell{display:flex!important;flex-direction:column!important;gap:8px!important;padding-bottom:36px!important}
body.ll-dashboard[data-home-mode='explore'] .shell>#workspace{display:grid!important;position:relative!important;grid-template-columns:minmax(250px,var(--dashboard-left,1fr)) minmax(330px,1.25fr) minmax(270px,var(--dashboard-right,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:12px!important;flex:1 1 0!important;height:0!important;min-height:0!important;overflow:hidden!important;align-items:stretch!important}
body.ll-dashboard[data-home-mode='explore'] #communityPanel{order:1!important;flex:0 0 auto!important;height:auto!important;max-height:240px!important;overflow:auto!important;margin:0!important}
body.ll-dashboard[data-home-mode='explore'] :is(.records-scroll,.ranking-scroll){scroll-padding-top:30px!important;flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:auto!important}
body.ll-dashboard[data-home-mode='explore'] .live-scroll{scroll-padding-top:30px!important;flex:1 0 220px!important;height:auto!important;min-height:220px!important;max-height:none!important;overflow:auto!important;overscroll-behavior:auto!important}
body.ll-dashboard[data-home-mode='explore'] .live-table{min-width:440px!important}
body.ll-dashboard[data-home-mode='explore'] .live-table .balls{flex-wrap:nowrap!important}
body.ll-dashboard[data-home-mode='explore'] :is(.records-scroll,.ranking-scroll,.live-scroll) th{top:0!important}
body.ll-dashboard[data-home-mode='explore'] :is(#dashboardRecordFilters,#rankOptions){position:relative!important}
body.ll-dashboard[data-home-mode='explore'] :is(.dense-record-filter-body,.dense-rank-filter-body){top:100%!important;left:0!important;right:auto!important;width:min(420px,58vw)!important;max-height:min(62dvh,520px)!important;overflow:auto!important;margin-top:4px!important;z-index:30!important}
body.ll-dashboard:not([data-screen='home']) .shell{overflow:auto!important}
body.ll-dashboard:not([data-screen='home']) #workspace{height:auto!important;min-height:100%!important;display:block!important}
body.ll-dashboard:not([data-screen='home']) .workspace-page{width:100%!important;max-width:none!important;min-height:calc(100dvh - 82px)!important}
/* Home reference: full-width market summary, ranking table and a 360px
     * contextual column. Lists scroll without moving the global navigation. */}
@container terminal-results (min-width:460px){body.ll-dashboard .fluid-analysis-card+.fluid-analysis-card{padding:0 0 0 12px!important;border-top:0!important;border-left:1px solid var(--ui-line)!important}
body.ll-dashboard .fluid-match-bars{height:150px!important;max-height:150px!important}
/* Inside the bounded explore workspace the strip never scrolls: the histogram compresses. */
    body.ll-dashboard[data-home-mode='explore'] .fluid-match-bars{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important}
body.ll-dashboard[data-home-mode='explore'] .fluid-number-map{margin:6px 0!important;min-height:0!important}
body.ll-dashboard[data-home-mode='explore'] .fluid-heat-cell{min-height:24px!important}}
/* Preserve the selected chart readout at 650px-high notebooks as well. The
   * KPI totals remain in the top strip; only chart geometry changes here. */
  @media(min-width:980px) and (max-height:720px){/* On a short notebook a wrapping caption pushed the index strip to 168px, well past its
     * 136px budget. Keep the caption on one line and truncate with an ellipsis instead of
     * shrinking any font: the budget protects the rows below, not the caption size. */
    /* The status bullets are already one line each, so the remaining overflow was the strip's own
     * vertical padding. Tighten the padding on a short notebook instead of shrinking any text:
     * the budget protects the record rows below, not the label size. */
    body.ll-dashboard[data-home-mode='explore'] #dashboardInsights{display:none!important}
body.ll-dashboard[data-home-mode='explore'] .saas-kpis{display:none!important}
body.ll-dashboard[data-home-mode='explore'] :is(#chartStage,#labChart){height:124px!important;min-height:124px!important;max-height:124px!important}}
@media(min-width:768px) and (max-width:979px){body.ll-dashboard{display:block!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;padding-top:52px!important}
body.ll-dashboard .appbar{position:fixed!important;top:0!important;gap:8px!important;padding-left:10px!important}
body.ll-dashboard .header-actions .ll-global-search{width:150px!important}
body.ll-dashboard .appbar .desk-nav-item{padding:0 7px!important}
body.ll-dashboard .shell{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:10px 64px 16px 10px!important}
body.ll-dashboard #workspace{height:auto!important;min-height:0!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='explore'] #workspace{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
body.ll-dashboard:not([data-screen='home']) #workspace{display:block!important}
body.ll-dashboard :is(.records-scroll,.live-scroll,.ranking-scroll){flex:none!important;height:clamp(280px,50dvh,540px)!important;min-height:0!important;max-height:none!important;overflow:auto!important}}
@media(max-width:767px){html:has(body.ll-dashboard){height:auto!important;min-height:100%!important;overflow-x:clip!important;overflow-y:auto!important}
body.ll-dashboard{display:block!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;padding-top:0!important;--ui-row:44px;--home-row:44px!important}
body.ll-dashboard .appbar{position:sticky!important;top:0!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:44px 44px!important;height:88px!important;min-height:88px!important;max-height:88px!important;padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left))!important;gap:0 8px!important}
body.ll-dashboard .appbar>.brand .lotto-brand-logo{width:110px!important}
body.ll-dashboard .appbar>.desk-nav{grid-area:2/1/3/-1!important;width:100%!important;gap:0!important}
body.ll-dashboard .appbar .desk-nav-item{flex:1 0 auto!important;height:44px!important;min-height:44px!important;padding:0 10px!important;font-size:13px!important}
body.ll-dashboard .appbar>.header-actions{grid-area:1/2!important;gap:4px!important}
body.ll-dashboard .header-actions .ll-global-search{width:100%!important;min-width:0!important;max-width:220px!important}
body.ll-dashboard .ll-global-search input{font-size:16px!important}
body.ll-dashboard .header-actions :is(kbd,.template-mode){display:none!important}
body.ll-dashboard .header-actions :is(a,button):not([hidden]){min-width:40px!important;min-height:40px!important}
body.ll-dashboard #dashboardRail{inset:auto 0 0 0!important;flex-direction:row!important;justify-content:space-around!important;width:100%!important;height:calc(56px + env(safe-area-inset-bottom))!important;max-height:none!important;padding:2px 4px calc(2px + env(safe-area-inset-bottom))!important;overflow-x:auto!important;overflow-y:hidden!important;border-left:0!important;border-top:1px solid var(--ui-line)!important}
body.ll-dashboard #dashboardRail .dashboard-rail-item{flex:1 0 48px!important;min-width:48px!important;max-width:80px!important;height:50px!important;min-height:50px!important}
body.ll-dashboard #dashboardRail :is(.rail-spacer,.dashboard-rail-spacer){display:none!important}
body.ll-dashboard .shell{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:8px 8px calc(72px + env(safe-area-inset-bottom))!important;overflow:visible!important}
body.ll-dashboard #workspace{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='explore'] #workspace{display:flex!important;flex-direction:column!important;gap:12px!important}
body.ll-dashboard :is(.records-scroll,.live-scroll,.ranking-scroll){flex:none!important;width:100%!important;height:clamp(280px,52dvh,480px)!important;min-height:0!important;max-height:none!important;overflow:auto!important}
body.ll-dashboard :is(.records-scroll,.live-scroll) table{min-width:500px!important}
body.ll-dashboard .ranking-scroll table{min-width:300px!important}
body.ll-dashboard :is(.section-heading,.live-activity-bar){flex-wrap:wrap!important;height:auto!important;gap:8px!important}
body.ll-dashboard :is(.section-heading,.live-activity-bar) :is(button,select){min-height:44px!important}
body.ll-dashboard .fluid-number-map{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))!important}
body.ll-dashboard .fluid-heat-cell{min-height:44px!important;min-width:44px!important}
body.ll-dashboard .workspace-page{width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}
body.ll-dashboard #summaryRecordsBody{overflow-x:auto!important;max-width:100%!important}}
/* Research Workspace: surfaces share one visual language; geometry stays above and below. */
  body.ll-dashboard :is(.workspace-page-heading,.owner-summary,.generation-source,.generation-original,.owner-stat,.member-surface,.finalization-panel){border-color:var(--ui-line)!important;border-radius:12px!important;box-shadow:var(--ui-panel-shadow)!important}
body.ll-dashboard :is(.workspace-page-heading h1,.owner-title,.generation-page h1){color:var(--ui-text)!important;letter-spacing: 0!important}
body.ll-dashboard :is(.section-heading,.summary-panel-heading){background:#fff!important;box-shadow:none!important;border-bottom-color:var(--ui-line)!important}
body.ll-dashboard :is(.records-scroll,.live-scroll,.ranking-scroll) th{background:#f1f4f8!important;color:#435269!important;font-weight:600!important}
body.ll-dashboard :is(input,select,textarea){border-radius:8px!important;border-color:#c8d2df!important;color:var(--ui-text)!important;box-shadow:none!important}
body.ll-dashboard :is(.button.primary){background:var(--ui-blue)!important;color:#fff!important;border-color:var(--ui-blue)!important}
body.ll-dashboard :is(.owner-stat,.generation-source){background:#f8fafc!important;border:1px solid var(--ui-line)!important}
body.ll-dashboard :is(.owner-stat strong,.member-surface h1,.member-surface h2,#generationPage h2){color:var(--ui-text)!important}
body.ll-dashboard :is(.workspace-page-heading p,#generationPage p,.member-surface .micro,.owner-stat>span){color:var(--ui-muted)!important}
body.ll-dashboard .workspace-tabs :is(button,a):is([aria-selected='true'],[aria-pressed='true']){color:var(--ui-blue-ink)!important;background:var(--ui-blue-soft)!important;box-shadow:inset 0 -2px var(--ui-brand)!important}
/* A guest's member region holds nothing but the empty card, and that card is the whole screen:
   * measured 222px of card under 387px of blank canvas at 1440x900. The card takes the region, and
   * its own centered column keeps the sign-in call to action in the middle. Members keep the
   * growing region, so a long list still scrolls inside the page. */
  body.ll-dashboard #ownerContent:has(> .workspace-empty:only-child){display:flex!important;flex-direction:column!important}
body.ll-dashboard #ownerContent:has(> .workspace-empty:only-child)>.workspace-empty{flex:1 1 auto!important}
body.ll-dashboard #dashboardRail :focus-visible{outline-color:#3182f6!important;outline-offset:-3px!important}
body.ll-dashboard :is(.chart-tabs button,.summary-tabs button)[aria-pressed='true']{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-radius:0!important;box-shadow:inset 0 -2px var(--ui-text)!important;font-weight:600!important}
/* Shared density and assets. These are component rules in the canonical owner,
   * so account, feed and research controls cannot drift into a second visual system. */
  body.ll-dashboard .saas-kpi>strong{color:var(--ui-text)!important;font-size:22px!important;font-weight:700!important}
body.ll-dashboard .saas-kpi:first-child>strong{color:var(--ui-up)!important}
body.ll-dashboard .saas-kpi{padding:6px 12px!important;gap:2px!important;background:var(--ui-surface)!important}
body.ll-dashboard .saas-kpi>:is(span,small){color:var(--ui-muted)!important;font-size:13px!important}
body.ll-dashboard :is(.summary-tile h2,.summary-table th){color:var(--ui-muted)!important;font-size:13px!important;font-weight:500!important}
body.ll-dashboard .workspace-page-heading{padding:10px 12px!important;gap:12px!important;border-radius:0!important;box-shadow:none!important;background:var(--ui-surface)!important}
body.ll-dashboard .workspace-page-heading h1{font-size:20px!important;line-height:1.4!important;margin:0!important;font-weight:700!important}
body.ll-dashboard .workspace-page-heading p{font-size:13px!important;line-height:1.5!important;margin:2px 0 0!important}
body.ll-dashboard .workspace-page-heading .eyebrow{display:none!important}
body.ll-dashboard :is(.owner-stat,.generation-source,.generation-original,.finalization-panel){box-shadow:none!important;background:var(--ui-surface)!important}
body.ll-dashboard :is(.workspace-glyph,.hero-glyph){background:var(--ui-blue-soft)!important;color:var(--ui-blue-ink)!important;transform:none!important;box-shadow:none!important;border:0!important;border-radius:8px!important}
body.ll-dashboard .workspace-empty .workspace-glyph{width:40px!important;height:40px!important}
body.ll-dashboard :is(.workspace-empty,.overview-intro,.usage-notice){background:var(--ui-surface-sunken)!important;border-color:var(--ui-line)!important;box-shadow:none!important}
body.ll-dashboard .workspace-empty{padding:16px 12px!important;min-height:120px!important}
body.ll-dashboard .owner-summary{padding:10px 12px 8px!important;box-shadow:none!important;border-radius:0!important}
body.ll-dashboard .owner-stat{padding:8px 12px!important;gap:2px!important}
body.ll-dashboard .owner-stat strong{font-size:22px!important}
body.ll-dashboard #ownerContent{padding:12px!important}
body.ll-dashboard .wallet-grid{gap:12px!important}
body.ll-dashboard .wallet-ticket{background:var(--ui-surface)!important;border-color:var(--ui-line)!important;border-radius:12px!important;box-shadow:none!important;padding-left:0!important}
body.ll-dashboard .ticket-stub{display:none!important}
body.ll-dashboard .ticket-redeem :is(.ticket-head,.ticket-meta,.ticket-foot){background:var(--ui-surface-sunken)!important;border-color:var(--ui-line)!important;border-width:1px!important;border-style:solid!important}
body.ll-dashboard .ticket-redeem .ticket-head{border-width:0 0 1px!important}
body.ll-dashboard .ticket-redeem .ticket-meta{border-width:0 0 1px!important}
body.ll-dashboard .ticket-redeem .ticket-foot{border-width:1px 0 0!important}
body.ll-dashboard .feed-post{padding:20px 24px!important;border-bottom:1px solid var(--ui-line-soft)!important;background:var(--ui-surface)!important}
body.ll-dashboard .feed-post .workspace-glyph{width:28px!important;height:28px!important;border-radius:50%!important}
body.ll-dashboard .feed-post footer button{min-height:28px!important;border-radius:7px!important;background:var(--ui-surface-sunken)!important}
body.ll-dashboard .feed-post>p{font-size:14px!important;line-height:20px!important;max-width:68ch!important;margin:14px 0!important}
body.ll-dashboard #generationPage :is(.generation-scroll,.generation-main){gap:12px!important}
body.ll-dashboard #generationPage :is(.generation-scroll,.generation-source,.finalization-content){padding:12px!important}
body.ll-dashboard #generationPage h2{font-size:16px!important;margin:0 0 6px!important}
body.ll-dashboard #generationPage p{font-size:13px!important;line-height:1.6!important;margin:6px 0 10px!important}
body.ll-dashboard .member-surface :is(h1,h2){font-size:20px!important}
body.ll-dashboard .member-surface :is(.btn,.button):not(.ghost):not(.quiet):not(.secondary){background:var(--ui-blue)!important}
body.ll-dashboard .member-surface :is(.ghost,.quiet,.secondary){background:var(--ui-surface-sunken)!important;color:var(--ui-body)!important}
body.ll-dashboard :is(.member-surface input,.member-surface select,.member-surface textarea){background:var(--ui-surface-sunken)!important}
body.ll-dashboard :is(input,select,textarea):focus{background:var(--ui-surface)!important;border-color:var(--ui-brand)!important}
body.ll-dashboard :is(input,select,textarea)[aria-invalid='true']{border-color:var(--ui-up)!important}
@media(min-width:980px){/* Functional pages keep the shell and existing list owners. Local headers pin
     * to those owners, rather than adopting the document's home/explore inset. */
    body.ll-dashboard:not([data-screen='home']) .workspace-page{overflow:clip!important}
body.ll-dashboard:not([data-screen='home']) .workspace-page-heading{position:sticky!important;top:0!important;z-index:20!important}
body.ll-dashboard #ownerTabs{position:sticky!important;top:calc(var(--workspace-heading-height,70px) + var(--owner-summary-height,0px))!important;z-index:8!important;background:var(--ui-surface)!important;padding:4px 12px!important}
body.ll-dashboard #ownerSummary{position:sticky!important;top:var(--workspace-heading-height,70px)!important;z-index:9!important;background:var(--ui-surface)!important}}
@media(min-width:768px){
body.ll-dashboard[data-screen='feed'] .shell{overflow:hidden!important}
body.ll-dashboard[data-screen='feed'] #workspace{height:100%!important;min-height:0!important}
body.ll-dashboard[data-screen='feed'] #feedPage{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important}
}
@media(min-width:768px) and (max-width:979px){
body.ll-dashboard[data-screen='feed']{height:100dvh!important;overflow:hidden!important}
body.ll-dashboard[data-screen='feed'] .shell{height:calc(100dvh - var(--dashboard-appbar-height,52px))!important}
body.ll-dashboard[data-screen='feed'] #workspace{overflow:hidden!important}}
/* Screener owns its two bounded lists; the shared shell and rail stay canonical.
   * Its page-local sheet owns themes/table geometry and mobile document flow. */
  body.ll-dashboard[data-screen='screener'] #workspace{display:block!important;min-height:0!important}
body.ll-dashboard[data-screen='screener'] #formulaScreenerPage{min-height:0!important}
@media(min-width:768px){body.ll-dashboard[data-screen='screener']{padding-top:var(--dashboard-appbar-height,52px)!important}
body.ll-dashboard[data-screen='screener'] .shell{display:block!important;flex:none!important;height:calc(100dvh - var(--dashboard-appbar-height,52px))!important;min-height:0!important;overflow:hidden!important;padding:12px calc(12px + var(--lotto-rail-width)) 12px 12px!important}
body.ll-dashboard[data-screen='screener'] #workspace{height:100%!important;overflow:hidden!important}
body.ll-dashboard[data-screen='screener'] #formulaScreenerPage{height:100%!important;max-height:100%!important;overflow:hidden!important}}
/* Preserve HA band backgrounds; only the light gold/green bands need dark numerals. */
  body.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball):is([data-band='1'],[data-band='5']){color:#142030!important}
body.ll-dashboard .formula-avatar[data-family='F']{color:#006958!important}
body.ll-dashboard .formula-avatar[data-family='P']{color:#885100!important}
body.ll-dashboard .formula-avatar[data-family='E']{color:#146780!important}
body.ll-dashboard .fluid-heat-cell:is([data-level='2'],[data-level='3']){color:#3f5268!important}
body.ll-dashboard :is(.button,.summary-button,.summary-tabs button,.chart-tabs button,.summary-favorite,.follow-leader){transition:background-color 180ms var(--ui-motion),color 180ms var(--ui-motion),box-shadow 180ms var(--ui-motion),transform 140ms var(--ui-motion)!important}
body.ll-dashboard :is(.button,.summary-button,.summary-tabs button,.chart-tabs button,.summary-favorite,.follow-leader):active:not(:disabled){transform:translateY(1px)!important;box-shadow:none!important}
@media(forced-colors:active){body.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball)[data-band]{color:CanvasText!important}}
#validationHistoryDialog{width:min(560px,calc(100vw - 24px));max-height:75dvh;padding:0;overflow:hidden}
#validationHistoryDialog .dialog-body{max-height:calc(75dvh - 74px);overflow:auto;overscroll-behavior:contain}
.validation-history-rows{display:grid;gap:8px}
.validation-history-row{display:flex!important;justify-content:space-between;gap:8px;flex-wrap:wrap;text-align:left;min-height:44px!important;white-space:normal!important}
.validation-history-row span{color:var(--muted);font-weight:400}
.validation-history-notice{margin:4px 12px}
#validationHistoryButton{flex-shrink:0;white-space:nowrap}
@media(max-width:767px){#validationHistoryButton{min-height:44px!important}
body[data-validation-history='true'] #resumeLive{white-space:normal;max-width:104px}}
@media(prefers-reduced-motion:reduce){body.ll-dashboard *,body.ll-dashboard *::before,body.ll-dashboard *::after{scroll-behavior:auto!important;animation-duration:0s!important;transition-duration:0s!important}}}
/* Shared workspace presentation. Desktop panels keep major tasks in view;
 * mobile uses document flow with content-bound headings. */
@layer lotto-terminal{
  body.ll-dashboard[data-screen='home'] #dashboardInsights{display:none!important}
body.ll-dashboard #dashboardRail{gap:8px!important;padding:10px 4px!important}
body.ll-dashboard #dashboardRail .dashboard-rail-item{flex:0 0 54px!important;height:54px!important;min-height:54px!important;gap:4px!important}
body.ll-dashboard #connection:not(.offline){display:none!important}
body.ll-dashboard .feed-compose-prompt[hidden],body.ll-dashboard #feedComposer[hidden]{display:none!important}
body.ll-dashboard .feed-post{padding:14px 16px!important}
body.ll-dashboard .feed-post>header{display:flex!important;align-items:center!important;gap:8px!important}
body.ll-dashboard .feed-post>header .topic-chip{order:0!important;font-weight:600!important;color:var(--ui-blue-ink)!important;background:var(--ui-blue-soft)!important;border:0!important}
body.ll-dashboard .feed-post>header>div{order:1!important;display:flex!important;align-items:center!important;gap:8px!important;margin-left:auto!important;color:var(--ui-muted)!important;font-size:13px!important}
body.ll-dashboard .feed-post>p{margin:9px 0!important}
body.ll-dashboard .feed-post>footer{display:flex!important;align-items:center!important;gap:8px!important}
body.ll-dashboard[data-home-mode='explore'] :is(.live-table,.records-table) .balls{justify-content:flex-start!important;gap:4px!important}
body.ll-dashboard[data-home-mode='explore'] .live-table th:nth-child(1){width:28%!important}
body.ll-dashboard[data-home-mode='explore'] .live-table th:nth-child(2){width:40%!important}
body.ll-dashboard[data-home-mode='explore'] .live-table th:nth-child(3){width:16%!important}
body.ll-dashboard[data-home-mode='explore'] .live-table th:nth-child(4){width:16%!important}
body.ll-dashboard[data-home-mode='explore'] .live-scroll .live-table{min-width:0!important;width:100%!important;table-layout:fixed!important}
body.ll-dashboard[data-home-mode='explore'] .live-table .balls{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
/* Desktop workspaces share a bounded viewport; each detail list remains reachable.
   * Mobile retains normal document flow. No scaling or reduced type sizes. */
  @media(min-width:768px){html:has(body.ll-dashboard[data-screen='home']){height:100%!important;overflow:hidden!important}
body.ll-dashboard[data-screen='home']{display:flex!important;flex-direction:column!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;padding-top:52px!important}
body.ll-dashboard[data-screen='home'] .appbar{position:fixed!important;top:0!important;height:52px!important;min-height:52px!important}
body.ll-dashboard[data-screen='home'] .shell{display:block!important;flex:1 1 0!important;height:0!important;min-height:0!important;overflow:hidden!important;padding-top:10px!important;padding-bottom:10px!important}
body.ll-dashboard[data-screen='home'] #workspace{height:100%!important;min-height:0!important;overflow:hidden!important}
body.ll-dashboard[data-home-mode='explore'] .shell>#workspace{display:grid!important;grid-template-columns:minmax(250px,.95fr) minmax(330px,1.28fr) minmax(270px,.95fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;gap:12px!important;height:100%!important;min-height:0!important;overflow:hidden!important}
body.ll-dashboard[data-home-mode='explore'] .records-scroll{flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow:auto!important;scrollbar-width:thin!important}
body.ll-dashboard[data-home-mode='explore'] .ranking-scroll{display:block!important;flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow:auto!important}
body.ll-dashboard[data-home-mode='explore'] :is(.live-scroll,.research-scroll,.community-content){display:block!important;flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='explore'] :is(.records-table,.live-table,.ranking-table) thead th{position:sticky!important;top:0!important;z-index:3!important;background:var(--ui-surface)!important}}
@media(min-width:768px) and (max-width:1099px){body.ll-dashboard[data-home-mode='explore'] .shell>#workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(240px,1fr) minmax(150px,.65fr)!important}}
@media(max-width:767px){body.ll-dashboard[data-home-mode='explore'] .live-table th:nth-child(1){width:24%!important}
body.ll-dashboard[data-home-mode='explore'] .live-table th:nth-child(2){width:48%!important}
body.ll-dashboard[data-home-mode='explore'] .live-table :is(th:nth-child(3),th:nth-child(4)){width:14%!important}
body.ll-dashboard[data-home-mode='explore'] .live-table :is(th,td,.sort-header){white-space:normal!important;overflow-wrap:anywhere!important}
body.ll-dashboard[data-home-mode='explore'] .live-table .sort-header{max-width:100%!important}}}
/* Home market: header title, compact summary and one shared content scroll owner. */
@layer lotto-terminal{body.ll-dashboard[data-home-mode='summary'] .shell>:not(#workspace),
  body.ll-dashboard[data-home-mode='summary'] #workspace>:not(#homeSummaryPage):not(#dashboardRail){display:none!important}
body.ll-dashboard[data-home-mode='summary'] #workspace{display:block!important;width:100%!important;min-width:0!important;padding:0!important;gap:0!important}
body.ll-dashboard .appbar>.summary-toolbar{display:none!important}
body.ll-dashboard[data-home-mode='summary'] .summary-ticker{display:none!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage{min-width:0!important;width:100%!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
body.ll-dashboard[data-home-mode='summary'] .summary-overview{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.12fr)!important;gap:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;border-radius:12px!important;background:#fff!important}
body.ll-dashboard[data-home-mode='summary'] .summary-performance{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-content:start!important;gap:0!important;border-inline:1px solid var(--ui-line-soft)!important;min-width:0!important}
body.ll-dashboard[data-home-mode='summary'] #summaryMatchCard{grid-column:1/-1!important;grid-row:2!important;padding-top:0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile{min-height:0!important;height:auto!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.ll-dashboard[data-home-mode='summary'] #summaryOutlookCard{margin:0!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='summary'] .summary-panel{box-shadow:none!important;border:0!important;background:#fff!important}
body.ll-dashboard[data-home-mode='summary'] .summary-formula-header{position:sticky!important;top:0!important;z-index:8!important;flex:none!important;background:#fff!important}
body.ll-dashboard[data-home-mode='summary'] :is(.summary-filters,.summary-chart-periods){overflow-y:hidden!important;flex:none!important}
body.ll-dashboard[data-home-mode='summary'] .summary-side{background:#fff!important;border-radius:12px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-side .summary-panel-heading{position:static!important;background:#fff!important}
body.ll-dashboard[data-home-mode='summary'] #summaryTrendBody{height:190px!important;min-height:0!important;max-height:240px!important;flex:none!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table{table-layout:fixed!important;min-width:720px!important;width:100%!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table :is(th,td){font-size:13px!important;white-space:nowrap!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table th{font-size:13px!important;height:34px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table td{height:44px!important}
body.ll-dashboard[data-home-mode='summary'] :is(.summary-avatar,.summary-outlook-formula .summary-avatar){display:block!important;background:transparent!important}
body.ll-dashboard[data-home-mode='summary'] .summary-balls{flex-wrap:nowrap!important}
body.ll-dashboard[data-home-mode='summary'] .summary-help-layer{position:fixed!important;z-index:110!important}
@media(min-width:768px){/* Ranking and context scroll together below the fixed app header.
     * Their headings stick at the shell edge and release at their section ends. */
    body.ll-dashboard[data-home-mode='summary'] .shell{overflow-y:auto!important;overflow-x:hidden!important}
body.ll-dashboard[data-home-mode='summary'] #workspace{height:auto!important;min-height:100%!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(280px,27vw,360px)!important;grid-template-rows:auto auto!important;gap:12px!important;height:auto!important;min-height:100%!important;overflow:visible!important;align-items:start!important;align-content:start!important}
body.ll-dashboard[data-home-mode='summary'] .appbar{grid-template-columns:auto auto minmax(0,1fr) auto!important;gap:12px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar>.header-actions{grid-area:1/4!important}
body.ll-dashboard[data-home-mode='summary'] .appbar>.summary-toolbar{grid-area:1/3!important;display:flex!important;min-width:0!important;height:100%!important;padding:0 8px!important;justify-content:center!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:1px!important;flex:0 1 auto!important;min-width:0!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-actions{display:none!important}
body.ll-dashboard[data-home-mode='summary'] .appbar #summaryPeriod{font-size:12px!important;max-width:100%!important}
body.ll-dashboard[data-home-mode='summary'] .appbar #summaryMessage{position:absolute!important;top:52px!important;max-width:320px!important;z-index:10!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryTitle{font-size:14px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryOutlookBody>.summary-empty{min-height:75px!important;padding:8px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-heading{margin-bottom:1px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-bottom{padding-top:1px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-list li{height:25px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile{padding:4px 14px!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage>.summary-overview{grid-column:1/-1!important;grid-row:1!important;min-height:0!important;height:auto!important;padding:4px 0!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage>.summary-main-scroll{grid-column:1!important;grid-row:2!important;display:block!important;min-height:0!important;height:auto!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='summary'] #homeMainScroll>.summary-workspace{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard{--summary-filter-height:48px;display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsBody{display:block!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard .summary-filters{position:sticky!important;top:0!important;z-index:6!important;background:#fff!important;min-height:48px!important;padding-block:5px!important;flex-wrap:nowrap!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard .summary-table th{position:sticky!important;top:var(--summary-filter-height,48px)!important;z-index:3!important;background:#fff!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage>.summary-side{grid-column:2!important;grid-row:2!important;display:block!important;position:static!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;scrollbar-width:thin!important;padding:0!important;align-self:start!important}
body.ll-dashboard[data-home-mode='summary'] .summary-side>.summary-panel{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important;border-radius:0!important;margin:0!important}
body.ll-dashboard[data-home-mode='summary'] :is(#summaryFeedBody,#summaryChartTable,.summary-chart-data){height:auto!important;max-height:none!important;overflow:visible!important}}
@media(min-width:768px) and (max-height:720px){body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage{grid-template-rows:auto auto!important;row-gap:8px!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage>.summary-overview{min-height:0!important;padding:4px 0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile{padding:4px 14px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile h2{margin-bottom:5px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile strong{font-size:23px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-formula strong{font-size:13px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-overview-status{margin-top:4px!important;padding-top:4px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-balls{margin:3px 0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-heading{margin-bottom:1px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-bottom{padding-top:1px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-list li{height:25px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryBestBody>.summary-muted:last-child{display:none!important}
body.ll-dashboard[data-home-mode='summary'] #summaryStatsBody>.summary-muted,body.ll-dashboard[data-home-mode='summary'] #summaryMatchBody>.summary-muted{display:none!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard{--summary-filter-height:48px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard .summary-filters{min-height:48px!important;padding-block:5px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table td{height:40px!important;padding-block:5px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryTrendBody{height:112px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-formula-header{padding-block:6px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-chart-periods{padding-block:4px!important}}
@media(min-width:768px) and (max-width:1250px){body.ll-dashboard[data-home-mode='summary'] .appbar .desk-nav-item{padding-inline:6px!important;font-size:13px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .ll-global-search{width:150px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar #summaryPeriod{display:none!important}}
@media(min-width:768px) and (max-width:1150px){body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage{grid-template-columns:minmax(0,1fr) 280px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile{padding-inline:10px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-ball{width:26px!important;height:26px!important;flex-basis:26px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-balls{gap:4px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-performance{grid-template-columns:1fr!important}
body.ll-dashboard[data-home-mode='summary'] #summaryBestCard{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;align-items:start!important}
body.ll-dashboard[data-home-mode='summary'] #summaryBestBody .summary-muted{display:none!important}
body.ll-dashboard[data-home-mode='summary'] #summaryStatsCard{grid-row:2!important;display:flex!important;justify-content:space-between!important;gap:4px!important;padding-top:0!important}
body.ll-dashboard[data-home-mode='summary'] #summaryStatsBody .summary-muted{display:none!important}
body.ll-dashboard[data-home-mode='summary'] #summaryMatchCard{grid-row:3!important}
body.ll-dashboard[data-home-mode='summary'] .summary-match-counts{gap:8px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-metric{font-size:12px!important}}
@media(max-width:767px){body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage{display:flex!important;flex-direction:column!important;height:auto!important;overflow:visible!important;gap:12px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar>.summary-toolbar{display:flex!important;grid-area:2/1!important;padding:0!important;min-width:0!important}
body.ll-dashboard[data-home-mode='summary'] .appbar>.desk-nav{grid-area:2/2!important}
body.ll-dashboard[data-home-mode='summary'] .appbar #homeSummaryTitle{font-size:13px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar :is(#summaryPeriod,.summary-actions){display:none!important}
body.ll-dashboard[data-home-mode='summary'] .summary-title{width:100%!important;flex:none!important}
body.ll-dashboard[data-home-mode='summary'] .summary-actions{width:100%!important;justify-content:space-between!important}
body.ll-dashboard[data-home-mode='summary'] .summary-overview{grid-template-columns:1fr!important;padding:4px 0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-performance{border-inline:0!important;border-block:1px solid var(--ui-line-soft)!important;grid-template-columns:1fr 1fr!important;padding-block:4px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile{padding:12px 14px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryDrawBody{gap:2px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-balls{gap:8px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-overview-status{margin-top:6px!important;padding-top:5px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-list li{height:36px!important}
body.ll-dashboard[data-home-mode='summary'] :is(.summary-main-scroll,.summary-side,.summary-panel,.summary-workspace){display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;min-width:0!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsBody{overflow-x:auto!important;overflow-y:hidden!important;height:auto!important;max-height:none!important;scrollbar-width:thin!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard{overflow:hidden!important}
body.ll-dashboard[data-home-mode='summary'] .summary-formula-table{display:table!important;min-width:760px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-col-order{width:40px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-col-formula{width:210px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-col-change{width:90px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-col-prize{width:62px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-formula-table thead{display:table-header-group!important;position:static!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='summary'] .summary-formula-table tbody{display:table-row-group!important}
body.ll-dashboard[data-home-mode='summary'] .summary-formula-table tr{display:table-row!important}
body.ll-dashboard[data-home-mode='summary'] .summary-formula-table td{display:table-cell!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table :is(th,td):nth-child(1){position:sticky!important;left:0!important;background:#fff!important;z-index:2!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table :is(th,td):nth-child(2){position:sticky!important;left:40px!important;background:#fff!important;z-index:2!important;box-shadow:6px 0 8px -8px #8b95a1!important}
body.ll-dashboard[data-home-mode='summary'] .summary-filters{position:static!important;flex-wrap:wrap!important;gap:8px!important;padding:10px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-market-title{gap:8px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-formula-header{top:52px!important;border-radius:12px 12px 0 0!important}
body.ll-dashboard[data-home-mode='summary'] #summaryTrendBody{height:190px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryFeedBody,body.ll-dashboard[data-home-mode='summary'] #summaryChartTable{height:auto!important;max-height:none!important;overflow:visible!important}}}
/* W-03 heading demotion compensation (2026-10-07, corrected 2026-10-08): the
 * secondary screens' h1 were demoted to h2 so the document exposes exactly
 * one h1. This mirror replicates the *winning* declarations verbatim —
 * terminal.css:374 (:is color/letter-spacing) and :399 (20px suite, both
 * !important) — verified against the built bundle, not against lower-
 * specificity sources (restore-overrides 24px, .desk/.home-summary 16-17px)
 * that never won the cascade. Any new route heading must be added here.
 * Keep in sync with templates/index.html, home-summary.html,
 * formula-screener.html. */
body.ll-workspace-v2 .workspace-page-heading h2{font-size:20px!important;line-height:1.4!important;margin:0!important;font-weight:700!important;color:var(--ui-text)!important;letter-spacing: 0!important}
#homeSummaryTitle{font-size:16px!important;font-weight:700!important;letter-spacing: 0!important;color:rgba(26,31,41,.89)!important;white-space:nowrap!important;line-height:1.3!important;margin:0!important}
#formulaScreenerTitle{color:var(--ui-text)!important;letter-spacing: 0!important}
/* W-07: keep page-bottom content clear of the fixed 56px dashboard rail.
 * Raised specificity beats the padding:0 resets elsewhere in the bundle. */
body.desk.ll-dashboard #workspace{padding-bottom:calc(56px + env(safe-area-inset-bottom))!important}
/* W-07: reserve scrollbar space so table regions don't shift when a
 * scrollbar appears (500px tables scroll internally on small screens). */
body.desk .table-scroll{scrollbar-gutter:stable}
/* Home: document-derived typography, 4/8/12 spacing and accessible states.
 * Keep layout/scroll ownership above; no data or runtime behavior changes. */
@layer lotto-terminal{body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage{color:var(--home-text)!important;line-height:20px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile h2{color:var(--home-secondary)!important;font-weight:600!important;margin-bottom:var(--home-space-2)!important}
body.ll-dashboard[data-home-mode='summary'] :is(.summary-muted,.summary-draw-label,.summary-outlook-priority,.summary-outlook-metric,.summary-selected-stats,.summary-chart-legend,.summary-feed-list time){color:var(--home-muted)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile strong{color:var(--home-text)!important;font-size:24px!important;font-weight:600!important;line-height:28px!important;letter-spacing: 0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-tile .summary-best-prize{color:var(--home-positive)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-formula strong{font-size:13px!important;line-height:20px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-balls{gap:var(--home-space-1)!important;margin-block:var(--home-space-2)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-overview-status{border-color:var(--home-line)!important;color:var(--home-muted)!important;padding-top:var(--home-space-2)!important;margin-top:var(--home-space-2)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-match-counts{gap:var(--home-space-3)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-formula{border-radius:var(--home-radius-sm)!important;padding-inline:var(--home-space-1)!important;margin-left:calc(-1 * var(--home-space-1))!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-formula:hover{background:var(--home-soft)!important}
body.ll-dashboard[data-home-mode='summary'] #summarySearch{background:var(--home-soft)!important;border:1px solid transparent!important;border-radius:var(--home-radius-sm)!important;padding-inline:var(--home-space-3)!important;color:var(--home-text)!important;transition:background var(--home-motion),border-color var(--home-motion)!important}
body.ll-dashboard[data-home-mode='summary'] #summarySearch::placeholder{color:var(--home-muted)!important;opacity:1!important}
body.ll-dashboard[data-home-mode='summary'] #summarySearch:hover{border-color:var(--home-line)!important}
body.ll-dashboard[data-home-mode='summary'] #summarySearch:focus-visible{background:var(--home-surface)!important;border-color:var(--home-accent)!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-table th{background:var(--home-soft)!important;color:var(--home-secondary)!important;font-weight:600!important;border-bottom-color:var(--home-line)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table td{border-bottom-color:var(--home-line)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table tbody tr[data-selected='true']{background:var(--home-selected)!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-table tbody tr[data-selected='true'] td{background:var(--home-selected)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table tbody tr[data-selected='true'] td:first-child{box-shadow:inset 3px 0 var(--home-accent)!important;color:var(--home-accent)!important;font-weight:600!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table tbody tr[data-summary-method]:hover{background:var(--home-soft)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table tbody tr[data-summary-method]:focus-within{background:var(--home-selected)!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-table tbody tr[data-summary-method]:hover td{background:var(--home-soft)!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-table tbody tr[data-summary-method]:focus-within td{background:var(--home-selected)!important}
body.ll-dashboard[data-home-mode='summary'] :is(.summary-formula,.summary-feed-list a){color:var(--home-text)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-side-title h2{font-size:14px!important;font-weight:600!important;color:var(--home-text)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-chart-periods button{border-radius:var(--home-radius-sm)!important;padding:var(--home-space-1) var(--home-space-2)!important;color:var(--home-secondary)!important;transition:background var(--home-motion),color var(--home-motion)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-chart-periods button[aria-pressed='true']{background:var(--home-selected)!important;color:var(--home-accent)!important;font-weight:600!important}
body.ll-dashboard[data-home-mode='summary'] .summary-chart-periods button:hover{background:var(--home-soft)!important}
body.ll-dashboard[data-home-mode='summary'] :is(.summary-link,.summary-help-trigger,.summary-panel-foot,.home-chart-heading,.home-chart-table,.home-component-empty){color:var(--home-muted)!important}
body.ll-dashboard[data-home-mode='summary'] :is(.summary-link,.summary-help-trigger):hover{color:var(--home-accent)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-empty{background:var(--home-soft)!important;border-radius:var(--home-radius-sm)!important;color:var(--home-muted)!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage :is(button,a,input,select,summary,[tabindex]):focus-visible{outline:2px solid var(--home-accent)!important;outline-offset:-2px!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage button:disabled{color:var(--home-muted)!important;background:var(--home-soft)!important;cursor:default!important}
@media(min-width:768px){body.ll-dashboard[data-home-mode='summary'] .summary-tile{padding-inline:var(--home-space-3)!important}
body.ll-dashboard[data-home-mode='summary'] #summaryStatsBody strong{font-size:clamp(20px,1.76vw,24px)!important;white-space:nowrap!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-list li{height:24px!important}
body.ll-dashboard[data-home-mode='summary'] .outlook-research-trigger{margin-top:0!important}}
@media(min-width:1151px){body.ll-dashboard[data-home-mode='summary'] .summary-performance{grid-template-columns:minmax(100px,.85fr) minmax(0,1.15fr)!important}}
@media(max-width:767px){body.ll-dashboard[data-home-mode='summary'] .summary-tile{padding:var(--home-space-3)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table :is(th,td):nth-child(-n+2){background:var(--home-surface)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table tr[data-selected='true'] td:nth-child(-n+2){background:var(--home-selected)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-table thead th:nth-child(-n+2){background:var(--home-soft)!important}}
@media(prefers-reduced-motion:reduce){body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage *{transition:none!important;animation:none!important}}}
/* Match the product layer that owns runtime prize tones; scope the contrast
 * correction to home so other screens retain their current palette. */
@layer lotto-product{body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage :is([data-summary-score][data-tone='zero'],.home-rank-table [data-tone='zero']){color:var(--home-muted)!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage [data-summary-score][data-tone='high']{color:var(--home-positive)!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage [data-summary-score][data-tone='low']{color:var(--home-accent)!important}}
@layer lotto-terminal{body.ll-dashboard[data-home-mode='summary'] .summary-overview{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;align-items:center!important}
body.ll-dashboard[data-home-mode='summary'] #summaryDrawCard{display:flex!important;align-items:center!important;gap:12px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryDrawTitle{margin:0!important;white-space:nowrap!important}
body.ll-dashboard[data-home-mode='summary'] #summaryDrawBody{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px 12px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-draw-label{gap:8px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-overview .summary-tile{padding:8px 12px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-list{display:flex!important;flex-wrap:wrap!important;gap:4px 12px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-list li{display:flex!important;height:28px!important;min-width:0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-formula strong{max-width:190px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryOutlookStatus{display:none!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-title{flex-direction:row!important;align-items:center!important;gap:12px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar #summaryPeriod{font-size:13px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-overview-status{margin:0!important;padding:0!important;border:0!important;flex:none!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-overview-status .summary-muted{display:none!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-checkline{font-size:0!important;gap:0!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-checkline:before{width:7px!important;height:7px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard .summary-filters{display:flex!important;flex-wrap:wrap!important;gap:4px 12px!important;position:static!important;padding:8px 12px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-validation-status{display:flex!important;align-items:center!important;gap:12px!important;font-size:13px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard .summary-performance{display:grid!important;grid-template-columns:minmax(90px,.7fr) minmax(150px,1fr) minmax(185px,1fr)!important;grid-template-rows:auto!important;border:0!important;gap:8px!important;padding:4px 0!important}
body.ll-dashboard[data-home-mode='summary'] #summaryMatchCard{grid-column:auto!important;grid-row:auto!important;padding-top:4px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-performance .summary-tile{padding:4px 12px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-performance .summary-tile h2{margin-bottom:2px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-performance strong{font-size:20px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-prize-totals{display:flex!important;flex-wrap:wrap!important;gap:4px 14px!important;padding:5px 12px 8px!important;font-size:13px!important;border-bottom:1px solid var(--ui-line)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-prize-totals b{font-weight:600!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard .summary-table th{top:0!important}
@media(max-width:1150px){body.ll-dashboard[data-home-mode='summary'] #summaryDrawCard{display:block!important}
body.ll-dashboard[data-home-mode='summary'] #summaryDrawTitle{margin-bottom:4px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-title{gap:8px!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryTitle{display:none!important}}
@media(max-width:767px){body.ll-dashboard[data-home-mode='summary'] .summary-overview{grid-template-columns:1fr!important}
body.ll-dashboard[data-home-mode='summary'] #summaryRecordsCard .summary-performance{grid-template-columns:1fr 1fr!important}
body.ll-dashboard[data-home-mode='summary'] #summaryMatchCard{grid-column:1/-1!important}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryTitle{display:block!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-title{flex-wrap:wrap!important}}}
@layer lotto-terminal{body.ll-dashboard[data-home-mode='summary'] #summaryOutlookCard{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;gap:0!important;align-items:center!important;padding:6px 12px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-heading{grid-column:1/-1!important;grid-row:1!important;min-height:28px!important;margin:0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-heading h2{margin:0!important}
body.ll-dashboard[data-home-mode='summary'] #summaryOutlookBody{grid-column:1/-1!important;grid-row:2!important;min-height:28px!important;margin:0!important}
body.ll-dashboard[data-home-mode='summary'] #summaryOutlookBody>.summary-empty{min-height:28px!important;padding:0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-bottom{grid-column:1!important;grid-row:3!important;min-height:24px!important;margin:0!important;padding:0!important}
body.ll-dashboard[data-home-mode='summary'] .outlook-research-trigger{grid-column:2!important;grid-row:3!important;min-height:24px!important;margin:0!important}
body.ll-dashboard[data-home-mode='summary'] .outlook-research-trigger .ui-button{font-size:13px!important}
body.ll-dashboard[data-home-mode='summary'] .home-chart-heading{font-size:13px!important;flex-wrap:wrap!important;gap:4px!important}
body.ll-dashboard[data-home-mode='summary'] .home-rank-legend{font-size:13px!important}}
@layer lotto-terminal{@media(min-width:768px) and (max-width:1250px){body.ll-dashboard[data-home-mode='summary'] .appbar #homeSummaryTitle{display:block!important;flex:none!important}
body.ll-dashboard[data-home-mode='summary'] .appbar #summaryPeriod{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;flex:1!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .summary-title{flex:1!important;width:100%!important;gap:8px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar{gap:8px!important}
body.ll-dashboard[data-home-mode='summary'] .appbar .desk-nav-item{padding-inline:4px!important}}
@media(min-width:768px) and (max-width:1150px){body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage>.summary-overview{padding:0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-formula strong{max-width:70px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-outlook-list{gap:4px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryOutlookCard{min-height:0!important}}}
@layer lotto-terminal{body.ll-dashboard[data-home-mode='summary'] #summaryOutlookCard .outlook-research-inline .outlook-facts strong{font-size:14px!important;line-height:1.5!important}
body.ll-dashboard[data-home-mode='summary'] #summaryOutlookCard .outlook-research-inline .outlook-evaluation strong{font-size:13px!important;line-height:1.5!important}
/* Metric changes draw the shared tick pill (components/market-motion.css) above selected/hover cells. */}
@layer lotto-terminal{body.ll-dashboard[data-home-mode='summary'] .summary-avatar{border-radius:0!important}
body.ll-dashboard .formula-icon-image{border-radius:0!important;overflow:visible!important}
body.ll-dashboard[data-home-mode='summary'] #summaryDrawCard{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;align-items:stretch!important;gap:8px!important;min-height:0!important;overflow:hidden!important}
body.ll-dashboard[data-home-mode='summary'] #summaryDrawBody{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start!important;gap:8px 12px!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;font-size:13px!important}
body.ll-dashboard[data-home-mode='summary'] #summaryDrawBody section{min-width:0!important}
body.ll-dashboard[data-home-mode='summary'] .summary-draw-label{display:flex!important;flex-wrap:wrap!important;gap:2px 8px!important;font-size:13px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-draw-facts{margin:4px 0!important;display:grid!important;gap:4px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-draw-facts div{display:flex!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:2px 8px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-draw-facts dt{color:var(--ui-muted)!important}
body.ll-dashboard[data-home-mode='summary'] .summary-draw-facts dd{margin:0!important;font-weight:600!important;overflow-wrap:anywhere!important}
body.ll-dashboard[data-home-mode='summary'] .summary-draw-ranks{display:flex!important;flex-wrap:wrap!important;gap:4px 12px!important}
body.ll-dashboard[data-home-mode='summary'] .summary-draw-ranks span{white-space:nowrap!important}
body.ll-dashboard[data-home-mode='summary'] .summary-draw-features,body.ll-dashboard[data-home-mode='summary'] .summary-draw-context{margin:5px 0 0!important;color:var(--ui-muted)!important;font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
@media(max-width:1150px){body.ll-dashboard[data-home-mode='summary'] #summaryDrawBody{grid-template-columns:minmax(0,1fr)!important}}
@media(min-width:768px){body.ll-dashboard[data-home-mode='summary'] #summaryDrawCard{height:200px!important;max-height:200px!important}}
@media(max-width:767px){body.ll-dashboard[data-home-mode='summary'] #summaryDrawCard{max-height:300px!important}}}

@layer lotto-terminal {
body.ll-dashboard{--text:rgba(26,31,41,.89);--text-primary:rgba(26,31,41,.89);--text-secondary:rgb(78,80,82);--muted:rgb(78,80,82);color:rgba(26,31,41,.89)}
}

/* Component source: /web/style.css */
:root{color-scheme:light;--bg:#f4f6f8;--paper:#fff;--ink:#263140;--muted:#626e7c;--line:#e3e8ee;--blue:#2563eb;--soft-blue:#edf4ff;--radius:10px;--red:#b23232;--gold:#875c08;--silver:#38628b;--bronze:#935329;font-family:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR","Malgun Gothic",sans-serif;font-synthesis:none;}
*{box-sizing:border-box;}
body{margin:0;background:var(--bg);color:var(--ink);font-size:13px;line-height:1.45;}
button,input,select{font:inherit;min-width:0;}
button,a,input,select,summary{-webkit-tap-highlight-color:transparent;}
button,a,summary{touch-action:manipulation;}
button{cursor:pointer;}
button:disabled{cursor:not-allowed;opacity:.5;}
a{color:var(--blue);text-decoration:none;}
h1,h2,h3,p{margin:0;}
h1{font-size:19px;line-height:1.3;letter-spacing: 0;}
h2{font-size:13px;font-weight:600;}
h3{font-size:13px;}
strong,b{font-weight:600;}
small{font-size:12px;}
[hidden]{display:none!important;}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6398ef;outline-offset:2px;}
input,select{min-height:31px;padding:5px 7px;border:1px solid #cfd7e1;border-radius:6px;background:#fff;color:var(--ink);font-size:13px;}
input[type=number]{width:100%;font-variant-numeric:tabular-nums;}
input:disabled,select:disabled{background:#f2f4f6;color:#697584;}
select{cursor:pointer;}
.button{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;padding:6px 9px;border:1px solid transparent;border-radius:6px;font-weight:600;font-size:13px;line-height:1.35;min-height:31px;}
.button.primary{color:#fff;background:var(--blue);}
.button.primary:hover:not(:disabled){background:#1c50bd;}
.button.secondary{color:#3b495c;background:#fff;border-color:#d7dfe8;}
.button.secondary:hover{background:#f2f5f9;}
.button.quiet{background:transparent;color:#556374;}
.button.quiet:hover{background:#eaf0f6;}
.button.danger{background:#fff1f1;color:var(--red);border-color:#edcece;}
.button.small{padding:5px 8px;min-height:29px;font-size:12px;}
.button.full{width:100%;}
.button.disabled{opacity:.5;pointer-events:none;}
.micro,.subtle{font-size:12px;color:var(--muted);line-height:1.5;}
.subtle{margin-top:2px;}
.badge{display:inline-flex;align-items:center;padding:2px 6px;border-radius:5px;background:var(--soft-blue);color:#305fa7;font-size:12px;font-weight:600;line-height:1.35;white-space:nowrap;}
.badge.neutral{background:#f0f3f6;color:#596575;}
.brand img{object-fit:contain;max-height:29px;width:auto;max-width:90px;}
.brand-text b{color:var(--blue);}
.connection{font-size:12px;margin-right:6px;color:#166f51;}
.connection.offline{color:#af3434;}
.shell{margin:0 auto;padding:12px;}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.source-badge{font-size:12px;color:#5e6d80;text-align:right;}
.workspace{display:grid;grid-template-columns:268px minmax(0,1fr);gap:12px;align-items:start;}
.sidebar{display:grid;gap:8px;}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0;}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600;padding:9px 10px;list-style:none;cursor:pointer;}
.panel-heading::-webkit-details-marker{display:none;}
.panel-heading:after{content:'⌄';font-size:14px;color:#6b7787;margin-left:2px;font-weight:400;}
details[open]>.panel-heading:after{transform:rotate(180deg);}
.panel-heading>span:first-child{margin-right:auto;}
.settings-body{padding:0 10px 2px;}
.settings-body fieldset{border:0;padding:0;margin:0 0 7px;}
.settings-body legend,.field-label{display:block;font-size:12px;font-weight:600;color:#4c596a;margin-bottom:4px;}
.segmented{display:flex;gap:4px;border-radius:7px;background:#eef1f5;padding:3px;}
.segmented label{flex:1;position:relative;cursor:pointer;}
.segmented input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;}
.segmented span{display:flex;align-items:center;justify-content:center;gap:4px;min-height:29px;padding:4px;border-radius:5px;color:#626f80;font-size:13px;font-weight:600;}
.segmented input:checked+span{color:#214d96;background:#fff;box-shadow:0 1px 3px #20334814;}
.segmented input:focus-visible+span{outline:3px solid #6398ef;outline-offset:1px;}
.segmented input:disabled+span{opacity:.6;}
.field{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;}
.field>label{font-size:12px;font-weight:600;white-space:nowrap;}
.field select{max-width:165px;font-size:12px;}
.unit-input{position:relative;width:116px;}
.unit-input input{padding-right:24px;font-weight:600;}
.unit-input>span{position:absolute;right:8px;top:7px;font-size:12px;color:#647286;pointer-events:none;}
.single-round{display:flex;gap:4px;align-items:center;}
.single-round .unit-input{flex:1;}
.single-round .button{padding:5px 8px;min-width:31px;}
.single-round #latestRound{font-size:12px;}
.range-inputs{display:flex;gap:8px;align-items:end;margin-top:6px;}
.range-inputs label{flex:1;min-width:0;font-size:12px;color:#5f6e7e;}
.range-inputs input{margin-top:3px;}
.range-inputs>span{padding-bottom:6px;}
.setting-hint{margin:5px 0 8px;}
.formula-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:9px 0 3px;padding-top:8px;border-top:1px solid var(--line);}
.formula-heading h2{font-size:13px;}
.tiny-actions{display:flex;align-items:center;gap:4px;}
.tiny-actions button{font-size:12px;border:0;min-height:26px;padding:3px 5px;background:transparent;color:#526782;border-radius:4px;}
.tiny-actions button:hover{color:var(--blue);background:#f0f5fb;}
.formula-list{max-height:322px;overflow:auto;scrollbar-width:thin;padding-right:2px;}
.formula-category{margin:6px 0 2px;font-size:12px;color:#617084;font-weight:600;}
.formula-row{display:flex;align-items:center;gap:4px;padding:2px;border-radius:5px;min-height:28px;}
.formula-row:hover{background:#f3f6fa;}
.formula-row label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;flex:1;min-width:0;min-height:24px;}
.formula-row input[type=checkbox]{margin:0;accent-color:var(--blue);width:15px;height:15px;min-height:0;flex:none;cursor:pointer;}
.formula-name{line-height:1.35;min-width:0;overflow-wrap:anywhere;}
.formula-help{background:transparent;border:0;font-size:13px;color:#67798f;border-radius:5px;width:26px;height:26px;padding:0;flex:none;}
.formula-help:hover{background:#e7effc;color:var(--blue);}
.catalog-button{font-size:12px;border:0;background:transparent;color:#2b5d9e;padding:5px 0;margin-top:3px;min-height:28px;text-align:left;}
.baseline-note{background:#f3f6fa;border-radius:6px;padding:6px 7px;margin-top:3px;font-size:12px;color:#586e89;}
.run-actions{padding:8px 10px 10px;display:grid;grid-template-columns:1.25fr 1fr;gap:8px;}
.run-actions .button{font-size:13px;min-height:34px;}
.run-actions .micro{grid-column:1/-1;}
.data-body{padding:0 10px 10px;}
.data-body>p:first-child{font-size:13px;font-weight:600;}
#historySource{margin:4px 0 7px;overflow-wrap:anywhere;}
.data-actions{display:flex;gap:4px;margin-bottom:6px;}
.data-actions button{flex:1;font-size:12px;padding:5px;}
.text-link{font-size:12px;}
.data-body hr{border:0;border-top:1px solid var(--line);margin:8px 0;}
.data-path{display:block;overflow-wrap:anywhere;font-size:12px;margin:3px 0 5px;color:#596b82;}
.data-body .full{margin-top:7px;}
.research-warning{color:#5b6675;font-size:12px;padding:0 3px;}
.results{min-width:0;display:grid;gap:8px;}
.run-panel{padding:9px 11px;border-color:#d7e3f3;}
.run-top,.run-label,.run-count-row{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.run-label{justify-content:flex-start;flex-wrap:wrap;}
.run-label h2{font-size:13px;}
.run-dot{width:7px;height:7px;background:#8a98aa;border-radius:50%;flex:none;}
.run-dot.active{background:#286bed;box-shadow:0 0 0 3px #e7effd;}
.run-dot.stopping{background:#ba761b;}
.run-dot.error{background:#c04040;}
.run-count-row{margin-top:6px;align-items:baseline;}
progress{width:100%;height:4px;border:0;border-radius:7px;overflow:hidden;display:block;margin-top:6px;background:#e9eef5;accent-color:var(--blue);}
progress::-webkit-progress-bar{background:#e9eef5;border-radius:7px;}
progress::-webkit-progress-value{background:var(--blue);border-radius:7px;}
progress::-moz-progress-bar{background:var(--blue);border-radius:7px;}
.run-message{margin-top:5px;}
.live-draw-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 10px 7px;}
.live-draw-line>span:first-child{font-size:12px;font-weight:600;}
.live-draw-line #livePhase{margin-left:auto;}
.live-scroll{max-height:255px;}
.live-table{min-width:550px;}
.live-table td{height:34px;}
.live-status{font-size:12px;color:#66778d;}
.live-status.generating{color:#225cb1;font-weight:600;}
.live-status.saved{color:#1b7458;}
.live-status.unavailable{color:#9d6a17;}
.live-name{display:block;max-width:220px;}
.waiting-numbers{color:#617184;font-size:12px;}
.experiment-bar{display:flex;align-items:center;gap:8px;min-width:0;}
.experiment-bar>label{font-size:13px;font-weight:600;white-space:nowrap;}
.experiment-bar>select{flex:1;width:0;font-size:12px;min-height:30px;padding:4px 6px;}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.metric{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;min-width:0;}
.metric>p{font-size:12px;color:#546274;}
.metric>strong{display:block;margin:2px 0;font-size:21px;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing: 0;}
.metric>strong span{font-size:12px;font-weight:500;color:#657489;margin-left:4px;}
.metric small{display:block;color:#67758a;font-size:12px;line-height:1.4;}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px 7px;}
.section-heading p{margin-top:2px;}
.table-filters{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:0 10px 7px;}
.table-filters input,.table-filters select{font-size:12px;min-height:29px;padding:4px 6px;}
.rank-filters input{width:160px;}
.rank-filters select{max-width:180px;}
.record-filters #recordMethod{width:167px;}
.record-filters #recordRound{width:88px;}
.record-filters select{max-width:180px;}
.table-scroll{overflow:auto;scrollbar-width:thin;min-width:0;max-width:100%;overscroll-behavior:contain;}
.ranking-scroll{max-height:370px;}
.records-scroll{max-height:345px;}
table{width:100%;border-collapse:collapse;font-size:13px;}
th{text-align:left;font-weight:600;color:#536479;font-size:12px;background:#f5f7fa;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:6px 8px;white-space:nowrap;position:sticky;top:0;z-index:1;}
td{padding:6px 8px;border-bottom:1px solid #edf0f4;vertical-align:middle;background:#fff;}
tbody tr:last-child>td{border-bottom:0;}
.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
.ranking-table{min-width:655px;}
.ranking-table th:first-child{min-width:170px;}
.ranking-table th:nth-child(6){min-width:151px;}
.method-cell{display:flex;align-items:center;gap:8px;}
.rank-number{display:inline-flex;align-items:center;justify-content:center;min-width:21px;font-size:13px;font-weight:600;color:#5b6675;flex:none;}
.rank-number.rank-1{color:var(--gold);}
.rank-number.rank-2{color:var(--silver);}
.rank-number.rank-3{color:var(--bronze);}
.method-name{font-weight:600;font-size:13px;line-height:1.4;}
.method-meta{font-size:12px;color:#66778d;margin-top:1px;}
.baseline-row .method-name{font-weight:600;color:#5c6d82;}
.baseline-row td{border-top:2px solid #e0e7f1;}
.delta-positive{color:#166b52;}
.delta-negative{color:#9f4949;}
.prize-counts{display:grid;grid-template-columns:repeat(5,minmax(24px,1fr));gap:4px;text-align:center;min-width:142px;font-variant-numeric:tabular-nums;}
.prize-count{font-size:13px;line-height:1.25;font-weight:600;}
.prize-count small{display:block;font-size:12px;font-weight:400;color:#67788b;margin-bottom:2px;}
.prize-count:not(.has-prize){color:#68798d;}
.prize-count.has-prize.p1{color:var(--gold);}
.prize-count.has-prize.p2{color:var(--silver);}
.prize-count.has-prize.p3{color:var(--bronze);}
.prize-count.has-prize.p4{color:#326a82;}
.prize-count.has-prize.p5{color:#477658;}
.detail-button{background:transparent;border:1px solid #dce3ec;border-radius:5px;font-size:16px;color:#526981;min-width:28px;min-height:28px;padding:0 5px;}
.detail-row>td{padding:9px 10px;background:#f9fbfd;}
.detail-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;font-size:12px;}
.detail-grid h3{font-size:13px;margin-bottom:5px;}
.detail-grid p{font-size:12px;color:#5f7085;margin:4px 0;}
.mini-hist{display:flex;gap:4px;align-items:end;height:80px;max-width:290px;}
.hist-column{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:20px;}
.hist-count,.hist-label{font-size:12px;color:#55677e;}
.hist-bar{width:70%;min-height:2px;background:#9cb9e8;border-radius:3px 3px 0 0;}
.detail-actions .button{margin-top:4px;}
.table-note{padding:7px 10px;border-top:1px solid var(--line);font-size:12px;color:#66768b;line-height:1.45;}
.live-badge{display:inline-flex;margin-left:5px;background:#edf5ff;color:#2f639d;font-size:12px;vertical-align:middle;padding:2px 5px;border-radius:4px;font-weight:600;}
.live-badge.paused{background:#f3f0e8;color:#886122;}
.records-table{min-width:750px;}
.records-table th:nth-child(4){min-width:145px;}
.records-table th:nth-child(5){min-width:177px;}
.record-id,.record-round{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;}
.record-time,.record-cutoff,.record-version,.result-small{font-size:12px;color:#6a778a;white-space:nowrap;margin-top:2px;}
.record-name{display:block;font-size:13px;font-weight:600;max-width:174px;line-height:1.35;}
.balls{display:flex;align-items:center;gap:4px;white-space:nowrap;min-width:max-content;}
.ball{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;border-radius:50%;font-size:12px;font-weight:600;background:#f0f3f7;color:#4e6078;font-variant-numeric:tabular-nums;border:1px solid #dde4ed;}
.ball.matched{background:#e7f0ff;color:#174ba1;border-color:#98b6e6;text-decoration:underline;text-underline-offset:2px;}
.ball.bonus{background:#fff8e7;border-color:#dac58b;color:#805f11;}
.ball.bonus-matched{outline:1px solid #99701b;outline-offset:1px;text-decoration:underline;}
.ball-plus{font-size:12px;color:#728199;margin:0 1px;}
.result-badge{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:12px;font-weight:600;padding:3px 6px;background:#f1f4f7;border-radius:5px;color:#586b82;}
.result-badge.grade-1{background:#fff5d9;color:#805808;}
.result-badge.grade-2{background:#edf3fb;color:#365c89;}
.result-badge.grade-3{background:#fbefe6;color:#89502d;}
.result-badge.grade-4{background:#edf6fa;color:#306882;}
.result-badge.grade-5{background:#eef7f0;color:#376d47;}
.record-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border-top:1px solid var(--line);}
.record-footer>div{display:flex;align-items:center;gap:4px;flex:none;}
.runs-list{padding:0 10px 8px;}
.run-history-item{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--line);font-size:12px;color:#596c83;flex-wrap:wrap;}
.run-history-item>span:nth-child(2){margin-left:auto;}
.run-history-error{width:100%;color:var(--red);}
.page-footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:#66778d;padding:0 2px;}
.empty{text-align:center;color:#697c94;padding:25px 12px;font-size:13px;}
.small-empty{padding:18px 12px;}
.empty strong{display:block;margin-bottom:4px;}
.notice{padding:8px 10px;background:#fff0f0;color:#a23030;border:1px solid #eccbcb;border-radius:7px;margin-bottom:8px;font-size:13px;overflow-wrap:anywhere;}
.notice.info{background:#edf5ff;color:#28558d;border-color:#d0e0f3;}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid var(--line);}
.dialog-heading h2{font-size:16px;}
dialog{border:1px solid #d6dfea;border-radius:12px;padding:0;max-width:670px;width:calc(100% - 24px);max-height:85vh;color:var(--ink);background:#fff;box-shadow:0 15px 60px #17243b40;}
dialog::backdrop{background:#14233e55;}
.dialog-body{padding:12px 14px;font-size:13px;overflow-wrap:anywhere;}
.dialog-body h3{font-size:13px;margin:12px 0 4px;}
.dialog-body h3:first-child{margin-top:0;}
.dialog-body p{margin:5px 0;color:#4f627b;font-size:13px;line-height:1.65;}
.dialog-body details{margin-top:8px;}
.dialog-body summary{font-size:13px;cursor:pointer;padding:5px 0;color:#275eac;}
.catalog-totals{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px;}
.catalog-table{font-size:13px;min-width:0;}
.catalog-table td,.catalog-table th{white-space:normal;padding:6px;}
.catalog-table td:first-child{min-width:155px;}
.catalog-disabled{color:#66768b;}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.skip:focus{position:fixed;top:4px;left:4px;z-index:20;padding:8px;background:#fff;border:2px solid var(--blue);font-size:13px;}
@media(min-width:1500px){.workspace{grid-template-columns:280px minmax(0,1fr);}
.formula-list{max-height:366px;}}
@media(max-width:1080px){.workspace{grid-template-columns:252px minmax(0,1fr);gap:8px;}
.shell{padding:9px;}
.metric{padding:7px;}
.metric>strong{font-size:19px;}
.source-badge{max-width:230px;}
.detail-grid{grid-template-columns:1fr 1fr;}
.detail-actions{grid-column:1/-1;}
.record-footer{align-items:flex-start;flex-direction:column;gap:4px;}
.run-top{flex-wrap:wrap;}}
@media(max-width:820px){.workspace{grid-template-columns:minmax(0,1fr);}
.sidebar{gap:8px;}
.control-panel .run-actions{padding-top:6px;}
.formula-list{max-height:255px;}
.data-panel{display:block;}
.research-warning{display:none;}
.shell{padding:8px;}
.results{gap:8px;}
.page-heading{align-items:flex-start;margin-bottom:8px;}
.source-badge{font-size:12px;max-width:190px;}
.detail-grid{grid-template-columns:1fr 1fr;}
.metrics{gap:4px;}
.metric small{line-height:1.4;}
.live-scroll{max-height:230px;}
.ranking-scroll{max-height:335px;}
.run-actions{grid-template-columns:1fr 1fr;}
.data-actions button{flex:0 1 auto;}
.data-panel .full{max-width:300px;}
.header-actions .connection{display:none;}}
@media(max-width:500px){body{font-size:13px;}
.brand img{max-width:64px;max-height:25px;}
.header-actions .button{font-size:12px;padding:5px 7px;}
.page-heading{flex-wrap:wrap;gap:4px;}
h1{font-size:18px;}
.source-badge{max-width:none;text-align:left;}
.metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
.metric>strong{font-size:20px;}
.metric{padding:7px 9px;}
.section-heading{align-items:flex-start;}
.section-heading .badge{max-width:none;white-space:nowrap;flex:none;}
.table-filters{gap:4px;}
.rank-filters input{width:100%;flex:1 0 100%;}
.rank-filters select{flex:1;min-width:110px;}
.record-filters #recordMethod{width:calc(100% - 100px);flex:1 1 170px;}
.record-filters #recordRound{width:90px;}
.record-filters #recordPrize,.record-filters #recordMatches{flex:1 1 40%;max-width:none;}
.record-filters #recordSort{flex:1 1 160px;min-width:150px;max-width:none;}
.experiment-bar{flex-wrap:wrap;gap:4px;}
.experiment-bar>select{min-width:165px;}
.experiment-bar>a{margin-left:auto;}
.run-count-row{align-items:flex-start;flex-wrap:wrap;}
.run-top{gap:4px;}
.live-draw-line{gap:4px;}
.live-draw-line #livePhase{width:100%;margin-left:0;}
.detail-grid{grid-template-columns:1fr;}
.detail-actions{grid-column:auto;}
.record-footer>div{width:100%;justify-content:flex-end;}
.page-footer{font-size:12px;}
.data-actions .button{min-height:34px;}
.single-round button,.run-actions .button{min-height:36px;}
.catalog-table td:first-child{min-width:0;}
.catalog-table{font-size:13px;}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important;}}
/* v1.2: the working area is for live numbers; control and comparison stay left. */
.workspace{grid-template-columns:400px minmax(0,1fr);gap:8px;}
.sidebar{position:sticky;top:8px;max-height:calc(100dvh - 16px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-gutter:stable;align-content:start;gap:8px;padding:0 3px 3px 0;}
.results{align-content:start;gap:8px;}
.sidebar .run-panel{position:sticky;top:0;z-index:4;padding:8px 9px;box-shadow:0 2px 5px #24324512;}
.sidebar .run-top{flex-wrap:wrap;gap:4px;}
.sidebar .run-top #runRate{width:100%;}
.sidebar .run-count-row{flex-wrap:wrap;gap:2px;margin-top:4px;}
.sidebar .run-actions{padding:7px 0 0;gap:4px;}
.sidebar .run-message{display:none;}
.sidebar .run-message.has-error{display:block;color:var(--red);overflow-wrap:anywhere;}
.current-formula{margin-top:7px;padding:7px 8px;border:1px solid #dae4f4;background:#f7faff;border-radius:7px;overflow-wrap:anywhere;}
.current-formula-top{display:flex;justify-content:space-between;gap:4px;}
.current-formula-name{font-size:14px;font-weight:600;margin:3px 0;line-height:1.4;color:#244874;}
.current-formula[data-state="generating"] .current-formula-name:before,.current-formula[data-state="preparing"] .current-formula-name:before{content:"";display:inline-block;width:11px;height:11px;margin-right:6px;border:2px solid #bdcceb;border-top-color:#255ba5;border-radius:50%;animation:lab-spin 1s linear infinite;}
.current-formula[data-state="stopping"],.current-formula[data-state="offline"]{background:#fff8eb;border-color:#e8d4ad;}
@keyframes lab-spin{to{transform:rotate(360deg)}}
.formula-picker{margin:7px 0 2px;border-top:1px solid var(--line);}
.formula-picker>summary{padding:7px 1px 5px;font-size:13px;font-weight:600;cursor:pointer;}
.formula-picker>summary span{font-size:12px;font-weight:400;color:var(--muted);margin-left:6px;}
.formula-picker .formula-heading{padding-top:0;margin-top:3px;border:0;}
.formula-picker .formula-list{max-height:230px;}
.sidebar .experiment-bar{flex-wrap:wrap;gap:4px;}
.sidebar .experiment-bar>label{width:100%;font-size:13px;}
.sidebar .experiment-bar>select{min-width:0;flex:1;}
.sidebar .experiment-bar>a{padding:5px 6px;}
.sidebar .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;}
.sidebar .metric{padding:6px 8px;}
.sidebar .metric>strong{font-size:20px;margin:2px 0;}
.sidebar .metric small{font-size:12px;line-height:1.35;}
.sidebar .section-heading{padding:8px 8px 6px;}
.sidebar .section-heading .badge{flex:none;}
.sidebar .rank-filters{padding:0 8px 6px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:4px;}
.sidebar .rank-filters input{width:100%;grid-column:1/-1;}
.sidebar .rank-filters select{max-width:none;width:100%;min-width:0;font-size:12px;}
.sidebar .rank-filters .button{padding:4px 6px;}
.sidebar .ranking-scroll{max-height:410px;}
.sidebar .ranking-table{min-width:0;table-layout:fixed;}
.sidebar .ranking-table th{padding:5px 4px;white-space:normal;}
.sidebar .ranking-table td{padding:6px 4px;}
.sidebar .ranking-table th:first-child{min-width:0;width:42%;}
.sidebar .ranking-table th:nth-child(2){width:15%;}
.sidebar .ranking-table th:nth-child(3){width:35%;}
.sidebar .ranking-table th:nth-child(4){width:8%;}
.sidebar .method-cell{gap:4px;align-items:flex-start;}
.sidebar .rank-number{min-width:15px;font-size:12px;padding-top:1px;}
.sidebar .method-cell>div{min-width:0;}
.sidebar .method-name{font-size:13px;overflow-wrap:anywhere;line-height:1.3;}
.sidebar .method-meta{font-size:12px;white-space:normal;overflow-wrap:anywhere;}
.sidebar .prize-counts{min-width:0;gap:1px;grid-template-columns:repeat(5,minmax(0,1fr));}
.sidebar .prize-count,.sidebar .prize-count small{font-size:12px;overflow-wrap:anywhere;}
.sidebar .prize-count small{margin-bottom:2px;}
.sidebar .numeric{font-size:12px;white-space:normal;overflow-wrap:anywhere;}
.sidebar .detail-button{min-width:25px;min-height:28px;padding:0 3px;font-size:16px;}
.sidebar .detail-row>td{padding:8px;}
.sidebar .detail-grid{grid-template-columns:1fr;gap:8px;}
.sidebar .detail-actions{grid-column:auto;}
.sidebar .detail-grid summary{cursor:pointer;min-height:26px;align-content:center;}
.detail-metrics{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;padding-bottom:7px;margin-bottom:7px;border-bottom:1px solid var(--line);font-size:12px;}
.detail-metrics span{overflow-wrap:anywhere;}
.sidebar .table-note{font-size:12px;padding:6px 8px;}
.live-draw-line{gap:8px;padding-bottom:6px;}
.live-draw-line #livePhase{font-size:12px;}
.live-activity-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;background:#f6f9fd;border-top:1px solid #e8eef7;flex-wrap:wrap;}
.live-activity-bar>div{min-width:0;overflow-wrap:anywhere;}
#liveActivityName{font-size:13px;margin-left:3px;color:#244874;}
#liveActivityStep{margin-left:3px;}
.follow-control{display:inline-flex;align-items:center;gap:4px;font-size:12px;cursor:pointer;min-height:26px;white-space:nowrap;}
.follow-control input{min-height:0;width:14px;height:14px;margin:0;accent-color:var(--blue);}
.live-scroll{max-height:clamp(260px,50dvh,560px);overflow-anchor:none;}
.live-table{min-width:560px;}
.live-table th:first-child{width:29%;}
.live-table td{height:38px;}
.live-name{font-size:13px;font-weight:600;max-width:none;overflow-wrap:anywhere;}
.live-table tr[aria-current="step"]>td{background:#eef5ff;}
.live-table tr[aria-current="step"]>td:first-child{box-shadow:inset 3px 0 0 #2864c5;}
.method-now{display:inline-block;font-size:12px;color:#2055a2;margin-top:2px;}
.live-status.generating{font-weight:600;}
.attempt-history{border-top:1px solid var(--line);}
.attempt-history>summary{padding:6px 10px;font-size:12px;cursor:pointer;min-height:29px;}
.attempt-history>summary span{margin-left:5px;}
.attempt-list{max-height:180px;overflow:auto;scrollbar-width:thin;padding:0 10px 7px;}
.attempt-item{display:flex;align-items:center;gap:4px 8px;padding:4px 0;border-top:1px solid #edf1f7;font-size:12px;flex-wrap:wrap;}
.attempt-item time{color:#586981;font-variant-numeric:tabular-nums;}
.attempt-item strong{flex:1;font-size:12px;min-width:130px;}
.records-scroll{max-height:clamp(240px,40dvh,520px);}
/* Same five background colors as HA-Lotto-645 lotto-panel-view.js.
   Dark foregrounds on the three lighter bands keep 11px numerals readable. */
.balls{gap:4px;padding:2px 1px;}
.ball{width:22px;height:22px;position:relative;border:1px solid transparent;font-size:12px;font-weight:600;line-height:1;background:#fff;color:#526073;border-color:#d7dfe8;}
.ball:is(.matched,.bonus-matched,.draw-reference)[data-band="1"]{background:#cd9234;color:#151e2b;}
.ball:is(.matched,.bonus-matched,.draw-reference)[data-band="2"]{background:#3e63c5;color:#fff;}
.ball:is(.matched,.bonus-matched,.draw-reference)[data-band="3"]{background:#bd4152;color:#fff;}
.ball:is(.matched,.bonus-matched,.draw-reference)[data-band="4"]{background:#8c8c8c;color:#151e2b;}
.ball:is(.matched,.bonus-matched,.draw-reference)[data-band="5"]{background:#5a9b50;color:#151e2b;}
.ball.matched{border-color:transparent;box-shadow:0 0 0 1px #fff,0 0 0 2px #1d2d42;text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px;}
.ball.bonus{border-color:transparent;}
.ball.bonus-matched{outline:1px dashed #1d2d42;outline-offset:1px;text-decoration:underline;text-underline-offset:2px;}
.live-draw-line .ball{width:24px;height:24px;font-size:13px;}
.live-scroll:focus-visible{outline:2px solid #6398ef;outline-offset:-2px;}
@media(min-width:1500px){.workspace{grid-template-columns:410px minmax(0,1fr);}}
@media(max-width:1200px) and (min-width:821px){.workspace{grid-template-columns:360px minmax(0,1fr);}
.sidebar{scrollbar-gutter:auto;}
.sidebar .ranking-table th:first-child{width:40%;}
.sidebar .ranking-table th:nth-child(3){width:37%;}
.sidebar .rank-number{min-width:13px;}
.sidebar .method-name{font-size:12px;}}
@media(max-width:820px){.workspace{grid-template-columns:minmax(0,1fr);}
.sidebar{position:static;max-height:none;overflow:visible;padding:0;scrollbar-gutter:auto;}
.sidebar .run-panel{position:static;}
.sidebar .run-top #runRate{width:auto;}
.sidebar .current-formula{padding:6px 8px;}
.sidebar .ranking-scroll{max-height:230px;}
.sidebar .metrics{grid-template-columns:repeat(4,minmax(0,1fr));}
.sidebar .metric small{display:none;}
.live-scroll{max-height:340px;}
.records-scroll{max-height:360px;}
.live-draw-line #livePhase{width:100%;margin-left:0;}}
@media(max-width:500px){.sidebar .metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
.sidebar .metric>strong{font-size:19px;}
.sidebar .ranking-table th:first-child{width:39%;}
.sidebar .ranking-table th:nth-child(2){width:16%;}
.sidebar .ranking-table th:nth-child(3){width:36%;}
.sidebar .ranking-table th:nth-child(4){width:9%;}
.sidebar .method-name{font-size:12px;}
.sidebar .rank-number{min-width:12px;}
.sidebar .ranking-table td{padding:5px 3px;}
.sidebar .prize-counts{gap:0;}
.current-formula-name{font-size:13px;}
.live-activity-bar{gap:2px;}
.live-activity-bar>div{width:100%;}
.live-draw-line{gap:4px;}
.live-draw-line #liveDrawLabel{width:100%;}
.records-table{min-width:790px;}}
@media(forced-colors:active){.ball[data-band]{background:Canvas;color:CanvasText;border:1px solid CanvasText;}
.ball.matched{outline:2px solid CanvasText;outline-offset:1px;box-shadow:none;}
.ball.bonus-matched{outline:2px dashed CanvasText;}
.live-table tr[aria-current="step"]>td{border-top:2px solid Highlight;border-bottom:2px solid Highlight;}}
@media(prefers-reduced-motion:reduce){.current-formula-name:before{animation:none!important;}}
/* v1.3: collapse without destroying controls or the active validation. */
.workspace.sidebar-collapsed{grid-template-columns:minmax(0,1fr);}
.sidebar-toggle{flex:none;font-size:12px!important;min-height:30px!important;padding:4px 7px!important;}
#collapsedActivity{min-width:0;overflow-wrap:anywhere;}
#collapsedCount{margin-right:auto;}
.sort-header{display:flex;align-items:center;gap:4px;justify-content:space-between;width:100%;border:0;background:transparent;color:inherit;text-align:inherit;padding:5px 0;min-height:28px;font-size:12px;font-weight:600;line-height:1.3;}
.sort-header:hover{color:#214f99;}
.sort-arrow{font-size:12px;color:#566c88;flex:none;}
th[aria-sort]{color:#234f92;background:#edf3fc;}
.live-sort-tools{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:2px 10px;border-top:1px solid var(--line);}
.update-panel .field{margin-bottom:6px;}
.update-panel .data-actions{margin:6px 0 2px;}
.update-check{display:flex;align-items:center;gap:4px;min-height:27px;font-size:12px;cursor:pointer;}
.update-check input{width:14px;height:14px;min-height:0;margin:0;accent-color:var(--blue);}
#engineUpdateStatus{margin:4px 0;overflow-wrap:anywhere;}
#engineReleaseNotes{white-space:pre-wrap;max-height:180px;overflow:auto;margin-top:5px;overflow-wrap:anywhere;}
#engineReleaseDetails{margin-top:5px;}
#engineReleaseDetails summary{min-height:26px;align-content:center;font-size:12px;cursor:pointer;}
@media(max-width:650px){.brand img{display:none;}}
@media(forced-colors:active){.ball[data-band]{background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText;}
.sort-header{color:ButtonText;}
th[aria-sort]{outline:1px solid Highlight;}}
/* v1.4: small live window; saved evidence and winning records get the space. */
.live-scroll{max-height:clamp(160px,24dvh,210px);overflow-anchor:none;}
.live-table td{height:34px;padding-top:4px;padding-bottom:4px;}
.live-sort-tools{padding-top:0;padding-bottom:0;}
.records-scroll{max-height:clamp(300px,55dvh,680px);overflow-anchor:none;}
.record-footer{flex-wrap:wrap;gap:4px;}
#recordLatest.has-new{color:#174e9c;background:#edf4ff;}
.research-heading{display:flex;gap:8px 12px;align-items:center;padding:8px 10px 5px;flex-wrap:wrap;}
.research-heading>h2{margin-right:auto;}
.research-brief{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;padding:0 10px 7px;}
.research-brief>div{min-width:0;padding-right:8px;border-right:1px solid var(--line);}
.research-brief>div:last-child{border:0;padding:0;}
.research-brief strong{display:block;font-size:13px;line-height:1.4;margin:2px 0;overflow-wrap:anywhere;}
.research-brief p{overflow-wrap:anywhere;line-height:1.4;}
#researchLeader{color:#245395;}
#researchDetails>summary{font-size:12px;min-height:29px;padding:5px 10px;border-top:1px solid var(--line);cursor:pointer;}
#researchDetails>summary span{margin-left:6px;}
.research-tools{display:flex;gap:8px;align-items:center;padding:0 10px 5px;justify-content:space-between;}
.research-scroll{max-height:300px;}
.research-table{min-width:1060px;table-layout:auto;}
.research-table th{padding:3px 6px;}
.research-table td{padding:5px 6px;vertical-align:top;font-size:12px;font-variant-numeric:tabular-nums;}
.research-table th:first-child{min-width:145px;position:sticky;left:0;z-index:4;}
.research-table td:first-child{position:sticky;left:0;z-index:2;background:var(--surface);box-shadow:1px 0 0 var(--line);}
.research-table td>small{display:block;color:var(--muted);line-height:1.5;white-space:nowrap;}
.research-table .research-name{display:block;font-size:13px;font-weight:600;max-width:200px;overflow-wrap:anywhere;}
.research-audit{display:grid;gap:4px;padding:6px 10px;border-top:1px solid var(--line);}
#researchSource{overflow-wrap:anywhere;}
.research-record-link{display:inline-block;min-height:24px;padding:2px 0;border:0;background:transparent;color:#245da8;font-size:12px;}
.research-table .best-prize{font-size:12px;font-weight:600;}
@media(max-width:820px){.live-scroll{max-height:184px;}
.records-scroll{max-height:430px;}
.research-brief{grid-template-columns:1fr 1fr;}
.research-brief>div:last-child{grid-column:1/-1;padding-top:4px;border-top:1px solid var(--line);}
.research-brief>div:nth-child(2){border-right:0;}
.research-tools{flex-wrap:wrap;}}
@media(max-width:400px){.research-heading .micro{width:100%;order:3;}
.research-brief{gap:4px;}
#researchDetails>summary span{display:block;margin-left:0;}
.record-footer>div{display:flex;flex-wrap:wrap;gap:2px;}}
/* v1.5: saved results are primary; analysis lives in the collapsible sidebar. */
:root{--font-ui:"Pretendard Variable","Pretendard",-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;--appbar-height:46px;--surface:var(--paper);font-family:var(--font-ui);}
body,button,input,select,textarea{font-family:var(--font-ui);}
.sidebar{top:calc(var(--appbar-height) + 8px);max-height:calc(100dvh - var(--appbar-height) - 16px);scroll-padding-top:270px;}
#recordsTitle{scroll-margin-top:calc(var(--appbar-height) + 12px);}
.page-heading{margin-bottom:7px;}
.page-heading h1{font-size:17px;}
.records-scroll{max-height:clamp(320px,57dvh,740px);}
.sidebar .research-heading{padding:8px;gap:4px 8px;}
.sidebar .research-heading h2{flex:1;}
.sidebar #researchStamp{order:4;width:100%;font-size:12px;}
.sidebar .research-brief{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0 8px 6px;}
.sidebar .research-brief>div{grid-column:auto;padding:5px 0;border:0;border-top:1px solid var(--line);}
.sidebar .research-brief>div:first-child{border:0;padding-top:0;}
.sidebar .research-brief strong{font-size:13px;margin:2px 0;}
.sidebar #researchDetails>summary{padding:6px 8px;}
.sidebar #researchDetails>summary span{display:block;margin:2px 0 0;}
.sidebar .research-tools{padding:0 8px 5px;flex-wrap:wrap;gap:4px;}
.sidebar .research-scroll{max-height:270px;}
.sidebar .research-table th:first-child{min-width:130px;max-width:150px;}
.sidebar .research-name{max-width:135px;font-size:12px;}
.sidebar .research-audit{padding:6px 8px;}
.header-update{font-size:12px;min-height:31px;border:1px solid #d7dfe8;background:#f8fafc;color:#4e5e73;max-width:250px;position:relative;}
#headerUpdateText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.update-indicator{display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:17px;width:18px;height:18px;line-height:1;}
.header-update[data-state="available"]{background:#edf4ff;border-color:#abc6f1;color:#1d51a1;}
.new-version-dot{width:6px;height:6px;border-radius:50%;background:#255cb9;flex:none;}
.header-update[data-state="error"],.header-update[data-state="offline"]{color:#875405;background:#fff7e8;border-color:#e5cb9e;}
.header-update[data-state="current"] .update-indicator{color:#147052;}
:is(.header-update,.update-overview):is([data-state="checking"],[data-state="applying"],[data-state="rollback"]) .update-indicator{border:2px solid #c9d9ef;border-top-color:#235bae;border-radius:50%;font-size:0;width:14px;height:14px;animation:lab-spin .9s linear infinite;}
.button,.sort-header,.segmented span,.formula-row,.panel-heading{transition:background-color .15s,color .15s,border-color .15s,box-shadow .15s;}
.button:active:not(:disabled),.sort-header:active{transform:translateY(1px);}
.button[data-loading="true"]{cursor:progress;}
.button[data-loading="true"]::before{content:"";display:block;flex:none;width:11px;height:11px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:lab-spin .8s linear infinite;}
.panel-heading:hover{background:#f6f8fb;}
.record-open{background:transparent;border:0;border-radius:4px;color:#235ba5;padding:4px 0;min-height:28px;font-size:12px;font-weight:600;}
.record-open:hover{text-decoration:underline;text-underline-offset:3px;}
.records-table th,.ranking-table th,.live-table th,.research-table th{transition:background-color .15s;}
.sort-header:hover .sort-arrow{color:#2058b0;}
.records-scroll:focus-visible,.research-scroll:focus-visible{outline:2px solid #6398ef;outline-offset:-2px;}
.record-detail-result{padding:7px 0;}
.feedback-flash{animation:lab-emphasis .7s ease-out;}
@keyframes lab-emphasis{from{box-shadow:0 0 0 2px #78a7f0}to{box-shadow:0 0 0 0 transparent}}
.new-record>td{animation:lab-new-record .85s ease-out;}
@keyframes lab-new-record{from{background:#e4effe}to{background:#fff}}
dialog[open]{animation:lab-dialog-in .14s ease-out;}
@keyframes lab-dialog-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.dialog-heading{position:sticky;top:0;background:#fff;z-index:6;}
.dialog-heading>div{min-width:0;}
.dialog-heading .micro{margin-top:3px;}
.update-dialog{max-width:580px;}
.update-body{padding:10px 13px;}
.update-overview{display:flex;gap:8px;align-items:center;padding:10px;border-radius:8px;background:#f3f7fd;border:1px solid #dce7f6;margin-bottom:10px;}
.update-overview>div{min-width:0;}
.update-overview h3{font-size:13px;margin-bottom:3px;}
.update-overview[data-state="error"],.update-overview[data-state="offline"]{background:#fff8ec;border-color:#ead2aa;}
.update-versions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 7px;}
.update-versions>div{min-width:0;padding:8px;border:1px solid var(--line);border-radius:7px;}
.update-versions dt{font-size:12px;color:var(--muted);}
.update-versions dd{font-size:13px;font-weight:600;margin:3px 0 0;overflow-wrap:anywhere;}
.release-note-block{padding:9px 0;}
.release-note-block h3{font-size:13px;margin-bottom:5px;}
#updateNotes{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;border:1px solid var(--line);background:#f8fafc;border-radius:6px;padding:8px;font-size:13px;line-height:1.65;}
.update-hint{font-size:12px;line-height:1.55;color:#506079;}
.update-action-error{font-size:13px;line-height:1.5;color:#a82727;padding:8px 0 0;}
.dialog-footer{position:sticky;bottom:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:9px 13px;border-top:1px solid var(--line);background:#fff;z-index:6;}
.dialog-footer>div{display:flex;gap:4px;margin-left:auto;}
.research-dialog{width:calc(100% - 24px);max-width:1320px;max-height:90dvh;}
.research-dialog .research-scroll{max-height:calc(80dvh - 170px);min-height:140px;}
.research-dialog #researchDetails>summary{display:none;}
.research-dialog .research-tools{padding:10px 12px 8px;}
.research-dialog .research-audit{padding:9px 12px;}
.toast{position:fixed;bottom:16px;right:16px;max-width:min(540px,calc(100vw - 24px));display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #c7d6ea;border-radius:10px;padding:8px 10px;box-shadow:0 5px 25px #22395d26;z-index:45;animation:lab-dialog-in .16s ease-out;}
.toast p{font-size:13px;min-width:0;overflow-wrap:anywhere;flex:1;}
.toast .button{flex:none;}
.toast[data-kind="success"]{border-left:3px solid #238462;}
.toast[data-kind="update"]{border-left:3px solid #2864c5;}
@media(max-width:1150px){.header-actions .connection{display:none;}
.header-update{max-width:225px;}}
@media(max-width:820px){.results{order:-1;}
.sidebar{position:static;max-height:none;scroll-padding-top:8px;}
.records-scroll{max-height:56dvh;}
.sidebar .research-brief{grid-template-columns:minmax(0,1fr);}
.research-dialog .research-tools{flex-wrap:wrap;}}
@media(max-width:650px){:root{--appbar-height:80px;}
.header-update{margin-right:auto;max-width:calc(100% - 125px);}
.header-actions .button{min-height:29px;}
.toast{bottom:10px;right:10px;gap:4px;padding:7px 8px;}}
@media(forced-colors:active){.header-update{border:1px solid ButtonText;}
.new-version-dot{background:Highlight;}
.update-indicator{color:ButtonText;}
.toast{border:1px solid CanvasText;}
.record-open{color:LinkText;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
.button:active,.sort-header:active{transform:none!important;}}
/* Component source: /web/current-controls.css */
:root{
  --ll-primary:#3182f6;--ll-primary-strong:#2272eb;--ll-primary-weak:#e8f3ff;
  --ll-bg:#f7f8fa;--ll-white:#fff;--ll-surface:#f2f4f6;--ll-soft:#f7f8fa;--ll-border:#e5e8eb;
  --ll-text:#191f28;--ll-body:#4e5968;--ll-muted:#5b6675;--ll-success:#00a878;--ll-warning:#f59f00;--ll-danger:#e42939;
  --ll-radius:9px;--ll-top:60px;}
html,body{background:var(--ll-bg)!important;color:var(--ll-text)!important;}
body.desk{font-family:Pretendard,"Pretendard Variable",-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif!important;font-size:13px!important;letter-spacing:0;font-weight:500;}
body.desk [hidden]{display:none!important;}
body.desk .panel{border:1px solid var(--ll-border)!important;border-radius:var(--ll-radius)!important;background:#fff!important;box-shadow:none!important;}
body.desk .button{border-radius:6px!important;min-height:34px!important;}
body.desk input,body.desk select,body.desk textarea{border-radius:6px!important;border-color:var(--ll-border)!important;}
body.desk :focus-visible{outline:2px solid #1b64da!important;outline-offset:2px!important;}
.micro,.subtle,.desk small{font-size:12px;color:var(--muted);}
.desk .button{min-height:32px;border-radius:8px;font-size:13px;font-weight:600;transition:background-color .14s,color .14s,transform .14s;}
.desk .button.primary{background:#3182f6;color:#fff;border-color:transparent;}
.desk .button.primary:hover:not(:disabled){background:#2272eb;}
.desk .button.secondary{background:#f2f4f6;color:rgb(78,80,82);border-color:transparent;}
.desk .button.secondary:hover:not(:disabled){background:#e9edf2;}
.desk .button.danger{background:#fff0f1;color:#d73548;border:0;}
.desk .button.danger:hover:not(:disabled){background:#ffe1e5;}
.desk .button.quiet{color:#5b6675;}
.desk .button.small{min-height:28px;font-size:12px;padding:4px 7px;}
.desk button:disabled{opacity:.42;}
.desk input,.desk select{border:1px solid #e1e5eb;min-height:32px;border-radius:8px;font-size:13px;background:#fff;color:rgb(78,80,82);padding:5px 8px;}
.desk .result-badge{font-size:12px;border-radius:5px;padding:3px 6px;font-weight:500;background:#f2f4f6;color:rgb(78,80,82);}
.desk .grade-1{background:#fff3d4;color:#875c08;font-weight:600;}
.desk .grade-2{background:#e8f3ff;color:#3265b4;font-weight:600;}
.desk .grade-3{background:#f9ede3;color:#935329;font-weight:600;}
.desk .grade-4{background:#e7f6f0;color:#177d5c;font-weight:600;}
.desk .grade-5{background:#fff0f3;color:#b74359;font-weight:600;}
.desk .result-small{font-size:12px;color:#5b6675;}
@layer lotto-product{body.ll-dashboard :is(.ball,.wallet-ball,.final-ball){
    --number-size:24px;width:var(--number-size)!important;height:var(--number-size)!important;
    min-width:var(--number-size)!important;max-width:var(--number-size)!important;
    min-height:var(--number-size)!important;max-height:var(--number-size)!important;
    flex:0 0 var(--number-size)!important;aspect-ratio:1!important;padding:0!important;
    border-radius:50%!important;line-height:1!important;font-size:13px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;}
body.ll-dashboard :is(button,a):focus-visible{outline:2px solid #2164e8!important;outline-offset:2px;}}
/* Component source: /web/monitor.css */
/* v1.7 · Lotto Lab desktop monitor. The supplied reference establishes colour
   roles, not this grid or timing. Geometry and motion below are local design.
   A compact research dock + a large ledger; no new decorative hero or GPU loop. */
.desk{--appbar-height:48px;--dock-width:310px;}
body.desk{font-size:13px;line-height:1.4;}
.desk .edition-label{display:none;}
.desk .page-heading{min-height:32px;padding:4px 3px;margin:0;gap:8px;}
.desk .page-heading h1{font-size:13px;letter-spacing: 0;}
.desk .instrument-dot{width:6px;height:6px;}
.desk .instrument-label{font-size:12px;color:#5b6675;}
.desk .shell{padding:0 10px 0;}
.desk .workspace{grid-template-columns:var(--dock-width) minmax(0,1fr);gap:12px;align-items:stretch;}
.desk .sidebar{display:flex;flex-direction:column;gap:0;position:static;padding:0;max-height:none;min-height:0;overflow-y:auto;overflow-x:hidden;background:#fff;border:1px solid #e5e8eb;border-radius:12px;scrollbar-width:thin;scroll-padding-top:4px;}
.desk .sidebar>.panel{border:0;border-radius:0;box-shadow:none;}
.desk .sidebar>.panel+.panel{border-top:1px solid #eef0f3;}
.desk .sidebar .run-panel{position:relative;flex:none;padding:8px 10px 0;border:0;border-radius:0;background:#fff;}
.desk .sidebar .run-top{display:flex;flex-wrap:nowrap;gap:4px;max-width:none;min-height:22px;}
.desk .sidebar .run-label{gap:4px;flex-wrap:nowrap;}
.desk .sidebar .run-label h2{font-size:13px;white-space:nowrap;}
.desk .sidebar #runMode{font-size:12px;background:none;padding:0;color:#5b6675;}
.desk .sidebar progress{margin-top:4px;height:2px;}
.desk .sidebar .current-formula{margin:5px 0 0;padding:4px 6px;border-radius:6px;background:#f7f9fc;min-height:0;}
.desk .current-formula-top{display:flex;gap:4px;min-height:22px;margin:0;}
.desk .current-formula-caption{gap:4px;min-width:0;}
.desk #currentFormulaPhase{font-size:12px;white-space:nowrap;}
.desk #currentFormulaStep{font-size:12px;white-space:nowrap;}
.desk .current-formula-name{font-size:13px;line-height:17px;margin-left:26px;min-height:17px;}
.desk .sidebar .run-actions{padding:5px 0 0;gap:4px;grid-template-columns:1fr 1fr 32px!important;}
.desk .sidebar .run-actions .button{min-height:30px;height:30px;font-size:13px;}
.run-info{font-size:12px;color:#5b6675;position:relative;margin:2px 0;}
.run-info>summary{cursor:pointer;padding:2px 0;text-align:right;list-style:none;font-size:12px;}
.run-info>summary::after{content:' ⌄';}
.run-info[open]>summary::after{content:' ⌃';}
.desk .run-info-content{padding:4px 0 7px;display:grid;gap:4px;}
.desk .run-message.has-error{color:#b4233d;}
.desk .compact-comparison{display:flex;flex-wrap:nowrap;padding:5px 8px;gap:4px;border-top:1px solid #eef0f3;border-bottom:1px solid #eef0f3;}
.desk .compact-comparison>select{flex:1;min-width:0;width:0;min-height:27px;font-size:12px;border:0;background:#f4f5f8;padding:3px 6px;border-radius:6px;}
.desk .compact-comparison>a{min-height:27px;padding:3px 6px;font-size:12px;}
.desk #rankingTitle{font-size:13px;white-space:nowrap;}
.desk .ranking-stamp{margin-left:auto;white-space:nowrap;font-size:12px;}
.desk .ranking-scroll{max-height:196px;min-height:70px;overflow:auto;scrollbar-width:thin;}
.desk .ranking-table{min-width:0;width:100%;table-layout:fixed;}
.desk .ranking-table th{font-size:12px;padding:0 3px;background:#fff;line-height:1.2;height:24px;top:0;position:sticky;z-index:2;}
.desk .ranking-table th:nth-child(1){width:49%;padding-left:8px;}
.desk .ranking-table th:nth-child(2){width:15%;}
.desk .ranking-table th:nth-child(3){width:29%;}
.desk .ranking-table th:nth-child(4){width:7%;color:transparent;}
.desk .ranking-table .sort-header{font-size:12px;min-height:24px;gap:1px;padding:1px 0;}
.desk .ranking-table .sort-arrow{font-size:12px;}
.desk .ranking-table td{height:34px;padding:3px;border-bottom:1px solid #f0f2f5;font-size:13px;vertical-align:middle;}
.desk .ranking-table td:first-child{padding-left:7px;}
.desk .ranking-table .method-cell{display:flex;align-items:center;gap:4px;min-width:0;}
.rank-position{display:flex;align-items:center;flex-direction:column;flex:none;width:17px;line-height:1.1;}
.desk .ranking-table .rank-number{font-size:13px;width:auto;min-width:0;line-height:1.15;padding:0;}
.desk .rank-move{font-size:12px;color:#5d6b7f;font-weight:400;line-height:1.1;min-height:12px;letter-spacing: 0;}
.desk .rank-move.up{color:#d33d4f;}
.desk .rank-move.down{color:#2877e4;}
.rank-chart-link{border:0;background:none;padding:0;min-width:0;text-align:left;display:block;width:100%;color:rgba(26,31,41,.89);font-family:inherit;}
.desk .rank-chart-link .method-name{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:none;line-height:15px;}
.desk .rank-chart-link .method-meta{display:block;font-size:12px;line-height:12px;margin:1px 0 0;color:#5b6675;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.desk .ranking-table .chart-selected-row>td{background:#f0f6ff;}
.desk .ranking-table .rank-chart-link:hover{color:#1b64da;}
.desk .ranking-table .detail-button{border:0;background:none;font-size:15px;min-width:18px;min-height:28px;padding:0;color:#7b8795;}
.desk .ranking-table .compact-prizes{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:0;min-width:0;line-height:15px;}
.desk .best-prize{font-size:12px;font-weight:600;color:rgb(78,80,82);}
.desk .best-prize-count{font-size:12px;color:#5b6675;font-variant-numeric:tabular-nums;}
.desk .best-prize.grade-1{color:#88600e;}
.desk .best-prize.grade-2{color:#3265b4;}
.desk .best-prize.grade-3{color:#956145;}
.desk .best-prize.grade-4{color:#087c60;}
.desk .best-prize.grade-5{color:#bb465a;}
.desk .rank-options{border-bottom:1px solid #e5e8eb;padding:0 9px 3px;min-width:0;font-size:12px;}
.desk .rank-options>summary{font-size:12px;color:#5b6675;cursor:pointer;min-height:21px;padding:3px 0;list-style:revert;}
.desk .rank-options .rank-filters{padding:4px 0;border:0;}
.desk .rank-options .rank-filters input,.desk .rank-options .rank-filters select{font-size:12px;min-height:28px;}
.desk .rank-options #groupTag{margin:3px 0;}
.desk .rank-options .table-note{border:0;padding:4px 0;}
.desk .ranking-table .detail-grid{grid-template-columns:1fr;}
.desk .ranking-table .detail-row>td{height:auto;padding:8px;background:#f7f9fc;}
.desk .detail-row .detail-metrics{flex-wrap:wrap;gap:4px;}
/* Keep the chart visible in the initial viewport rather than under settings. */
.desk .sidebar .research-heading{padding:7px 9px 3px;gap:4px;min-height:33px;display:flex;flex-wrap:wrap;}
.desk .sidebar #researchTitle{font-size:13px;flex:1;white-space:nowrap;}
.desk .sidebar .research-heading .button{font-size:12px;padding:3px 5px;min-height:26px;}
.desk .sidebar .research-caption{display:none;}
.desk .desk-chart{margin:0;padding:2px 9px 4px;border:0;}
.desk .chart-heading{display:flex;min-height:20px;margin:0 0 3px;gap:4px;}
.desk .chart-heading h3{font-size:13px;flex:1;}
.desk .chart-heading #chartStamp{display:none;}
.desk .follow-leader{font-size:12px;font-family:inherit;border:0;border-radius:4px;color:#5b6675;background:transparent;padding:2px 3px;min-height:22px;}
.desk .follow-leader[aria-pressed=true]{color:#1b64da;background:#e8f3ff;}
.desk .chart-toolbar{margin:4px 0 2px;gap:2px;}
.desk .chart-tabs{padding:1px;gap:0;background:#f2f4f6;border-radius:5px;}
.desk .chart-tabs button{padding:3px 5px;font-size:12px;min-height:24px;}
.desk .chart-value{min-height:24px;gap:8px;align-items:baseline;}
.desk .chart-value strong{font-size:21px;letter-spacing: 0;line-height:1.2;}
.desk .chart-value #chartDelta{font-size:12px;white-space:nowrap;}
.desk .chart-stage{height:130px;aspect-ratio:auto;margin-top:2px;max-height:none;}
.desk .chart-stage svg{height:100%;width:100%;display:block;}
.desk .chart-grid{stroke:#e9edf2;}
.desk .chart-formula{stroke-width:2.1;}
.desk .chart-legend{margin:0;gap:8px;min-height:16px;font-size:12px;}
.desk .legend-rank::before{display:none;}
.desk .chart-readout{margin:2px 0 0;min-height:15px;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.desk #chartDescription{font-size:12px;line-height:1.3;margin:2px 0;color:#5b6675;}
.desk .chart-records{padding:1px 0;font-size:12px;min-height:23px;}
.desk .comparison-more{border-top:1px solid #eef0f3;font-size:12px;}
.desk .comparison-more>summary{cursor:pointer;padding:6px 9px;min-height:27px;color:#5b6675;font-size:12px;}
.desk #researchDetails>summary{padding:5px 9px;font-size:12px;min-height:27px;}
.desk #researchDetails>summary>.micro{display:none;}
.desk .sidebar .metrics{margin:0 8px 6px;border-radius:6px;grid-template-columns:1fr 1fr;}
.desk .sidebar .metric{padding:6px;}
.desk .sidebar .metric>strong{font-size:17px;}
.desk .sidebar .research-brief{padding:0 9px 8px;grid-template-columns:1fr;gap:8px;}
.desk .sidebar .research-brief>div{border:0;padding:0;}
.desk .sidebar .panel-heading{min-height:34px;padding:7px 9px;font-size:13px;}
/* Most of the available height is ledger data, not duplicate headings. */
.desk .results{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;scrollbar-width:thin;}
.desk .prize-ribbon{display:flex;align-items:stretch;padding:0 9px 5px;gap:0;flex:none;background:#fff;min-height:43px;}
.desk .prize-quote{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex:1;min-width:0;background:transparent;border:0;border-right:1px solid #edf0f3;border-radius:0;padding:5px 9px;gap:4px;text-align:left;}
.desk .prize-quote:last-child{border:0;}
.desk .prize-quote.all{flex:1.4;}
.desk .prize-quote>span:first-child{font-size:12px;white-space:nowrap;}
.desk .prize-quote>strong{font-size:18px;line-height:1.35;font-weight:600;letter-spacing: 0;white-space:nowrap;overflow-wrap:normal;}
.desk .prize-quote>strong>small{font-size:12px;margin-left:2px;}
.desk .prize-quote.active{background:#f0f6ff;border-radius:6px;box-shadow:inset 0 -2px 0 #3182f6;}
.desk .prize-quote:hover{background:#f5f8fc;}
.desk .record-filters{padding:5px 10px 6px;gap:4px;display:flex;flex-wrap:wrap;flex:none;border-top:1px solid #edf0f3;}
.desk .record-filters select,.desk .record-filters input{min-height:28px;height:28px;font-size:12px;padding:3px 5px;border:1px solid transparent;border-radius:6px;background:#f4f5f8;}
.desk .record-filters #recordMethod{flex:1 1 125px;max-width:180px;}
.desk .record-filters #recordRound{width:76px;}
.desk .record-filters #recordPrize{max-width:85px;}
.desk .record-filters #recordMatches{max-width:98px;}
.desk .record-filters #recordSort{max-width:135px;}
.desk .record-filters .button{font-size:12px;min-height:28px;height:28px;padding:3px 6px;}
.desk .records-scroll{height:auto;flex:1;min-height:180px;max-height:none;overflow:auto;container-type:inline-size;scrollbar-width:thin;overflow-anchor:none;}
.desk .records-table{width:100%;min-width:748px;table-layout:fixed;}
.desk .records-table th{height:27px;font-size:12px;padding:0 6px;position:sticky;top:0;z-index:3;background:#fafbfc;}
.desk .records-table th:nth-child(1){width:10%;}
.desk .records-table th:nth-child(2){width:9%;}
.desk .records-table th:nth-child(3){width:19%;}
.desk .records-table th:nth-child(4){width:24%;}
.desk .records-table th:nth-child(5){width:28%;}
.desk .records-table th:nth-child(6){width:10%;}
.desk .records-table .sort-header{min-height:27px;padding:2px 0;font-size:12px;font-weight:500;}
.desk .records-table td{height:39px;padding:4px 6px;vertical-align:middle;min-width:0;width:auto;font-size:13px;border-bottom:1px solid #edf0f3;}
.desk .records-table td:nth-child(3){min-width:0;}
.desk .records-table tbody tr:hover>td{background:#f7f9fc;}
.desk .records-table .record-name{font-size:13px;line-height:17px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:none;}
.desk .records-table .formula-avatar{width:22px;height:22px;font-size:12px;border-radius:7px;flex:none;}
.desk .record-method{gap:8px;min-width:0;}
.desk .record-method>div{min-width:0;}
.desk .records-table .record-time{font-size:12px;line-height:12px;margin:0;}
.desk .records-table .record-version,.desk .records-table .record-cutoff{display:none;}
.desk .records-table .record-open{min-height:16px;font-size:13px;line-height:17px;padding:0;}
.desk .records-table .record-round{font-size:13px;}
.desk .records-table .balls{gap:4px;white-space:nowrap;}
.desk .records-table .ball{width:22px;height:22px;font-size:12px;line-height:1;font-weight:600;}
.desk .records-table .result-badge{padding:2px 5px;font-size:12px;line-height:16px;}
.desk .records-table .result-small{display:none;}
.desk .record-footer{padding:3px 9px;display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;min-height:32px;flex:none;gap:4px;}
.desk .record-footer .button{font-size:12px;min-height:25px;padding:3px 5px;}
.desk .record-footer #recordPageInfo{font-size:12px;min-width:0;}
.desk .records-table .empty{height:auto;min-height:130px;padding:15px 8px;}
.desk .live-draw-line{padding:0 10px 4px;gap:8px;min-height:25px;}
.desk .live-draw-line .ball{width:20px;height:20px;font-size:12px;}
.desk .live-activity-bar{padding:3px 10px;min-height:26px;gap:8px;}
.desk .live-activity-bar strong{font-size:13px;}
.desk .live-scroll{max-height:102px;min-height:0;}
.desk .live-table{min-width:640px;width:100%;}
.desk .live-table th{padding:0 8px;height:23px;background:#fafbfc;}
.desk .live-table .sort-header{min-height:23px;font-size:12px;padding:0;}
.desk .live-table td{height:31px;padding:3px 8px;font-size:13px;}
.desk .live-table .result-small{display:none;}
.desk .live-table .ball{width:20px;height:20px;font-size:12px;}
.desk .live-explanation{font-size:12px;border-top:1px solid #eef0f3;}
.desk .live-explanation>summary{cursor:pointer;min-height:23px;padding:3px 10px;color:#5b6675;font-size:12px;}
.desk .live-explanation .live-sort-tools{padding:4px 10px;}
.desk .live-explanation .table-note{font-size:12px;}
.desk .desk-footer{min-height:24px;padding:3px 4px;font-size:12px;gap:8px;}
.desk .desk-footer>*{font-size:12px;}
.desk .notice{padding:5px 8px;margin:0 0 5px;font-size:12px;}
/* Interactive feedback is on by default; OS reduced-motion stays authoritative. */
@keyframes rank-row-update{from{background-color:#e8f3ff}to{background-color:transparent}}
.desk .rank-changed .rank-chart-link{animation:rank-row-update .55s ease-out;}
@media(min-width:1001px){.desk .shell{display:flex;}
.desk .workspace{flex:1;min-height:0;}
.desk .page-heading,.desk .notice,.desk .desk-footer{flex:none;}
.desk .sidebar{max-height:100%;min-height:0;}
.desk .results{min-height:0;}
.desk .results>.run-history-panel{display:none;}}
@media(min-width:1600px){.desk{--dock-width:340px;}
.desk .ranking-scroll{max-height:230px;}
.desk .chart-stage{height:156px;}
.desk .records-table td{height:41px;}}
@media(max-width:1220px) and (min-width:1001px){.desk{--dock-width:288px;}
.desk .instrument-label{display:none;}
.desk .record-filters #recordMethod{max-width:148px;}
.desk .record-filters #recordMatches{max-width:82px;}
.desk .prize-quote{padding:4px 6px;gap:4px;}
.desk .prize-quote>strong{font-size:16px;}
.desk .prize-quote>strong>small{display:none;}
.desk .ranking-table th:nth-child(1){width:47%;}
.desk .ranking-table th:nth-child(3){width:31%;}
.desk .chart-tabs button{padding:3px 4px;}}
@media(max-width:1000px){.desk .workspace{grid-template-columns:280px minmax(0,1fr);align-items:start;}
.desk .sidebar{position:sticky;top:52px;max-height:calc(100dvh - 64px);}
.desk .results{overflow:visible;}
.desk .records-scroll{min-height:180px;height:auto;max-height:none;}
.desk .header-actions .connection{display:none;}
.desk .instrument-label{display:none;}
.desk .record-filters #recordMethod{max-width:none;}
.desk .record-filters #recordPrize,.desk .record-filters #recordMatches{flex:1;}
.desk .prize-ribbon{flex-wrap:wrap;}
.desk .prize-quote,.desk .prize-quote.all{flex:1 0 30%;padding:3px 6px;min-height:32px;}
.desk .prize-quote>strong{font-size:16px;}
.desk .record-footer{flex-wrap:wrap;}
.desk .record-footer>div{margin-left:auto;}
.desk .edition-label{display:inline;}}
@media(max-width:820px){.desk .workspace{grid-template-columns:1fr;gap:8px;}
.desk .results{order:-1;}
.desk .sidebar{position:static;max-height:none;order:1;}
.desk .prize-ribbon{flex-wrap:nowrap;}
.desk .prize-quote,.desk .prize-quote.all{flex:1 1 0;min-height:35px;}
.desk .ranking-scroll{max-height:248px;}
.desk .chart-stage{height:170px;}
.desk .sidebar .run-actions{grid-template-columns:1fr 1fr 32px!important;}
.desk .sidebar .metrics{grid-template-columns:1fr 1fr;}
.desk .record-filters #recordMethod{min-width:130px;flex:1;}}
@media(max-width:650px){.desk .header-update{margin-right:auto;max-width:200px;}
.desk .header-actions .button{min-height:27px;font-size:12px;padding:3px 5px;}
.desk .page-heading{min-height:45px;flex-direction:column;align-items:flex-start;gap:2px;padding:4px 1px;}
.desk .shell{padding:0 6px;}
.desk .page-heading h1{font-size:13px;}
.desk .instrument-meta{font-size:12px;}
.desk .prize-ribbon{flex-wrap:wrap;padding:0 6px 4px;}
.desk .prize-quote,.desk .prize-quote.all{flex:1 0 30%;min-height:33px;padding:3px 6px;}
.desk .prize-quote>strong{font-size:17px;}
.desk .record-filters{padding:5px 7px;gap:4px;}
.desk .record-filters #recordMethod{flex:1 1 60%;min-width:0;width:0;max-width:none;}
.desk .record-filters #recordRound{flex:none;width:76px;}
.desk .record-filters #recordPrize,.desk .record-filters #recordMatches{max-width:none;flex:1 1 40%;}
.desk .record-filters #recordSort{flex:1;min-width:0;max-width:none;}
.desk .record-footer{padding:4px 7px;}
.desk .record-footer #recordLatest{max-width:none;}
.desk .live-activity-bar{flex-wrap:wrap;gap:4px;padding:3px 8px;}
.desk .live-draw-line{padding:0 8px 3px;}
.desk .live-scroll{max-height:102px;}
.desk .live-draw-line #livePhase{width:auto;margin-left:0;}
.desk .desk-footer{flex-wrap:wrap;}
.desk .edition-label{font-size:12px;}
.desk .chart-stage{height:154px;}}
@media(prefers-reduced-motion:reduce){.desk *,.desk *::before,.desk *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
/* Override earlier sidebar-only declarations explicitly, not with smaller text. */
.desk .compact-comparison{position:relative;}
.desk .compact-comparison>.sr-only{top:0;left:0;}
.desk .sidebar .ranking-scroll{max-height:184px;min-height:60px;}
.desk .sidebar .ranking-table th{height:24px;padding:0 3px;}
.desk .sidebar .ranking-table th:first-child{width:49%;padding-left:8px;}
.desk .sidebar .ranking-table th:nth-child(2){width:15%;}
.desk .sidebar .ranking-table th:nth-child(3){width:29%;}
.desk .sidebar .ranking-table th:nth-child(4){width:7%;}
.desk .sidebar .ranking-table td{height:34px;padding:2px 3px;}
.desk .sidebar .ranking-table td:first-child{padding-left:7px;}
.desk .sidebar .ranking-table .detail-row>td{height:auto;padding:7px;}
.desk .sidebar .current-formula{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;column-gap:4px;padding:3px 5px;margin-top:4px;}
.desk .sidebar .current-formula #labScene{grid-column:1;grid-row:1;}
.desk .sidebar .current-formula-name{grid-column:2;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:20px;min-height:20px;}
.desk .sidebar #currentFormulaStep{grid-column:3;grid-row:1;font-size:12px;}
.desk .sidebar .run-info{margin:0;}
.desk .sidebar .run-info>summary{padding:1px 0;line-height:15px;min-height:15px;}
.desk .sidebar .runs-panel{border-top:1px solid #e5e8eb;}
.desk .sidebar .runs-panel summary{padding:7px 9px;font-size:13px;min-height:31px;}
.desk .sidebar .runs-list{padding:3px 9px;}
.desk .inline-live-draw{margin:0 0 0 auto;padding:0;min-height:22px;}
.desk .inline-live-draw .balls{gap:4px;}
.desk .inline-live-draw .ball{width:20px;height:20px;font-size:12px;}
.desk .desk-footer{overflow:hidden;white-space:nowrap;}
.desk #deskTicker{min-width:0;overflow:hidden;text-overflow:ellipsis;}
@media(min-width:1600px){.desk .sidebar .ranking-scroll{max-height:220px;}}
@media(max-width:820px){.desk .sidebar .ranking-scroll{max-height:230px;}
.desk .desk-footer{white-space:normal;}}
/* One hierarchy: avoid repeating the same chart title on three lines. */
.desk .sidebar .desk-chart{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 4px;}
.desk .sidebar .chart-heading{display:contents;}
.desk .sidebar .chart-heading h3{display:none;}
.desk .sidebar #chartFollowLeader{grid-column:2;grid-row:1;}
.desk .sidebar .desk-chart>label{grid-column:1/-1;position:relative;}
.desk .sidebar .chart-toolbar,.desk .sidebar .chart-value,.desk .sidebar .chart-stage,.desk .sidebar .chart-legend,.desk .sidebar .chart-readout,.desk .sidebar #chartDescription,.desk .sidebar .chart-records{grid-column:1/-1;}
.desk .sidebar #chartDescription{display:none;}
.desk .sidebar .chart-stage{height:120px;}
@media(min-width:1001px) and (max-height:820px){.desk .sidebar .ranking-scroll{max-height:158px;}
.desk .sidebar .run-panel{padding-top:5px;}
.desk .sidebar .run-info>summary{height:12px;min-height:12px;line-height:12px;padding:0;}
.desk .sidebar .run-top{min-height:20px;}
.desk .sidebar .run-actions{padding-top:3px;}
.desk .sidebar .research-heading{min-height:30px;padding-top:4px;}}
@media(max-width:820px){.desk .sidebar .chart-stage{height:175px;}}
.desk .ranking-table tr.formula-working .rank-chart-link{position:relative;}
.desk .ranking-table tr.formula-working .rank-chart-link .method-name::after{content:' · 계산 중';font-size:12px;font-weight:400;color:#1b64da;}
.desk .ranking-table tr.formula-working>td:first-child{box-shadow:inset 2px 0 #3182f6;}
@media(min-width:1001px){.desk .records-table td{height:38px;}}
/* Sidebar modules scroll together; never shrink disclosures over their siblings. */
.desk .sidebar>*{flex-shrink:0;}
/* Offscreen accessible labels must not enlarge the page from their static origin. */
.desk .sr-only{position:absolute;left:0;top:0;}
@media(max-width:650px){.desk .record-filters #recordSort{flex:1 1 150px;min-width:150px;max-width:none;}}
@media(min-width:1001px){.desk .records-table td{height:36px;padding:3px 6px;}}
/* Component source: /web/template.css */
/* Web-only boundary. Original v1.8.0 layout/styles are unchanged in the four upstream sheets. */
[data-template-private]{ display: none !important;}
.template-mode{ display:inline-flex;align-items:center;white-space:nowrap;border-radius:5px;padding:3px 6px;background:#e8f3ff;color:#1b64da;font-size:12px;font-weight:600;line-height:17px;}
.template-mode[data-mode="api"]{ background:#f2f4f6;color:rgb(78,80,82);}
.template-mode[data-mode="error"]{ background:#fff1f3;color:#c42a40;}
.template-status{ margin:0;padding:6px 12px;background:#f2f4f6;color:rgb(78,80,82);font-size:12px;line-height:17px;border-radius:6px;}
@media (max-width: 620px){.template-mode{padding:2px 4px;font-size:12px;}}
/* Component source: /web/number-colors.css */
/* One numeric band palette across draw, comparison, home, wallet and generation pages.
 * Match/bonus status adds an outline; it never changes the number's base color. */
:is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball)[data-band="1"]{--ha-ball:#e08f00;}
:is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball)[data-band="2"]{--ha-ball:#0063cc;}
:is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball)[data-band="3"]{--ha-ball:#d8314f;}
:is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball)[data-band="4"]{--ha-ball:#5b6472;}
:is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball)[data-band="5"]{--ha-ball:#2c9e44;}
@layer lotto-terminal{html body.desk.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball)[data-band]{background:var(--ha-ball)!important;color:#fff!important;border-color:transparent!important;border-style:solid!important;text-decoration:none!important;box-shadow:none!important;text-shadow:none!important;background-image:none!important;outline:none!important;}
html body.desk.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball):is([data-band="1"],[data-band="5"]){color:#142030!important;}
html body.desk.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball).matched[data-band]{outline:2px solid #142030!important;outline-offset:1px!important;}
html body.desk.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball):is(.bonus,.bonus-matched)[data-band]{outline:2px dashed #fff!important;outline-offset:1px!important;box-shadow:0 0 0 2px #142030!important;}
html body.desk.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball)::before,html body.desk.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball)::after{display:none!important;}
html body.desk.ll-dashboard a:has(>.ball),html body.desk.ll-dashboard a:has(>.wallet-ball){text-decoration:none!important;}
@media(forced-colors:active){html body.desk.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball)[data-band],html body.desk.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball):is([data-band="1"],[data-band="5"]){background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText!important;}
html body.desk.ll-dashboard :is(.ball,.wallet-ball,.lotto-number,.final-ball,.summary-ball):is(.matched,.bonus,.bonus-matched)[data-band]{outline-color:CanvasText!important;}}}
/* Component source: /web/workspace-auth.css */
/* Hallmark · shape: app screen · genre: modern-minimal · theme: brand (DESIGN.md, locked) · redesign: full · retired: the member dialog's look is components/member-access.css */
/* The member dialog's look moved to components/member-access.css (2026-10-30, Hallmark redesign on the
 * DESIGN.md tokens). This sheet stays linked from templates/index.html and carries no rules. */
/* Component source: /form-controls.css */
/* Shared by every Formulab surface. Keep pinch zoom and user font overrides.
 * Layered important beats legacy unlayered small-input rules, not user CSS.
 * Applied before focus: changing viewport or blocking gestures is unnecessary. */
@layer formulab-input-safety{@media (any-pointer: coarse), (max-width: 900px){:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]), textarea, select, [contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]){
      font-size: max(16px, 1em, var(--fl-input-font-size, 1em)) !important;}
:where(input[autocomplete="one-time-code"]){
      --fl-input-font-size: 24px;}}}
/* Component source: /web/saas-dashboard.css */
/* SaaS dashboard refinement: dense, flat, readable, no business logic. */
@layer lotto-saas-dashboard{:root{
  --ll-bg:#f7f8fa;
  --ll-card:#ffffff;
  --ll-border:#e5e8eb;
  --ll-text:#191f28;
  --ll-text-sub:#4e5968;
  --ll-text-muted:#8b95a1;
  --ll-blue:#3182f6;
  --ll-green:#00a878;
  --ll-red:#e42939;
  --ll-header-h:50px;
  --ll-rank-h:36px;}
body.ll-dashboard{background:var(--ll-bg);color:var(--ll-text);}
.content-tabs{display:flex;gap:4px;background:#fff;border-bottom:1px solid var(--ll-border);padding:8px 16px;}
.content-tabs button{font-size:13px;border:0;background:none;color:var(--ll-text-sub);padding:6px 10px;border-radius:999px;}
.content-tabs button[aria-pressed=true]{background:#f2f4f6;color:var(--ll-text);font-weight:600;}
.panel,.saas-kpi{background:var(--ll-card);border:1px solid var(--ll-border);border-radius:12px;}}
@layer lotto-saas-dashboard{body.ll-dashboard{--saas-card:#fff;--saas-soft:#f7f8fa;--saas-line:#e8ebef;--saas-blue:#3182f6;}
body.ll-dashboard:not([data-screen="home"]) .saas-kpis{display:none!important;}
body.ll-dashboard .saas-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;flex:0 0 auto;}
body.ll-dashboard .saas-kpi{min-width:0;min-height:64px;padding:9px 11px;border:1px solid var(--saas-line);border-radius:10px;background:#fff;display:grid;gap:2px;}
body.ll-dashboard .saas-kpi span{font-size:12px;color:#5b6675;}
.saas-kpi strong{font-size:17px;line-height:1.2;color:rgba(26,31,41,.89);font-variant-numeric:tabular-nums;}
.saas-kpi small{font-size:12px;color:rgb(78,80,82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.ll-dashboard .achievement-center{position:relative;display:inline-flex;}
.achievement-button{position:relative;min-width:34px;height:34px;border:1px solid var(--saas-line);border-radius:9px;background:#fff;color:rgb(78,80,82);}
.achievement-badge{position:absolute;right:-4px;top:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:#f04452;color:#fff;font-size:11px;display:grid;place-items:center;font-weight:600;}
body.ll-dashboard .achievement-popover{position:absolute;right:0;top:40px;z-index:80;width:min(340px,calc(100vw - 24px));max-height:360px;overflow:auto;padding:8px;border:1px solid var(--saas-line);border-radius:11px;background:#fff;box-shadow:0 12px 35px #191f2818;}
.achievement-popover[hidden]{display:none;}
.achievement-popover header{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 8px;}
.achievement-item{display:grid;gap:2px;padding:8px;border-radius:8px;background:var(--saas-soft);margin:4px 0;}
.achievement-item strong{font-size:12px;}
.achievement-item span{font-size:12px;color:rgb(78,80,82);}
body.ll-dashboard .instrument-tabs{overflow-x:auto;scrollbar-width:none;}
.instrument-tabs::-webkit-scrollbar{display:none;}
.instrument-tabs button{white-space:nowrap;}
body.ll-dashboard .formula-flow{display:grid;gap:8px;padding:12px;}
.formula-flow-step{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start;}
.formula-flow-step i{width:22px;height:22px;border-radius:999px;background:#eef4ff;color:#1b64da;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:600;}
.formula-flow-step[data-active="true"] i{background:#3182f6;color:#fff;box-shadow:0 0 0 4px #3182f618;}
.formula-flow-step strong{display:block;font-size:12px;}
.formula-flow-step p{margin:2px 0 0;font-size:12px;line-height:1.5;color:rgb(78,80,82);}
body.ll-dashboard .architecture-flow{display:flex;align-items:stretch;gap:8px;padding:12px;overflow-x:auto;}
.architecture-node{min-width:92px;flex:1;padding:9px;border:1px solid var(--saas-line);border-radius:9px;background:#fff;text-align:center;font-size:12px;}
.architecture-arrow{align-self:center;color:#5b6675;}
body.ll-dashboard .formula-history-card{margin:10px 12px;padding:10px;border:1px solid var(--saas-line);border-radius:9px;background:var(--saas-soft);display:grid;gap:4px;}
.formula-history-card strong{font-size:15px;}
.formula-history-card span{font-size:12px;color:rgb(78,80,82);}
/* Workspace sizing is owned by lotto-live-readability, including saved ratios. */}
/* Component source: /web/home-summary.css */
/* Home component skin. Viewport and responsive ownership stays in terminal.css. */
.summary-number-statistics{grid-column:1/-1;min-width:0;margin-top:4px;}
.summary-number-statistics-heading,.summary-frequency-axis{display:flex;justify-content:space-between;gap:8px;color:rgb(78,80,82);font-size:12px;line-height:16px;}
.summary-number-statistics-heading a{color:#315c48;text-decoration:none;font-weight:600;}
.summary-frequency-chart{display:grid;grid-template-columns:repeat(45,minmax(0,1fr));gap:4px;height:36px;align-items:end;padding-top:4px;}
.summary-frequency-chart>span{position:relative;display:flex;align-items:end;height:100%;min-width:0;outline-offset:1px;}
.summary-frequency-chart i{display:block;width:100%;height:var(--frequency);background:#c6ccd3;min-height:0;}
.summary-frequency-chart>span[data-current=true] i{background:#657585;}
.summary-frequency-tooltip{display:none;position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding:2px 5px;background:#202523;color:white;white-space:nowrap;z-index:9;font-size:12px;}
.summary-frequency-chart>span:is(:hover,:focus) .summary-frequency-tooltip{display:block;}
.summary-frequency-chart>span:nth-child(-n+5) .summary-frequency-tooltip{left:0;transform:none;}
.summary-frequency-chart>span:nth-last-child(-n+5) .summary-frequency-tooltip{left:auto;right:0;transform:none;}
.summary-prize-scale{font-size:12px;color:rgb(78,80,82);line-height:18px;margin-top:2px;}
@media(max-width:767px){#homeSummaryPage[data-full-metrics=true] .summary-compact-list{display:none!important;}
.summary-number-statistics-heading,.summary-frequency-axis{font-size:12px;}
.summary-frequency-chart{gap:2px;}}
/* Important declarations invert cascade-layer priority. Keep both mobile
   representations in the product layer, ahead of terminal's table fallback. */
@layer lotto-product{@media(max-width:767px){body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage:not([data-full-metrics=true]) .summary-formula-table{display:none!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage[data-full-metrics=true] .summary-compact-list{display:none!important;}}}
.home-summary-page{--home-text:#1a1f29;--home-secondary:#4e5968;--home-muted:#566273;--home-surface:#fff;--home-soft:#f4f6f9;--home-line:#e5e8ec;--home-accent:#202124;--home-selected:#eceeef;--home-positive:#de2b39;--home-space-1:4px;--home-space-2:8px;--home-space-3:12px;--home-radius-sm:4px;--home-radius-lg:8px;--home-motion:200ms;color:var(--home-text);font:13px/20px 'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;}
.home-summary-page *{box-sizing:border-box;}
.home-summary-page [hidden]{display:none!important;}
.home-summary-page :is(h1,h2,h3,p){margin:0;}
.home-summary-page h1{font-size:16px;font-weight:700;letter-spacing: 0;color:rgba(26,31,41,.89);white-space:nowrap;}
.home-summary-page :is(h2,h3){font-size:14px;font-weight:600;color:rgba(26,31,41,.89);line-height:1.45;letter-spacing: 0;}
.home-summary-page :is(button,input,select){font:inherit;color:inherit;}
.home-summary-page :is(button,a,select){touch-action:manipulation;}
.home-summary-page button{cursor:pointer;}
.home-summary-page button:disabled{opacity:.45;cursor:default;}
.home-summary-page .summary-muted{font-size:13px;line-height:1.45;color:rgb(78,80,82);}
.summary-toolbar,.summary-title,.summary-actions{display:flex;align-items:center;gap:12px;min-width:0;}
.summary-toolbar{justify-content:space-between;}
.summary-title{flex:1;overflow:hidden;}
.summary-actions{flex-shrink:0;gap:8px;}
#summaryPeriod{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.summary-button{height:28px;min-height:28px;padding:3px 8px;border:0;border-radius:4px;background:#f2f4f6;color:rgb(78,80,82);font-size:13px!important;box-shadow:none;}
.summary-button:hover{background:#e8edf3;}
.summary-sync{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(26,31,41,.89);white-space:nowrap;}
.summary-sync:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;}
.summary-sync[data-stale='true']{color:rgb(78,80,82);}
.summary-message{padding:3px 7px;max-height:28px;background:#fff3de;color:#865c21;border-radius:4px;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.summary-overview{background:#fff;border-radius:0;}
.summary-tile{min-width:0;padding:8px 14px;background:transparent;}
.summary-tile h2{font-size:13px;color:rgb(78,80,82);font-weight:500;margin-bottom:6px;}
.summary-tile-body{display:grid;gap:4px;min-width:0;}
.summary-tile strong{font-size:22px;color:rgba(26,31,41,.89);line-height:1.2;letter-spacing: 0;font-weight:600;}
.summary-tile strong small{font-size:13px;margin-left:3px;font-weight:400;color:rgb(78,80,82);}
.summary-tile .summary-best-prize{color:#de2b39;}
.summary-tile .summary-emphasis{color:rgba(26,31,41,.89);}
.summary-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.summary-draw-label{font-size:13px;color:rgb(78,80,82);display:flex;align-items:center;justify-content:space-between;gap:8px;}
.summary-balls{display:flex;align-items:center;gap:4px;white-space:nowrap;margin:4px 0;}
.summary-ball{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px;border-radius:50%;font-size:13px;font-weight:600;color:#fff;}
.summary-plus{color:rgb(78,80,82);margin:0 1px;}
.summary-overview-status{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:6px;padding-top:6px;border-top:1px solid #f2f4f6;font-size:13px;}
.summary-checkline{display:flex;gap:4px;align-items:center;color:rgb(78,80,82);}
.summary-checkline:before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:#b0b8c1;}
.summary-checkline[data-running='true']:before{background:#202124;}
.summary-match-counts{display:flex;gap:12px;align-items:center;}
.summary-match-counts div{display:flex;align-items:center;gap:4px;}
.summary-match-counts span{font-size:13px;color:rgb(78,80,82);}
.summary-match-counts b{font-size:13px;color:rgb(78,80,82);font-weight:600;}
.summary-mini{width:100%;height:26px;max-width:180px;}
.summary-outlook-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px;}
.summary-outlook-heading h2{margin:0;white-space:nowrap;}
#summaryOutlookRound{max-width:125px;min-width:0;border:0;border-radius:4px;background:#f2f4f6;padding:4px 6px;font-size:13px;font-weight:600;}
.summary-outlook-list{list-style:none;margin:0;padding:0;display:grid;gap:0;}
.summary-outlook-list li{display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:center;gap:8px;height:28px;}
.summary-outlook-priority{font-size:13px;font-weight:600;color:rgb(78,80,82);}
.summary-outlook-formula{display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;min-width:0;text-align:left;}
.summary-outlook-formula strong{font-size:13px;line-height:1.4;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.summary-outlook-formula .summary-avatar{width:24px;height:24px;flex-basis:24px;}
.summary-outlook-metric{font-size:13px;color:rgb(78,80,82);white-space:nowrap;}
.summary-outlook-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:5px;}
.summary-outlook-status{font-size:13px;color:rgba(26,31,41,.89);}
.summary-outlook[data-status='stale'] .summary-outlook-status{color:rgb(78,80,82);}
.summary-panel{background:#fff;border:0;border-radius:0;min-width:0;box-shadow:none;}
.summary-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid #f2f4f6;}
.summary-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border-bottom:1px solid #e5e8ec;}
.summary-history-header{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;width:100%;min-width:0;}
.summary-history-controls{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0;}
.summary-history-controls select{max-width:190px;min-width:100px;height:32px;border:1px solid var(--home-line);border-radius:4px;background:#fff;padding:3px 6px;}
.summary-history-header>p{flex-basis:100%;}
@media(max-width:767px){.summary-history-controls{flex-wrap:wrap;margin-left:0;width:100%;}
.summary-history-controls :is(button,select){min-height:44px;font-size:16px!important;}
.summary-history-controls select{max-width:100%;flex:1;}}
.summary-market-title{display:flex;align-items:center;gap:12px;min-width:0;}
.summary-market-title strong{font-size:14px;color:rgba(26,31,41,.89);font-weight:600;white-space:nowrap;}
.summary-market-title>span{white-space:nowrap;}
.summary-verified-count{font-size:13px;font-weight:600;color:rgba(26,31,41,.89);white-space:nowrap;}
#summarySearch{width:116px;min-width:70px;height:28px;border:0;border-radius:4px;background:#f2f4f6;padding:5px 9px;font-size:13px;color:rgb(78,80,82);}
.summary-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:13px;background:#fff;}
.summary-table th{color:rgb(78,80,82);font-size:13px;font-weight:500;text-align:left;background:#fff;}
.summary-table :is(th,td){padding:8px 9px;border-bottom:1px solid #f0f2f4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.summary-table td{height:44px;}
.summary-table .summary-number{text-align:right;}
.summary-table .summary-order{text-align:center;color:rgb(78,80,82);}
.summary-col-order{width:5%;}
.summary-col-formula{width:32%;}
.summary-col-change{width:13%;}
.summary-col-prize{width:10%;}
.summary-table tbody tr[data-summary-method]{cursor:pointer;}
.summary-table tr[data-selected='true']{background:#e8f1fe;}
.summary-table tbody tr[data-summary-method]:hover{background:#f2f7fe;}
.summary-formula{border:0;background:none;color:rgba(26,31,41,.89);padding:0;max-width:100%;display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;text-align:left;min-height:30px;}
.summary-formula span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.summary-avatar{display:block;flex:0 0 30px;width:30px;height:30px;border-radius:0;background:transparent;object-fit:contain;}
/* Prize tone wins over rank: the per-rank maximum is always red (including
 * 4th and 5th), the smallest positive value is blue, zero is grey. */
.summary-table [data-summary-score][data-tone='high']{color:#de2b39;font-weight:600;}
.summary-table [data-summary-score][data-tone='low']{color:rgba(26,31,41,.89);}
.summary-table [data-summary-score][data-tone='zero']{color:rgb(78,80,82);}
.summary-table [data-summary-score]:is([data-tone='neutral'],[data-tone='unknown'],[data-tone='normal']){color:rgba(26,31,41,.89);}
/* PSI color-contrast: the selected row sits on #e8f1fe, where the base red
 * (#de2b39 4.09), flat grey (#657181 4.36) and zero grey fail 4.5:1. Darken
 * only the selected-row variants; unselected rows keep approved tones. */
.summary-table tr[data-selected='true'] [data-summary-score][data-tone='high']{color:#de2b39;}
.summary-table tr[data-selected='true'] [data-summary-score][data-tone='zero']{color:#5b6472;}
.summary-change[data-direction='up']{color:#de2b39;}
.summary-change[data-direction='down']{color:rgba(26,31,41,.89);}
.summary-change[data-direction='flat']{color:rgb(78,80,82);}
.summary-table tr[data-selected='true'] .summary-change[data-direction='up']{color:#de2b39;}
.summary-table tr[data-selected='true'] .summary-change[data-direction='flat']{color:#5b6472;}
.summary-formula-actions{display:flex;align-items:center;gap:8px;min-width:0;}
.summary-favorite{flex:none;display:grid;place-items:center;min-width:28px;min-height:28px;border:0;background:none;color:rgb(78,80,82);font-size:20px;}
.summary-favorite[aria-pressed='true']{color:#a87000;}
.summary-favorite > svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;}
.summary-favorite[aria-pressed='true'] > svg{fill:currentColor;}
.summary-method-details{font-size:13px;color:rgb(78,80,82);white-space:normal;}
.summary-method-details summary{cursor:pointer;padding:3px 0;min-height:24px;}
.summary-method-details p{white-space:normal;overflow-wrap:anywhere;margin:4px 0;}
.summary-method-details small{white-space:normal;overflow-wrap:anywhere;}
@layer lotto-product{body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-table{min-width:850px!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage #summaryRecordsBody{overflow-x:auto!important;overflow-y:hidden!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-col-order{width:42px!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-col-formula{width:240px!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-col-change{width:85px!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-col-rate{width:80px!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-col-prize{width:80px!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .summary-table [data-summary-score]{overflow:visible!important;text-overflow:clip!important;}}
.summary-prize{font-size:13px;font-weight:600;white-space:nowrap;}
.summary-prize:is([data-prize='4'],[data-prize='5']){color:#de2b39;}
.summary-prize:is([data-prize='1'],[data-prize='2'],[data-prize='3']){color:#de2b39;}
.summary-panel-foot{display:flex;align-items:center;gap:8px;min-height:30px;padding:5px 12px;border-top:1px solid #f0f2f4;font-size:13px;color:rgb(78,80,82);}
.summary-panel-foot>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.summary-link{color:rgb(78,80,82);font-size:13px;text-decoration:none;white-space:nowrap;}
.summary-link:hover{color:rgba(26,31,41,.89);}
.summary-formula-header{background:#fff;border-bottom:1px solid #f0f2f4;padding:10px 12px;}
.summary-side-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;}
.summary-side-title h2{font-size:13px;color:rgb(78,80,82);font-weight:500;}
.summary-detail-identity{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center;}
.summary-detail-identity>div{min-width:0;}
#summarySelectedName{font-size:14px;font-weight:600;color:rgba(26,31,41,.89);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.summary-selected-stats{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:rgb(78,80,82);}
.summary-chart-periods{display:flex;gap:4px;padding:8px 12px;overflow:hidden;}
.summary-chart-periods button{border:0;border-radius:4px;padding:4px 8px;background:transparent;color:rgb(78,80,82);font-size:13px;white-space:nowrap;}
.summary-chart-periods button[aria-pressed='true']{background:#f2f4f6;color:rgba(26,31,41,.89);font-weight:600;}
.summary-chart{padding:0 10px;display:flex;align-items:stretch;min-width:0;}
.summary-chart svg{display:block;width:100%;height:100%;overflow:visible;}
.summary-chart text{font:12px 'Pretendard Variable',Pretendard,sans-serif;fill:#657181;}
.summary-chart-controls{display:flex;align-items:center;gap:4px;padding:4px 10px;}
.summary-chart-controls .summary-button{height:24px;min-height:24px;flex:none;padding:2px 7px;background:#f7f9fc;}
.summary-chart-controls p{flex:1;text-align:center;font-size:13px;color:rgb(78,80,82);min-width:0;}
.summary-chart-legend{display:flex;gap:12px;align-items:center;justify-content:center;font-size:13px;color:rgb(78,80,82);padding:4px 10px;}
.summary-chart-legend span{display:flex;align-items:center;gap:4px;}
.summary-line-key{width:12px;height:2px;background:#de2b39;}
.summary-bar-key{width:10px;height:6px;background:#d4dce7;}
.summary-chart-data{border-bottom:1px solid #f0f2f4;font-size:13px;padding:0 12px;}
.summary-chart-data summary{padding:7px 0;cursor:pointer;color:rgb(78,80,82);}
.summary-date-table{width:100%;border-collapse:collapse;font-size:13px;}
.summary-date-table :is(th,td){padding:6px 4px;text-align:left;border-bottom:1px solid #f0f2f4;}
.summary-date-table td:last-child{text-align:right;}
.summary-date-table th{font-weight:500;color:rgb(78,80,82);}
.summary-date-table tr[data-selected='true']{background:#f2f7fe;}
.summary-feed-list{list-style:none;margin:0;padding:0 12px;}
.summary-feed-list li{padding:12px 0;border-bottom:1px solid #f0f2f4;}
.summary-feed-list a{display:block;color:rgba(26,31,41,.89);text-decoration:none;}
.summary-feed-list a:hover{color:rgba(26,31,41,.89);}
.summary-feed-meta{display:flex;align-items:center;gap:8px;}
.summary-feed-meta .summary-avatar{width:24px;height:24px;flex-basis:24px;}
.summary-feed-meta strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.summary-feed-list p{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0;}
.summary-feed-list time{font-size:13px;color:rgb(78,80,82);}
.summary-feed-more{width:calc(100% - 24px);margin:12px;padding:10px;border:0;background:#f2f4f6;border-radius:4px;}
.summary-feed-end{padding:15px 12px!important;color:rgb(78,80,82);text-align:center;font-size:13px;}
.summary-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:90px;padding:18px 12px;text-align:center;font-size:13px;color:rgb(78,80,82);}
.summary-outlook .summary-empty{min-height:96px;padding:12px;}
.summary-help-trigger{border:0;background:none;padding:2px;color:rgb(78,80,82);font-size:13px;white-space:nowrap;}
.summary-help-trigger:hover,.summary-help-trigger[aria-expanded='true']{color:rgba(26,31,41,.89);}
.summary-help-layer{position:fixed;z-index:110;max-height:calc(100dvh - 24px);overflow:auto;padding:17px 18px;background:#fff;border:1px solid #e5e8ec;border-radius:8px;box-shadow:0 8px 30px #19314b26;font-size:13px;color:rgb(78,80,82);line-height:1.7;}
.summary-help-layer h3{padding-right:18px;margin-bottom:10px;}
.summary-help-layer p{margin:8px 0;}
.summary-help-layer>button{position:absolute;right:9px;top:7px;border:0;background:none;font-size:22px;color:rgb(78,80,82);}
.home-summary-page :is(button,a,input,select,[tabindex]):focus-visible{outline:2px solid #202124;outline-offset:-2px;}
@media(prefers-reduced-motion:reduce){.home-summary-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
.home-chart-viewport{height:auto;min-width:0;touch-action:pan-y;}
.home-chart-modes{display:flex;gap:4px;padding:4px 0;}
.home-chart-modes button{flex:1;border:0;border-radius:4px;padding:6px 4px;background:transparent;color:rgb(78,80,82);font-size:13px;}
.home-chart-modes button[aria-pressed=true]{background:#eceeef;color:rgba(26,31,41,.89);font-weight:600;}
.home-chart-values{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:6px 0;}
.home-chart-values button{display:flex;justify-content:space-between;align-items:center;gap:4px;border:0;border-radius:0;border-bottom:1px solid #e5e8eb;background:transparent;padding:6px 0;font-size:13px;min-width:0;}
.home-chart-values button>span{white-space:nowrap;}
.home-chart-values b{white-space:nowrap;overflow-wrap:normal;text-align:right;font-variant-numeric:tabular-nums;}
.home-chart-values i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px;}
.home-chart-values button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #b7bcc2;}
.home-chart-read-status{font-size:13px;color:rgb(78,80,82);overflow-wrap:anywhere;}
.home-chart-read-status button{border:0;background:transparent;color:rgba(26,31,41,.89);padding:4px;}
.home-chart-distribution{padding:8px 0;}
.home-chart-distribution>div{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;margin:10px 0;font-size:13px;}
.home-distribution-track{height:10px;background:#f2f4f6;border-radius:4px;overflow:hidden;}
.home-distribution-track i{display:block;height:100%;border-radius:4px;}
.summary-mobile-options,.summary-compact-list{display:none;}
@media(max-width:767px){.summary-mobile-options{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #e9edf2;}
.summary-mobile-options select,.summary-mobile-options button{min-height:44px;font-size:16px!important;}
.summary-mobile-options select{min-width:100px;border:1px solid #e9edf2;border-radius:4px;background:white;}
.summary-mobile-options button{margin-left:auto;}
body.ll-dashboard[data-home-mode=summary] #homeSummaryPage:not([data-full-metrics=true]) #summaryRecordsHeader,body.ll-dashboard[data-home-mode=summary] #homeSummaryPage:not([data-full-metrics=true]) #summaryRecordsBody>.summary-formula-table{display:none!important;}
.summary-compact-list{display:block;width:100%;min-width:0;}
.summary-compact-list article{display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,auto);gap:4px 8px;padding:11px 12px;border-bottom:1px solid #e9edf2;}
.summary-compact-list article[data-selected=true]{background:#f2f3f4;}
.summary-compact-identity{display:flex;align-items:center;min-width:0;gap:8px;}
.summary-compact-identity>span{min-width:16px;color:rgb(78,80,82);font-size:13px;}
.summary-compact-identity .summary-formula{min-width:0;gap:8px;}
.summary-compact-identity .summary-formula>span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4;}
.summary-compact-identity .summary-avatar{width:24px;height:24px;flex-shrink:0;}
.summary-compact-identity .summary-favorite{flex-shrink:0;width:28px;padding:2px;}
.summary-compact-value{text-align:right;align-self:center;max-width:150px;overflow-wrap:anywhere;}
.summary-compact-value span{display:block;color:rgb(78,80,82);font-size:12px;}
.summary-compact-value b{font-size:14px;font-variant-numeric:tabular-nums;}
.summary-compact-list article>p{grid-column:1/-1;color:rgb(78,80,82);font-size:13px;padding-left:22px;overflow-wrap:anywhere;}
.home-chart-values{grid-template-columns:minmax(0,1fr);}
.home-chart-values button{min-height:44px;font-size:13px;}
.home-chart-modes button{min-height:44px;font-size:13px;}}
.home-chart-viewport>[data-chart]{height:100%;width:100%;}
/* Home-only overrides keep the full values readable within the trend panel. */
@layer lotto-product{body.ll-dashboard.ll-dashboard[data-home-mode='summary'] #homeSummaryPage.home-summary-page>.summary-overview{grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;max-height:none!important;overflow:visible!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage #summaryRecordsBody td:is([data-flash='up'],[data-flash='down']){background:transparent!important;animation:none!important;font-weight:600!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .home-rank-table{overflow-x:hidden!important;overflow-y:auto!important;max-height:none!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .home-rank-table table{width:100%!important;min-width:0!important;table-layout:fixed!important;font-size:13px!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .home-rank-table :is(th,td){padding:6px 3px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;}
body.ll-dashboard[data-home-mode='summary'] #homeSummaryPage .home-rank-table th:first-child{width:18%!important;text-align:left!important;}}
/* Home's content owns vertical scrolling; only the pointed-at trend is independent. */
@layer lotto-product{body.ll-dashboard.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage>.summary-overview{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0!important;height:auto!important;overflow:visible!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryDrawBody{display:block!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-result{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(130px,.7fr)!important;column-gap:16px!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-result>.summary-draw-label{grid-column:1/-1;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-result>.summary-balls{grid-column:1;grid-row:2;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-result>.summary-draw-facts{grid-column:1;grid-row:3;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-mini{grid-column:2;grid-row:2/4;align-self:center;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-facts dd{overflow-wrap:normal!important;white-space:nowrap!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-validation .summary-draw-label>b{display:none;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-ranks{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-ranks span{display:grid;gap:2px;font-size:12px;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-ranks i{height:4px;background:linear-gradient(to right,#3182f6 var(--share),#edf2f8 var(--share));border-radius:2px;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-context{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;font-size:12px!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-filters{position:sticky!important;top:0!important;z-index:5;background:white!important;padding:0 12px!important;height:44px!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-history-header{flex-wrap:nowrap!important;gap:8px!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-history-controls{width:auto!important;flex-wrap:nowrap!important;margin-left:auto!important;flex:none;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsHeader{position:sticky!important;top:44px!important;z-index:4;background:white;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-chart-tab{flex:none;border:0;border-bottom:2px solid #191f28;background:white;height:44px;white-space:nowrap;font-weight:600;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-category-tabs{display:flex;flex:1;min-width:0;gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;white-space:nowrap;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-category-tabs button{flex:none;border:0;border-radius:4px;background:#f5f6f8;padding:5px 9px;color:rgb(78,80,82);white-space:nowrap;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-category-tabs button[aria-pressed=true]{color:rgba(26,31,41,.89);background:#eceeef;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #homeSideScroll{scrollbar-width:none!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #homeSideScroll[data-scrolling=true]{scrollbar-width:thin!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #homeSideScroll::-webkit-scrollbar{width:0;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #homeSideScroll[data-scrolling=true]::-webkit-scrollbar{width:5px;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsBody td:is([data-flash=up],[data-flash=down]){font-weight:inherit!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage :is(.home-chart-values b,.home-rank-table th,.home-rank-table td,.summary-compact-value){white-space:nowrap!important;overflow-wrap:normal!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .home-rank-table{overflow-x:auto!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .home-rank-table table{min-width:320px!important;table-layout:auto!important;}
@media(max-width:767px){body.ll-dashboard.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage>.summary-overview{grid-template-columns:minmax(0,1fr)!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-result{grid-template-columns:minmax(185px,1fr) minmax(100px,.6fr)!important;column-gap:8px!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-history-controls :is(button,select),body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-category-tabs button{height:44px!important;min-height:44px!important;font-size:13px!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-history-controls select{width:88px;max-width:88px;flex:none;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-history-controls button{display:none;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-chart-tab{font-size:13px!important;}}}
.summary-draw-mini>div{display:grid;grid-template-columns:60px 1fr 34px;gap:8px;align-items:center;font-size:12px;margin:4px 0;white-space:nowrap;}
.summary-draw-mini i{height:6px;border-radius:3px;background:linear-gradient(to right,#315c48 var(--share),#edf0ed var(--share));}
.summary-draw-mini small{font-size:12px;color:rgb(78,80,82);}
.home-chart-events{display:grid;grid-template-columns:30px repeat(var(--slots),minmax(0,1fr));gap:4px;font-size:12px;}
.home-chart-events>span{align-self:center;color:rgb(78,80,82);white-space:nowrap;}
.home-chart-events button{height:28px;border:0;border-radius:4px;background:#f2f4f7;padding:0;min-width:0;color:white;font-variant-numeric:tabular-nums;}
.home-chart-events button[data-observed=false]{background:repeating-linear-gradient(135deg,#fafafa,#fafafa 3px,#f2f4f6 3px,#f2f4f6 4px);}
.home-chart-events button[data-count=true]{background:color-mix(in srgb,var(--rank-color) calc(var(--event-strength,1)*100%),#f2f4f7);}
.home-chart-events button[aria-pressed=true]{outline:2px solid #191f28;outline-offset:-2px;}
.home-chart-event-axis{display:flex;justify-content:space-between;padding:4px 0 4px 34px;font-size:12px;color:rgb(78,80,82);}
@media(max-width:767px){.home-chart-events button{height:44px;min-height:44px;}
.home-chart-viewport{height:auto;min-height:260px;}}
@layer lotto-product{body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsBody{height:auto!important;max-height:none!important;flex:none!important;overflow-y:visible!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .home-chart-read-status{overflow-wrap:normal!important;word-break:keep-all!important;}
@media(min-width:768px){body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsHeader{display:none!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsBody table thead{display:table-header-group!important;}}}
@layer lotto-product{body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-chart-tab{border-bottom:2px solid #191f28!important;border-radius:0!important;font-size:13px!important;font-weight:600!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage[data-categories-expanded=false] .summary-category-tabs{display:none!important;}
@media(max-width:767px){body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-result{grid-template-columns:minmax(0,1fr)!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-result>.summary-draw-mini{grid-column:1!important;grid-row:4!important;display:grid;grid-template-columns:1fr 1fr;gap:0 8px;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-draw-mini small{grid-column:1/-1;}}}
@layer lotto-product{body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage :is(.home-rank-table td,.summary-table [data-summary-score]){font-weight:500!important;}}
.home-chart-viewport{display:grid;gap:4px;height:auto;min-height:0;}
.home-chart-viewport>.home-chart-read-status{margin:0 0 4px;}
/* A formula has one count line; the table's horizontal scroll keeps it complete. */
@layer lotto-product{body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-formula .formula-evaluation{display:block!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-formula>span{overflow:visible!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .formula-col-formula{width:26%!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage.home-summary-page :is(h1,h2,h3,strong,b,th,td,dd,button,a){font-weight:500!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage.home-summary-page #summaryRecordsBody td:is([data-tone=high],[data-tone=low],[data-direction=up],[data-direction=down]),body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-prize[data-prize]:not([data-prize='0']){font-weight:600!important;}
/* Wheel gestures continue into the home viewport at a panel boundary. */
 body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage :is(#summaryRecordsBody,#homeSideScroll,.home-rank-table){overscroll-behavior-y:auto!important;scrollbar-width:thin!important;}}
/* All viewports keep the same nine ranking columns as the formula picker. */
@layer lotto-product{body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-compact-list{display:none!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsBody>.summary-formula-table{display:table!important;min-width:780px!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsBody{overflow-x:auto!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsBody .summary-formula-actions{gap:8px!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsBody .summary-favorite{width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage #summaryRecordsBody .summary-formula-info{display:grid;place-items:center;width:24px!important;height:24px!important;flex:none;}}
.summary-prize-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:5px;}
.summary-prize-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:1px;min-width:0;padding:6px 8px 4px;border:1px solid #edf0f4;border-radius:6px;background:#f8fafb;color:rgba(26,31,41,.89);overflow:hidden;}
.summary-prize-card-title{font-size:13px;line-height:16px;font-weight:600;}
.summary-prize-card>strong{font-size:17px;line-height:22px;font-weight:650;letter-spacing: 0;font-variant-numeric:tabular-nums;white-space:nowrap;}
.summary-prize-card>strong>small{margin-left:2px;font-size:12px;font-weight:400;letter-spacing:0;}
.summary-prize-card-change{font-size:11px;line-height:14px;color:rgb(78,80,82);white-space:nowrap;font-variant-numeric:tabular-nums;}
.summary-prize-card svg{display:block;width:100%;height:20px;margin-top:1px;color:#82909f;overflow:visible;}
.summary-prize-card svg path{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.summary-prize-card svg circle{fill:currentColor;}
.summary-prize-card[data-direction=up] :is(.summary-prize-card-change,svg){color:#de2b39;}
.summary-prize-card[data-direction=down] :is(.summary-prize-card-change,svg){color:#2272eb;}
@media(max-width:767px){.summary-draw-validation{min-width:0;max-width:100%;}
.summary-prize-cards{width:100%;max-width:100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:3px;}}
.summary-prize-card strong{font-size:clamp(16px,1.5vw,21px);letter-spacing: 0;white-space:nowrap;overflow:visible;}
@layer lotto-product{body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-prize-card>strong{font-size:16px!important;line-height:21px!important;letter-spacing: 0!important;white-space:nowrap!important;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-prize-card>strong>small{display:block!important;margin:0!important;font-size:11px!important;line-height:12px!important;}}
/* 로또랩 생성 번호 당첨 (2026-11-12): the numbers made for the drawn round, by prize, in the prize reds. */
@layer lotto-product{body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-wins{display:grid;gap:8px;margin-top:4px;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-total{display:flex;align-items:baseline;gap:8px;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-total strong{color:var(--color-up,#e5354c);font-size:24px;line-height:28px;font-weight:700;font-variant-numeric:tabular-nums;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-total strong small{margin-left:2px;font-size:13px;font-weight:600;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-total span{color:var(--color-faint,#8b95a1);font-size:13px;line-height:20px;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-prizes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-prizes li{display:grid;gap:4px;min-width:0;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-prizes li span{color:var(--color-faint,#8b95a1);font-size:12px;line-height:16px;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-prizes li i{display:block;height:6px;border-radius:3px;background:linear-gradient(to right,var(--color-up,#e5354c) var(--share),var(--color-paper-3,#eef1f4) var(--share));}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-prizes li b{color:var(--color-ink,#191f28);font-size:14px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-prizes li[data-zero=true] b{color:var(--color-faint,#8b95a1);font-weight:500;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-formulas{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0;color:var(--color-faint,#8b95a1);font-size:12px;line-height:20px;}
body.ll-dashboard[data-home-mode=summary] #lottoBody #homeSummaryPage .summary-generation-formulas span{display:inline-flex;align-items:center;gap:4px;color:var(--color-ink-2,#4e5968);}}
/* Component source: /web/ticket-check.css */
/* Ticket screenshot check. One column, no nested scroll: the surface grows and
 * the page keeps its single scroll owner. Tokens only, so the Toss palette stays
 * the single source of colour. */
.ticket-check{
  display: grid;
  gap: var(--ui-gap);
  margin-top: var(--ui-gap);
  padding: 14px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  box-shadow: var(--ui-panel-shadow);}
.ticket-check > header{ display: grid; gap: 4px;}
.ticket-check > header h2{ margin: 0; font-size: var(--ui-t-panel); color: var(--ui-text);}
.ticket-check > header p{ margin: 0; font-size: var(--ui-t-meta); line-height: 1.5; color: var(--ui-muted);}
lotto-ticket-check{ display: grid; gap: var(--ui-gap);}
.ticket-check-paste{
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 14px;
  font-size: var(--ui-t-meta);
  text-align: center;
  color: var(--ui-muted);
  background: var(--ui-surface-sunken);
  border: 1px dashed var(--ui-line);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--ui-motion) 120ms, border-color var(--ui-motion) 120ms;}
.ticket-check-paste:hover{ background: var(--ui-hover); border-color: var(--ui-blue);}
.ticket-check-paste:focus-visible{ outline: 2px solid var(--ui-blue); outline-offset: 2px;}
.ticket-check-paste[data-state="ready"]{ border-style: solid; border-color: var(--ui-blue); color: var(--ui-blue-ink);}
.ticket-check-hint{ margin: 0; font-size: var(--ui-t-micro); color: var(--ui-faint);}
.ticket-check-preview{ display: flex; align-items: center; gap: var(--ui-gap);}
.ticket-check-preview img{
  width: 128px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-surface-sunken);}
.ticket-check-slots{ margin: 0; padding: 12px; border: 1px solid var(--ui-line); border-radius: 8px;}
.ticket-check-slots legend{ padding: 0 6px; font-size: var(--ui-t-meta); color: var(--ui-body);}
.ticket-check-slots:disabled{ opacity: .5;}
.ticket-check-grid{ display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;}
.ticket-check-slot{ display: grid; gap: 4px;}
.ticket-check-slot span{ font-size: var(--ui-t-micro); color: var(--ui-faint);}
.ticket-check-slot input{
  width: 100%;
  height: 38px;
  font-size: var(--ui-t-read);
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ui-text);
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  box-shadow: var(--ui-control-shadow);}
.ticket-check-slot input:focus-visible{ outline: 2px solid var(--ui-blue); outline-offset: 1px;}
.ticket-check-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px;}
.ticket-check-actions label{ font-size: var(--ui-t-meta); color: var(--ui-body);}
.ticket-check-actions input{
  width: 84px;
  height: 32px;
  font-size: var(--ui-t-meta);
  font-variant-numeric: tabular-nums;
  color: var(--ui-text);
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 8px;}
.ticket-check-actions .button{ margin-left: auto;}
.ticket-check-status{ margin: 0; font-size: var(--ui-t-meta); color: var(--ui-muted);}
.ticket-check-status[data-state="busy"]{ color: var(--ui-blue-ink);}
.ticket-check-status[data-state="warn"]{ color: var(--ui-warn);}
.ticket-check-status[data-state="error"]{ color: var(--ui-up);}
.ticket-check-result{ display: grid; gap: 4px; padding: 12px; background: var(--ui-blue-soft); border-radius: 10px;}
.ticket-check-result p{ margin: 0; font-size: var(--ui-t-meta); color: var(--ui-body);}
.ticket-check-rank{ font-size: var(--ui-t-read) !important; font-weight: 600; color: var(--ui-text) !important;}
@media (max-width: 560px){.ticket-check-grid{ grid-template-columns: repeat(3, minmax(0, 1fr));}
.ticket-check-actions .button{ margin-left: 0;}}
@media (prefers-reduced-motion: reduce){.ticket-check-paste{ transition: none;}}
/* Component source: /web/formula-screener.css */
/* Component-only surfaces. terminal.css owns the shared shell and right rail. */
body.ll-dashboard[data-screen='screener'] #formulaScreenerPage{display:grid!important;grid-template-columns:200px minmax(0,1fr);height:calc(100dvh - var(--lotto-header-height,52px) - 24px)!important;min-height:0!important;overflow:hidden!important;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:12px;color:var(--ui-text);}
#formulaScreenerPage .screener-themes{min-width:0;min-height:0;overflow:auto;padding:16px 8px;border-right:1px solid var(--ui-line);overscroll-behavior:contain;scrollbar-width:thin;}
#formulaScreenerPage .screener-themes h2{font-size:13px;font-weight:500;margin:0 10px 24px;}
#formulaScreenerPage .screener-section-label{font-size:13px;font-weight:400;color:var(--ui-muted);margin:20px 10px 8px;}
#formulaScreenerPage .screener-theme{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:32px;text-align:left;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--ui-body);font-size:13px;font-weight:500;cursor:pointer;line-height:20px;}
#formulaScreenerPage .screener-theme span{font-size:12px;color:var(--ui-muted);font-variant-numeric:tabular-nums;}
#formulaScreenerPage .screener-theme-art{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:7px;background:#e8f3ff;color:#216de2;}
#formulaScreenerPage .screener-theme-art svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
#formulaScreenerPage .screener-theme-name{flex:1;min-width:0;font-size:13px!important;color:inherit!important;line-height:1.3;}
#formulaScreenerPage .screener-theme-count{font-variant-numeric:tabular-nums;border-radius:6px;background:#edf1f6;padding:1px 5px;min-width:22px;text-align:center;}
#formulaScreenerPage .screener-theme[data-empty='true'] .screener-theme-count{color:#7b8795;background:#f1f3f5;}
#formulaScreenerPage .screener-theme[data-screener-theme='rising'] .screener-theme-art{background:#fff0f0;color:#de2b39;}
#formulaScreenerPage .screener-theme[data-screener-theme='wins'] .screener-theme-art,#formulaScreenerPage .screener-theme[data-screener-theme='five'] .screener-theme-art{background:#fff4e5;color:#a96500;}
#formulaScreenerPage .screener-theme[data-screener-theme='broad'] .screener-theme-art,#formulaScreenerPage .screener-theme[data-screener-theme='ahead'] .screener-theme-art{background:#e9f7f2;color:#087c62;}
#formulaScreenerPage .screener-theme[data-screener-theme='both'] .screener-theme-art{background:#f0edff;color:#6248b0;}
#formulaScreenerPage .screener-theme[data-screener-theme='favorites'] .screener-theme-art{background:#fff1e9;color:#ba642a;}
#formulaScreenerPage .screener-theme:hover{background:var(--ui-surface-sunken);}
#formulaScreenerPage .screener-theme[aria-pressed='true']{background:var(--ui-blue-soft);color:var(--ui-blue-ink);font-weight:600;}
#formulaScreenerPage .screener-main{display:flex;flex-direction:column;min-height:0;min-width:0;padding:0 16px 12px;}
#formulaScreenerPage .screener-heading{padding:16px 0 10px!important;border:0!important;box-shadow:none!important;gap:12px;align-items:start;}
#formulaScreenerPage .screener-heading :is(h1,h2){font-size:18px!important;font-weight:700;line-height:24px;margin:0 0 4px;}
#formulaScreenerPage .screener-heading p{font-size:13px;line-height:1.5;margin:0;color:var(--ui-muted);}
#formulaScreenerPage .screener-toolbar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:8px 0 12px;flex:none;}
#formulaScreenerPage .screener-toolbar label{display:grid;gap:4px;font-size:13px;color:var(--ui-muted);min-width:0;}
#formulaScreenerPage .screener-toolbar label:first-child{flex:1;min-width:150px;max-width:300px;}
#formulaScreenerPage :is(input,select){min-width:0;width:100%;height:28px;padding:4px 8px;background:var(--ui-surface-sunken);color:var(--ui-text);border:1px solid var(--ui-line)!important;border-radius:7px!important;}
#formulaScreenerPage #screenerSearch{height:32px;border-radius:8px!important;}
#formulaScreenerPage .screener-meta{display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:space-between;font-size:13px;color:var(--ui-muted);padding:4px 0 12px;flex:none;line-height:1.5;}
#formulaScreenerPage #screenerMessage{font-size:13px;line-height:1.5;color:var(--ui-body);background:var(--ui-surface-sunken);margin:0 0 8px;padding:8px;border-radius:8px;}
#formulaScreenerPage .screener-table-region{min-height:100px;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;position:relative;}
#formulaScreenerPage .screener-table{width:100%;min-width:1024px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px;font-variant-numeric:tabular-nums;}
#formulaScreenerPage .screener-table :is(th,td){padding:7px 8px 8px;height:40px;border-bottom:1px solid var(--ui-line);text-align:right;white-space:nowrap;}
#formulaScreenerPage .screener-table th{position:sticky;top:0;z-index:2;height:36px;background:var(--ui-surface);font-size:13px;color:var(--ui-muted);font-weight:500;}
#formulaScreenerPage .screener-table :is(th,td):nth-child(1){width:44px;text-align:center;padding:0;}
#formulaScreenerPage .screener-table :is(th,td):nth-child(2){width:240px;text-align:left;white-space:normal;}
#formulaScreenerPage .screener-table :is(th,td):nth-child(n+3):nth-child(-n+7){width:120px;}
#formulaScreenerPage .screener-table :is(th,td):nth-child(8){width:140px;text-align:left;}
/* Preserve the formula identity while numeric columns scroll horizontally. */
#formulaScreenerPage .screener-table :is(th,td):first-child:not([colspan]){position:sticky;left:0;z-index:3;background:var(--ui-surface);}
#formulaScreenerPage .screener-table :is(th,td):nth-child(2){position:sticky;left:44px;z-index:3;background:var(--ui-surface);box-shadow:1px 0 0 var(--ui-line);}
#formulaScreenerPage .screener-table th:nth-child(-n+2){z-index:4;}
#formulaScreenerPage .screener-table tr:hover td{background:var(--ui-surface-sunken);}
#formulaScreenerPage .screener-table tr[aria-selected='true'] td{background:var(--ui-blue-soft);}
#formulaScreenerPage .screener-suggestion td{background:#f9fafc;color:rgb(78,80,82);}
#formulaScreenerPage .screener-suggestion td:first-child{color:#3182f6;font-size:18px;}
#formulaScreenerPage .screener-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;border:0;background:transparent;color:var(--ui-text);font-size:13px;font-weight:500;padding:0;text-align:left;width:100%;cursor:pointer;line-height:20px;white-space:normal;overflow-wrap:anywhere;overflow:hidden;text-overflow:ellipsis;}
#formulaScreenerPage .screener-favorite{display:grid;place-items:center;width:34px;height:34px;margin:auto;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);cursor:pointer;}
#formulaScreenerPage .screener-favorite[aria-pressed='true']{color:var(--ui-blue-ink);}
#formulaScreenerPage .screener-favorite svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.75;}
#formulaScreenerPage .screener-favorite[aria-pressed='true'] svg{fill:currentColor;}
#formulaScreenerPage [data-movement='up']{color:var(--ui-up);}
#formulaScreenerPage [data-movement='down']{color:var(--ui-down);}
#formulaScreenerPage .screener-empty{padding:32px 12px!important;text-align:center!important;white-space:normal!important;color:var(--ui-muted);line-height:1.7;}
#formulaScreenerPage .screener-detail{flex:none;max-height:170px;overflow:auto;padding:10px 0;border-top:1px solid var(--ui-line);font-size:13px;line-height:1.6;}
#formulaScreenerPage .screener-detail header{display:flex;justify-content:space-between;align-items:center;gap:12px;}
#formulaScreenerPage .screener-detail h2{font-size:14px;margin:0;font-weight:600;}
#formulaScreenerPage .screener-detail p{margin:5px 0;color:var(--ui-body);}
#formulaScreenerPage .screener-detail a{color:var(--ui-blue-ink);text-decoration:none;margin-right:14px;}
#formulaScreenerPage .screener-basis{flex:none;font-size:13px;color:var(--ui-muted);line-height:1.6;border-top:1px solid var(--ui-line);margin-top:8px;padding-top:8px;max-height:160px;overflow:auto;}
#formulaScreenerPage .screener-basis summary{cursor:pointer;color:var(--ui-body);padding:3px 0;}
#formulaScreenerPage .screener-basis p{margin:6px 0;}
/* The legacy tables colour numeric columns in the shared important layer.
 * Scope neutral screener values there as well, keeping colour for actual change. */
@layer lotto-terminal{#formulaScreenerPage .screener-table td{color:var(--ui-text)!important;height:40px!important;padding-block:7px 8px!important;}
#formulaScreenerPage .screener-table td:first-child{padding-block:0!important;}
#formulaScreenerPage .screener-table td[data-movement='up']{color:var(--ui-up)!important;}
#formulaScreenerPage .screener-table td[data-movement='down']{color:var(--ui-down)!important;}
#formulaScreenerPage .screener-table .screener-name{min-height:20px!important;padding:0!important;}
#formulaScreenerPage .screener-theme{min-height:32px!important;padding:6px 10px!important;}
#formulaScreenerPage .screener-toolbar select,#formulaScreenerPage #screenerReset{height:28px!important;min-height:28px!important;padding:4px 8px!important;}
#formulaScreenerPage #screenerSearch,#formulaScreenerPage #screenerRefresh{height:32px!important;min-height:32px!important;padding:4px 8px!important;}}
@media(max-width:767px){body.ll-dashboard[data-screen='screener'] #formulaScreenerPage{display:flex!important;flex-direction:column;min-height:0!important;height:auto!important;overflow:visible!important;}
#formulaScreenerPage .screener-themes{padding:8px;max-height:none;overflow:visible;border-right:0;border-bottom:1px solid var(--ui-line);display:flex;flex-wrap:wrap;gap:4px;}
#formulaScreenerPage .screener-themes h2{width:100%;margin:2px 6px 4px;}
#formulaScreenerPage .screener-section-label{display:none;}
#formulaScreenerPage .screener-themes nav{display:contents;}
#formulaScreenerPage .screener-theme{width:auto;min-height:44px;gap:8px;padding:8px;font-size:13px!important;}
#formulaScreenerPage .screener-main{padding:0 12px 12px;}
#formulaScreenerPage .screener-table-region{flex:none;max-height:480px;min-height:140px;}
#formulaScreenerPage .screener-table :is(th,td){height:44px;}
#formulaScreenerPage .screener-favorite{width:44px;height:44px;}
@layer lotto-terminal{#formulaScreenerPage .screener-table td{height:44px!important;}
#formulaScreenerPage .screener-theme,#formulaScreenerPage .screener-toolbar select,#formulaScreenerPage #screenerReset,#formulaScreenerPage #screenerSearch,#formulaScreenerPage #screenerRefresh{min-height:44px!important;height:auto!important;padding:8px!important;}}
#formulaScreenerPage .screener-heading p{font-size:13px;}
#formulaScreenerPage .screener-toolbar{gap:12px;}
#formulaScreenerPage .screener-toolbar label:first-child{max-width:none;flex-basis:100%;}
#formulaScreenerPage .screener-toolbar label:not(:first-child){flex:1;}}