/* All changes are opt-in. Standard and Easy keep their existing layout. */
html[data-view="professional"]{--expert-radius:16px}
html[data-view="professional"] body.pro-ui .app-shell{max-width:1440px!important}
html[data-view="professional"] body.pro-ui .content{padding-bottom:120px}
html[data-view="professional"] body.pro-ui .topbar{border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important}
html[data-view="professional"] .brand-copy strong:after{content:'PRO';display:inline-block;margin-left:7px;padding:3px 5px;border:1px solid var(--accent);border-radius:4px;font-size:9px;letter-spacing:1px;color:var(--accent);vertical-align:middle}
html[data-view="professional"] .content .card{border-radius:var(--expert-radius)!important;border:1px solid var(--line)!important;box-shadow:none!important}
html[data-view="professional"] .content .section-kicker{font-size:10px;letter-spacing:1.7px}
html[data-view="professional"] .content .pro-page-intro h1{font-size:clamp(30px,5vw,45px);letter-spacing:-1.2px}
html[data-view="professional"] .content .field{border-radius:9px!important}
html[data-view="professional"] .content .primary-btn,html[data-view="professional"] .content .secondary-btn{border-radius:10px!important;min-height:44px}
html[data-view="professional"] .bottom-nav.pro-dock{border-radius:18px!important;border:1px solid var(--line)!important;background:var(--panel)!important;box-shadow:0 8px 30px #00000018!important;backdrop-filter:none!important}
html[data-view="professional"] .bottom-nav .nav-item{border-radius:11px!important}
html[data-view="professional"] .bottom-nav .nav-item.active{background:var(--panel2)!important;border:1px solid var(--accent)!important;color:var(--accent)!important}
.ux-mode-choices{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important}
.expert-home{display:grid;gap:20px;padding:10px 0 18px;color:var(--text);animation:expert-enter .3s ease-out}
.expert-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px 2px}
.expert-eyebrow{display:block;font-size:10px;font-weight:750;letter-spacing:1.7px;line-height:1.6;color:var(--muted)}
.expert-intro h1{font-size:clamp(36px,6vw,62px);line-height:1.08;letter-spacing:-2px;margin:12px 0 4px;font-weight:750}
.expert-intro h1>span{color:var(--accent)}
.expert-exit,.expert-choose,.expert-panel-head>button{border:1px solid var(--line);background:var(--panel);color:var(--text);padding:10px 12px;min-height:44px;border-radius:9px;font-size:12px;font-weight:650;cursor:pointer;box-shadow:none;flex-shrink:0}
.expert-exit{max-width:140px;font-size:11px;line-height:1.4}
.expert-coast{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 2px}
.expert-coast>div{min-width:0}.expert-coast h2{font-size:clamp(23px,4vw,34px);line-height:1.15;letter-spacing:-.8px;margin:8px 0;overflow-wrap:anywhere}.expert-coast p{font-size:12px;color:var(--muted);line-height:1.5;margin:0}
.expert-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--line)}
.expert-metrics>div{position:relative;display:flex;flex-direction:column;gap:6px;padding:18px 14px;background:var(--panel);min-width:0}
.expert-metrics .expert-metric-number{position:absolute;right:10px;top:10px;font-size:9px;opacity:.4;color:var(--muted);font-variant-numeric:tabular-nums}
.expert-metrics small{color:var(--muted);font-size:11px}.expert-metrics b{font-size:clamp(17px,3vw,24px);letter-spacing:-.6px;line-height:1.35;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.expert-metrics>div>span:last-child{font-size:9px;color:var(--muted)}
.expert-safety{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;background:var(--panel2);border-left:3px solid var(--accent);border-radius:0 10px 10px 0}
.expert-safety-dot{margin-top:5px;width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--orange,#e9b466)}.expert-safety-dot.ready{background:var(--safe,#45b78b)}
.expert-safety b{font-size:12px}.expert-safety p{margin:5px 0 0;font-size:11px;line-height:1.7;color:var(--muted)}
.expert-workspace{display:grid;gap:18px}
.expert-panel{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px}
.expert-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.expert-panel-head h2{font-size:22px;letter-spacing:-.7px;margin:6px 0 0;line-height:1.2}.expert-panel-head>button{border:0;background:transparent;padding:7px 0;font-size:11px;color:var(--accent)}
.expert-species-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.expert-species{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);color:var(--text);cursor:pointer;text-align:left;transition:border-color .2s,background .2s}
.expert-species:hover{border-color:var(--accent)}.expert-rank{font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted)}
.expert-species img,.expert-species .radar-fish-image{width:100%!important;height:64px!important;object-fit:contain!important;max-width:100%!important;margin:0!important}
.expert-species-name{font-size:13px;line-height:1.4;min-height:36px;font-weight:700;overflow-wrap:anywhere}
.expert-score{font-size:34px;line-height:1;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--accent)}.expert-score small{font-size:11px;letter-spacing:0;color:var(--muted);margin-left:4px}
.expert-meter{display:block;width:100%;height:3px;background:var(--line);border-radius:3px;overflow:hidden}.expert-meter i{display:block;height:100%;background:var(--accent)}
.expert-species>small{font-size:9px;line-height:1.5;color:var(--muted)}
.expert-note,.expert-empty{font-size:11px;line-height:1.7;color:var(--muted);margin:14px 0 0}
.expert-chart{margin-top:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);padding:10px 0}.expert-chart svg{display:block;width:100%;height:auto;max-height:170px}.expert-chart-grid path{fill:none;stroke:var(--line);stroke-width:1}.expert-chart-line path{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round}.expert-chart-line circle{fill:var(--panel);stroke:var(--accent);stroke-width:2}
.expert-hours{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:14px}.expert-hours>div{display:flex;flex-direction:column;gap:6px;align-items:center;padding:8px 1px;min-width:0}.expert-hours small{font-size:10px;color:var(--muted)}.expert-hours b{font-size:19px;color:var(--accent);font-variant-numeric:tabular-nums}.expert-hours span{font-size:9px;color:var(--muted);white-space:nowrap}
.expert-context dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:18px}.expert-context dt{font-size:10px;line-height:1.5;color:var(--muted);margin-bottom:5px}.expert-context dd{font-size:14px;line-height:1.4;font-weight:650;margin:0;overflow-wrap:anywhere}.expert-context>p,.expert-context details p{font-size:11px;line-height:1.8;color:var(--muted)}.expert-context details{border-top:1px solid var(--line);margin-top:16px;padding-top:10px}.expert-context summary{font-size:12px;min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--accent)}
.expert-launch{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:26px;border:1px solid var(--accent);border-radius:16px;background:var(--panel2)}.expert-launch h2{font-size:29px;line-height:1.2;letter-spacing:-1px;margin:10px 0}.expert-launch p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 20px}.expert-launch button{width:100%}
html[data-view="professional"] .pro-tool-list{gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}
html[data-view="professional"] .pro-tool-list>.pro-tool-btn{border:0;border-bottom:1px solid var(--line);border-radius:0!important;box-shadow:none!important}
html[data-view="professional"] .owner-links{border-bottom:1px solid var(--line);padding-bottom:12px}
html[data-view="professional"] .map-stage-card{border-radius:16px!important;box-shadow:none!important}
html[data-view="professional"] .map-mini-card{border-radius:12px!important;box-shadow:none!important}
html[data-view="professional"] .content button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@keyframes expert-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:760px){.expert-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.expert-workspace{grid-template-columns:repeat(2,minmax(0,1fr))}.expert-species img,.expert-species .radar-fish-image{height:74px!important}.expert-species-name{font-size:15px}.expert-species{padding:18px}}
@media(min-width:1100px){html[data-view="professional"] body.pro-ui .app-shell{padding-left:124px!important}html[data-view="professional"] body.pro-ui .bottom-nav{left:18px!important;top:140px!important;bottom:auto!important;right:auto!important;transform:none!important;width:96px!important;display:flex!important;flex-direction:column!important;padding:9px!important;gap:8px!important}html[data-view="professional"] .bottom-nav .nav-item{width:100%;min-height:76px}.expert-home{padding:22px 12px}.expert-intro h1{font-size:62px}}
@media(max-width:420px){.expert-panel{padding:16px}.expert-species-grid{gap:6px}.expert-species{padding:10px}.expert-species-name{font-size:11px}.expert-score{font-size:29px}.expert-species img,.expert-species .radar-fish-image{height:49px!important}.expert-panel-head h2{font-size:20px}.expert-coast{gap:10px}.expert-choose{max-width:100px;font-size:11px}.expert-intro{gap:8px}.expert-exit{max-width:100px}.expert-metrics>div{padding:17px 10px}}
@media(prefers-reduced-motion:reduce){.expert-home{animation:none}.expert-species{transition:none}}

