#shipbuilding .ship-workspace{padding:20px;min-width:0}
#shipbuilding .ship-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
#shipbuilding .ship-heading h1{font-size:23px;font-weight:400;margin:0 0 8px;color:#e6e9de}
#shipbuilding .ship-heading p,#shipbuilding .ship-note{font-size:11px;line-height:1.9;color:#a9bec2;margin:8px 0}
#shipbuilding .ship-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#shipbuilding .ship-tools button{font-size:11px;padding:9px 12px}
#ship-save-status{font-size:10px;color:#90dbcd;min-height:18px}
#shipbuilding .ship-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:start}
#shipbuilding .ship-categories{position:sticky;top:16px;background:#13272e;border:1px solid #45626d;padding:8px;min-width:0}
#shipbuilding .ship-categories h2{margin:-8px -8px 8px;padding:10px 12px;background:#52666e;border-left:3px solid #7565ff;font-size:12px;font-weight:400}
#shipbuilding .planner-categories{display:grid;gap:2px}
#shipbuilding .planner-categories button{display:flex;justify-content:space-between;gap:6px;align-items:center;border:0;border-radius:0;font-size:10px;line-height:1.8;text-align:left;padding:11px 9px;min-height:40px;background:transparent}
#shipbuilding .planner-categories small{color:#9aafb4;font-size:10px}
#shipbuilding .planner-categories button[aria-pressed=true]{border-left:3px solid #7565ff;background:#4933a0!important;color:#fff}
#shipbuilding .planner-categories button[aria-pressed=true] small{color:#dcefe9}
#shipbuilding .ship-main{min-width:0}
#shipbuilding .ship-box{background:#1f343c;border:1px solid #45626d;margin-bottom:18px;min-width:0}
#shipbuilding .ship-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#52666e;border-left:3px solid #7565ff;padding:10px 12px}
#shipbuilding .ship-section-head h2{margin:0;font-weight:400;font-size:12px;color:#eeeadd}
#shipbuilding .ship-section-head>span{font-size:10px;color:#e0e7e6}
#shipbuilding .planner-search{font-size:10px;padding:12px 14px 0}
#shipbuilding .planner-search input{display:block;width:100%;font-size:12px;min-height:40px;margin:7px 0 12px;background:#0b1429;border-radius:0}
#shipbuilding .planner-catalog{display:block;max-height:300px;overflow:auto;padding:0 14px 12px;scrollbar-color:#4b7b83 #0b1429}
#shipbuilding .planner-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:7px 8px;border:0!important;border-bottom:1px solid #3e5861!important;background:#20383f!important;box-shadow:none!important;border-radius:0!important}
#shipbuilding .planner-card:nth-child(even){background:#192d34!important}
#shipbuilding .planner-card-info{flex-direction:row;align-items:center;gap:9px;text-align:left;width:auto;padding:0;min-width:0;font-size:11px}
#shipbuilding .planner-card-info>span{min-width:0}
#shipbuilding .planner-card-info strong{font-size:11px;font-weight:400;line-height:1.8;display:block;overflow-wrap:anywhere}
#shipbuilding .planner-card-info small{font-size:10px;color:#9fb6bb}
#shipbuilding .planner-card-info .game-item-icon{width:34px;height:34px;transform:none;margin:0;flex-shrink:0}
#shipbuilding .planner-card>.primary{font-size:10px;min-height:32px;padding:6px 10px;white-space:nowrap}
#shipbuilding .ship-selection>.ship-note{padding:0 14px}
#shipbuilding .ship-selected-table{overflow:auto;max-height:400px}
#shipbuilding .ship-selected-table table{width:100%;border-collapse:collapse;min-width:580px;font-size:11px}
#shipbuilding .ship-selected-table th{background:#2b444d!important;font-size:10px;padding:8px}
#shipbuilding .ship-selected-table td{padding:8px;font-size:10px;vertical-align:middle}
#shipbuilding .ship-selected-table td:first-child{width:50%}
#shipbuilding .ship-selected-table td>small{display:block;color:#9fb4b9;font-size:9px;margin-top:4px}
#shipbuilding .ship-selected-table .game-item-reference{font-size:11px;line-height:1.6;background:transparent;box-shadow:none;padding:1px 4px;gap:7px}
#shipbuilding .ship-selected-table .game-item-icon{width:30px;height:30px}
#shipbuilding .planner-quantity{flex-wrap:nowrap;margin:0;gap:3px}
#shipbuilding .planner-quantity input{width:60px;border-radius:0;padding:5px 2px;font-size:11px}
#shipbuilding .planner-quantity button,#shipbuilding .ship-remove{font-size:12px;min-height:30px;padding:4px 8px;border-radius:0}
#shipbuilding .ship-excluded td:first-child{opacity:.4}
#shipbuilding .ship-selected-table td:nth-child(n+3),#shipbuilding .ship-selected-table th:nth-child(n+3){text-align:center}
#shipbuilding .ship-selection-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}
#shipbuilding .ship-selection-actions button,#shipbuilding .ship-selection-actions a{font-size:10px}
#shipbuilding .ship-selection-actions a{color:#82d3cb;text-decoration:none}
#shipbuilding .ship-empty{padding:24px 16px;font-size:12px;line-height:1.9;color:#c4d3d3}
#shipbuilding .ship-empty small{display:block;color:#9fb7bc;font-size:11px;margin-top:8px}
#shipbuilding .ship-summary-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:22px 0 12px}
#shipbuilding .ship-summary-head h2{font-size:13px;font-weight:400;margin:0;color:#ffdc72}
#shipbuilding .ship-summary-head>span{font-size:10px;color:#9db5ba}
#shipbuilding .ship-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
#shipbuilding .ship-stat-card{background:#13272e;border:1px solid #48588c;min-width:0;padding:0 10px 10px}
#shipbuilding .ship-stat-card h3{padding:9px 10px;margin:0 -10px 9px;background:#52666e;border-left:3px solid #7565ff;color:#eeeadd;font-size:11px;font-weight:400}
#shipbuilding .ship-stat-row{display:flex;align-items:baseline;justify-content:space-between;gap:9px;font-size:10px;line-height:1.8;padding:6px 0;border-bottom:1px solid #35515a}
#shipbuilding .ship-stat-row>span{color:#a9bec2;min-width:0;overflow-wrap:anywhere}
#shipbuilding .ship-stat-row strong{color:#e1e7df;font-weight:400;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#shipbuilding .ship-stat-card details{font-size:10px;margin-top:10px}
#shipbuilding .ship-stat-card summary{color:#86d1c8;cursor:pointer;font-size:10px;line-height:1.8}
#shipbuilding .ship-meter{height:5px;background:#314a51;margin:6px 0}
#shipbuilding .ship-meter span{display:block;height:100%;background:linear-gradient(90deg,#d1f764,#3bdbc0)}
#shipbuilding .ship-alerts:empty{display:none}
#shipbuilding .ship-alerts{margin:12px 0;padding:6px 12px;border-left:3px solid #7565ff;background:#3a352a;color:#f5dc9a;font-size:10px;line-height:1.9}
#shipbuilding .ship-alerts p{margin:6px 0}
#shipbuilding .planner-results{margin:20px 0 16px;padding:14px;border:1px solid #48588c!important;background:#1f343c!important;min-width:0}
#shipbuilding .planner-results h2,#shipbuilding .planner-results h3{font-size:12px;font-weight:400}
#shipbuilding .planner-result-head h2{margin:0 0 8px}
#shipbuilding .planner-mode button{font-size:10px;padding:8px 10px}
#shipbuilding .planner-results .source-note,#shipbuilding .planner-short-note,#shipbuilding .planner-warnings,#shipbuilding .notice{font-size:10px;line-height:1.9}
#shipbuilding .planner-compact-table{font-size:10px}
#shipbuilding .planner-compact-table th{font-size:10px}
#shipbuilding .planner-compact-table .game-item-reference{font-size:11px}
#shipbuilding .planner-stock summary{font-size:11px}
#planner-detail,#planner-link-dialog{background:#182c33!important;color:#d6e0df;border:1px solid #65b9b7;box-shadow:0 14px 50px #0008;backdrop-filter:none!important;border-radius:0;width:calc(100% - 32px);max-width:650px;max-height:85vh;overflow:auto;padding:20px}
#planner-link-dialog::backdrop{background:#071216ba}
#planner-detail h2,#planner-link-dialog h2{font-size:18px;font-weight:400}
#planner-detail p,#planner-detail table,#planner-link-dialog p{font-size:12px;line-height:1.8}
#planner-detail th,#planner-detail td{font-size:11px;padding:7px 10px}
#planner-detail .data-table{max-height:300px;overflow:auto}
#planner-link-field{width:100%;box-sizing:border-box;font:12px Arial,sans-serif;background:#13272e;color:#d6e0df;border:1px solid #48588c;padding:12px;margin-bottom:14px}
@media(min-width:1700px){#shipbuilding .ship-main{display:grid;grid-template-columns:minmax(350px,.85fr) minmax(500px,1.4fr);column-gap:18px;align-items:start}#shipbuilding .ship-part-picker{grid-row:1/3}#shipbuilding .planner-catalog{max-height:650px}#shipbuilding .ship-selection{grid-column:2}#shipbuilding .ship-summary{grid-column:2}#shipbuilding .ship-summary-head{margin-top:0}#shipbuilding .ship-main>.planner-results,#shipbuilding .ship-main>.ship-note{grid-column:1/-1}}
@media(max-width:1200px){#shipbuilding .ship-layout{grid-template-columns:150px minmax(0,1fr)}#shipbuilding .ship-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#shipbuilding .ship-heading{align-items:start;flex-direction:column}}
@media(max-width:850px){#shipbuilding .ship-workspace{padding:14px}#shipbuilding .ship-layout{grid-template-columns:minmax(0,1fr)}#shipbuilding .ship-categories{position:static}#shipbuilding .planner-categories{grid-template-columns:repeat(2,minmax(0,1fr))}#shipbuilding .ship-summary-head{align-items:start;flex-direction:column}}
@media(max-width:480px){#shipbuilding .ship-stat-grid{grid-template-columns:minmax(0,1fr)}#shipbuilding .ship-selection-actions{flex-wrap:wrap}#shipbuilding .ship-heading h1{font-size:20px}}
