/* Paimon-inspired wish workspace. Original layout code; shared data remains local. */
#wishes{--wish-gold:#a76b09;--wish-purple:#8051ad;--wish-blue:#3f729a;--wish-good:#267044;--wish-danger:#ad303b;color:var(--ui-text,var(--text));}
html[data-helper-mode=dark] #wishes{--wish-gold:#f2c775;--wish-purple:#d5a1ed;--wish-blue:#99c7ed;--wish-good:#8de1b0;--wish-danger:#ffafb0;}
html #wishes[data-wish-style=paimon]{--ui-surface:#252a48;--ui-soft:#1b2038;--ui-line:#42496a;--ui-text:#f3f5ff;--ui-muted:#bbc5e0;--ui-primary:#dfbf7c;--ui-primary-text:#191d31;--ui-accent:#f0cf8b;--wish-gold:#f2c775;--wish-purple:#d5a1ed;--wish-blue:#99c7ed;--wish-good:#8de1b0;--wish-danger:#ffafb0;}
html[data-helper-mode=light] #wishes[data-wish-style=paimon]{--ui-surface:#fff;--ui-soft:#f1f1f9;--ui-line:#d6d9e8;--ui-text:#22263d;--ui-muted:#535b79;--ui-primary:#62429b;--ui-primary-text:#fff;--ui-accent:#62429b;--wish-gold:#835400;--wish-purple:#75459e;--wish-blue:#32658c;--wish-good:#246439;--wish-danger:#a72e37;}
#wishes :is(h2,h3,h4,h5){color:var(--ui-text,var(--text));}#wishes :is(.sub,.eyebrow){color:var(--ui-muted,var(--muted));}
.wish-workspace-head,.workspace-page-heading{margin-bottom:24px;min-width:0;}
.wish-workspace-head{display:flex;justify-content:space-between;align-items:start;gap:20px;flex-wrap:wrap;padding:24px;border:1px solid var(--ui-line,var(--line));border-radius:16px;background:var(--ui-surface,var(--panel));}
.wish-workspace-head h2,.workspace-page-heading h2{font-size:calc(var(--type-body,14px) + 14px);letter-spacing:-.03em;margin:8px 0 10px;line-height:1.25;}
.wish-workspace-head p,.workspace-page-heading p{margin:8px 0;line-height:1.7;max-width:65ch;}
.wish-workspace-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;max-width:100%;}
.wish-workspace-actions>button{white-space:normal;}
.wish-display-settings,.wish-import-panel{margin:16px 0;border:1px solid var(--ui-line,var(--line));border-radius:12px;background:var(--ui-surface,var(--panel));padding:16px 20px;}
#wishes summary{cursor:pointer;line-height:1.6;min-height:44px;padding:10px 0;overflow-wrap:anywhere;}
.wish-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:14px 0;}
.wish-settings-grid label{display:grid;gap:9px;min-width:0;}
.wish-settings-grid select{width:100%;min-width:0;}
.wish-import-content .row{margin:14px 0;}
.wish-url-label{display:block;margin:18px 0 8px;}
.wish-section-nav{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0;}
#wishes .wish-overview{padding:20px 24px;}
#wishes .wish-overview-numbers{margin:12px 0;gap:10px;}
#wishes .wish-overview-numbers>div{padding:12px 14px;}
#wishes .wish-overview-numbers strong{font-size:calc(var(--type-body,14px) + 8px);}
#wishes .wish-overview>h3{font-size:var(--type-body,14px);margin:8px 0;}
.wish-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch;scroll-margin-top:130px;}
#wishView .wish-counter-grid{display:contents;}
html[data-helper-theme] body.web-edition #wishView button.wish-counter-card{display:flex;flex-direction:column;padding:20px;border-radius:14px;transition:border-color .15s ease,transform .15s ease;}
html[data-helper-theme] body.web-edition #wishView button.wish-counter-card:hover{border-color:var(--ui-accent)!important;transform:translateY(-2px);}
html[data-helper-theme] body.web-edition #wishView button.wish-counter-card:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px;}
#wishView .wish-counter-card>strong{display:flex;align-items:center;gap:8px;width:100%;font-size:calc(var(--type-body,14px) + 2px);margin-bottom:16px;line-height:1.5;}
.wish-banner-emblem{color:var(--wish-gold);font-size:22px;}.wish-detail-arrow{margin-left:auto;color:var(--ui-muted);}
#wishView .wish-counter-total{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--ui-soft);border-radius:10px;width:100%;padding:13px 12px;margin-bottom:8px;}
#wishView .wish-counter-total b{font-size:calc(var(--type-body,14px) + 13px);}
#wishView .wish-counter-total small{margin-top:5px;line-height:1.5;}
#wishView .wish-counter-line{width:100%;padding:5px 0;margin:10px 0 4px;}
#wishView .wish-counter-line>b{font-size:calc(var(--type-body,14px) + 10px);}
#wishView .wish-counter-track{width:100%;height:4px;}
#wishView .wish-counter-footer{width:100%;margin-top:17px;text-align:left;line-height:1.6;}
.wish-guarantee-label{color:var(--wish-gold);}
#wishView .wish-monthly{margin:0;padding:20px;border:1px solid var(--ui-line);border-radius:14px;min-width:0;}
#wishView .wish-monthly h3{font-size:calc(var(--type-body,14px) + 2px);}
#wishView .wish-monthly header{background:transparent;padding:0;box-shadow:none;}
#wishView .wish-monthly header>button{font-size:var(--type-caption,12px);min-height:36px;padding:7px 10px;}
.wish-chart-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:var(--type-caption,12px);margin:16px 0 4px;}
.wish-chart-legend .series-five{color:var(--wish-gold);}.wish-chart-legend .series-four{color:var(--wish-purple);}.wish-chart-legend .series-total{color:var(--wish-blue);}
.wish-monthly-svg{display:block;width:100%;height:140px;overflow:visible;}
.wish-chart-grid{stroke:var(--ui-line);stroke-width:.4;fill:none;}
.wish-chart-series{fill:none;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;}
.wish-chart-series.series-total{stroke:var(--wish-blue);}.wish-chart-series.series-four{stroke:var(--wish-purple);}.wish-chart-series.series-five{stroke:var(--wish-gold);}
.wish-chart-point{fill:var(--wish-blue);}
.wish-chart-labels{display:flex;justify-content:space-between;gap:8px;font-size:var(--type-caption,12px);color:var(--ui-muted);}
.wish-chart-empty{display:grid;place-content:center;text-align:center;min-height:180px;padding:14px;color:var(--ui-muted);}
.wish-chart-empty>span{font-size:36px;color:var(--wish-gold);}
.wish-month-list{max-height:160px;overflow-y:auto;overscroll-behavior:contain;margin-top:10px;scrollbar-width:thin;}
#wishes .wish-month-row{grid-template-columns:60px minmax(20px,1fr) 36px;padding:8px;gap:8px;margin-top:4px;min-height:44px;}
#wishes .wish-month-row>small{font-size:var(--type-caption,12px);}
#wishes .wish-month-track{height:5px;}
.wish-statistics{margin:28px 0;scroll-margin-top:120px;}
.wish-section-title{display:flex;justify-content:space-between;gap:14px;align-items:end;flex-wrap:wrap;margin:22px 0 16px;}
.wish-section-title h3{font-size:calc(var(--type-body,14px) + 6px);margin:8px 0;}
.wish-section-title p{font-size:var(--type-caption,12px);color:var(--ui-muted);max-width:40ch;}
.wish-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
.wish-summary-card{border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-surface);padding:20px;min-width:0;}
.wish-summary-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;background:transparent;padding:0;}
.wish-summary-card h4{margin:0;font-size:calc(var(--type-body,14px) + 2px);line-height:1.5;}
.wish-table-scroll{overflow-x:auto;max-width:100%;}
.wish-summary-card table{width:100%;border-collapse:collapse;font-size:var(--type-label,13px);font-variant-numeric:tabular-nums;}
.wish-summary-card :is(th,td){padding:10px 7px;text-align:right;border-bottom:1px solid var(--ui-line);white-space:nowrap;}
.wish-summary-card :is(th,td):first-child{text-align:left;white-space:normal;}
.wish-summary-card thead th{font-weight:400;color:var(--ui-muted)!important;}
.wish-summary-card tbody tr:first-child :is(th,td){color:var(--wish-gold)!important;}
.wish-summary-card tbody tr:nth-child(2) :is(th,td){color:var(--wish-purple)!important;}
.wish-summary-outcome{font-size:var(--type-label,13px);line-height:1.8;}
.wish-summary-outcome strong{color:var(--wish-gold);margin-left:8px;}.wish-summary-outcome small{display:block;color:var(--ui-muted);}
.wish-summary-chips{display:flex;gap:6px;flex-wrap:wrap;max-height:180px;overflow-y:auto;margin:14px 0;}
.wish-result-label{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 9px;border:1px solid var(--wish-gold);border-radius:8px;max-width:100%;font-size:var(--type-caption,12px);}
.wish-result-label b{font-weight:500;}.wish-result-label em{font-style:normal;color:var(--wish-gold);font-weight:700;}
.wish-selected-detail{scroll-margin-top:120px;}
#wishes .wish-head{background:transparent;box-shadow:none;padding:0;flex-wrap:wrap;}
#wishes .wish-stat{background:var(--ui-soft);border-color:var(--ui-line);}
#wishes .wish-stat :is(span,small){color:var(--ui-muted);}
#wishes .wish-stat b{color:var(--ui-text);}
#wishes .wish-outcomes{font-size:var(--type-body,14px);gap:10px;}
#wishes .wish-badge{font-size:var(--type-caption,12px);background:var(--ui-soft);color:var(--wish-gold);}
#wishes .wish-chip{background:var(--ui-soft)!important;color:var(--ui-text)!important;line-height:1.7;border-color:var(--ui-line);}
#wishes .wish-chip.five{border-color:var(--wish-gold)!important;}
#wishes .wish-chip.four{border-color:var(--wish-purple)!important;}
#wishes .wish-tag{background:var(--ui-soft)!important;color:var(--ui-text)!important;font-size:var(--type-caption,12px);}
#wishes .pity-low{color:var(--wish-good)!important;}#wishes .pity-mid{color:var(--wish-gold)!important;}#wishes .pity-high{color:var(--wish-danger)!important;}
#wishes .wish-personal-insights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0;}
.wish-personal-insights>div{padding:14px;background:var(--ui-soft);border-radius:10px;min-width:0;}
.wish-personal-insights span{display:block;font-size:var(--type-caption,12px);color:var(--ui-muted);}
.wish-personal-insights strong{display:block;font-size:calc(var(--type-body,14px) + 7px);margin-top:8px;}
#wishes .wish-history-controls{grid-template-columns:repeat(4,minmax(0,1fr));}
.wish-history-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0;}
.wish-history-count{margin:14px 0;line-height:1.8;}.wish-history-count>span{display:block;font-size:var(--type-caption,12px);color:var(--ui-muted);}
.wish-record-id{display:block;font-size:var(--type-caption,12px);color:var(--ui-muted);margin-top:5px;}
.wish-pagination{display:flex;gap:14px;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:16px 0;}
#wishes .wish-table{min-width:680px;font-size:var(--type-label,13px);}
#wishes .wish-table :is(th,td){padding:12px;}
#wishes .wish-table tr.rank-5 td:nth-child(2){color:var(--wish-gold)!important;}#wishes .wish-table tr.rank-4 td:nth-child(2){color:var(--wish-purple)!important;}
.wish-pity-count-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px;margin:14px 0;}
.wish-pity-count-grid>div{display:grid;gap:6px;border:1px solid var(--ui-line);padding:10px;border-radius:8px;font-size:var(--type-caption,12px);}
.wish-pity-count-grid .has-results{border-color:var(--wish-gold);color:var(--wish-gold);}
#wishes :is(.wish-dist-row div,.bar){background:var(--ui-soft);}
#wishes .wish-dist-row i{background:var(--ui-accent);}
#wishes [hidden]{display:none!important;}
#wishes[data-wish-density=compact] :is(.wish-counter-card,.wish-summary-card,.wish-monthly){padding:14px!important;}
#wishes[data-wish-density=compact] .wish-counter-line{margin:5px 0 3px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.workspace-page-heading{border-bottom:1px solid var(--ui-line,var(--line));padding:10px 0 24px;}
.workspace-page-heading nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
#wishes :is(article,section,header,div,span,label,p,small,strong,button,dd){min-width:0;}
#wishes :is(p,small,strong,h2,h3,h4,label,button){overflow-wrap:anywhere;}
@media(max-width:1200px){.wish-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:767px){.wish-workspace-head{padding:18px;}.wish-workspace-actions{width:100%;}.wish-workspace-actions>button{flex:1 1 140px;}.wish-settings-grid,.wish-dashboard-grid,.wish-summary-grid{grid-template-columns:minmax(0,1fr);}#wishes .wish-history-controls{grid-template-columns:repeat(2,minmax(0,1fr));}#wishes .wish-personal-insights{grid-template-columns:repeat(2,minmax(0,1fr));}.wish-summary-card{padding:16px;}.wish-import-panel{padding:12px 16px;}#wishes .wish-overview{padding:18px;}#wishes .wish-monthly header>button{width:auto;}.wish-section-nav>button{flex:1 1 150px;}#wishes .wish-rates{font-size:var(--type-label,13px);}}
@media(prefers-reduced-motion:reduce){#wishView .wish-counter-card{transition:none!important;}#wishView .wish-counter-card:hover{transform:none!important;}}

/* Content headers must not inherit the old global sticky application header. */
.panel header{position:static;top:auto;z-index:auto;backdrop-filter:none;}
.workspace-page-heading{background:transparent;box-shadow:none;}
#wishes[data-wish-style=paimon]{background:#191e34;padding:24px;border-radius:18px;}
html[data-helper-mode=light] #wishes[data-wish-style=paimon]{background:#f4f4fa;}
@media(max-width:767px){#wishes[data-wish-style=paimon]{padding:14px;border-radius:12px;}}

html[data-helper-theme] body.web-edition #wishes[data-wish-style=paimon]{background:#191e34!important;}
html[data-helper-theme][data-helper-mode=light] body.web-edition #wishes[data-wish-style=paimon]{background:#f4f4fa!important;}
