:root{--navy:#082c3b;--deep:#061f2b;--sea:#176b78;--foam:#edf6f3;--sand:#d8b879;--paper:#f7f5ef;--ink:#16333d;--muted:#708087;--line:rgba(8,44,59,.13);--white:#fff;--shadow:0 24px 60px rgba(6,31,43,.12)}
*{box-sizing:border-box}html{min-height:100%;background:var(--paper)}body{margin:0;min-height:100vh;color:var(--ink);font-family:"DM Sans",sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-weight:700;font-size:.68rem;color:#e7ce9b}.eyebrow.ink{color:var(--sea)}
.wordmark{display:inline-flex;align-items:center;gap:12px;color:white;letter-spacing:.15em;font-size:.75rem;font-weight:600}.wordmark b{color:var(--sand)}.mark{width:42px;height:42px;border:1px solid rgba(255,255,255,.35);display:grid;place-items:center;border-radius:50%;font:700 1.25rem "Playfair Display",serif;color:var(--sand)}
.brand-logo{width:44px;height:44px}.nav-label{margin:22px 13px 7px;color:rgba(255,255,255,.35);font-size:.58rem;text-transform:uppercase;letter-spacing:.16em;font-weight:700}
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(420px,.92fr)}.login-story{position:relative;min-height:100vh;padding:52px 7vw;display:flex;flex-direction:column;justify-content:space-between;color:white;background:linear-gradient(90deg,rgba(4,29,40,.93),rgba(4,29,40,.3)),linear-gradient(0deg,rgba(4,29,40,.5),transparent 55%),url('../images/hero-mare-nave.jpg') center/cover}.story-copy{max-width:630px;margin:auto 0}.story-copy h1{font:700 clamp(4.6rem,8vw,8rem)/.86 "Playfair Display",serif;margin:20px 0 28px;letter-spacing:-.05em}.story-copy p{max-width:530px;font-size:1.05rem;line-height:1.8;color:rgba(255,255,255,.82)}.story-foot{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.25);padding-top:20px;font-size:.7rem;text-transform:uppercase;letter-spacing:.13em;color:rgba(255,255,255,.65)}
.login-panel{display:grid;place-items:center;padding:48px;background:radial-gradient(circle at 80% 10%,rgba(216,184,121,.18),transparent 35%),var(--paper)}.login-card{width:min(440px,100%)}.login-card h2{font:700 3.1rem "Playfair Display",serif;margin:13px 0 5px;letter-spacing:-.035em}.muted{color:var(--muted);margin:0 0 34px}.mobile-wordmark{display:none}.login-form{display:grid;gap:10px}.login-form label{margin-top:12px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.login-form input{width:100%;border:1px solid var(--line);background:rgba(255,255,255,.7);border-radius:4px;padding:16px 17px;outline:none;color:var(--ink)}.login-form input:focus{border-color:var(--sea);box-shadow:0 0 0 3px rgba(23,107,120,.1)}.login-form button{margin-top:22px;padding:17px 20px;border:0;background:var(--navy);color:white;display:flex;justify-content:space-between;cursor:pointer;font-weight:700}.login-form button:hover{background:var(--sea)}.privacy{text-align:center;color:var(--muted);font-size:.72rem;margin-top:22px}.alert,.notice{padding:13px 15px;border-left:3px solid #b95454;background:#fff0ef;color:#843838;margin:0 0 15px;font-size:.86rem}.notice{border-color:var(--sand);background:#fff8e9;color:#72561c;margin:0 0 25px}
.app-shell{min-height:100vh;display:grid;grid-template-columns:245px 1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:var(--deep);padding:28px 22px;display:flex;flex-direction:column;color:white}.wordmark.compact{margin:0 8px 45px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{padding:12px 13px;color:rgba(255,255,255,.6);font-size:.86rem;border-radius:5px}.sidebar nav a span{display:inline-block;width:26px;color:var(--sand)}.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.08);color:white}.profile-mini{margin-top:auto;padding:18px 5px;border-top:1px solid rgba(255,255,255,.12);display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--sand);color:var(--deep);font-weight:700}.profile-mini div{min-width:0}.profile-mini strong,.profile-mini small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-mini strong{font-size:.76rem}.profile-mini small{font-size:.65rem;color:rgba(255,255,255,.5);margin-top:3px}.logout{border:0;background:transparent;color:rgba(255,255,255,.5);cursor:pointer;padding:5px;width:100%;text-align:left}.logout:hover{color:white}
.dashboard-main{grid-column:2;min-width:0;padding:52px clamp(28px,5vw,74px);background:var(--paper);min-height:100vh}.dashboard-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;margin-bottom:38px}.dashboard-head h1{font:700 clamp(2.5rem,4vw,4.2rem) "Playfair Display",serif;letter-spacing:-.04em;margin:8px 0 5px}.dashboard-head p{color:var(--muted);margin:0}.date-chip{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--ink);padding:8px 0}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:15px}.metric{min-height:170px;padding:25px;display:flex;flex-direction:column}.metric small{text-transform:uppercase;letter-spacing:.12em;font-weight:700;font-size:.65rem}.metric strong{font:700 3.5rem "Playfair Display",serif;margin:auto 0 2px}.metric span{font-size:.75rem;opacity:.7}.metric.sea{background:var(--sea);color:white}.metric.sand{background:#e1c994}.metric.ink{background:var(--navy);color:white}.dashboard-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:15px;margin-bottom:15px}.panel{background:white;padding:28px;box-shadow:0 12px 40px rgba(6,31,43,.06)}.panel h2{font:700 1.7rem "Playfair Display",serif;margin:7px 0 9px}.panel p{color:var(--muted);line-height:1.6}.route-panel{min-height:285px}.route-line{display:grid;grid-template-columns:16px 1fr 16px 1fr 16px;align-items:center;margin-top:45px}.route-line>span:not(.route-dot){height:1px;background:#c9d5d3}.route-dot{width:12px;height:12px;border:2px solid #b9c6c4;border-radius:50%;background:white}.route-dot.done{background:var(--sea);border-color:var(--sea)}.route-dot.current{border-color:var(--sand);box-shadow:0 0 0 6px rgba(216,184,121,.22)}.photo-panel{background:linear-gradient(0deg,rgba(5,31,43,.72),rgba(5,31,43,.05)),url('../images/hero-mare-nave.jpg') center/cover;display:flex;align-items:flex-end;color:white}.photo-panel h2{font-size:2rem;max-width:310px}.panel-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:20px}.panel-title h2{margin-bottom:0}.count{color:var(--muted);font-size:.75rem}.utility-row{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:12px;padding:15px 0;border-top:1px solid var(--line)}.utility-icon{width:35px;height:35px;border-radius:50%;background:var(--foam);display:grid;place-items:center}.utility-row strong,.utility-row small{display:block}.utility-row strong{font-size:.85rem}.utility-row small{color:var(--muted);font-size:.7rem}.status{text-transform:uppercase;letter-spacing:.08em;font-size:.62rem;font-weight:700;padding:6px 9px;background:#eee}.status.attiva{background:#e5f4ec;color:#297250}.empty-state{padding:30px 0;color:var(--muted);border-top:1px solid var(--line)}
.page-head{margin-bottom:34px}.page-head h1{font:700 clamp(2.5rem,4vw,4rem) "Playfair Display",serif;letter-spacing:-.04em;margin:8px 0 5px}.page-head p{color:var(--muted);margin:0}.detail-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:15px}.identity-card{text-align:center}.large-avatar{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:var(--navy);color:var(--sand);font:700 2rem "Playfair Display",serif}.role-badge{display:inline-block;padding:5px 9px;background:var(--foam);color:var(--sea);font-size:.66rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.data-list{display:grid;grid-template-columns:1fr 1fr}.data-list div{padding:18px;border-bottom:1px solid var(--line)}.data-list small,.data-list strong{display:block}.data-list small{color:var(--muted);text-transform:uppercase;letter-spacing:.09em;font-size:.62rem}.data-list strong{margin-top:7px}.table-panel{padding:0}.table-panel .panel-title{padding:25px 28px;margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{padding:12px 18px;background:var(--foam);font-size:.62rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}td{padding:16px 18px;border-bottom:1px solid var(--line);font-size:.8rem}td small{display:block;color:var(--muted);margin-top:3px}.pagination{display:flex;justify-content:space-between;padding:18px 28px;font-size:.75rem}.pagination a{color:var(--sea);font-weight:700}.pagination span{color:var(--muted)}.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.ship-card{position:relative;min-height:230px;overflow:hidden;padding:28px;background:var(--navy);color:white}.ship-card:nth-child(3n+2){background:var(--sea)}.ship-card:nth-child(3n+3){background:#b99a60}.ship-card h2{font:700 1.8rem "Playfair Display",serif;margin:9px 0}.ship-card p,.ship-card small{color:rgba(255,255,255,.7)}.ship-number{position:absolute;right:15px;bottom:-28px;color:rgba(255,255,255,.08);font:700 8rem "Playfair Display",serif}.route-cards{display:grid;gap:12px}.port-card{display:grid;grid-template-columns:100px 1fr;gap:24px;align-items:center;background:white;padding:24px;box-shadow:0 10px 30px rgba(6,31,43,.05)}.port-level{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:var(--sand);font:700 1.8rem "Playfair Display",serif}.port-card h2{font:700 1.5rem "Playfair Display",serif;margin:5px 0}.port-card p{color:var(--muted);margin:0}.reward{display:inline-block;margin-top:10px;color:var(--sea)}
.network-map{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.member-node{position:relative;display:flex;align-items:center;gap:12px;background:white;padding:18px;border-left:3px solid #c7d2d0;box-shadow:0 8px 24px rgba(6,31,43,.05)}.member-node.current{border-color:var(--sand);background:#fffaf0}.node-avatar{flex:0 0 auto;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:var(--sand);font-weight:700}.member-node strong,.member-node small{display:block}.member-node strong{font-size:.8rem}.member-node small{color:var(--muted);font-size:.66rem;margin-top:3px}.parent-ref{position:absolute;right:9px;top:7px;color:#9aabaa;font-size:.55rem;text-transform:uppercase}
.voyage-hero{min-height:360px;margin-bottom:15px;padding:38px;display:flex;flex-direction:column;justify-content:space-between;color:white;background:linear-gradient(90deg,rgba(5,31,43,.9),rgba(5,31,43,.18)),linear-gradient(0deg,rgba(5,31,43,.45),transparent 60%),url('../images/hero-mare-nave.jpg') center 44%/cover;box-shadow:var(--shadow)}.voyage-copy{max-width:560px}.voyage-copy h2{font:700 3rem "Playfair Display",serif;margin:12px 0}.voyage-copy p{max-width:510px;line-height:1.65;color:rgba(255,255,255,.82)}.voyage-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.22)}.voyage-facts div{min-width:0;padding:16px 18px;background:rgba(5,31,43,.78)}.voyage-facts small,.voyage-facts strong{display:block}.voyage-facts small{text-transform:uppercase;font-size:.6rem;font-weight:700;letter-spacing:.12em;color:rgba(255,255,255,.65)}.voyage-facts strong{margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-code{font-size:clamp(1.5rem,3vw,2.6rem)!important;overflow-wrap:anywhere}.route-summary,.next-port{min-height:190px}.route-summary strong{color:var(--sea)}.next-port{background:var(--foam)}.ports-panel{margin-bottom:15px}.ports-title{gap:20px}.ports-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;color:var(--muted);font-size:.66rem;text-transform:uppercase;font-weight:700}.ports-legend span{display:flex;align-items:center;gap:6px}.ports-legend i,.port-dot{width:10px;height:10px;border-radius:50%;background:#a8b6b8}.ports-legend .completed,.journey-port.completed .port-dot{background:#3b9b72}.ports-legend .current,.journey-port.current .port-dot{background:#2587a0}.ports-legend .next,.journey-port.next .port-dot{background:#c99539}.ports-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.journey-port{min-width:0;display:grid;grid-template-columns:12px 1fr;align-items:start;gap:10px;padding:15px;border:1px solid var(--line);background:#fbfcfa}.journey-port.current{border-color:#2587a0;background:#edf8fa}.journey-port.next{border-color:#d3ae67;background:#fff9ec}.journey-port.completed{background:#eff8f3}.journey-port small,.journey-port strong,.journey-port span{display:block}.journey-port small{font-size:.57rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.journey-port strong{margin:4px 0;font:700 1rem "Playfair Display",serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.journey-port span{font-size:.66rem;color:var(--muted);line-height:1.4}.port-dot{margin-top:4px}.community-info{grid-template-columns:1fr 1fr}.community-info .panel{min-height:190px}
.voyage-video{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.55);font-size:.75rem;font-weight:700;text-transform:uppercase}.voyage-video:hover{border-color:var(--sand);color:var(--sand)}.audio-toggle{position:fixed;z-index:20;right:20px;bottom:20px;display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.22);background:var(--deep);color:white;padding:11px 14px;box-shadow:0 12px 30px rgba(6,31,43,.24);cursor:pointer}.audio-toggle[aria-pressed="true"]{background:var(--sand);color:var(--deep)}
.ports-panel{background:#0d3445;color:#edf6f3;border:1px solid rgba(126,181,203,.28);box-shadow:0 18px 46px rgba(6,31,43,.18)}.ports-panel .panel-title{align-items:center}.ports-panel .panel-title h2{margin:0;color:#fff}.ports-panel .ports-legend{color:#edf6f3;font:700 .76rem Georgia,"Times New Roman",serif;text-transform:none}.ports-panel .ports-legend i{width:14px;height:14px}.ports-panel .journey-port{min-height:80px;align-items:center;padding:14px 18px;background:#264d5d;border:1px solid rgba(153,199,216,.32);color:#edf6f3}.ports-panel .journey-port.completed{background:#264d5d}.ports-panel .journey-port.current{background:#264d5d;border-color:#56baf0}.ports-panel .journey-port.next{background:#264d5d;border-color:rgba(243,183,79,.68)}.ports-panel .journey-port strong{margin:0 0 3px;color:#fff;font-size:1.1rem}.ports-panel .journey-port span{color:#d8e8ef;font:700 .9rem Georgia,"Times New Roman",serif}.ports-panel .port-dot{width:14px;height:14px;margin:0}
.journey-shell{min-height:100vh;padding:24px;background:linear-gradient(180deg,#83c4e1 0%,#d8f0f9 22%,#59a9c8 48%,#126681 75%,#0d4862 100%)}.journey-main{width:min(1220px,100%);margin:0 auto}.journey-main .dashboard-head{color:#fff}.journey-main .dashboard-head p{color:#e0eef3}.journey-main .date-chip{border-color:rgba(255,255,255,.6)}.journey-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:28px 0}.journey-actions form{margin:0}.journey-button{min-width:180px;border:0;padding:15px 24px;border-radius:999px;font-weight:700;text-align:center;cursor:pointer;box-shadow:0 14px 32px rgba(3,16,26,.24)}.journey-button.primary{background:linear-gradient(180deg,#f3c46d,#c78b24);color:#26190a}.journey-button.install{background:#e8f4f5;color:#0b3e4c}.journey-button.danger{background:linear-gradient(180deg,#954034,#6d2218);color:#fff}.journey-button:disabled{opacity:.7;cursor:default}
.community-dashboard-page{min-height:100vh;padding:28px clamp(16px,4vw,58px) 56px;color:#f7fbff;background:linear-gradient(180deg,#75bddc 0%,#d8f1fa 22%,#5aabc9 45%,#176d89 70%,#0d4862 100%);font-family:Georgia,"Times New Roman",serif}.community-dashboard-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;max-width:1250px;margin:0 auto 14px;padding:22px;border:1px solid rgba(255,255,255,.22);border-radius:24px;background:linear-gradient(180deg,rgba(5,22,34,.94),rgba(9,34,48,.88));box-shadow:0 24px 70px rgba(3,16,26,.24)}.community-dashboard-header h1{margin:14px 0 12px;font-size:1.35rem}.dashboard-back{color:#f3c46d;font-size:.78rem;font-weight:700}.dashboard-identity{display:flex;gap:8px;flex-wrap:wrap}.dashboard-identity span{padding:7px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.1)}.dashboard-header-actions{display:flex;gap:8px;align-items:center}.dashboard-header-actions form{margin:0}.dashboard-header-actions a,.dashboard-header-actions button,.dashboard-refresh{display:inline-flex;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;padding:10px 14px;font-weight:700;cursor:pointer}.dashboard-error{max-width:1250px;margin:0 auto 14px;padding:13px 16px;border-left:3px solid #ef8b83;background:#fff0ef;color:#843838}.direct-utilities-card{max-width:1250px;margin:0 auto;border:1px solid rgba(255,255,255,.22);border-radius:24px;overflow:hidden;background:linear-gradient(180deg,rgba(5,22,34,.94),rgba(9,34,48,.88));box-shadow:0 20px 60px rgba(3,16,26,.2)}.direct-utilities-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px;border-bottom:1px solid rgba(255,255,255,.2);background:linear-gradient(180deg,rgba(243,196,109,.16),rgba(255,255,255,.03))}.direct-utilities-head h2{margin:0;font-size:1.2rem}.direct-utilities-head p{margin:6px 0 0;color:#d8e6ef}.direct-utilities-table{padding:14px;overflow:auto}.direct-utilities-table table{min-width:680px;background:rgba(5,22,34,.4)}.direct-utilities-table th{background:rgba(255,255,255,.1);color:#fff}.direct-utilities-table td{color:#f7fbff;border-color:rgba(255,255,255,.09)}.utility-code{font-family:ui-monospace,monospace;font-weight:700}.utility-state{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid rgba(255,255,255,.2);border-radius:999px}.utility-state i{width:9px;height:9px;border-radius:50%;background:#aebec5}.utility-state.attiva i{background:#3ad29f}.utility-state.in_lavorazione i{background:#f3b74f}.utility-state.annullata i{background:#ef7770}.utility-action{color:#f8dd9c;font-weight:700}.dashboard-empty{color:#d8e6ef!important;text-align:center}.dashboard-quick-links{max-width:1250px;margin:14px auto 0;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.dashboard-quick-links a{padding:14px;text-align:center;border:1px solid rgba(255,255,255,.22);border-radius:14px;background:rgba(5,22,34,.78);color:#fff;font-weight:700}
@media(max-width:1100px){.ports-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.community-dashboard-page{grid-column:2;min-width:0}
@media(max-width:900px){.login-shell{grid-template-columns:1fr}.login-story{display:none}.login-panel{min-height:100vh;padding:30px}.mobile-wordmark{display:flex;align-items:center;gap:9px;color:var(--navy);letter-spacing:.12em;font-size:.72rem;margin-bottom:55px}.mobile-wordmark .mark{border-color:var(--line)}.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;flex-direction:row;align-items:center;gap:12px;padding:14px 18px}.wordmark.compact{margin:0 auto 0 0}.sidebar nav{display:none}.profile-mini{margin:0;border:0;padding:0}.profile-mini div{display:none}.logout{width:auto}.dashboard-main{padding:35px 20px}.metric-grid,.dashboard-grid,.detail-grid,.card-grid,.network-map,.community-info{grid-template-columns:1fr}.dashboard-head{align-items:flex-start}.date-chip{display:none}.data-list{grid-template-columns:1fr}.port-card{grid-template-columns:70px 1fr}.port-level{width:58px;height:58px}.voyage-facts{grid-template-columns:1fr}.ports-title{align-items:flex-start;flex-direction:column}.ports-legend{justify-content:flex-start}}
@media(max-width:520px){.login-card h2{font-size:2.5rem}.metric-grid{gap:10px}.metric{min-height:145px}.dashboard-head h1{font-size:2.5rem}.voyage-hero{min-height:430px;padding:25px 20px}.voyage-copy h2{font-size:2.2rem}.ports-grid{grid-template-columns:1fr}}
@media(max-width:760px){.journey-shell{padding:14px}.journey-actions,.journey-actions form,.journey-button{width:100%}.community-dashboard-page{padding:14px 12px 40px}.community-dashboard-header,.direct-utilities-card{border-radius:18px}.community-dashboard-header{flex-direction:column}.dashboard-header-actions{width:100%}.dashboard-header-actions a,.dashboard-header-actions form,.dashboard-header-actions button{flex:1}.dashboard-header-actions button{width:100%}.direct-utilities-head{align-items:flex-start;flex-direction:column}.dashboard-refresh{width:100%;justify-content:center}.dashboard-quick-links{grid-template-columns:1fr 1fr}.direct-utilities-table{padding:10px}.direct-utilities-table table{min-width:0}.direct-utilities-table table,.direct-utilities-table thead,.direct-utilities-table tbody,.direct-utilities-table tr,.direct-utilities-table th,.direct-utilities-table td{display:block}.direct-utilities-table thead{display:none}.direct-utilities-table tbody{display:grid;gap:10px}.direct-utilities-table tr{padding:10px 12px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(255,255,255,.08)}.direct-utilities-table td{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border:0}.direct-utilities-table td:before{content:attr(data-label);color:#bcd0da;font-weight:700}.direct-utilities-table td[colspan]{display:block}.direct-utilities-table td[colspan]:before{content:none}}
.mobile-journey{min-height:100vh;padding-bottom:calc(86px + env(safe-area-inset-bottom));color:#f5fbfd;background:linear-gradient(180deg,#70b6d3 0,#d9f1fa 20%,#4b9fbd 48%,#176983 72%,#0b4054 100%);font-family:"DM Sans",sans-serif}.mobile-journey-head{height:64px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;background:#082c3b;color:#fff}.mobile-journey-head>a{display:flex;align-items:center;gap:8px;font-size:.7rem;font-weight:700;letter-spacing:0}.mobile-journey-head img{width:38px;height:38px}.mobile-journey-head b{color:#d8b879}.mobile-journey-head>span{max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d8e6ef;font-size:.7rem}.mobile-notice{margin:12px 14px 0;padding:10px 12px;border-left:3px solid #e9b557;background:#fff6dc;color:#674b15;font-size:.78rem}.mobile-journey>main{padding:12px 14px 24px}.mobile-voyage-hero{min-height:310px;padding:22px 18px;display:flex;flex-direction:column;justify-content:space-between;border-radius:8px;background:linear-gradient(180deg,rgba(5,25,36,.18),rgba(5,25,36,.82)),url('../images/hero-mare-nave.jpg') center/cover;box-shadow:0 16px 36px rgba(3,16,26,.22)}.mobile-voyage-hero small,.mobile-section-label{text-transform:uppercase;font-size:.63rem;font-weight:700;letter-spacing:.08em;color:#e7ce9b}.mobile-voyage-hero h1{margin:8px 0 6px;font:700 2.6rem/1 "Playfair Display",serif;letter-spacing:0}.mobile-voyage-hero p{margin:0;max-width:28ch;color:#e4eff3;font-size:.9rem;line-height:1.5}.mobile-voyage-hero>a{align-self:flex-start;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.55);font-size:.7rem;font-weight:700;text-transform:uppercase}.mobile-voyage-stats{display:grid;grid-template-columns:1fr 1fr 72px;gap:1px;margin-top:10px;background:rgba(255,255,255,.22)}.mobile-voyage-stats div{min-width:0;min-height:72px;padding:11px 10px;background:rgba(5,31,43,.88)}.mobile-voyage-stats small,.mobile-voyage-stats strong{display:block}.mobile-voyage-stats small{color:#aac3cd;font-size:.56rem;text-transform:uppercase;font-weight:700}.mobile-voyage-stats strong{margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}.mobile-next-port{margin-top:10px;padding:18px;border-radius:8px;background:#f7f5ef;color:#16333d;box-shadow:0 12px 28px rgba(3,16,26,.16)}.mobile-next-port .mobile-section-label{color:#176b78}.mobile-next-port h2{margin:6px 0 4px;font:700 1.8rem "Playfair Display",serif;letter-spacing:0}.mobile-next-port p{margin:0;color:#708087;font-size:.82rem}.mobile-progress{height:7px;margin:17px 0 7px;overflow:hidden;border-radius:4px;background:#d8e2e0}.mobile-progress span{display:block;height:100%;max-width:100%;background:#176b78}.mobile-next-port>small{color:#708087;font-size:.68rem}.mobile-profile-strip{display:grid;grid-template-columns:1.5fr .7fr .7fr;gap:1px;margin-top:10px;background:rgba(255,255,255,.2)}.mobile-profile-strip div{min-width:0;padding:13px 11px;background:#123f50}.mobile-profile-strip small,.mobile-profile-strip strong{display:block}.mobile-profile-strip small{font-size:.55rem;text-transform:uppercase;color:#a9c0ca}.mobile-profile-strip strong{margin-top:5px;overflow-wrap:anywhere;font-size:.78rem}.mobile-ports,.mobile-latest{margin-top:10px;padding:17px 14px;border-radius:8px;background:#0d3445}.mobile-section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:13px}.mobile-section-head h2{margin:4px 0 0;font:700 1.35rem "Playfair Display",serif;letter-spacing:0}.mobile-section-head>a{color:#f3c46d;font-size:.7rem;font-weight:700}.mobile-ports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mobile-port{min-width:0;min-height:66px;padding:10px;display:grid;grid-template-columns:10px 1fr;align-items:center;gap:8px;border:1px solid rgba(153,199,216,.28);border-radius:8px;background:#264d5d}.mobile-port i{width:10px;height:10px;border-radius:50%;background:#88a9b7}.mobile-port.completed i{background:#3ad29f}.mobile-port.current i{background:#4db7ff}.mobile-port.next i{background:#f3b74f}.mobile-port strong,.mobile-port span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-port strong{font:700 .82rem "Playfair Display",serif}.mobile-port span{margin-top:3px;color:#d6e5ef;font-size:.68rem;font-weight:700}.mobile-latest{background:rgba(5,31,43,.88)}.mobile-utility{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid rgba(255,255,255,.1)}.mobile-utility strong,.mobile-utility small{display:block}.mobile-utility strong{font-size:.8rem}.mobile-utility small{margin-top:2px;color:#abc0c9;font-size:.65rem}.mobile-utility>span{padding:5px 7px;background:rgba(255,255,255,.1);font-size:.58rem;font-weight:700;text-transform:uppercase}.mobile-utility>span.attiva{background:#dff3e8;color:#276b4b}.mobile-empty{margin:0;color:#c0d0d7;font-size:.8rem}.mobile-app-bar{position:fixed;z-index:50;left:0;right:0;bottom:0;height:calc(70px + env(safe-area-inset-bottom));padding:7px 10px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(3,1fr);gap:5px;border-top:1px solid rgba(255,255,255,.14);background:#061f2b;box-shadow:0 -10px 28px rgba(3,16,26,.24)}.mobile-app-bar form{margin:0}.mobile-app-bar a,.mobile-app-bar button{width:100%;height:56px;border:0;border-radius:6px;background:transparent;color:#d7e5eb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.62rem;font-weight:700;cursor:pointer}.mobile-app-bar a{background:rgba(255,255,255,.08);color:#fff}.mobile-app-bar span{font-size:1rem;color:#f3c46d}
@media(max-width:370px){.mobile-voyage-stats{grid-template-columns:1fr 1fr}.mobile-voyage-stats div:last-child{grid-column:1/-1;min-height:56px}.mobile-ports-grid{grid-template-columns:1fr}.mobile-profile-strip{grid-template-columns:1fr 1fr}.mobile-profile-strip div:first-child{grid-column:1/-1}}
@media(max-width:760px){.journey-shell{padding:12px 10px 90px}.journey-main{width:100%}.journey-main .dashboard-head{margin:4px 4px 18px}.journey-main .dashboard-head h1{margin-top:6px;font-size:2.15rem;line-height:1.05}.journey-main .dashboard-head p{font-size:.86rem;line-height:1.45}.voyage-hero{min-height:410px;padding:22px 18px;background-position:center 44%}.voyage-copy h2{max-width:10ch;font-size:2.35rem;line-height:1}.voyage-copy p{font-size:.9rem;line-height:1.5}.voyage-facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 64px}.voyage-facts div{padding:11px 9px}.voyage-facts small{font-size:.52rem}.voyage-facts strong{font-size:.75rem}.community-metrics{grid-template-columns:1fr 1fr!important}.community-metrics .metric{min-height:118px;padding:15px}.community-metrics .metric:last-child{grid-column:1/-1;min-height:105px}.community-metrics .metric strong{font-size:2.3rem}.community-metrics .metric-code{font-size:1.25rem!important}.route-summary,.next-port,.community-info .panel{min-height:0}.panel{padding:20px 17px}.ports-panel{padding:18px 14px}.ports-panel .ports-title{gap:13px}.ports-panel .ports-legend{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px;font-size:.68rem}.ports-panel .journey-port{min-height:70px;padding:12px 14px}.journey-actions{margin:18px 0}.journey-button{min-height:50px}.utility-row{grid-template-columns:34px minmax(0,1fr) auto}.audio-toggle{right:10px;bottom:10px;padding:9px 11px;font-size:.7rem}}

/* Community visual system */
html{background:#156f8e}body{font-family:Georgia,"Times New Roman",serif;background:linear-gradient(180deg,#89cff0 0,#d9f2ff 28%,#78b8d8 48%,#2f86a8 68%,#0d4862 100%);letter-spacing:0}button,input{font-family:inherit}.eyebrow,.statLabel,.metric small,.nav-label,.status,th,.role-badge,.data-list small{text-transform:none;letter-spacing:0}.ghost-menu-button,.ghost-menu-close,.ghost-menu-overlay{display:none}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:28px;background:linear-gradient(rgba(5,22,34,.32),rgba(5,22,34,.66)),url('../images/hero-mare-nave.jpg') center/cover}.auth-card{width:min(460px,100%);padding:30px;border:1px solid rgba(255,255,255,.24);border-radius:24px;background:linear-gradient(180deg,rgba(5,22,34,.94),rgba(9,34,48,.9));box-shadow:0 24px 80px rgba(3,16,26,.34);color:#f7fbff}.auth-card-wide{width:min(760px,100%)}.auth-logo{display:block;width:112px;height:112px;object-fit:cover;border-radius:50%;margin:0 auto 16px}.auth-card h1{margin:0;text-align:center;font-size:2rem}.auth-card>p{text-align:center;color:#dbe8f1}.community-form{display:grid;gap:9px;margin-top:22px}.community-form label{display:grid;gap:7px;font-weight:700}.community-form input{width:100%;min-height:48px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:rgba(255,255,255,.1);color:#fff;padding:11px 13px;outline:none}.community-form input:focus{border-color:#f3c46d;box-shadow:0 0 0 3px rgba(243,196,109,.16)}.form-grid{grid-template-columns:1fr 1fr;gap:13px}.span-2{grid-column:1/-1}.community-button{min-height:48px;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:10px 18px;color:#fff;background:rgba(255,255,255,.12);font-weight:700;cursor:pointer}.community-button.primary{background:#f3c46d;color:#11273a;border-color:#f3c46d}.auth-links{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px;color:#f3c46d;font-weight:700}.form-message{margin:14px 0;padding:12px 14px;border-left:3px solid}.form-message.success{background:#e7f8ef;color:#175f43;border-color:#3ad29f}.form-message.error{background:#fff0ef;color:#843838;border-color:#d66969}.password-field{position:relative}.password-field input{padding-right:52px}.password-toggle{position:absolute;right:5px;top:5px;width:40px;height:38px;border:0;background:transparent;color:#fff;cursor:pointer;display:grid;place-items:center}.password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.password-toggle .eye-closed,.password-toggle[aria-pressed=true] .eye-open{display:none}.password-toggle[aria-pressed=true] .eye-closed{display:block}
.app-shell{grid-template-columns:270px 1fr;background:transparent}.sidebar{width:270px;background:linear-gradient(180deg,rgba(5,22,34,.98),rgba(9,34,48,.96));border-right:1px solid rgba(255,255,255,.18);z-index:80}.sidebar nav a{font-size:.95rem;border-radius:12px}.brand-logo{width:54px;height:54px;object-fit:cover;border-radius:50%}.dashboard-main,.community-dashboard-page{grid-column:2;background:transparent;color:#f7fbff}.panel,.port-card,.member-node{background:linear-gradient(180deg,rgba(5,22,34,.92),rgba(9,34,48,.86));border:1px solid rgba(255,255,255,.18);color:#f7fbff}.panel p,.page-head p,.dashboard-head p,.count,.empty-state{color:#dbe8f1}
@media(max-width:820px){body.drawer-open{overflow:hidden}.app-shell{display:block}.sidebar{position:fixed;inset:0 auto 0 0;width:min(84vw,320px);height:100dvh;padding:24px 20px;display:flex;flex-direction:column;transform:translateX(-104%);transition:transform .24s ease;box-shadow:18px 0 60px rgba(0,0,0,.38)}.sidebar.is-open{transform:translateX(0)}.sidebar nav{display:grid;overflow:auto}.wordmark.compact{margin:0 38px 24px 0}.profile-mini{margin-top:auto}.profile-mini div{display:block}.logout{width:100%}.ghost-menu-button{display:grid;place-items:center;position:fixed;z-index:75;top:14px;left:14px;width:46px;height:46px;border:1px solid rgba(255,255,255,.34);border-radius:50%;background:rgba(5,22,34,.58);backdrop-filter:blur(12px);color:#fff;font-size:1.35rem}.ghost-menu-close{display:grid;place-items:center;position:absolute;right:15px;top:16px;width:38px;height:38px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:transparent;color:#fff;font-size:1.5rem}.ghost-menu-overlay{position:fixed;z-index:70;inset:0;background:rgba(3,16,26,.54);backdrop-filter:blur(3px)}.ghost-menu-overlay.is-open{display:block}.dashboard-main,.community-dashboard-page{padding:76px 14px 36px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.auth-page{padding:14px}.auth-card{padding:24px 18px}.auth-links{flex-direction:column}.journey-shell{padding-top:72px}}
.community-story-band{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:46px;margin-top:20px;padding:28px 30px;border:1px solid rgba(255,255,255,.2);border-radius:28px;background:linear-gradient(180deg,rgba(5,22,34,.94),rgba(9,34,48,.9));box-shadow:0 20px 60px rgba(3,16,26,.18);color:#f7fbff}.community-story-band article{min-width:0}.community-story-band h2{margin:0 0 8px;font-size:1.38rem;line-height:1.2}.community-story-band p{margin:0;color:#dbe8f1;font-size:1rem;font-weight:700;line-height:1.55}
@media(max-width:820px){.community-story-band{grid-template-columns:1fr;gap:22px;padding:24px 20px;border-radius:20px}.community-story-band article+article{padding-top:20px;border-top:1px solid rgba(255,255,255,.14)}}
.community-section-card{margin-bottom:16px;padding:22px;border:1px solid rgba(255,255,255,.22);border-radius:22px;background:linear-gradient(180deg,rgba(5,22,34,.94),rgba(9,34,48,.9));box-shadow:0 20px 60px rgba(3,16,26,.18);color:#f7fbff}.community-section-card>header{margin:-22px -22px 20px;padding:17px 22px;border-bottom:1px solid rgba(255,255,255,.18);background:linear-gradient(180deg,rgba(243,196,109,.14),rgba(255,255,255,.02));border-radius:22px 22px 0 0}.community-section-card h2{margin:0}.community-section-card p{color:#dbe8f1}.community-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.community-data-grid>div,.utility-entry{padding:15px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(255,255,255,.08)}.community-data-grid .wide{grid-column:1/-1}.community-data-grid small,.community-data-grid strong{display:block}.community-data-grid small{margin-bottom:6px;color:#bcd0da}.copy-row{display:flex;gap:10px}.copy-row input,.utility-entry input,.utility-entry select{width:100%;min-height:46px;padding:10px 12px;border:1px solid rgba(255,255,255,.24);border-radius:10px;background:#133246;color:#fff}.copy-row input{flex:1}.community-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.utility-entry{margin-bottom:12px}.entry-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.remove-entry{width:38px;height:38px;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:transparent;color:#fff;font-size:1.3rem;cursor:pointer}.ship-matrix-wrap{overflow:auto;border:1px solid rgba(255,255,255,.18);border-radius:15px}.ship-matrix{min-width:1800px;background:rgba(5,22,34,.5)}.ship-matrix th,.ship-matrix td{text-align:center;color:#f7fbff;border-right:1px solid rgba(255,255,255,.09)}.ship-matrix th{background:#284858;color:#fff;text-transform:none;letter-spacing:0}.ship-matrix .sticky-ship{position:sticky;left:0;z-index:2;min-width:150px;text-align:left;background:#173848}.ship-matrix .sticky-ship small{display:block;color:#bcd0da;margin-top:4px}.matrix-port-icon{display:block;font-size:1.35rem;color:#7897a7}.active-port{background:rgba(58,210,159,.14)}.active-port .matrix-port-icon{color:#3ad29f}.ship-matrix td small{display:block}.ship-mobile-list{display:none}.ship-mobile-list article{padding:16px;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(255,255,255,.06)}.mobile-port-row{display:flex;gap:8px;overflow:auto;padding-top:12px}.mobile-port-row span{min-width:125px;padding:10px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:#284858}.mobile-port-row span.active{border-color:#3ad29f}.mobile-port-row b,.mobile-port-row small{display:block}.mobile-port-row small{margin-top:5px;color:#dbe8f1}
@media(max-width:820px){.community-section-card{padding:18px 14px;border-radius:18px}.community-section-card>header{margin:-18px -14px 16px;padding:15px 14px;border-radius:18px 18px 0 0}.community-data-grid,.form-grid{grid-template-columns:1fr}.community-data-grid .wide,.span-2{grid-column:auto}.copy-row{flex-direction:column}.ship-matrix-wrap{display:none}.ship-mobile-list{display:grid;gap:12px}}
.document-status{display:flex;align-items:center;gap:12px}.document-status>span{padding:7px 12px;border:1px solid #ef7777;border-radius:999px;color:#ffdada;font-weight:700}.document-status>span.complete{border-color:#3ad29f;color:#baf4dc}.document-status p{margin:0}.document-list{display:grid;gap:9px;margin-top:16px}.document-list article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.06)}.document-list strong,.document-list small{display:block}.document-list small{margin-top:4px;color:#bcd0da}
@media(max-width:600px){.document-list article{align-items:stretch;flex-direction:column}.document-list .community-button{text-align:center}}
.level-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.level-heading h2{margin:16px 0 6px;font-size:2.2rem}.level-heading p{margin:0}.level-pill,.level-reward{display:inline-flex;padding:8px 13px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.09)}.level-progress{margin-top:24px;padding-top:20px;border-top:1px solid rgba(255,255,255,.16)}.level-progress h3{margin:0 0 6px}.level-counts,.destination-row{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:16px}.level-bar{height:13px;margin-top:10px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.14)}.level-bar span{display:block;height:100%;border-radius:inherit;background:#3ad29f}.destination-row>div{flex:1;min-width:150px;padding:14px;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:rgba(255,255,255,.06)}.destination-row small,.destination-row strong{display:block}.destination-row small{margin-bottom:7px;color:#bcd0da}
@media(max-width:600px){.level-heading{flex-direction:column}.level-reward{width:100%}.level-counts{flex-direction:column;gap:7px}.destination-row{display:grid}.destination-row>div{min-width:0}}
.bubble-tree-card{overflow:hidden}.bubble-tree-card>header{display:flex;justify-content:space-between;align-items:center;gap:18px}.bubble-legend{display:flex;gap:13px;flex-wrap:wrap;font-size:.78rem;color:#dbe8f1}.bubble-legend span{display:flex;align-items:center;gap:6px}.bubble-legend i{width:11px;height:11px;border-radius:50%;background:#4db7ff}.bubble-legend i.active{background:#3ad29f}.bubble-legend i.staff{background:#f3b74f}.bubble-tree{overflow:auto;padding:8px 10px 24px}.bubble-tree-canvas{position:relative;min-width:max-content}.bubble-connectors{position:absolute;z-index:0;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.bubble-connectors path{fill:none;stroke:rgba(188,208,218,.68);stroke-width:2;stroke-linecap:square;stroke-linejoin:miter;vector-effect:non-scaling-stroke}.bubble-level{position:relative;z-index:1;min-width:max-content;padding:24px 24px 34px}.bubble-level-label{position:sticky;left:0;width:max-content;margin:0 auto 18px;padding:5px 10px;border-radius:999px;background:#173848;color:#bcd0da;font-size:.72rem;font-weight:700}.bubble-row{position:relative;display:flex;justify-content:center;gap:34px}.member-bubble{width:150px;text-align:center;color:#f7fbff}.bubble-circle{width:92px;height:92px;margin:0 auto 10px;padding:7px;border:2px solid #3ad29f;border-radius:50%;background:rgba(58,210,159,.12);box-shadow:0 10px 28px rgba(3,16,26,.28),inset 0 0 0 5px rgba(255,255,255,.05);display:grid;place-items:center}.bubble-circle span{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:#1d586c;color:#fff;font-size:1.55rem;font-weight:700}.member-bubble.is-self .bubble-circle{width:110px;height:110px;border-color:#4db7ff;background:rgba(77,183,255,.15)}.member-bubble.is-self .bubble-circle span{width:76px;height:76px;background:#176f8e}.member-bubble.is-advanced .bubble-circle{border-color:#f3b74f;background:rgba(243,183,79,.13)}.member-bubble strong,.member-bubble small,.member-bubble em{display:block;overflow:hidden;text-overflow:ellipsis}.member-bubble strong{font-size:.9rem;white-space:nowrap}.member-bubble small{margin-top:4px;color:#bcd0da;font-size:.72rem}.member-bubble em{margin-top:4px;color:#f3c46d;font-size:.68rem;font-style:normal}
@media(max-width:700px){.bubble-tree-card>header{align-items:flex-start;flex-direction:column}.bubble-tree{margin:0 -14px;padding-left:14px;padding-right:14px}.bubble-level{padding-left:12px;padding-right:12px}.bubble-row{gap:18px}.member-bubble{width:125px}.bubble-circle{width:78px;height:78px}.bubble-circle span{width:52px;height:52px}.member-bubble.is-self .bubble-circle{width:92px;height:92px}.member-bubble.is-self .bubble-circle span{width:62px;height:62px}}

/* Contrast pass: light page canvas, dark content surfaces */
.dashboard-main{color:#082f42}.page-head,.dashboard-head{color:#082f42}.page-head h1,.dashboard-head h1{color:#062c3e;text-shadow:0 1px 0 rgba(255,255,255,.4);font-size:clamp(2.25rem,4vw,3.6rem);letter-spacing:0}.page-head p,.dashboard-head p{color:#174b5f!important;font-weight:700;line-height:1.55}.page-head .eyebrow,.page-head .eyebrow.ink,.dashboard-head .eyebrow,.dashboard-head .eyebrow.ink{color:#075f72}.date-chip{color:#082f42;border-color:#082f42}.sidebar nav a{color:rgba(255,255,255,.82)}.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.14);color:#fff}.nav-label{color:rgba(255,255,255,.7)}.profile-mini small,.logout{color:rgba(255,255,255,.75)}
.community-section-card,.panel,.port-card,.member-node,.community-story-band{color:#fff}.community-section-card p,.panel p,.port-card p,.community-story-band p,.community-section-card small{color:#dcebf2}.community-section-card>header h2,.panel h2,.community-story-band h2{color:#fff}.community-data-grid small,.destination-row small,.document-list small,.member-bubble small{color:#c7dce6}.community-data-grid strong,.destination-row strong,.document-list strong{color:#fff}.empty-state{color:#dcebf2}.count{color:#dcebf2}.table-panel th{background:#294f60;color:#fff;font-size:.76rem;text-transform:none;letter-spacing:0}.table-panel td{color:#f7fbff;font-size:.9rem;border-color:rgba(255,255,255,.13)}.table-panel td small{color:#c7dce6}.pagination a{color:#ffe0a0}.pagination span{color:#d3e5ed}.role-badge{background:#eaf6f7;color:#07596b;font-size:.74rem;text-transform:none;letter-spacing:0}.reward{color:#ffd57e}.community-form label,.utility-entry label{color:#fff}.community-form input,.utility-entry input,.utility-entry select,.copy-row input{border-color:rgba(255,255,255,.38);background:#173f52;color:#fff}.community-form input::placeholder,.utility-entry input::placeholder{color:#bed2dc}.bubble-level-label{color:#e2f0f5}.member-bubble em{color:#ffd57e}
@media(max-width:820px){.page-head h1,.dashboard-head h1{font-size:2.45rem}.page-head p,.dashboard-head p{font-size:1rem}.page-head{margin-bottom:26px}.sidebar nav a{font-size:1rem}}

/* Full-width ship matrix without internal scrolling */
.ship-matrix-card{width:100%;padding:16px}.ship-matrix-card>header{margin:-16px -16px 12px;padding:13px 16px}.ship-matrix-wrap{width:100%;overflow:hidden}.ship-matrix{width:100%;min-width:0;table-layout:fixed}.ship-matrix .sticky-ship{position:static;width:10%;min-width:0}.ship-matrix th,.ship-matrix td{height:42px;padding:5px 2px;font-size:clamp(.55rem,.66vw,.72rem);white-space:normal;overflow-wrap:anywhere;line-height:1.1}.ship-matrix th:first-child{padding-left:8px}.ship-matrix .sticky-ship strong{font-size:.78rem}.ship-matrix .sticky-ship small{font-size:.6rem}.ship-matrix td small{font-size:.62rem}.matrix-port-icon{font-size:1rem;line-height:1}.ship-matrix tr.not-acquired td{background:rgba(5,22,34,.24)}.ship-matrix tr.not-acquired .matrix-port-icon{color:#668b9c}.ship-matrix tr.not-acquired .sticky-ship small{color:#9bb6c2}
@media(max-width:820px){.ship-matrix-card{padding:14px}.ship-matrix-card>header{margin:-14px -14px 12px}.ship-mobile-list{display:grid}.mobile-port-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.mobile-port-row span{min-width:0}.ship-mobile-list article>small{display:block;margin-top:5px;color:#c7dce6}}
.avatar{font-size:.76rem;letter-spacing:0}
.dashboard-main{padding:20px clamp(16px,2vw,30px);min-height:100vh}.dashboard-main>.community-section-card:first-child,.dashboard-main>.panel:first-child,.dashboard-main>.route-cards:first-child,.dashboard-main>.network-map:first-child{margin-top:0}.dashboard-main>.community-section-card:last-child,.dashboard-main>.panel:last-child{margin-bottom:0}
@media(max-width:820px){.dashboard-main{padding:72px 10px 14px}}
/* Dashboard staff, portata dalla Community legacy. */
.staff-dashboard{width:min(980px,calc(100% - 48px));min-height:100vh;margin:0 auto;padding:24px 0;color:#f7fbff;font-family:Georgia,"Times New Roman",serif}
.staff-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.staff-top h1{margin:0;font-size:2rem;letter-spacing:0}.staff-top p,.staff-label{color:#d8e6ef}
.staff-pill{display:inline-block;padding:.35rem .75rem;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.12);font-weight:800}
.staff-card{margin-top:16px;padding:16px;border:1px solid rgba(255,255,255,.22);border-radius:18px;background:linear-gradient(180deg,rgba(6,24,36,.9),rgba(9,34,48,.84));box-shadow:0 24px 70px rgba(3,16,26,.24)}
.staff-label{margin:0}.staff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}.staff-grid form{margin:0}
.staff-button{display:block;width:100%;min-height:46px;padding:12px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:rgba(255,255,255,.12);color:#f7fbff;text-align:center;text-decoration:none;font:800 1rem Georgia,"Times New Roman",serif;cursor:pointer}
.staff-button.primary{border:0;background:linear-gradient(180deg,#f3c46d,#c78b24);color:#26190a}.staff-button.danger{border:0;background:#ef4444;color:#fff}.staff-button.compact{width:auto;min-height:40px;padding:9px 14px}
.admin-tool{width:100%;padding:18px}.admin-tool-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.admin-tool-bar h1{margin:3px 0 0;font-size:clamp(1.6rem,3vw,2.4rem);letter-spacing:0}.admin-table-panel{width:100%;margin:0}.table-wrap{width:100%;overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:12px;border-bottom:1px solid rgba(255,255,255,.14);text-align:left;vertical-align:top}.data-table th{background:rgba(255,255,255,.1);color:#fff}.data-table td{color:#eaf4fa;overflow-wrap:anywhere}
.staff-tool-page{min-height:100vh;padding:22px clamp(12px,3vw,40px);color:#f7fbff;background:linear-gradient(180deg,#176d89,#0d4862);font-family:Georgia,"Times New Roman",serif}.staff-tool-page .admin-tool{max-width:1500px;margin:auto}.staff-filter,.association-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.staff-filter{padding:14px;margin-bottom:14px;background:rgba(5,22,34,.72)}.staff-filter input,.staff-filter select,.association-form select{min-height:42px;padding:8px 10px;border:1px solid rgba(255,255,255,.25);border-radius:6px;background:#173f52;color:#fff}.staff-filter input,.staff-filter select{flex:1;min-width:180px}.association-form select{min-width:210px}
.staff-editor{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr)) auto;gap:10px;align-items:end;margin-bottom:16px;padding:16px;background:rgba(5,22,34,.78)}.staff-editor label{display:grid;gap:6px;font-weight:700}.staff-editor input,.staff-editor select,.inline-editor input,.inline-editor select,.inline-editor textarea{min-height:42px;padding:8px;border:1px solid rgba(255,255,255,.25);border-radius:6px;background:#173f52;color:#fff}.inline-editor{display:grid;gap:7px;min-width:210px}.inline-editor textarea{min-height:80px}.staff-secondary-panel{margin-top:16px}
.password-reset-inline{display:flex;gap:6px;margin-top:7px}.password-reset-inline input{min-height:40px;padding:7px;border:1px solid rgba(255,255,255,.25);background:#173f52;color:#fff}
.nautical-map th small{display:block;margin-top:5px;color:#c8dbe4}.nautical-map td{text-align:center}.nautical-map .map-reached{background:rgba(58,210,159,.2);color:#9ff1d3}.tree-board{display:grid;gap:14px}.tree-lane{padding:16px;background:rgba(5,22,34,.78)}.tree-lane header{display:flex;justify-content:space-between;align-items:center}.tree-lane h2{margin:0}.tree-node-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:12px}.tree-node{display:grid;gap:5px;padding:12px;border-left:3px solid #f3c46d;background:#173f52}.tree-node small,.tree-node span{color:#c8dbe4}.tree-node i{justify-self:start}.sankey-board{display:grid;grid-template-columns:240px 1fr;gap:40px;align-items:center;padding:28px;background:rgba(5,22,34,.78)}.sankey-source{padding:24px;background:#f3c46d;color:#11273a}.sankey-source strong,.sankey-source span{display:block}.sankey-source strong{font-size:3rem}.sankey-flows{display:grid;gap:14px}.sankey-flows article{display:grid;grid-template-columns:var(--flow) 1fr;gap:14px;align-items:center}.sankey-flows article>span{height:16px;background:linear-gradient(90deg,#f3c46d,#3ad29f)}.sankey-flows strong,.sankey-flows small{display:block}
@media(max-width:900px){.staff-editor{grid-template-columns:1fr 1fr}.sankey-board{grid-template-columns:1fr}.nautical-map{min-width:1200px}}
@media(min-width:880px){.staff-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.staff-dashboard{width:calc(100% - 24px);padding:12px 0}.staff-grid{grid-template-columns:1fr}.admin-tool{padding:12px}.admin-tool-bar{align-items:flex-start;flex-direction:column}}
.ship-level-selector{display:flex;align-items:end;justify-content:space-between;gap:20px}.ship-level-selector form{display:flex;align-items:end;gap:10px;flex:1}.ship-level-selector label{display:grid;gap:7px;font-weight:700}.ship-level-selector select{min-width:260px;min-height:48px;padding:10px 12px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:#173f52;color:#fff;font:inherit}.ship-level-selector span{color:#dcebf2}.selected-ship-title{margin:0 0 12px;padding:12px 16px;border-left:4px solid #f3c46d;background:rgba(5,22,34,.78);color:#fff}
@media(max-width:620px){.ship-level-selector,.ship-level-selector form{align-items:stretch;flex-direction:column}.ship-level-selector select{width:100%;min-width:0}}
.utility-ship-selector{display:flex;align-items:center;gap:12px;padding:14px 16px;background:rgba(5,22,34,.72)}.utility-ship-selector label{font-weight:700;white-space:nowrap}.utility-ship-selector select{min-width:260px;min-height:42px;padding:8px 34px 8px 11px;border:1px solid rgba(255,255,255,.3);border-radius:6px;background:#173f52;color:#fff;font:inherit}.utility-ship-tree{margin:0 0 16px;overflow:auto;border:1px solid rgba(255,255,255,.18);border-radius:0 0 12px 12px;background:rgba(5,22,34,.62)}.utility-ship-head{position:sticky;left:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.16);background:#173848}.utility-ship-head>div{display:flex;align-items:center;gap:10px}.utility-ship-head h3{margin:0}.ship-wheel{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f3c46d;color:#11273a;font-weight:800}.utility-tree-levels{min-width:max-content;padding:10px 28px 20px}.utility-tree-level{position:relative;padding:8px 0 20px}.utility-tree-level+.utility-tree-level{padding-top:28px}.utility-tree-level+.utility-tree-level:before{content:"";position:absolute;top:0;left:50%;height:28px;border-left:2px solid #7898a7}.utility-level-label{position:relative;z-index:2;width:max-content;margin:0 auto 12px;padding:3px 8px;border-radius:999px;background:#294f60;color:#dcebf2;font-size:.65rem}.utility-tree-row{position:relative;display:flex;justify-content:center;gap:22px}.utility-tree-row:before{content:"";position:absolute;top:-8px;left:60px;right:60px;border-top:2px solid #7898a7}.utility-tree-row .utility-tree-node:before{content:"";position:absolute;left:50%;bottom:100%;height:10px;border-left:2px solid #7898a7}.utility-tree-level:first-child .utility-tree-row:before,.utility-tree-level:first-child .utility-tree-node:before,.utility-tree-row .utility-tree-node:only-child:before{display:none}.utility-tree-node{position:relative;display:flex;flex:0 0 118px;flex-direction:column;align-items:center;justify-content:center;width:118px;height:118px;padding:12px;border:2px solid #3ad29f;border-radius:50%;background:#173f52;text-align:center;box-shadow:0 7px 18px rgba(2,15,24,.28);overflow:hidden}.utility-tree-node span,.utility-tree-node strong,.utility-tree-node small{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.utility-node-owner{margin-bottom:5px;color:#f3c46d;font-size:.67rem;font-weight:700}.utility-tree-node strong{font-size:.68rem;line-height:1.1}.utility-tree-node small{margin-top:5px;color:#c8dbe4;font-size:.62rem}.utility-tree-node [title]{cursor:help}@media(max-width:620px){.utility-ship-selector{align-items:stretch;flex-direction:column}.utility-ship-selector select{width:100%;min-width:0}}
.utility-tree-levels[data-binary-tree]{position:relative;padding-top:24px}.utility-tree-levels[data-binary-tree] .utility-tree-level{padding:0 0 52px}.utility-tree-levels[data-binary-tree] .utility-tree-level:last-of-type{padding-bottom:12px}.utility-tree-levels[data-binary-tree] .utility-tree-level:before,.utility-tree-levels[data-binary-tree] .utility-tree-row:before,.utility-tree-levels[data-binary-tree] .utility-tree-node:before{display:none}.utility-tree-levels[data-binary-tree] .utility-tree-row{gap:28px}.utility-tree-links{position:absolute;inset:0;z-index:0;overflow:visible;pointer-events:none}.utility-tree-links line{stroke:#7fa6b8;stroke-width:2}.utility-tree-levels[data-binary-tree] .utility-tree-node{z-index:1}
.utility-details-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.utility-details-head h2,.utility-details-head p{margin:0}.utility-details-head p{margin-top:5px;color:#c8dbe4}.utility-details-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}.utility-details-summary article{padding:14px;border-left:3px solid #f3c46d;background:#173f52}.utility-details-summary small,.utility-details-summary strong{display:block}.utility-details-summary small{margin-bottom:5px;color:#c8dbe4}.utility-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0;padding:0 16px 16px;background:rgba(255,255,255,.12)}.utility-details-grid>div{min-width:0;padding:13px 15px;background:#0d2b3b}.utility-details-grid dt{margin-bottom:5px;color:#8fc2d7;font-size:.78rem;font-weight:700}.utility-details-grid dd{margin:0;color:#fff;overflow-wrap:anywhere}@media(max-width:700px){.utility-details-head{align-items:stretch;flex-direction:column}.utility-details-summary,.utility-details-grid{grid-template-columns:1fr}.utility-details-head .community-button{width:100%;text-align:center}}
.utility-details-hero{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.18)}.utility-details-hero article{min-width:0;padding:16px;background:#0d2b3b}.utility-details-hero small,.utility-details-hero strong{display:block}.utility-details-hero small{margin-bottom:7px;color:#8fc2d7}.utility-details-hero strong{overflow-wrap:anywhere}.utility-detail-status{display:inline-flex!important;width:max-content;align-items:center;gap:7px;padding:6px 10px;border:1px solid rgba(255,255,255,.25);border-radius:999px}.utility-detail-status i{width:10px;height:10px;border-radius:50%;background:#f3c46d}.utility-detail-status.attiva i{background:#3ad29f}.utility-detail-status.annullata i{background:#ef6b6b}.utility-details-summary article span{display:block;margin-top:5px;color:#c8dbe4;font-size:.78rem;overflow-wrap:anywhere}.utility-detail-section{border-top:1px solid rgba(255,255,255,.16);padding:16px}.utility-detail-section h3{margin:0 0 12px}.utility-detail-section .utility-details-grid{padding:0}.utility-bill-panel>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.utility-bill-panel p{margin-bottom:0}@media(max-width:900px){.utility-details-hero{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.utility-details-hero{grid-template-columns:1fr}.utility-bill-panel>div{align-items:stretch;flex-direction:column}}
.utility-edit-card,.utility-bill-panel{margin:16px;border:1px solid rgba(255,255,255,.22);border-radius:18px;background:linear-gradient(180deg,rgba(25,67,86,.96),rgba(18,79,101,.86))}.utility-data-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.utility-data-form label,.utility-pdf-form label{display:grid;gap:7px;color:#fff;font-weight:700}.utility-data-form input,.utility-data-form textarea,.utility-pdf-form input[type=file]{box-sizing:border-box;width:100%;min-height:50px;padding:12px 16px;border:1px solid rgba(255,255,255,.25);border-radius:16px;background:#13364b;color:#fff;font:inherit;outline:none}.utility-data-form textarea{min-height:106px;resize:vertical}.utility-data-form input:focus,.utility-data-form textarea:focus{border-color:#f3c46d;box-shadow:0 0 0 3px rgba(243,196,109,.14)}.utility-data-form .community-actions{margin-top:14px}.utility-pdf-form{display:grid;max-width:700px;gap:10px;margin-top:14px}.utility-pdf-form input[type=file]{padding:12px}.utility-pdf-form .community-button{justify-self:start}.utility-bill-panel>div{margin:10px 0}@media(max-width:700px){.utility-data-form .form-grid{grid-template-columns:1fr}.utility-edit-card,.utility-bill-panel{margin:10px 0}}
.utility-data-form input[readonly]{border-style:dashed;background:#24495b;color:#d5e4eb;cursor:not-allowed}
.dashboard-main,.community-dashboard-page,.staff-tool-page{font-size:16px;line-height:1.45}.dashboard-main h1,.community-dashboard-page h1,.staff-tool-page h1,.page-head h1,.dashboard-head h1{font-size:2rem;line-height:1.12;letter-spacing:0}.dashboard-main h2,.community-dashboard-page h2,.staff-tool-page h2,.community-section-card h2,.panel h2{font-size:1.45rem;line-height:1.2;letter-spacing:0}.dashboard-main h3,.community-dashboard-page h3,.staff-tool-page h3{font-size:1.12rem;line-height:1.25}.community-section-card,.panel,.staff-card{padding:20px}.community-section-card>header{margin:-20px -20px 18px;padding:16px 20px}.community-form label,.utility-entry label,.utility-data-form label,.staff-editor label{font-size:.9rem;line-height:1.25}.community-form input,.community-form select,.community-form textarea,.utility-entry input,.utility-entry select,.utility-entry textarea,.utility-data-form input,.utility-data-form select,.utility-data-form textarea,.staff-editor input,.staff-editor select,.staff-editor textarea{min-height:46px;padding:10px 13px;font-size:1rem}.community-button,.staff-button,.journey-button,.dashboard-refresh{min-height:46px;padding:10px 16px;font-size:.95rem}.data-table th,.data-table td,.table-panel th,.table-panel td{padding:12px 14px;font-size:.88rem}input:not([type=email]):not([type=password]):not([name=pec]),textarea,select{text-transform:uppercase}input[type=email],input[name=pec]{text-transform:none}@media(max-width:820px){.dashboard-main,.community-dashboard-page,.staff-tool-page{padding:72px 12px 28px;font-size:15px}.dashboard-main h1,.community-dashboard-page h1,.staff-tool-page h1,.page-head h1,.dashboard-head h1{font-size:1.75rem}.dashboard-main h2,.community-dashboard-page h2,.staff-tool-page h2,.community-section-card h2,.panel h2{font-size:1.3rem}.community-section-card,.panel,.staff-card{padding:16px 14px}.community-section-card>header{margin:-16px -14px 16px;padding:14px}.community-button,.staff-button,.journey-button{width:100%;min-width:0}.community-actions{display:grid;grid-template-columns:1fr}.form-grid,.utility-data-form .form-grid,.staff-editor{grid-template-columns:1fr}.staff-filter,.association-form{align-items:stretch;flex-direction:column}.staff-filter input,.staff-filter select,.association-form select{width:100%;min-width:0}.table-wrap{margin:0 -14px;width:calc(100% + 28px)}.data-table th,.data-table td,.table-panel th,.table-panel td{padding:10px;font-size:.8rem}}
.app-shell,.journey-shell,.auth-page,.staff-tool-page{text-transform:uppercase}.app-shell input[type=email],.app-shell input[name=pec],.auth-page input[type=email],.staff-tool-page input[type=email],.staff-tool-page input[name=pec]{text-transform:none}
input[type=password],input[name*="password" i],input[autocomplete=current-password],input[autocomplete=new-password]{text-transform:none!important;letter-spacing:0!important;font-variant:normal!important}
.referral-bubble-map{position:relative;min-height:420px;margin-top:16px;padding:28px 18px;overflow:auto;border:1px solid rgba(255,255,255,.18);background:#082c3b}.referral-map-levels{position:relative;z-index:1;display:grid;gap:64px;min-width:max-content}.referral-map-row{display:flex;justify-content:space-around;gap:54px;min-width:100%;padding:0 36px}.referral-map-links{position:absolute;inset:0;z-index:0;overflow:visible;pointer-events:none}.referral-map-links path{fill:none;stroke:#84b7ca;stroke-width:2}.referral-bubble{width:132px;height:132px;flex:0 0 132px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:15px;border:3px solid #f3c46d;border-radius:50%;background:#174a5f;color:#fff;text-align:center;box-shadow:0 12px 28px rgba(0,0,0,.25)}.referral-bubble.attiva{border-color:#3ad29f;background:#12604f}.referral-bubble.annullata{border-color:#ef6b6b;opacity:.62}.referral-bubble-owner,.referral-bubble strong,.referral-bubble small{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none}.referral-bubble-owner{font-size:.72rem;font-weight:700}.referral-bubble strong{margin:7px 0 4px;font-size:.68rem}.referral-bubble small{color:#d5e7ee;font-size:.62rem}@media(max-width:700px){.referral-bubble-map{padding:22px 8px}.referral-map-row{gap:32px;padding:0 22px}.referral-bubble{width:110px;height:110px;flex-basis:110px;padding:11px}.referral-bubble-owner{font-size:.64rem}.referral-bubble strong{font-size:.6rem}}
.utility-row-actions{display:flex;align-items:center;gap:10px}.utility-row-actions form{margin:0}.utility-row-actions select{min-width:138px;min-height:38px;padding:7px 32px 7px 10px;border:1px solid rgba(255,255,255,.25);border-radius:6px;background:#173f52;color:#fff;font:inherit;text-transform:none}@media(max-width:700px){.utility-row-actions{align-items:stretch;flex-direction:column}.utility-row-actions select{width:100%}}
.direct-utilities-table table{min-width:920px}
