.wl{--wl-bg:var(--bg,#0f1218);--wl-panel:var(--card,#171b23);--wl-ink:var(--t1,#eef1f7);--wl-muted:var(--t3,#969daa);--wl-line:var(--line,rgba(130,140,160,.22));color:var(--wl-ink);width:100%;max-width:1050px;margin:0 auto;padding:24px 12px 60px;font-size:14px;line-height:1.5}
.wl *{box-sizing:border-box}.wl button,.wl input,.wl select,.wl textarea{font:inherit;color:inherit}.wl button{cursor:pointer}.wl button:disabled{cursor:default;opacity:.45}.wl button:focus-visible,.wl input:focus-visible,.wl select:focus-visible,.wl textarea:focus-visible{outline:2px solid var(--acc,#dc5424);outline-offset:3px}.wl button{border:1px solid var(--wl-line);background:transparent;border-radius:8px;padding:9px 14px;min-height:42px}.wl .wl-primary{background:var(--acc,#dc5424);border-color:var(--acc,#dc5424);color:white}.wl-head,.wl-toolbar,.wl-monthbar,.wl-tabs,.wl-dialog-head,.wl-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.wl-head h2{font-size:25px;letter-spacing:-.8px;margin:0;font-weight:650}.wl-head p,.wl-muted{color:var(--wl-muted);margin:4px 0 0}.wl-tabs{justify-content:flex-start;border-bottom:1px solid var(--wl-line);margin:24px 0 30px;gap:22px}.wl-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--wl-muted);padding:12px 0}.wl-tabs button[aria-selected=true]{border-color:var(--acc,#dc5424);color:var(--wl-ink)}.wl select,.wl input,.wl textarea{background:var(--wl-bg);border:1px solid var(--wl-line);border-radius:7px;padding:10px;min-width:0;width:100%}.wl option{background:var(--wl-bg)}.wl-currency{width:105px!important}.wl-monthbar{margin-bottom:24px}.wl-monthnav{display:flex;align-items:center;gap:16px}.wl-monthnav strong{font-size:17px;min-width:155px;text-align:center}.wl-monthnav button{font-size:21px;padding:4px 13px}.wl-profit-label{color:var(--wl-muted);font-size:12px;letter-spacing:.04em}.wl-profit{font-size:44px;font-weight:600;letter-spacing:-1.8px;line-height:1.2;margin:6px 0 5px;font-variant-numeric:tabular-nums}.wl-positive{color:var(--profit,#319b75)}.wl-negative{color:var(--red,#d66b79)}.wl-summary{margin-bottom:28px}.wl-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.wl-weekday{color:var(--wl-muted);font-size:11px;padding:0 8px 8px}.wl .wl-day,.wl .wl-blank{min-height:94px}.wl .wl-day{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;border-radius:8px;padding:10px;border-color:var(--wl-line);font-size:12px;background:color-mix(in srgb,var(--wl-panel) 45%,transparent)}.wl .wl-day.profit{background:color-mix(in srgb,#349578 calc(7% + var(--heat)*17%),var(--wl-bg));border-color:color-mix(in srgb,#349578 35%,var(--wl-line))}.wl .wl-day.loss{background:color-mix(in srgb,#c95d70 calc(7% + var(--heat)*17%),var(--wl-bg));border-color:color-mix(in srgb,#c95d70 35%,var(--wl-line))}.wl-day b{font-size:16px;font-weight:550;font-variant-numeric:tabular-nums}.wl .wl-day.today{outline:1px solid var(--acc,#dc5424);outline-offset:1px}.wl-legend{display:flex;justify-content:space-between;gap:14px;margin-top:18px;font-size:12px;color:var(--wl-muted)}.wl-key{display:flex;gap:12px}.wl-key i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:5px;background:#399c7c}.wl-key .loss i{background:#c95d70}.wl-toolbar{margin-bottom:16px}.wl-search{max-width:420px}.wl-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:var(--wl-panel);padding:16px;border:1px solid var(--wl-line);border-radius:10px;margin:12px 0}.wl label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--wl-muted)}.wl-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.wl-chips button{font-size:12px;padding:4px 10px;min-height:32px}.wl-list{border-top:1px solid var(--wl-line)}.wl .wl-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 115px 105px;gap:15px;align-items:center;text-align:left;border:0;border-bottom:1px solid var(--wl-line);border-radius:0;padding:19px 2px;background:transparent}.wl-row:hover{background:color-mix(in srgb,var(--wl-panel) 65%,transparent)}.wl-row strong{font-size:14px;font-weight:550;display:block}.wl-row small{display:block;color:var(--wl-muted);font-size:12px;margin-top:4px}.wl-row .wl-amount{text-align:right;font-size:17px}.wl-status{font-size:12px;color:var(--wl-muted)}.wl-status.hedge_needed{color:#d99e52}.wl-footer{margin-top:18px;color:var(--wl-muted);font-size:12px}.wl-empty{padding:65px 15px;text-align:center;color:var(--wl-muted)}.wl-error{color:var(--red,#d66b79);padding:12px 0}.wl-notice{padding:12px 14px;border:1px solid var(--wl-line);border-radius:8px;color:var(--wl-muted);font-size:12px;margin:14px 0}.wl-dialog{width:min(700px,calc(100vw - 24px));max-height:90dvh;margin:auto;border:1px solid var(--wl-line);border-radius:16px;padding:26px;background:var(--wl-bg);box-shadow:0 24px 100px #0005}.wl-dialog::backdrop{background:#060913a8;backdrop-filter:blur(4px)}.wl-dialog-head{align-items:flex-start;margin-bottom:20px}.wl-dialog h2{font-size:23px;letter-spacing:-.6px;margin:0}.wl-dialog h3{font-size:14px;margin:0}.wl-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.wl-form-grid .full{grid-column:1/-1}.wl-leg{padding:18px 0;border-top:1px solid var(--wl-line);margin-top:20px}.wl-leg-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.wl .wl-check{flex-direction:row;align-items:center;gap:10px;color:var(--wl-ink);font-size:13px;margin-top:15px}.wl-check input{width:17px;height:17px;accent-color:var(--acc,#dc5424)}.wl-dialog-actions{position:sticky;bottom:-26px;padding:17px 0 0;margin-top:20px;background:var(--wl-bg);display:flex;justify-content:flex-end;gap:10px}.wl-dialog .wl-result{border-top:1px solid var(--wl-line);margin-top:14px;padding-top:14px}.wl-dialog summary{cursor:pointer;color:var(--wl-muted);font-size:12px;padding:12px 0}.wl-history{font-size:12px;color:var(--wl-muted);padding:7px 0}.wl-dialog .wl-remove{font-size:11px;min-height:30px;padding:4px 9px}.wl-source-log{padding:14px 20px;border-top:1px solid var(--line,#ffffff20);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--t2,#989eae)}.wl-source-log button{background:var(--acc,#dc5424);color:#fff;border:0;border-radius:8px;padding:12px 19px;cursor:pointer;font:inherit;white-space:nowrap}
@media(max-width:600px){.wl{padding:16px 0 40px}.wl-head h2{font-size:22px}.wl-head p{font-size:12px}.wl-head{align-items:flex-start}.wl-head button{padding:8px 11px;font-size:12px}.wl-tabs{margin:18px 0 25px}.wl-profit{font-size:36px}.wl-monthbar{gap:8px}.wl-monthnav{gap:5px}.wl-monthnav strong{font-size:14px;min-width:125px}.wl-monthnav button{padding:4px 9px}.wl-currency{width:88px!important}.wl-calendar{gap:4px}.wl .wl-day,.wl .wl-blank{min-height:71px}.wl .wl-day{padding:6px 4px;font-size:11px}.wl-day b{font-size:clamp(8px,2.4vw,11px);letter-spacing:-.3px;white-space:nowrap}.wl-weekday{padding:0 3px 5px;font-size:10px}.wl-legend{flex-direction:column;gap:7px}.wl .wl-row{grid-template-columns:minmax(0,1fr) 82px;gap:8px;padding:15px 2px}.wl-row .wl-status{grid-column:1;grid-row:2}.wl-row .wl-amount{grid-column:2;grid-row:1/3;font-size:15px}.wl-row strong{font-size:13px}.wl-filters{grid-template-columns:1fr 1fr;padding:12px}.wl-dialog{padding:20px 16px;max-height:94dvh}.wl-dialog-actions{bottom:-20px}.wl-form-grid{gap:10px}.wl-source-log{padding:13px 15px}.wl-source-log span{max-width:190px}}

.wl-source-log[hidden]{display:none}

.wl-dialog input:not([type=checkbox]),.wl-dialog select{min-height:42px}
@media(min-width:800px){.wl-dialog:has(.wl-legs){width:min(900px,calc(100vw - 48px))}.wl-legs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}.wl-legs:has(.wl-leg:only-child){grid-template-columns:1fr}.wl-legs .wl-leg{min-width:0}.wl-legs .wl-leg:nth-child(n+3){margin-top:0}}

.wl-legacy-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.wl-legacy-notice button{min-height:32px;padding:4px 10px;font-size:12px}

/* Editable journal: stable fields, quiet status, progressive result details. */
.wl-type{display:inline-flex;margin-top:7px;padding:2px 8px;border-radius:5px;background:var(--wl-panel);border:1px solid var(--wl-line);font-size:11px;color:var(--wl-muted)}
.wl-row-legs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin-top:14px;max-width:700px}
.wl-row-leg{display:flex;align-items:center;gap:9px;min-width:0;font-size:11px;color:var(--wl-muted)}
.wl-row-leg>span:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}.wl-row-leg>span:nth-child(2)>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wl-leg-name{color:var(--wl-ink);font-size:12px}.wl-row-leg img,.wl-book-icon img{object-fit:contain;border-radius:5px;flex-shrink:0}
.wl-book-mono{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:26px;height:26px;background:var(--wl-panel);border:1px solid var(--wl-line);border-radius:5px;font-size:10px;color:var(--wl-ink)}.wl-quote{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;color:var(--wl-ink)}.wl-row .wl-quote small{font-size:10px;margin:0}
.wl-leg-top h3{display:flex;align-items:center;gap:9px}.wl-book-icon{display:inline-flex}.wl-edit-summary{display:flex;align-items:center;gap:10px;padding:12px 15px;background:var(--wl-panel);border:1px solid var(--wl-line);border-radius:8px;margin:0 0 20px;font-size:12px;color:var(--wl-muted)}.wl-edit-summary strong{font-size:23px;font-weight:600;letter-spacing:-.5px;font-variant-numeric:tabular-nums;margin-left:auto}.wl .wl-leg{padding:18px 0 4px}.wl-dialog .wl-result{padding-top:0}.wl-result summary{color:var(--wl-ink);font-weight:550}.wl-return-preview{font-size:11px;margin-top:12px}
.wl-save-status{margin-right:auto;align-self:center;color:var(--wl-muted);font-size:12px}.wl-save-status:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:7px;background:var(--wl-muted)}.wl-save-status[data-state=saved]:before{background:var(--profit,#319b75)}.wl-save-status[data-state=error]{color:var(--red,#d66b79)}.wl-dialog-actions{border-top:1px solid var(--wl-line);padding-bottom:2px}.wl-dialog input:disabled,.wl-dialog select:disabled{opacity:.5;cursor:default}.wl-dialog #wlError:empty{display:none}.wl-dialog #wlSaveRecovery{font-size:12px}.wl-history p{overflow-wrap:anywhere}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.wl-row{transition:background-color 200ms ease}.wl-save-status{transition:color 200ms ease}}
@media(max-width:600px){.wl-row-legs{grid-template-columns:1fr;gap:9px}.wl .wl-row{grid-template-columns:minmax(0,1fr) 76px}.wl .wl-row>span:first-child{min-width:0}.wl-row-leg{gap:7px}.wl-row-leg .wl-quote{min-width:42px}.wl-edit-summary{margin-bottom:16px;padding:10px}.wl-dialog .wl-leg{margin-top:16px}.wl-form-grid{column-gap:10px}.wl-dialog label{font-size:11px}.wl-save-status{font-size:11px}}
.wl input,.wl select,.wl textarea{color:var(--wl-ink)}

/* A shared column grid keeps every historical wager aligned. */
.wl-list{border:1px solid var(--wl-line);border-radius:12px;overflow:hidden;background:var(--wl-bg)}
.wl-list-heading,.wl .wl-record{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(0,1.55fr) 106px;gap:22px;align-items:center;padding:20px}
.wl-list-heading{background:var(--wl-panel);font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--wl-muted);padding-top:13px;padding-bottom:13px}
.wl-leg-heading,.wl-record-leg{display:grid;grid-template-columns:minmax(0,1fr) 62px 80px;gap:12px;align-items:center}.wl-leg-heading>span:not(:first-child),.wl-list-heading>span:last-child{text-align:right}
.wl .wl-record{width:100%;text-align:left;border:0;border-bottom:1px solid var(--wl-line);border-radius:0;background:transparent;min-height:99px}.wl .wl-record:last-child{border-bottom:0}.wl .wl-record:hover{background:var(--wl-panel)}.wl .wl-record:focus-visible{outline-offset:-3px}
.wl-record-main{min-width:0}.wl-record-main strong{display:block;font-size:13px;line-height:1.45;font-weight:550;overflow-wrap:anywhere}.wl-record-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}.wl-record-meta .wl-type{margin:0;font-size:10px;padding:1px 6px;background:transparent}.wl-record-meta time{font-size:11px;color:var(--wl-muted)}
.wl-record-legs{display:grid;gap:14px;min-width:0}.wl-record-leg{min-height:34px}.wl-selection{display:flex;align-items:center;gap:9px;min-width:0}.wl-selection>span{min-width:0}.wl-selection img{border-radius:5px;object-fit:contain;flex-shrink:0}.wl-selection b{display:block;font-size:12px;font-weight:500}.wl-selection small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--wl-muted);margin-top:2px}.wl-cell-number{text-align:right;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.wl-record-result{display:flex;flex-direction:column;align-items:flex-end;gap:5px;white-space:nowrap}.wl-record-result>b{font-weight:550;font-size:17px;letter-spacing:-.3px;font-variant-numeric:tabular-nums}.wl-record-result .wl-status{font-size:10px}.wl-tracking{display:block;font-size:10px;color:var(--wl-muted);margin-top:6px}.wl-tracking.review{color:var(--wl-muted)}
.wl-tracking-control{display:grid;grid-template-columns:125px minmax(0,1fr);gap:12px;align-items:center;padding-top:15px}.wl-tracking-note{font-size:11px;color:var(--wl-muted);margin:16px 0 0;line-height:1.5}
.wl-toolbar .wl-search{margin-right:auto}.wl-toolbar{justify-content:flex-start;gap:9px}
@media(max-width:800px){.wl-list-heading,.wl .wl-record{grid-template-columns:minmax(125px,.75fr) minmax(0,1.5fr) 88px;gap:14px;padding:16px}.wl-leg-heading,.wl-record-leg{grid-template-columns:minmax(0,1fr) 46px 66px;gap:8px}}
@media(max-width:600px){.wl-list-heading{display:none}.wl .wl-record{grid-template-columns:minmax(0,1fr);gap:17px;padding:18px 14px}.wl-record-main strong{font-size:14px}.wl-record-legs{gap:13px}.wl-record-leg{grid-template-columns:minmax(0,1fr) 49px 75px;gap:8px}.wl-cell-number:before{content:attr(data-label);display:block;font-size:9px;line-height:1.4;color:var(--wl-muted);margin-bottom:3px}.wl-record-result{flex-direction:row;align-items:center;justify-content:space-between;flex-flow:row-reverse;border-top:1px solid var(--wl-line);padding-top:12px}.wl-record-result>b{font-size:17px}.wl-record-result .wl-status{font-size:11px}.wl-record-main .wl-tracking{display:inline-block;margin-top:7px}.wl-tracking-control{grid-template-columns:120px minmax(0,1fr)}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.wl-record{transition:background-color 200ms ease}}
@media(max-width:600px){.wl-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 88px}.wl-toolbar .wl-search{grid-column:1/-1;max-width:none}.wl-toolbar>button{justify-self:start}.wl-toolbar .wl-currency{width:88px!important}}
.wl-book-heading{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px}.wl-leg-outcome{font-size:10px;line-height:1.6;white-space:nowrap;color:var(--wl-muted)}.wl-leg-outcome.won{color:var(--profit,#319b75)}.wl-leg-outcome.lost{color:var(--red,#d66b79)}.wl-selection .wl-leg-role{font-size:10px;margin-top:2px}
.wl-game-title{display:flex;align-items:flex-start;gap:8px}
.wl-sport-icon{display:inline-flex;width:20px;height:20px;flex:none;color:var(--wl-muted)}
.wl-sport-icon .em,.wl-sport-icon svg{display:block;width:20px;height:20px}
.wl-funding{display:block;color:var(--wl-muted);font-size:10px;line-height:1.5;margin-top:3px;font-weight:400}
.wl-dialog{scrollbar-gutter:stable;overscroll-behavior:contain}
.wl-dialog input,.wl-dialog select,.wl-dialog textarea{scroll-margin:55px}
@media(max-width:600px){.wl-funding{display:none}}

/* Avoid iPhone focus zoom while keeping labels compact. */
@media(max-width:600px){.wl input,.wl select,.wl textarea{font-size:16px}}

/* Wager editing: the receipt first, bookkeeping on demand. */
.wl.wl-dialog:has(.wl-legs){width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:24px 28px 18px;border-radius:20px}
.wl-dialog .wl-dialog-head{margin-bottom:20px}.wl-dialog .wl-dialog-head h2{font-size:23px;font-weight:600;letter-spacing:-.6px}
.wl-dialog .wl-dialog-head>button{width:34px;min-height:34px;padding:0;border-radius:50%;font-size:19px;color:var(--wl-muted);border-color:transparent;background:var(--wl-panel)}
.wl-editor-meta{font-size:12px;color:var(--wl-muted);margin:6px 0 0;display:flex;gap:7px;align-items:center}
.wl-editor-event{display:flex;align-items:center;gap:10px}.wl-editor-event h3.wl-event-name{font-size:17px;font-weight:550;letter-spacing:-.25px;line-height:1.4;overflow-wrap:anywhere}
.wl-dialog .wl-edit-summary{margin:8px 0 20px;padding:0;border:0;background:none;min-height:20px;gap:6px}.wl-edit-summary strong{margin-left:6px;font-size:18px;letter-spacing:-.3px}.wl-edit-summary strong:empty,.wl-edit-summary span:empty{display:none}
.wl-dialog .wl-legs{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:18px 0}
.wl-dialog .wl-leg{margin:0;padding:18px;border:1px solid var(--wl-line);border-radius:12px;background:color-mix(in srgb,var(--wl-panel) 55%,var(--wl-bg));min-width:0}
.wl-dialog .wl-leg-top{gap:10px;justify-content:flex-start;margin-bottom:16px;align-items:flex-start}
.wl-leg-top .wl-book-icon{margin-top:1px}.wl-leg-heading-copy{flex:1;min-width:0}.wl-dialog .wl-editor-book{font-size:14px;line-height:1.4;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:600}
.wl-leg-tag{font-weight:400;color:var(--wl-muted);font-size:11px}.wl-editor-pick{margin:4px 0 0;color:var(--wl-ink);font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.wl-auto-state{font-size:10px;color:var(--wl-muted);white-space:nowrap;margin-top:3px}.wl-quick-fields{display:grid;grid-template-columns:1fr 1fr 1.05fr;gap:12px}.wl-quick-fields input{font-variant-numeric:tabular-nums}
.wl-dialog .wl-quick-fields input,.wl-dialog .wl-quick-fields select{font-size:15px;background:var(--wl-bg);min-height:44px;padding:10px 11px}
.wl-dialog .wl-leg-details>summary{padding:11px 0 0;color:var(--wl-muted);font-size:11px;min-height:28px;list-style-position:inside;width:max-content}
.wl-dialog .wl-leg-details[open]>summary{padding-bottom:14px}.wl-leg-details .wl-tracking-note{margin:12px 0 0}.wl-leg-details .wl-remove{margin-top:10px;color:var(--red,#d66b79);border-color:transparent;padding-left:0}.wl-leg-details .wl-return-preview:empty{display:none}
.wl-dialog .wl-event-details,.wl-dialog .wl-history-details{border-top:1px solid var(--wl-line)}.wl-event-details>summary,.wl-history-details>summary{font-size:12px;padding:13px 0;list-style-position:inside}.wl-event-details .wl-form-grid{padding:0 0 14px}.wl-event-details>[data-action=add-leg]{margin-bottom:14px;font-size:12px;min-height:36px}
.wl-dialog .wl-dialog-actions{bottom:-18px;padding:14px 0 2px;margin-top:8px;align-items:center;border-top:1px solid var(--wl-line);z-index:2}.wl-dialog-actions .wl-primary{padding:9px 24px;min-height:42px;border-radius:9px}.wl-save-status{font-size:11px}.wl-dialog label{font-size:11px;gap:5px}
.wl.wl-toasts{position:fixed;inset:auto 22px max(22px,env(safe-area-inset-bottom)) auto;width:min(480px,calc(100vw - 32px));max-height:45dvh;overflow:auto;z-index:2147483000;margin:0;padding:4px;pointer-events:none;display:flex;flex-direction:column;gap:8px}
.wl-toast{display:flex;align-items:center;gap:10px;padding:13px 14px;background:var(--wl-panel,var(--card,#171b23));border:1px solid var(--wl-line,var(--line,#ffffff22));border-radius:13px;box-shadow:0 9px 35px #0003;pointer-events:auto;color:var(--wl-ink,var(--t1,#eef1f7));font-size:13px;line-height:1.45}
.wl-toast-mark{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:color-mix(in srgb,var(--profit,#319b75) 15%,transparent);color:var(--profit,#319b75);flex:none;font-size:13px;font-weight:700}.wl-toast-message{flex:1;min-width:0;overflow-wrap:anywhere}.wl-toast-actions{display:flex;gap:4px;flex:none}.wl .wl-toast button{border:0;font-size:12px;font-weight:550;min-height:34px;padding:5px 7px;white-space:nowrap;background:none;color:inherit;cursor:pointer}.wl .wl-toast-actions button:first-child{color:var(--acc,#ff6a00)}.wl .wl-toast-dismiss{font-size:18px;font-weight:400;padding:3px 5px;color:var(--wl-muted)}.wl-toast.is-error .wl-toast-mark{color:var(--red,#d66b79);background:color-mix(in srgb,var(--red,#d66b79) 12%,transparent)}.wl-dialog>.wl-toast{position:sticky;bottom:50px;z-index:3;margin:8px 0}
@media(prefers-reduced-motion:no-preference){.wl-toast{animation:wl-toast-enter 180ms cubic-bezier(.22,1,.36,1) both}@keyframes wl-toast-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:600px){.wl.wl-dialog:has(.wl-legs){width:calc(100vw - 16px);max-height:calc(100dvh - 20px);padding:20px 16px 16px;border-radius:17px}.wl-dialog .wl-dialog-head{margin-bottom:17px}.wl-editor-event h3.wl-event-name{font-size:16px}.wl-dialog .wl-leg{padding:14px 12px}.wl-quick-fields{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr)}.wl-dialog .wl-quick-fields input,.wl-dialog .wl-quick-fields select{font-size:16px;padding:9px 7px}.wl-auto-state{display:none}.wl-dialog .wl-dialog-actions{bottom:-16px;padding-bottom:2px}.wl.wl-toasts{right:8px;bottom:max(14px,env(safe-area-inset-bottom));width:calc(100vw - 16px)}.wl-toast{gap:7px;padding:10px 10px}.wl-toast-actions{gap:0}.wl .wl-toast button{min-height:40px}.wl-toast-message{font-size:12px}.wl-toast-mark{width:21px;height:21px}.wl-editor-meta{font-size:11px;gap:6px}}

/* Refined journal: one aggregate view, quiet profiles, unbroken table titles. */
#wagerLogRoot.wl{max-width:1260px;padding:32px 24px 64px}
.wl-head{gap:24px;align-items:center}.wl-head h2{font-size:30px;letter-spacing:-1px;font-weight:550}.wl-head p{font-size:12px;margin-top:7px;color:var(--wl-muted)}
.wl-head-actions{display:flex;align-items:flex-end;gap:9px}.wl-profile-picker{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--wl-muted)}.wl-profile-picker select{min-width:150px;max-width:210px;min-height:42px;background:var(--wl-panel);font-size:13px;padding:9px 34px 9px 13px}.wl .wl-profile-settings{display:grid;place-items:center;padding:0;width:42px;height:42px}.wl-head-actions>.wl-primary{font-size:13px;white-space:nowrap;padding:9px 18px}
.wl-tabs{margin:24px 0 26px;gap:26px}.wl-tabs button{font-size:13px;font-weight:500}.wl-toolbar{gap:10px}.wl-search{max-width:390px}.wl .wl-toolbar button{font-size:12px}.wl-list{border-radius:10px}
.wl-list-heading,.wl .wl-record{grid-template-columns:100px minmax(210px,1.05fr) minmax(0,1.6fr) 104px;gap:24px;padding:18px 22px}.wl-list-heading{padding-top:14px;padding-bottom:14px;font-size:10px;background:color-mix(in srgb,var(--wl-panel) 65%,var(--wl-bg));letter-spacing:.07em}.wl .wl-record{min-height:94px}
.wl-record-type{align-self:center;white-space:nowrap;font-size:11px;font-weight:500;color:var(--wl-ink);display:inline-flex;align-items:center;gap:8px}.wl-record-type:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--wl-muted);flex:none}.wl-record-type[data-type=ev]:before{background:var(--profit,#319b75)}.wl-record-type[data-type=arbitrage]:before{background:var(--acc,#ff6a00)}.wl-record-type[data-type=extraction]:before{background:var(--wl-ink)}
.wl-game-title{align-items:center;min-width:0;gap:8px}.wl-record-main strong{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;font-size:13px;font-weight:550;line-height:1.4}.wl-record-meta{flex-wrap:nowrap;min-width:0;margin-top:6px;gap:9px}.wl-profile-tag{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px;color:var(--wl-muted)}.wl-profile-tag:after{content:'·';margin-left:9px}.wl-record-meta time{white-space:nowrap;font-size:10px}.wl-record-main .wl-tracking{font-size:10px;margin-top:5px}.wl-record-legs{gap:13px}.wl-selection{gap:9px}.wl-selection>span{min-width:0;flex:1}.wl-book-heading{min-width:0;flex-wrap:nowrap!important;gap:7px!important}.wl-book-heading b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wl-leg-outcome{white-space:nowrap;font-size:10px!important}.wl-leg-heading,.wl-record-leg{grid-template-columns:minmax(0,1fr) 52px 77px;gap:13px}.wl-record-result>b{font-size:17px;font-weight:500}.wl-record-result .wl-status{font-size:10px}.wl-selection small{font-size:10px}.wl-cell-number{font-size:12px}.wl-footer{font-size:11px;margin-top:16px}.wl-footer button{font-size:11px;min-height:34px;padding:6px 10px}
.wl-summary{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:28px;margin:0 0 28px;padding:25px 28px;border:1px solid var(--wl-line);border-radius:10px;background:color-mix(in srgb,var(--wl-panel) 40%,var(--wl-bg))}.wl-profit-label{font-size:10px;letter-spacing:.09em}.wl-profit{font-size:44px;font-weight:500;letter-spacing:-1.8px;margin:9px 0 8px}.wl-net-summary>.wl-muted{font-size:11px}.wl-summary-stat{display:flex;flex-direction:column;justify-content:center;border-left:1px solid var(--wl-line);padding-left:28px;gap:8px}.wl-summary-stat>span{font-size:11px;color:var(--wl-muted)}.wl-summary-stat>strong{font-size:30px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.8px}.wl-summary-stat small{font-size:10px;color:var(--wl-muted);font-weight:400;letter-spacing:0}.wl-summary-stat strong small{font-size:16px;margin-left:2px}.wl-monthbar{margin-bottom:22px}.wl-monthnav strong{font-size:16px;font-weight:550}.wl-calendar{gap:6px}.wl .wl-day{min-height:106px;border-radius:8px;background:transparent;padding:11px;gap:8px;justify-content:flex-start}.wl-day>span:first-child{font-size:11px;color:var(--wl-muted)}.wl-day b{margin-top:auto;font-size:16px;font-weight:500}.wl-day small{font-size:10px;color:var(--wl-muted)}.wl .wl-day.profit{background:color-mix(in srgb,var(--profit,#319b75) calc(5% + var(--heat)*10%),var(--wl-bg));border-color:color-mix(in srgb,var(--profit,#319b75) 20%,var(--wl-line))}.wl .wl-day.loss{background:color-mix(in srgb,var(--red,#d66b79) calc(5% + var(--heat)*10%),var(--wl-bg));border-color:color-mix(in srgb,var(--red,#d66b79) 20%,var(--wl-line))}.wl .wl-day.today{outline:0;border-color:var(--acc,#ff6a00)}.wl .wl-day.today>span:first-child{color:var(--acc,#ff6a00)}.wl-legend{font-size:10px}.wl-key{flex-wrap:wrap}
.wl-destination{margin:0 0 18px!important;max-width:260px}.wl-destination select{min-height:42px}
.wl-profile-dialog{width:min(590px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;background:var(--wl-bg);color:var(--wl-ink);border:1px solid var(--wl-line);border-radius:16px;padding:28px}.wl-profile-dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}.wl-profile-dialog h2{font-size:25px;font-weight:550;letter-spacing:-.7px;margin:0}.wl-profile-dialog .wl-dialog-head{align-items:flex-start;margin-bottom:26px}.wl-profile-dialog .wl-dialog-head>button{border:0;background:transparent;padding:0;width:34px;min-height:34px;font-size:21px}.wl-profile-dialog .wl-muted{font-size:12px;margin-top:8px}
.wl-all-profile{display:flex;align-items:center;gap:12px;border:1px solid var(--wl-line);border-radius:9px;padding:15px;margin-bottom:10px;background:var(--wl-panel)}.wl-all-profile strong{font-size:14px;font-weight:550}.wl-all-profile p{font-size:11px;color:var(--wl-muted);margin:5px 0 0}.wl-profile-always{margin-left:auto;font-size:10px;white-space:nowrap;color:var(--wl-muted)}.wl-profile-avatar{width:31px;height:31px;flex:none;display:grid;place-items:center;border:1px solid var(--wl-line);border-radius:8px;font-size:12px;color:var(--wl-muted)}
.wl-profile-entry{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--wl-line)}.wl-profile-copy{min-width:0;flex:1}.wl-profile-entry input{background:transparent;border:1px solid transparent;padding:4px 6px;margin-left:-6px;font-size:14px;font-weight:500;min-height:32px;width:100%;max-width:none}.wl-profile-entry input:focus{border-color:var(--wl-line);background:var(--wl-panel)}.wl-profile-entry small{display:block;font-size:10px;color:var(--wl-muted);margin-top:3px}.wl-profile-row-actions{display:flex;gap:4px;flex:none}.wl-profile-row-actions button{font-size:11px;min-height:32px;padding:5px 8px;border:0;color:var(--wl-muted)}.wl-profile-entry.is-archived .wl-profile-avatar,.wl-profile-entry.is-archived input{color:var(--wl-muted)}.wl-profile-empty{padding:14px 0;font-size:12px;line-height:1.7;color:var(--wl-muted)}
.wl-profile-create{display:flex;align-items:flex-end;gap:10px;margin-top:24px}.wl-profile-create label{flex:1;min-width:0;font-size:11px;display:flex;flex-direction:column;gap:7px}.wl-profile-create input{width:100%;min-height:42px;background:var(--wl-panel)}.wl-profile-create button{font-size:12px}.wl-profile-note{font-size:10px;line-height:1.75;color:var(--wl-muted);margin:20px 0 0}.wl-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.wl-archived-profiles{margin-top:18px}.wl-archived-profiles>summary{font-size:11px;color:var(--wl-muted);cursor:pointer;padding:8px 0}.wl-archived-profiles>summary span{font-variant-numeric:tabular-nums;margin-left:6px}
.wl-profile-dialog{margin:auto;box-shadow:0 24px 80px #0002}.wl-profile-dialog #wlProfileError:empty{display:none}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.wl-profile-row-actions button,.wl .wl-record,.wl .wl-day{transition:background-color 200ms ease,color 200ms ease}.wl-profile-row-actions button:hover{background:var(--wl-panel);color:var(--wl-ink)}}
@media(max-width:1100px){#wagerLogRoot.wl{padding-right:18px;padding-left:18px}.wl-list-heading,.wl .wl-record{grid-template-columns:88px minmax(180px,.95fr) minmax(0,1.5fr) 94px;gap:17px;padding-right:17px;padding-left:17px}.wl-leg-heading,.wl-record-leg{grid-template-columns:minmax(0,1fr) 46px 66px;gap:10px}}
@media(max-width:900px){.wl-list-heading{display:none}.wl .wl-record{grid-template-columns:minmax(0,1fr) 104px;gap:14px 18px}.wl-record-type{grid-column:1;grid-row:1;font-size:10px}.wl-record-main{grid-column:1;grid-row:2}.wl-record-main strong{font-size:14px}.wl-record-legs{grid-column:1 / -1;grid-row:3}.wl-record-result{grid-column:2;grid-row:1 / 3;align-self:center}.wl-game-title{align-items:center}.wl-record-leg{grid-template-columns:minmax(0,1fr) 62px 85px;gap:12px}.wl-record-leg .wl-cell-number:before{content:attr(data-label);display:block;font-size:9px;color:var(--wl-muted);margin-bottom:2px}.wl-record-result .wl-status{font-size:10px}}
@media(max-width:700px){#wagerLogRoot.wl{padding:24px 16px 44px}.wl-head{align-items:flex-start;flex-direction:column;gap:19px}.wl-head-actions{width:100%;gap:8px}.wl-profile-picker{flex:1;min-width:0}.wl-profile-picker select{width:100%;min-width:0;max-width:none}.wl-head h2{font-size:27px}.wl-summary{grid-template-columns:1fr 1fr;gap:22px;padding:22px}.wl-net-summary{grid-column:1 / -1}.wl-summary-stat{padding-left:0;border-left:0;border-top:1px solid var(--wl-line);padding-top:16px}.wl-summary-stat>strong{font-size:27px}.wl-profit{font-size:40px}.wl-monthnav{gap:8px}.wl-monthnav strong{min-width:135px}.wl-calendar{gap:4px}.wl .wl-day,.wl .wl-blank{min-height:68px}.wl .wl-day{padding:6px 4px;gap:3px}.wl-day b{font-size:11px;white-space:nowrap;letter-spacing:-.4px}.wl-day small{display:none}.wl-weekday{font-size:9px;padding:0 3px 5px}.wl-legend{flex-direction:column;gap:8px}.wl-key{gap:9px}.wl-profile-dialog{width:calc(100vw - 20px);padding:24px 18px;max-height:calc(100dvh - 28px)}.wl-profile-dialog input{font-size:16px}.wl-profile-always{font-size:9px}.wl-profile-entry{gap:8px}.wl-profile-row-actions{gap:0}.wl-profile-row-actions button{min-height:40px;padding:5px 6px;font-size:10px}.wl-profile-avatar{width:27px;height:27px}.wl-profile-entry small{font-size:9px}.wl-profile-picker select{font-size:16px}.wl-profile-note{font-size:10px}}
@media(max-width:600px){.wl .wl-record{padding:17px 14px;grid-template-columns:minmax(0,1fr) 88px;gap:10px}.wl-record-main{grid-column:1 / -1}.wl-record-result{grid-row:1;align-self:center;border-top:0;padding-top:0}.wl-record-main strong{font-size:13px}.wl-record-meta{margin-top:5px}.wl-record-leg{grid-template-columns:minmax(0,1fr) 47px 71px;gap:8px}.wl-record-legs{border-top:1px solid var(--wl-line);padding-top:13px;gap:12px}.wl-record-result>b{font-size:16px}.wl-record-result .wl-status{display:none}.wl-selection small{font-size:10px}.wl-selection b{font-size:11px}.wl-selection{gap:7px}.wl-book-heading{gap:5px!important}.wl-leg-outcome{font-size:9px!important}.wl-record-type{font-size:10px}.wl .wl-record-type:before{width:4px;height:4px}.wl-head-actions>.wl-primary{font-size:12px;padding:9px 12px}.wl-profile-picker select{padding-left:10px}.wl-toolbar{flex-wrap:wrap}.wl-search{max-width:none;width:100%}.wl-toolbar>.wl-currency{margin-left:auto}.wl-monthnav strong{font-size:14px;min-width:125px}.wl-monthbar .wl-currency{width:75px!important;font-size:12px;padding:8px}.wl-monthnav button{min-height:36px;width:32px;padding:3px 8px}}

/* Recoverable deletion stays quiet until explicitly requested. */
.wl .wl-danger-link{color:var(--red,#bd5260);background:none;border-color:transparent}
.wl .wl-danger{background:var(--red,#bd5260);border-color:var(--red,#bd5260);color:#fff}
.wl-confirm{width:min(440px,calc(100vw - 24px));padding:26px;overscroll-behavior:contain}
.wl-confirm p{color:var(--wl-muted);font-size:14px;line-height:1.6;margin:14px 0 24px;overflow-wrap:anywhere}
.wl-confirm .wl-dialog-actions{position:static;justify-content:flex-end;padding:12px 0 0}
.wl-profile-dialog{overscroll-behavior:contain}
.wl-profile-row-actions{flex-wrap:wrap;justify-content:flex-end;max-width:145px}
.wl-dialog-actions>.wl-danger-link{margin-right:auto;padding-left:0}
@media(max-width:700px){.wl-profile-row-actions{max-width:115px}.wl-profile-entry{align-items:flex-start}.wl-profile-copy{min-width:0}.wl-dialog-actions{flex-wrap:wrap}}
