/* Harbor workbench: existing icon art, real progression, no new mechanics.
   All selectors are scoped; this does not affect combat or legacy clients. */
.harbor-research-board{color:#2c4938;font-size:13px;min-width:0}
.harbor-research-board .research-board-hint{margin:0 0 12px;font-size:12px;line-height:1.55;color:#52674e}
.harbor-research-board .research-board-hint b{font-weight:700}
.harbor-research-board .research-stations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.harbor-research-board .research-station{min-width:0;padding:13px;border:2px solid #9eaf83;border-bottom:5px solid #6e8659;border-radius:15px;background:linear-gradient(145deg,#fffbed,#f2ecd5);box-shadow:inset 0 2px 0 #fffff1,0 3px 0 #1b35221c;position:relative}
.harbor-research-board .research-station-head{display:flex;gap:11px;align-items:center;min-width:0}
.harbor-research-board .research-station-head>div{min-width:0;flex:1}
.harbor-research-board .research-station-head h3{font-size:17px;line-height:1.25;margin:0 0 4px;color:#2d4935}
.harbor-research-board .research-station-art{display:grid;place-items:center;flex:none;width:54px;height:54px;border:1px solid #b3c58b;border-bottom:3px solid #8fa46c;border-radius:14px;background:radial-gradient(ellipse at 50% 40%,#eff8d1,#cbdba0);transform:rotate(-4deg)}
.harbor-research-board .research-station-art>.icon{width:42px;height:42px;transform:rotate(4deg)}
.harbor-research-board .research-level-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#617453}
.harbor-research-board .research-level-label b{font:800 14px/1.3 system-ui;color:#375435;white-space:nowrap}
.harbor-research-board .research-rank-track{display:flex;gap:5px;margin:13px 0 12px;position:relative}
.harbor-research-board .research-rank-step{flex:1;display:flex;align-items:center;gap:5px;min-width:0}
.harbor-research-board .research-rank-step:after{content:'';height:3px;background:#c7ceb1;flex:1;border-radius:3px}
.harbor-research-board .research-rank-step:last-child:after{display:none}
.harbor-research-board .research-rank-step i{display:grid;place-items:center;width:24px;height:24px;border:1px solid #b9c2a1;border-radius:7px;background:#ecefdf;font:700 12px/1 system-ui;color:#72815e;flex:none}
.harbor-research-board .research-rank-step i .icon{width:18px;height:18px}
.harbor-research-board .research-rank-step small{font-size:12px;white-space:nowrap;color:#6c7c5b}
.harbor-research-board .research-rank-step.is-earned i{background:#c8e58a;border-color:#799a4b;color:#334f2d;box-shadow:0 2px 0 #8baf55}
.harbor-research-board .research-rank-step.is-earned:after{background:#a5c96d}
.harbor-research-board .research-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
.harbor-research-board .research-path{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:0;min-height:44px;padding:10px 8px;border:1px solid #a9b796;border-bottom:3px solid #93a47d;border-radius:10px;background:#f8f6ea;color:#41533a;text-align:left;line-height:1.5;cursor:pointer;transition:background .12s,border-color .12s}
.harbor-research-board .research-path-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px}
.harbor-research-board .research-path-head b{font-size:14px;color:#344c34}
.harbor-research-board .research-path-head em{font-size:12px;font-style:normal;color:#6a775c}
.harbor-research-board .research-path>small{font-size:12px;line-height:1.55;overflow-wrap:break-word;color:#58684d}
.harbor-research-board .research-path.selected{border:2px solid #789751;border-bottom:3px solid #5f7d3f;background:#e6f0ca;padding:9px 7px 10px;box-shadow:inset 0 1px 0 #f8ffe4}
.harbor-research-board .research-path.selected .research-path-head em{background:#c5dd94;color:#354e2e;border-radius:4px;padding:0 4px}
.harbor-research-board .research-path:focus-visible,.harbor-research-board button:focus-visible{outline:3px solid #806794;outline-offset:3px}
.harbor-research-board .research-purchase{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px dashed #aebc93}
.harbor-research-board .research-price{font-size:12px;line-height:1.5;min-width:0;color:#526648}
.harbor-research-board .research-price b{color:#334f32;font-size:16px}
.harbor-research-board .research-upgrade{min-height:44px;min-width:116px;padding:8px 10px;gap:5px;font-size:12px;flex:none;justify-content:center}
.harbor-research-board .research-upgrade .icon{width:18px;height:18px;flex:none}
.harbor-research-board .research-upgrade:disabled{background:#dfe4d2;border-color:#a0ad8b;color:#57684c;opacity:1}
.harbor-research-board .is-complete .research-station-art{background:radial-gradient(ellipse at 50% 40%,#effac4,#bbd784)}
.harbor-research-board .research-reset{margin-top:15px;padding-top:12px;border-top:1px solid #acba90;text-align:center}
.harbor-research-board .research-reset .harbor-refund{min-height:44px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px}
.harbor-research-board .research-reset .icon{width:20px;height:20px}
.harbor-research-board .research-reset>small{display:block;font-size:12px;color:#69785b;line-height:1.5;margin-top:2px}
@media(max-width:719px){.harbor-research-board .research-stations{grid-template-columns:1fr;gap:12px}}
@media(max-width:360px){.harbor-research-board .research-station{padding:10px}.harbor-research-board .research-station-art{width:48px;height:48px}.harbor-research-board .research-station-art>.icon{width:38px;height:38px}.harbor-research-board .research-paths{gap:6px}.harbor-research-board .research-path{padding:8px 7px}.harbor-research-board .research-path.selected{padding:7px 6px 8px}.harbor-research-board .research-station-head h3{font-size:16px}.harbor-research-board .research-rank-track{margin:11px 0}.harbor-research-board .research-upgrade{min-width:108px;padding:8px}.harbor-research-board .research-price b{font-size:14px}}
@media(max-height:550px) and (orientation:landscape){.harbor-research-board .research-stations{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.harbor-research-board .research-station{padding:10px}.harbor-research-board .research-station-head h3{font-size:16px}.harbor-research-board .research-station-art{width:44px;height:44px}.harbor-research-board .research-station-art>.icon{width:36px;height:36px}.harbor-research-board .research-purchase{flex-wrap:wrap}.harbor-research-board .research-upgrade{flex:1}}
@media(prefers-reduced-motion:reduce){.harbor-research-board .research-path{transition:none}}
