.sy-dialog{--sy-rim:#3d647c;--sy-muted:#afbfcd;--sy-cyan:#00b9ff;box-sizing:border-box;width:min(720px,calc(100vw - 24px));max-width:100vw;max-height:96dvh;overflow:auto;overscroll-behavior:contain;margin:auto;padding:16px 16px 24px;border:1px solid #7590a4;border-radius:14px;background:radial-gradient(ellipse at 0 0,#08293e88,transparent 50%),linear-gradient(140deg,#041521,#00111b 70%,#061c2a);color:#f4f6fa;box-shadow:0 20px 80px #000b;font-family:'Arial Narrow','Segoe UI',Arial,sans-serif;font-size:16px;color-scheme:dark;scrollbar-color:#3c5b71 #02131e}
.sy-dialog *{box-sizing:border-box;min-width:0}
.sy-dialog button,.sy-dialog input{font:inherit;color:inherit;touch-action:manipulation}
.sy-dialog button{cursor:pointer;min-height:44px;border:1px solid #3a5d75;background:linear-gradient(#19364b,#0a2132);border-radius:8px;box-shadow:inset 0 1px 1px #a4d0ed18}
.sy-dialog button:disabled{cursor:default;opacity:.5}
.sy-dialog button:focus-visible,.sy-dialog input:focus-visible,.sy-dialog summary:focus-visible{outline:2px solid #d9f6ff;outline-offset:3px}
.sy-dialog h2,.sy-dialog h3,.sy-dialog h4,.sy-dialog p{margin:0;color:inherit;line-height:1.3;overflow-wrap:normal}
.sy-dialog .sy-icon{display:block;flex:none;width:26px;height:26px}
.sy-header{display:grid;grid-template-columns:44px auto minmax(165px,1fr);align-items:start;gap:12px;margin-bottom:18px}
.sy-header h2{font-size:32px;font-weight:750;line-height:44px;letter-spacing:-.7px}
.sy-dialog .sy-back{width:44px;height:44px;padding:8px;border-color:#4286a8;background:linear-gradient(140deg,#0a314b,#052036)}
.sy-header-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px;padding-top:1px;font-size:14px;font-variant-numeric:tabular-nums}
.sy-header-resource{display:flex;gap:4px;align-items:center;justify-content:flex-end;white-space:nowrap}
.sy-header-resource .sy-icon{width:24px;height:24px;filter:drop-shadow(0 1px 2px #0008)}
.sy-header-resource:nth-child(4){grid-column:2}
.sy-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.sy-dialog .sy-tab{display:flex;justify-content:center;align-items:center;gap:9px;min-height:52px;padding:8px 4px;font-size:18px;font-weight:650;color:#bec8d6;background:linear-gradient(170deg,#062035,#031623);border-color:#173d55}
.sy-tab .sy-icon{width:27px;height:27px}
.sy-dialog .sy-tab[aria-selected=true],.sy-dialog .sy-category[aria-pressed=true]{border-color:#10c1ff;color:#fff;background:linear-gradient(#0c4269,#073755 65%,#075581);box-shadow:inset 0 -3px 8px #00c5ff66,0 0 4px #00baff}
.sy-categories{display:grid;grid-template-columns:repeat(5,minmax(72px,1fr));gap:7px;overflow-x:auto;padding:2px 1px 7px;scrollbar-width:thin}
.sy-dialog .sy-category{padding:0 0 5px;border-color:#315c76;background:linear-gradient(#173749,#061621);font-size:13px;overflow:hidden;line-height:1.15;white-space:nowrap}
.sy-category span{display:block;padding:0 2px;overflow-wrap:normal}
.sy-picture{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at 75% 35%,#1c435d55,transparent 55%),linear-gradient(160deg,#183a51,#061a29 58%,#04121d)}
.sy-picture:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(170deg,transparent,transparent 11px,#7dc6eb0c 12px,transparent 13px);pointer-events:none}
.sy-picture img{position:relative;display:block;object-fit:contain;filter:drop-shadow(1px 5px 4px #000a);transform:rotate(62deg)}
.sy-category-picture{height:48px;margin-bottom:4px;background-color:#0a2233}
.sy-category-picture img{height:92px;width:50px}
.sy-category-title{display:flex;align-items:center;gap:10px;font-size:22px;margin:7px 0 12px!important}
.sy-ship-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:9px}
.sy-dialog .sy-ship-card{position:relative;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;padding:2px 2px 5px;text-align:left;background:linear-gradient(#0e2637,#03121e);border:2px solid var(--sy-quality,#346480);border-radius:8px;box-shadow:inset 0 0 0 1px #bdd9e84d}
.sy-ship-card strong{display:block;padding:5px 5px 2px;font-size:16px;line-height:1.15;font-weight:700;overflow-wrap:anywhere}
.sy-role{display:block;padding:0 5px;font-size:13px;line-height:1.15;color:#e5edf4;overflow-wrap:anywhere}
.sy-card-picture{height:86px;border-radius:4px 4px 0 0}
.sy-card-picture img{height:150px;width:65px}
.sy-picture-missing{color:#9cb3c7;text-align:center;font-size:13px}
.sy-dialog .sy-ship-card[aria-pressed=true]{border-color:#ffad27;box-shadow:0 0 5px #ff9c21,inset 0 0 0 1px #ffe4a2}
.sy-selection{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:27px;height:27px;border:1px solid #ffe6a1;border-radius:50%;background:linear-gradient(#ffc83d,#e98b00);box-shadow:0 1px 4px #0009;color:white}
.sy-selection .sy-icon{width:22px;height:22px;filter:drop-shadow(0 1px 1px #593100)}
.sy-panel{border:1px solid var(--sy-rim);border-radius:12px;background:linear-gradient(130deg,#062031aa,#02141f);overflow:hidden;margin-top:10px;box-shadow:inset 0 1px 1px #bce9ff08}
.sy-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:11px 13px 8px}
.sy-detail h3{font-size:27px;font-weight:750;letter-spacing:-.4px}
.sy-detail-heading p{margin-top:3px;color:#e2eaf2;font-size:17px}
.sy-quality-badge{flex:none;margin-top:1px;padding:5px 9px;border:1px solid var(--sy-quality);border-radius:7px;color:var(--sy-quality);font-weight:600;background:#102737;font-size:15px}
.sy-hero-picture{height:250px;border-block:1px solid #294b62}
.sy-hero-picture img{height:360px;width:145px;filter:drop-shadow(3px 10px 7px #000b)}
.sy-hero-picture.sy-picture-missing{font-size:17px;letter-spacing:.02em}
.sy-image-status{padding:5px 13px!important;font-size:12px;color:#a9bfce!important;background:#041522}
.sy-description{padding:11px 13px 12px}
.sy-description>p{font-size:16px;line-height:1.45}
.sy-buff{display:flex;align-items:center;gap:13px;padding-top:10px;margin-top:11px;border-top:1px solid #35576a}
.sy-buff>.sy-icon{box-sizing:content-box;padding:9px;width:25px;height:25px;background:#173346;border:1px solid #3c5d74;border-radius:7px}
.sy-buff small{display:block;font-size:14px;color:#c5d3dd;line-height:1.3}
.sy-buff strong{display:block;margin-top:3px;font-size:17px;line-height:1.3}
.sy-description .sy-owned{color:#c3d5e1;font-size:13px;margin-top:9px}
.sy-description .sy-data-status{color:#a4b8c8;font-size:12px;margin-top:7px}
.sy-amount{padding:12px 13px}
.sy-section-title{display:block;font-weight:650;font-size:18px!important;line-height:1.3}
.sy-quantity-row{display:grid;grid-template-columns:44px 1fr 44px;gap:16px;align-items:center;margin-top:10px}
.sy-dialog .sy-step{width:44px;height:44px;padding:0;font-size:32px;line-height:1}
.sy-dialog .sy-number{width:100%;height:44px;min-height:44px;background:#061927;border:1px solid #45718b;border-radius:7px;text-align:center;font-size:22px;font-weight:650;appearance:textfield;-moz-appearance:textfield}
.sy-number::-webkit-inner-spin-button,.sy-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.sy-dialog .sy-number[aria-invalid=true]{border-color:#f47778}
.sy-dialog .sy-slider{display:block;appearance:none;-webkit-appearance:none;width:100%;height:32px;margin:8px 0 0;padding:0;background:transparent;cursor:pointer}
.sy-slider::-webkit-slider-runnable-track{height:9px;border-radius:8px;border:1px solid #2a4659;background:linear-gradient(to right,#ffb931 0%,#ed8f0a var(--sy-fill,0%),#1d3648 var(--sy-fill,0%));box-shadow:inset 0 1px 3px #0007}
.sy-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;margin-top:-11px;width:29px;height:29px;border-radius:50%;border:1px solid #ffdb83;background:linear-gradient(#ffc64a,#f29510);box-shadow:0 2px 4px #0008}
.sy-slider::-moz-range-track{height:9px;border-radius:8px;background:#1d3648}
.sy-slider::-moz-range-progress{height:9px;background:#f5a01b}
.sy-slider::-moz-range-thumb{width:27px;height:27px;border-radius:50%;border:1px solid #ffdb83;background:#f5a01b}
.sy-limits{display:flex;justify-content:space-between;color:#c5cfda;font-size:14px}
.sy-costs{padding:11px 12px 9px}
.sy-costs table{width:100%;border-collapse:collapse;font-size:16px;margin-top:8px;font-variant-numeric:tabular-nums}
.sy-costs th,.sy-costs td{border-top:1px solid #214154;padding:6px 0;line-height:1.25}
.sy-costs th{font-weight:400;text-align:left}
.sy-costs th .sy-icon{display:inline-block;vertical-align:middle;width:28px;height:28px;margin-right:7px}
.sy-needed,.sy-available{text-align:right;white-space:nowrap;padding-left:5px!important}
.sy-available{color:#bec8d5}
.sy-status{width:24px;text-align:right;font-weight:800;color:#89de72}
.sy-short .sy-needed,.sy-short .sy-status{color:#ff8181}
.sy-order{margin:13px 3px 0}
.sy-build-facts{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:14px;color:#c2d0dc}
.sy-test-values{color:#deb76d!important;font-size:13px!important;margin-top:7px!important}
.sy-reason{font-size:14px!important;line-height:1.4!important;margin:8px 0!important;color:#ffcf9b!important}
.sy-reason:empty{display:none}
.sy-dialog .sy-build{display:flex;align-items:center;justify-content:center;gap:13px;width:100%;min-height:61px;margin-top:11px;padding:11px 9px;font-size:23px;font-weight:700;border:1px solid #ffd85f;border-radius:12px;color:#fff;background:linear-gradient(#ffbb17,#f59a05 38%,#dd7109);box-shadow:inset 0 1px 3px #ffe9a278,0 3px 10px #0005;text-shadow:0 1px 2px #945300}
.sy-build>.sy-icon{width:33px;height:33px}
.sy-dialog .sy-build:disabled{opacity:.55;filter:saturate(.65)}
.sy-legacy{margin-top:20px;font-size:14px;color:#b6c8d7;border-top:1px solid #244257;padding-top:8px}
.sy-legacy summary{min-height:44px;padding:10px 0;cursor:pointer}
.sy-legacy-list{display:flex;gap:8px;flex-wrap:wrap}
.sy-dialog .sy-legacy-button{flex:1;min-width:80px;padding:7px}
.sy-legacy-button[aria-pressed=true]{border-color:#ffb53b}
.sy-queue-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:23px 2px 19px}
.sy-queue-heading h3{display:flex;align-items:center;gap:12px;font-size:23px}
.sy-queue-heading>span{white-space:nowrap;font-size:18px;color:#d9e2ee}
.sy-queue-card{display:grid;grid-template-columns:32% minmax(0,1fr);gap:15px;margin-top:10px;padding:10px}
.sy-queue-picture{min-height:124px;border:1px solid #7894a7;border-radius:7px}
.sy-queue-picture img{width:65px;height:170px}
.sy-position{position:absolute;bottom:2px;left:2px;display:grid;place-items:center;width:25px;height:27px;border:1px solid #a8b2bf;border-radius:6px;background:#73849499;color:white;font-size:20px}
.sy-queue-text{padding:3px 0}
.sy-queue-text h4{font-size:20px;font-weight:700;margin-bottom:4px;overflow-wrap:anywhere}
.sy-queue-text p{font-size:15px;margin-top:4px;color:#ccd7e3}
.sy-built-count{display:block;color:#ffb53b;font-size:18px;margin-top:6px}
.sy-queue-text progress{display:block;width:100%;height:10px;appearance:none;-webkit-appearance:none;border:0;border-radius:8px;background:#1b3547;overflow:hidden;margin-top:7px}
.sy-queue-text progress::-webkit-progress-bar{background:#1b3547;border-radius:8px;box-shadow:inset 0 1px 3px #0005}
.sy-queue-text progress::-webkit-progress-value{background:linear-gradient(#3bbdff,#0089d6);border-radius:8px}
.sy-queue-text progress::-moz-progress-bar{background:linear-gradient(#3bbdff,#0089d6);border-radius:8px}
.sy-countdown{text-align:right;font-variant-numeric:tabular-nums}
.sy-queue-free,.sy-queue-empty{margin-top:13px;padding:23px 12px;border:1px dashed #64829c;border-radius:9px;text-align:center;color:#b4c6d7}
.sy-queue-free>.sy-icon,.sy-queue-empty>.sy-icon{width:34px;height:34px;margin:0 auto 13px}
.sy-queue-free p{font-size:17px}
.sy-queue-empty h4{font-size:21px;margin-bottom:17px}
.sy-dialog .sy-empty-action,.sy-dialog .sy-refresh,.sy-dialog .sy-retry{padding:9px 14px;font-size:16px}
.sy-batch-note{font-size:14px!important;color:#b8c9d6!important;border:1px solid #2c4f65;border-radius:9px;padding:13px;margin-top:19px!important;line-height:1.5!important}
.sy-refresh{margin-top:14px}
.sy-notice{font-size:14px!important;line-height:1.45!important;color:#c9ddea!important;margin-top:13px!important}
.sy-notice:empty{display:none}
.sy-retry{margin-top:10px}
.sy-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sy-picture{container-type:inline-size}
.sy-category-picture img{height:90cqi;width:23cqi}
.sy-card-picture img{height:95cqi;width:24cqi}
.sy-queue-picture{height:120px;min-height:120px}
.sy-queue-picture img{height:95cqi;width:24cqi}
@media(max-width:540px){.sy-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;padding:calc(13px + env(safe-area-inset-top,0px)) max(13px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(13px,env(safe-area-inset-left,0px));border-radius:0;border:0}.sy-header{gap:9px;grid-template-columns:40px auto minmax(150px,1fr);margin-bottom:17px}.sy-dialog .sy-back{width:40px;height:44px}.sy-header h2{font-size:28px}.sy-header-resources{gap:7px 6px;font-size:12px}.sy-header-resource .sy-icon{width:22px;height:22px}.sy-tabs{gap:7px}.sy-dialog .sy-tab{font-size:16px;gap:7px}.sy-tab .sy-icon{width:23px;height:23px}.sy-categories{grid-template-columns:repeat(5,minmax(66px,1fr));gap:6px}.sy-dialog .sy-category{font-size:12px}.sy-ship-grid{gap:9px}.sy-ship-card strong{font-size:14px;padding-inline:4px}.sy-role{font-size:12px;padding-inline:4px}.sy-card-picture{height:74px}.sy-card-picture img{height:130px;width:55px}.sy-detail h3{font-size:24px}.sy-detail-heading{padding:10px 11px 8px;gap:6px}.sy-detail-heading p{font-size:15px}.sy-quality-badge{font-size:13px;padding:5px 7px}.sy-hero-picture{height:218px}.sy-hero-picture img{height:310px;width:125px}.sy-section-title{font-size:17px!important}.sy-costs{padding-inline:9px}.sy-costs table{font-size:14px}.sy-costs th .sy-icon{width:24px;height:24px;margin-right:5px}.sy-needed,.sy-available{padding-left:3px!important}.sy-description>p{font-size:15px}.sy-dialog .sy-build{font-size:21px}.sy-queue-heading h3{font-size:21px}.sy-queue-heading{gap:6px}.sy-queue-card{gap:12px;padding:9px}.sy-queue-text h4{font-size:18px}.sy-queue-picture{min-height:117px}.sy-queue-heading>span{font-size:16px}}
@media(max-width:355px){.sy-dialog{padding-left:10px;padding-right:10px}.sy-header{gap:6px;grid-template-columns:38px auto minmax(142px,1fr)}.sy-header h2{font-size:25px}.sy-header-resources{font-size:11px;gap:7px 3px}.sy-header-resource .sy-icon{width:19px;height:21px}.sy-dialog .sy-tab{font-size:14px;gap:5px}.sy-categories{grid-template-columns:repeat(5,66px)}.sy-ship-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sy-card-picture{height:87px}.sy-ship-card strong{font-size:16px}.sy-role{font-size:13px}.sy-detail h3{font-size:22px}.sy-costs table{font-size:13px}.sy-costs th .sy-icon{width:21px;height:22px;margin-right:3px}.sy-queue-heading h3{font-size:18px}.sy-queue-heading h3 .sy-icon{width:23px}.sy-queue-card{grid-template-columns:30% minmax(0,1fr);gap:9px}.sy-queue-picture img{width:52px;height:135px}}
.sy-dialog .sy-category-picture img{height:90cqi;width:23cqi}
.sy-dialog .sy-card-picture img,.sy-dialog .sy-queue-picture img{height:95cqi;width:24cqi}

/* Right dry dock only. No visible overlay; native scene panning and click suppression remain active. */
#harbor-beta-panel .hb-drydock-hit{position:absolute;z-index:2;left:63.61%;top:39.55%;width:13.87%;height:16.89%;min-width:44px;min-height:44px;clip-path:polygon(57% 0,100% 23%,48% 100%,0 72%);padding:0;margin:0;background:transparent!important;border:0!important;box-shadow:none!important;cursor:pointer;touch-action:auto}
#harbor-beta-panel .hb-drydock-hit:focus-visible{outline:3px solid #a2f3ff;outline-offset:-4px;background:#40c8ff18!important}
