:root{--navy:#173b72;--ink:#172f52;--purple:#7f30ef;--muted:#66748b;--line:#dfe5ed;--paper:#f6f7fa}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Tahoma,sans-serif;font-size:14px;line-height:1.7}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--navy);padding:10px 17px;border-radius:9px}button:hover{background:#eff3fa}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--navy);border-color:var(--navy);color:white}.primary:hover{background:#244b86}.sidebar{width:238px;position:fixed;right:0;top:0;bottom:0;background:white;border-left:1px solid var(--line);padding:33px 22px;display:flex;flex-direction:column}.logo{width:166px;height:53px;object-fit:contain;margin:0 auto 34px}.workspace{padding:0 12px 25px;font-weight:bold;display:flex;justify-content:space-between}.workspace span{font-size:11px;background:#f0eafa;padding:0 8px;border-radius:5px;color:#6a32a9}nav{display:grid;gap:9px}nav button{border:0;text-align:right;display:flex;gap:14px;padding:14px;font-size:16px}nav button span{font-size:14px}nav button.active{background:#eef2fb;font-weight:bold;box-shadow:inset -3px 0 var(--navy)}.side-bottom{margin-top:auto;padding:20px 12px 0;border-top:1px solid var(--line);color:var(--muted)}.side-bottom p{margin:7px 0 0}.dot{display:inline-block;width:7px;height:7px;background:#b17d2e;border-radius:50%;margin-left:7px}.body{margin-right:238px}header{height:80px;background:#fff;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;color:var(--muted)}header>div{display:flex;align-items:center;gap:20px}.avatar{background:#e9edf6;border-radius:50%;height:35px;width:35px;text-align:center;padding:4px;color:var(--navy)}.pill{font-size:12px;border-radius:6px;background:#edf1f8;color:var(--navy);padding:5px 10px;white-space:nowrap}main{max-width:1500px;margin:auto;padding:32px 42px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{font-size:12px;letter-spacing:.3px;color:#7e7191;margin:0 0 7px}h1{font-size:32px;line-height:1.25;letter-spacing:-1px;margin:0 0 12px}h2{font-size:18px;margin:0}p{color:var(--muted)}.heading p:last-child{margin:0}.notice{display:flex;gap:18px;align-items:center;background:#f0ebf8;border-right:3px solid #9165bd;padding:12px 18px;font-size:12px;color:#5c4674}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:26px 0 35px;background:white;border:1px solid var(--line);border-radius:12px;padding:23px 0}.stats>div{padding:0 26px;border-left:1px solid var(--line);display:flex;flex-direction:column}.stats>div:last-child{border:0}.stats span{font-size:12px;color:var(--muted)}.stats strong{font-size:34px;line-height:1.4;font-weight:normal}.stats .small{font-size:23px;padding-top:9px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.filters{display:flex;gap:4px}.filters button{font-size:12px;border:0;background:none;padding:6px 13px}.filters .selected{background:#e3eafa;color:var(--navy)}.desk{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(360px,1.4fr);gap:22px;align-items:start}.list{display:grid;gap:12px}.draft{width:100%;text-align:right;padding:20px;border:1px solid var(--line);border-radius:12px;display:block}.draft.selected{border-color:#718cb7;box-shadow:inset -3px 0 var(--navy)}.draft small{color:var(--muted)}.draft strong{display:block;margin:8px 0;font-size:16px}.draft p{margin:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty{padding:35px 22px;background:#fff;border:1px dashed #c8d2e1;border-radius:12px;text-align:center}.empty strong{font-size:18px}.editor,.panel{background:white;border:1px solid var(--line);border-radius:12px}.editor-top{display:flex;justify-content:space-between;background:#f9fafc;border-bottom:1px solid var(--line);padding:14px 22px;border-radius:12px 12px 0 0;font-size:12px}.editor-top span:last-child{color:var(--muted)}form{padding:22px}label,legend{font-size:12px;font-weight:bold;display:block;margin-bottom:7px}input:not([type=checkbox]),textarea,select{width:100%;padding:10px 12px;background:#fff;border:1px solid #cbd5e4;border-radius:7px;color:var(--ink)}textarea{resize:vertical;min-height:170px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:19px 0}fieldset{border:0;padding:0;margin:0}fieldset label{display:inline-block;font-weight:normal;margin-left:10px}fieldset input{accent-color:var(--navy)}.media-note{padding:13px;background:#f6f7fa;margin:12px 0 20px;border-radius:6px;font-size:12px;color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap}.hint{font-size:11px;margin-bottom:0}footer{padding:20px 42px;color:var(--muted);font-size:11px}#message{position:sticky;bottom:20px;margin:20px 0 0;min-height:0}#message:not(:empty){padding:12px 20px;background:#e9eef9;border:1px solid #bfccdf;border-radius:9px}.team-intro{padding:30px 0}.team-row{display:grid;grid-template-columns:55px 150px 1fr 110px;gap:20px;padding:23px 10px;border-bottom:1px solid var(--line);align-items:center}.team-number{font-size:26px;color:#8761b7}.team-row p{margin:0}.panel{padding:25px}.event{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.event small{color:var(--muted)}.connections{margin-top:25px}.connections article{display:flex;justify-content:space-between;align-items:center;padding:23px 0;border-bottom:1px solid var(--line)}.connections p{margin:3px 0}.connections a{color:var(--navy)}[hidden]{display:none!important}@media(max-width:1050px){.sidebar{width:190px;padding:24px 14px}.body{margin-right:190px}main{padding:25px}.desk{grid-template-columns:1fr}.stats>div{padding:0 15px}.notice{align-items:start;flex-direction:column;gap:3px}.team-row{grid-template-columns:35px 100px 1fr}.team-row .pill{grid-column:2}}@media(max-width:640px){.sidebar{position:static;width:auto;padding:15px}.logo{margin:0;width:125px;height:42px}.workspace,.side-bottom{display:none}nav{display:flex;overflow:auto;margin-top:10px}nav button{white-space:nowrap;padding:9px;font-size:12px;gap:5px}nav button span{font-size:11px}.body{margin:0}header{height:55px;padding:0 18px;font-size:12px}.pill{font-size:10px}main{padding:23px 16px}h1{font-size:26px}.heading{align-items:start;flex-direction:column}.stats{grid-template-columns:1fr 1fr;row-gap:20px}.stats>div:nth-child(2){border:0}.desk{display:block}.editor{margin-top:20px}.section-title{gap:8px}.form-row{grid-template-columns:1fr}.team-row{grid-template-columns:30px 1fr}.team-row p{grid-column:2}.event{flex-direction:column;gap:5px}footer{padding:20px}.connections article{align-items:start;gap:8px}}
.desk>*{min-width:0}.draft{min-width:0;overflow:hidden}.body{min-width:0}

.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,470px);background:white;border:1px solid var(--line);border-top:4px solid var(--navy);padding:38px;border-radius:14px}.auth-card .logo{display:block;margin:0 0 32px}.auth-card button{width:100%;margin:8px 0}.auth-card small{color:var(--muted);font-size:11px}.auth-card h1{font-size:32px}#auth-message{min-height:27px}header>span{overflow:hidden;text-overflow:ellipsis;direction:ltr}@media(max-width:640px){header{height:auto;min-height:60px;flex-wrap:wrap;gap:8px;padding:10px 16px}header>div{gap:7px}header button{padding:6px 10px}.auth-card{padding:25px}}
/* Private pirate command deck: the scene is the canvas, tools stay compact. */
#voyage-view{margin-top:22px}.voyage-topline{display:flex;justify-content:space-between;padding:10px 0;font-size:11px;letter-spacing:.7px;color:#627585}.voyage-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;background:#fff;border:1px solid #d3dfe6;overflow:hidden;border-radius:12px}.sea-wrap{position:relative;min-width:0;background:#a9d9e4;height:590px;direction:ltr}#sea-scene{width:100%;height:100%}#sea-scene canvas{display:block;touch-action:none}.sea-caption{position:absolute;top:23px;right:25px;direction:rtl;pointer-events:none;color:#143d54;text-shadow:0 1px #cfe9ea}.sea-caption strong{display:block;font-size:21px}.sea-caption span{font-size:11px}.sea-tools{position:absolute;bottom:20px;left:20px;display:flex;gap:5px;direction:rtl}.sea-tools button{font-size:11px;padding:8px 11px;border-color:#d6e4e6;background:#f5faf7ef}.sea-compass{position:absolute;left:25px;top:20px;text-align:center;font-family:Georgia,serif;color:#215a6d;font-size:23px;line-height:1.2;pointer-events:none}.captain-panel{padding:25px 22px;border-right:1px solid #e1e8e9;display:flex;flex-direction:column}.crew-heading{display:flex;gap:13px;align-items:center;margin:9px 0}.crew-heading h2{font-size:27px;line-height:1.2}.crew-heading span{font-size:12px;color:#627585}#crew-mark{width:46px;height:50px;display:grid;place-items:center;color:#fff;font-size:22px;border-radius:8px 8px 20px 8px}#crew-about{font-size:12px;min-height:83px;line-height:1.9}#crew-action{font-size:12px;padding:10px;width:100%}#crew-action:disabled{cursor:not-allowed}.voyage-ledger{margin-top:auto;padding-top:25px}.voyage-ledger h3{font-size:13px;margin:0 0 10px}.voyage-ledger>div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #e7ebef;font-size:12px}.voyage-ledger strong{font-weight:normal}.voyage-log{font-size:11px;margin-top:20px}.voyage-log>span{color:#7d8b9a}.voyage-log p{color:#173b72;line-height:1.7;margin:5px 0 0;overflow-wrap:anywhere}.crew-roster{display:grid;grid-template-columns:repeat(6,1fr);gap:0;background:#fff;border:1px solid #d3dfe6;border-radius:10px;margin-top:12px;overflow:hidden}.crew-roster button{display:flex;align-items:center;gap:9px;text-align:right;border:0;border-left:1px solid #e6ebed;border-radius:0;padding:16px 12px}.crew-roster button:last-child{border:0}.crew-roster button[aria-pressed=true]{background:#e9eff6;box-shadow:inset 0 -3px #173b72}.crew-token{width:29px;height:36px;border-bottom:3px solid var(--crew);display:grid;place-items:center;color:var(--crew);font-family:Georgia,serif;font-size:19px}.crew-roster strong{display:block;font-size:13px}.crew-roster small{display:block;color:#758292;font-size:11px}.voyage-foot{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0 0}.voyage-foot strong{font-size:13px}.voyage-foot p{font-size:11px;margin:5px 0}.voyage-foot button{font-size:12px;white-space:nowrap}#sea-status{font-size:12px;margin:10px 0;min-height:20px}#crew-checks:not(:empty){font-size:11px;margin-top:12px;background:#f4f7fa;padding:10px}#crew-checks p{margin:3px 0}.webgl-fallback{padding:160px 35px;direction:rtl;text-align:center;color:#173b72}@media(min-width:1500px){.sea-wrap{height:650px}}@media(max-width:1150px){.voyage-layout{grid-template-columns:minmax(0,1fr) 225px}.captain-panel{padding:20px 15px}.crew-roster{grid-template-columns:repeat(3,1fr)}.sea-wrap{height:540px}}@media(max-width:800px){.voyage-layout{grid-template-columns:1fr}.sea-wrap{height:470px}.captain-panel{border:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}.captain-panel .eyebrow{grid-column:1/-1}.crew-heading{grid-column:1}#crew-about{min-height:0;grid-column:1/-1}.voyage-ledger{padding-top:5px;margin:0;grid-column:2;grid-row:2/5}.voyage-log{grid-column:1/-1}.voyage-foot{align-items:start;flex-direction:column}.voyage-topline{font-size:9px}.sea-caption{right:15px;top:17px}.sea-caption span{max-width:205px;display:block}.sea-compass{left:15px}.sea-tools{left:10px;bottom:10px}.sea-tools button{padding:8px}.crew-roster button{padding:12px 9px}}
