.port-shell.port-desk{max-width:1440px;padding:18px 24px 32px;margin:auto}
.port-desk .port-header{padding:8px 0 14px;border-bottom:1px solid #dce8df;margin-bottom:18px}
.port-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#173d2b}
.port-brand img{width:42px;height:42px;object-fit:contain}
.port-brand span{display:grid;gap:2px}.port-brand small{color:#61766a}
.port-desk-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}
.port-side{position:sticky;top:16px;display:grid;gap:6px;background:#fff;border:1px solid #dae5dd;padding:12px;border-radius:14px}
.port-side a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;text-decoration:none;color:#365142;font-weight:600;min-height:44px}
.port-side a:hover,.port-side a[aria-current=page]{background:#e1f0e7;color:#00411e}
.port-side svg,.port-metric svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.port-main{min-width:0}.port-page-head{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:18px}
.port-page-head h1{margin:0}.port-page-head p{margin:5px 0 0}
.port-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.port-metric{display:flex;flex-direction:column;gap:8px;background:white;border:1px solid #d9e6dd;border-radius:13px;padding:15px;text-decoration:none;color:#193b29;min-height:122px}
.port-metric-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.port-metric svg{color:#0c6340;width:24px;height:24px}
.port-metric strong{font-size:1.65rem;font-variant-numeric:tabular-nums;line-height:1.15}
.port-metric small{color:#63776c}
.port-metric:hover{border-color:#4a916b}.port-metric.urgent{background:#fffaf0;border-color:#e9d5a9}
.port-board-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}
.port-board-grid section.card{min-width:0}.port-board-grid .card{padding:14px 16px}
.port-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.port-card-head h2{margin:0;font-size:1.05rem}.port-card-head a{font-size:.83rem;text-decoration:none;white-space:nowrap;color:#146444}
.port-bk-row,.port-due-row{display:grid;gap:6px;text-decoration:none;color:inherit;padding:12px 0;border-top:1px solid #e6ece8}
.port-bk-row:hover,.port-due-row:hover{color:#00633b}.port-row-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.port-route-text{color:#63776a;font-size:.88rem;overflow-wrap:anywhere}.port-bk-progress{display:flex;gap:6px;align-items:center;justify-content:space-between;font-size:.79rem;color:#53695b}
.port-progress-track{height:6px;background:#e1eae4;border-radius:8px;overflow:hidden}.port-progress-track i{display:block;height:100%;background:#14754a}
.port-status-pill{font-size:.75rem;border-radius:20px;padding:4px 8px;background:#e4efe7;color:#1d6642;white-space:nowrap}
.port-status-pill.pending{background:#f8ebd6;color:#885c16}
.port-empty{padding:20px 10px;text-align:center;color:#718477;font-size:.9rem}
.port-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.port-list-grid .port-bk-row{border:1px solid #dce6df;border-radius:12px;background:#fff;padding:14px}
.port-container{background:#fff}.port-container h3{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.booking-loading-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:.75rem}
.booking-cargo-picker{margin:1rem 0;padding:.75rem;border:1px solid #d1ded6;border-radius:.5rem}.booking-cargo-option{padding:.35rem;border-bottom:1px solid #e6ebe7}
.booking-weight-summary{display:flex;flex-wrap:wrap;gap:1rem;background:#e7f2eb;padding:.75rem;margin:.7rem 0;border-radius:.4rem}
.booking-loading-grid small{display:block}.booking-loading-grid input,.booking-loading-grid select{width:100%;min-width:0}.booking-cargo-picker[open] summary{margin-bottom:.6rem}
.port-photo-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.port-photo-group{border:1px solid #e1e8e3;padding:8px;border-radius:9px;min-width:0;background:#f8faf8}
.port-photo-heading{display:flex;justify-content:space-between;gap:6px;font-size:.83rem;color:#375242;margin-bottom:8px}
.port-photo-heading span{font-weight:bold;color:#60756a}.port-thumbnails{display:flex;flex-wrap:wrap;gap:8px;min-height:36px;align-items:center}
.port-thumb{position:relative;width:68px;height:68px;flex:0 0 68px;margin:0;border-radius:8px;background:#e9eeea;border:1px solid #d8e3dc}
.port-thumb a{display:block;width:100%;height:100%;border-radius:7px;overflow:hidden}.port-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.port-thumb-delete{position:absolute;inset-inline-end:-4px;top:-4px;width:26px;height:26px;padding:0;border-radius:50%;border:2px solid white;background:#a12c29;color:white;line-height:20px;font-size:19px;cursor:pointer;box-shadow:0 1px 4px #0003}
.port-thumb-delete:hover{background:#7d1f1c}
.port-container-actions{display:flex;flex-wrap:wrap;align-items:end;justify-content:flex-end;gap:8px;border-top:1px solid #dfe8e1;margin-top:14px;padding-top:12px}
.port-inline-upload{display:flex;flex-wrap:wrap;gap:8px;align-items:end;flex:1}.port-inline-upload label{min-width:120px;flex:1}.port-inline-upload input,.port-inline-upload select{width:100%;min-width:0}
.port-save-bar{position:sticky;bottom:0;background:#f8fbf8f5;border:1px solid #d8e3db;border-radius:12px;padding:12px;display:flex;justify-content:space-between;align-items:center;gap:10px;z-index:3;margin-top:14px;box-shadow:0 -4px 18px #123a2010}
.port-desk input[type=file]{max-width:100%;font-size:.85rem}
@media(max-width:1050px){.port-desk-grid{grid-template-columns:180px minmax(0,1fr);gap:12px}.port-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.port-shell.port-desk{padding:12px 12px 24px}.port-desk-grid{display:block}.port-side{position:static;display:flex;overflow-x:auto;gap:4px;margin-bottom:16px;padding:6px;scrollbar-width:thin}.port-side a{flex:0 0 auto;padding:9px 10px;gap:5px;font-size:.83rem}.port-side svg{width:19px;height:19px}.port-metric{min-height:100px;padding:12px}.port-metrics{gap:8px}.port-board-grid,.port-list-grid{grid-template-columns:1fr}.port-page-head{flex-wrap:wrap}.port-photo-groups{grid-template-columns:1fr}.port-thumb{width:64px;height:64px;flex-basis:64px}.port-save-bar{flex-wrap:wrap}.port-save-bar button{flex:1}.port-container-actions button{width:100%}.port-desk .port-header{gap:12px}}

.port-local-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.port-local-nav a{padding:8px 12px;border-radius:8px;background:#eaf3ed;color:#164b32;text-decoration:none;font-weight:600;font-size:.84rem}
@media(max-width:760px){.port-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.port-side a{min-width:0;justify-content:center;text-align:center;flex-direction:column;gap:4px;padding:7px 4px;font-size:.76rem;line-height:1.3}.port-side a span{overflow-wrap:anywhere}.port-card-head{flex-wrap:wrap}}
.port-photo-add{display:block;font-size:.8rem;margin-top:8px}.port-photo-add input{max-width:100%;display:block;margin:5px 0}.container-photo-dialog{width:min(96vw,1400px);height:94vh;max-width:none;max-height:none;padding:12px;background:#101915;color:white;border:0;border-radius:12px}.container-photo-dialog::backdrop{background:#000b}.container-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;height:44px}.container-gallery-toolbar input{max-width:35%}.container-gallery-toolbar button,.container-gallery-frame button{background:#243b2e;color:white;border:1px solid #587061;border-radius:6px;font-size:24px;min-width:38px;padding:6px;cursor:pointer}.container-gallery-frame{display:flex;align-items:center;height:calc(100% - 44px);gap:6px;direction:ltr}.container-gallery-image{flex:1;min-width:0;height:100%;display:grid;place-items:center;overflow:auto}.container-gallery-image img{max-width:100%;max-height:80vh;object-fit:contain;transform-origin:center}