/* Black Edition: independent of the saved theme. Leaving PRO restores it. */
html:root[data-view="professional"]{
 --bg:#000!important;--panel:#090909!important;--panel2:#141414!important;--panel3:#202020!important;
 --text:#f5f5f5!important;--muted:#a3a3a3!important;--line:#292929!important;
 --accent:#e4ff80!important;--accent2:#e4ff80!important;--pro-cta:#e4ff80!important;--pro-ink:#080a04!important;
 --theme-header:#000!important;--pro-header:#000!important;--glass-fill:#090909!important;--glass-edge:#292929!important;
 --glass-selected:#20251a!important;--studio-apricot:#e4ff80!important;--studio-ink:#f5f5f5!important;
 --studio-paper:#090909!important;--studio-ring:#e4ff80!important;--radius:10px!important;--shadow:none!important;
 color-scheme:dark;background:#000!important;
}
html:root[data-view="professional"] body.pro-ui{background:#000!important;background-image:none!important;color:#f5f5f5!important}
html:root[data-view="professional"] .ocean-background{display:none!important}
html:root[data-view="professional"] body.pro-ui #app{background:#000!important}
html:root[data-view="professional"] body.pro-ui #app .topbar{background:#000!important;border-bottom:1px solid #292929!important;padding-top:20px;padding-bottom:20px;box-shadow:none!important}
html:root[data-view="professional"] body.pro-ui :is(.topbar .icon-btn,.header-menu-toggle){background:#111!important;border:1px solid #333!important;border-radius:8px!important;color:#f5f5f5!important;box-shadow:none!important}
html:root[data-view="professional"] body.pro-ui .brand-copy strong{color:#f5f5f5!important;font-size:12px!important;letter-spacing:2px!important}
html:root[data-view="professional"] body.pro-ui .brand-copy span{color:#a3a3a3!important;font-size:10px!important}
html:root[data-view="professional"] body.pro-ui :is(.card,.loading-card,.forum-topic,.forum-post-card,.map-stage-card,.map-discovery-card,.pro-tool-list,.plan-card,.pulse-card,.glass-forum-composer,.sheet,.social-dialog,.mera-dialog,.species-info-dialog,.map-detail-card,.map-detail-loading,.profile-hero,.live-card){
 --panel:#090909!important;--panel2:#141414!important;--text:#f5f5f5!important;--muted:#a3a3a3!important;--line:#292929!important;--accent:#e4ff80!important;
 background:#090909!important;color:#f5f5f5!important;border:1px solid #292929!important;border-radius:10px!important;box-shadow:none!important;backdrop-filter:none!important;
}
html:root[data-view="professional"] body.pro-ui :is(.metric,.info-tile,.map-live-grid>div,.map-score-hero,.theme-choice,.mera-option,.social-fish-choice,.friend-card,.species-info-block,.species-info-grid div,.pro-category-card,.map-floating-top,.field,.secondary-btn,.social-pill,.coast-city-tabs button,.coast-district-tabs button,.owner-links button,.period-tabs button,.map-detail-actions button){background:#141414!important;color:#f5f5f5!important;border:1px solid #292929!important;border-radius:8px!important;box-shadow:none!important}
html:root[data-view="professional"] body.pro-ui :is(.primary-btn,.pro-session){background:#e4ff80!important;color:#080a04!important;border:0!important;border-radius:8px!important;box-shadow:none!important}
html:root[data-view="professional"] body.pro-ui :is(.coast-city-tabs button[aria-selected=true],.coast-city-tabs button[aria-pressed=true],.mera-option.selected,.social-pill.selected,.period-tabs button.active){background:#20251a!important;color:#e4ff80!important;border-color:#627333!important}
html:root[data-view="professional"] body.pro-ui :is(.metric b,.map-live-grid b,.map-live-grid strong,.map-score-number,.map-place-block h2,.timer-value,.radar-fish-copy b,h1,h2,h3){color:#f5f5f5!important}
html:root[data-view="professional"] body.pro-ui :is(.map-score-copy p,.metric small,.metric span,.radar-fish-copy small,.map-updated,.section-kicker,.plan-detail-line){color:#a3a3a3!important}
html:root[data-view="professional"] body.pro-ui #bottomNav{background:#080808!important;border:1px solid #303030!important;border-radius:10px!important;box-shadow:none!important;backdrop-filter:none!important}
html:root[data-view="professional"] body.pro-ui #bottomNav .nav-item{background:transparent!important;border:0!important;border-radius:6px!important;color:#888!important}
html:root[data-view="professional"] body.pro-ui #bottomNav .nav-item.active{background:#1a2010!important;color:#e4ff80!important;border:0!important}
html:root[data-view="professional"] body.pro-ui #bottomNav .nav-item small{color:inherit!important}
html:root[data-view="professional"] .expert-home{gap:0;padding-top:24px}
html:root[data-view="professional"] .expert-intro{padding:0 0 24px;align-items:center}
html:root[data-view="professional"] .expert-intro h1{font-size:clamp(52px,12vw,90px);line-height:.96;letter-spacing:-3px;margin:14px 0 0}
html:root[data-view="professional"] .expert-intro h1 span{display:block;margin-top:12px;font-size:15px;letter-spacing:0;font-weight:450;color:#a3a3a3}
html:root[data-view="professional"] .expert-eyebrow{font:500 9px/1.6 ui-monospace,SFMono-Regular,monospace;letter-spacing:1.5px;color:#aaa}
html:root[data-view="professional"] .expert-coast{padding:18px 0;border-bottom:0}
html:root[data-view="professional"] .expert-coast h2{font-size:23px;letter-spacing:-.6px}
html:root[data-view="professional"] :is(.expert-exit,.expert-choose,.expert-panel-head>button){border-radius:6px;background:transparent;color:#e4ff80}
html:root[data-view="professional"] .expert-signal{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:24px 0 30px;border-bottom:1px solid #292929}
.expert-signal>div:first-child{display:flex;flex-direction:column;align-items:flex-start}
.expert-signal strong{font-size:clamp(88px,22vw,150px);font-weight:650;line-height:1.08;letter-spacing:-7px;font-variant-numeric:tabular-nums;color:#e4ff80}
.expert-signal>div:first-child>span:last-child{font-size:12px;color:#b3b3b3;margin-top:6px}
.expert-signal-copy{padding-top:2px}.expert-signal-copy h2{font-size:20px;line-height:1.35;letter-spacing:-.5px;margin:16px 0}
.expert-signal-copy p{font-size:10px;line-height:1.8;color:#999}
.expert-signal-copy button{min-height:44px;background:transparent;color:#e4ff80;border:0;border-bottom:1px solid #444;padding:6px 0;font-size:12px}
html:root[data-view="professional"] .expert-metrics{border:0;border-radius:0;background:#292929;gap:1px;margin:0 0 20px}
html:root[data-view="professional"] .expert-metrics>div{background:#000;padding:20px 10px}
html:root[data-view="professional"] .expert-metrics b{font-family:ui-monospace,SFMono-Regular,monospace;font-size:18px;font-weight:500;letter-spacing:-1px}
html:root[data-view="professional"] .expert-safety{border:1px solid #303030;border-left:2px solid #e4ff80;background:#101010;border-radius:4px;margin-bottom:28px}
html:root[data-view="professional"] .expert-workspace{gap:0}
html:root[data-view="professional"] .expert-panel{padding:24px 0;background:#000;border:0;border-top:1px solid #292929;border-radius:0}
html:root[data-view="professional"] .expert-panel-head h2{font-size:21px;font-weight:550;letter-spacing:-.7px}
html:root[data-view="professional"] .expert-species-grid{display:flex;flex-direction:column;gap:0}
html:root[data-view="professional"] .expert-species{display:grid;grid-template-columns:22px 68px minmax(0,1fr) 56px;gap:8px 12px;align-items:center;border:0;border-bottom:1px solid #262626;border-radius:0;background:#000;padding:17px 0}
html:root[data-view="professional"] .expert-species img{height:40px!important;grid-column:2;grid-row:1/3}
html:root[data-view="professional"] .expert-rank{grid-column:1;grid-row:1/3}
html:root[data-view="professional"] .expert-species-name{grid-column:3;grid-row:1;min-height:0;font-size:14px;font-weight:550}
html:root[data-view="professional"] .expert-score{grid-column:4;grid-row:1/3;text-align:right;font-size:30px;color:#f5f5f5;letter-spacing:-1px}
html:root[data-view="professional"] .expert-score small{display:block;margin:4px 0 0;font:9px ui-monospace,monospace}
html:root[data-view="professional"] .expert-meter{grid-column:3;grid-row:2;height:2px;max-width:150px}
html:root[data-view="professional"] .expert-species>small{display:none}
html:root[data-view="professional"] .expert-launch{padding:28px 20px;background:#10110c;border:1px solid #444a32;border-radius:8px;margin-top:20px}
html:root[data-view="professional"] .expert-chart{border-radius:4px;background:#080808}
html:root[data-view="professional"] .expert-context dd{font-family:ui-monospace,SFMono-Regular,monospace;font-size:13px;font-weight:450}
@media(min-width:760px){html:root[data-view="professional"] .expert-workspace{gap:0 32px}.expert-signal-copy h2{font-size:30px}.expert-signal-copy p{font-size:12px}html:root[data-view="professional"] .expert-launch{margin-bottom:24px}}
@media(max-width:359px){html:root[data-view="professional"] .expert-species{grid-template-columns:18px 46px minmax(0,1fr) 44px;gap:7px}.expert-signal-copy h2{font-size:17px}html:root[data-view="professional"] .expert-metrics b{font-size:15px}}
