@font-face{font-family:TideSerif;src:local("Songti SC"),local("Noto Serif CJK SC"),local("SimSun")}*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#0b191e;color:#e6e9df;font:15px/1.65 "Microsoft YaHei","PingFang SC",system-ui,sans-serif;min-height:100vh}body:before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,21,26,.94),rgba(8,25,29,.82)),url("assets/harbor.webp") center/cover}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid #3b5556;background:#173137;color:#e1e8de;border-radius:5px;padding:9px 15px;transition:background .15s,border-color .15s}button:hover{background:#28434a;border-color:#91b7a7}button:disabled{cursor:default;opacity:.38}button.primary,a.primary{color:#152623;background:#c8b983;border-color:#d5c79a;font-weight:650;letter-spacing:.04em}button.primary:hover{background:#e1d09a}button.quiet{background:transparent;border-color:#516861}button.danger{color:#f1af9c;border-color:#81574e}button.small{font-size:12px;padding:5px 9px;min-height:34px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #dfc68b;outline-offset:4px}a{color:#a5d9c1;text-underline-offset:4px}h1,h2,h3,p{margin-top:0}h2{font-family:TideSerif,serif;font-weight:500;font-size:29px;letter-spacing:.07em;margin:0 0 8px}h3{font-size:16px;line-height:1.5;margin-bottom:6px}small{color:#96aaa9;font-size:11px}strong{font-weight:650}em{font-style:normal;color:#8ca2a1}hr{border:0;border-top:1px solid #344b4b;margin:20px 0}[hidden]{display:none!important}.eyebrow{font-size:10px;letter-spacing:.17em;text-transform:uppercase;color:#b7c7b8}.skip{position:absolute;left:10px;top:-100px;background:#132d32;padding:10px;z-index:99}.skip:focus{top:10px}.landing{position:relative;min-height:100svh;background:linear-gradient(90deg,rgba(5,18,26,.9) 0%,rgba(5,18,26,.48) 44%,rgba(5,18,26,0) 78%),url("assets/harbor.webp") center/cover;display:flex;align-items:center;padding:7vh 8vw}.landing-copy{max-width:510px}.landing h1{font-family:TideSerif,serif;font-weight:400;font-size:clamp(60px,7.5vw,105px);line-height:1.18;letter-spacing:.13em;margin:30px 0 26px;color:#e5dfc8;text-shadow:0 4px 24px #102326}.landing h1 span{color:#d9c495}.tagline{font-family:TideSerif,serif;font-size:22px;line-height:1.8;letter-spacing:.1em;color:#e0e8df}.intro{color:#a5b7b8;font-size:14px}.start-actions{display:flex;flex-wrap:wrap;gap:12px;margin:30px 0}.start-actions .primary{padding:13px 22px}.start-actions span{margin-left:26px}.landing-meta{display:flex;flex-wrap:wrap;gap:18px;font-size:11px;color:#9db5b8}.credit{margin:22px 0 0;font-size:10px;letter-spacing:.08em;color:#8faaa8}.landing-caption{position:absolute;bottom:30px;right:4vw;font-size:11px;color:#c9d9c9;letter-spacing:.08em}.dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#8fe3c3;box-shadow:0 0 12px #71ddad;margin-right:10px}#app{max-width:1500px;margin:auto;padding:0 34px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:23px 0 18px;border-bottom:1px solid #39504a}.logo{font-family:TideSerif,serif;text-decoration:none;font-size:24px;letter-spacing:.12em;color:#e1d5b2}.logo small{font-family:system-ui;display:block;font-size:8px;letter-spacing:.28em;color:#93aaa2}.tools{display:flex;gap:8px}.tools button{font-size:12px;padding:6px 11px;background:transparent}.statusbar{display:grid;grid-template-columns:1.2fr repeat(4,1fr) 1.4fr;align-items:center;gap:20px;padding:20px 0}.date-block small,.stat small{display:block;margin-bottom:4px}.date-block strong{font-family:TideSerif;font-weight:400;font-size:27px;letter-spacing:.06em}.date-block em{font-family:system-ui;font-size:12px}.stat strong{font-family:Georgia,serif;font-weight:400;font-size:25px}.stat #cash{color:#e1c984}.stat #reserve{font:13px/1.5 system-ui;color:#c3d3c3}.stat #heat{color:#bcada0}.day-action{text-align:right}.day-action button{font-size:13px;width:100%;max-width:210px}.timeline{display:flex;gap:5px;padding-bottom:17px}.timeline span{flex:1;height:4px;background:#243c40;border-radius:1px}.timeline span.done{background:#59796c}.timeline span.now{background:#d5c18b;box-shadow:0 0 10px #baa87155}.timeline span.rent{height:7px;background:#80684f}.timeline span.rent.done{background:#90b297}.market-strip{display:flex;align-items:center;gap:15px;background:#132c30;border:1px solid #36504d;padding:12px 17px;font-size:12px;border-radius:5px}.market-strip strong{color:#d7cfae;white-space:nowrap}.market-strip #event-text{color:#abc1b8}.forecast{margin-left:auto;font-size:11px;color:#9cb9ad}.tabs{display:flex;gap:0;border-bottom:1px solid #3c5651;margin:20px 0}.tabs button{padding:14px 24px;border:0;border-bottom:2px solid transparent;background:transparent;color:#688d88;border-radius:0;font-size:10px;letter-spacing:.06em}.tabs button span{margin-left:10px;font-size:14px;color:#b4c6bb}.tabs button.active{border-bottom-color:#d1ba81}.tabs button.active span{color:#ead4a0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start;min-height:650px}.view{min-width:0}.panel{border:1px solid #35504d;background:linear-gradient(125deg,#152f33ee,#0d252be8);border-radius:6px;padding:21px;margin-bottom:17px}.section-label{display:flex;justify-content:space-between;font-size:11px;letter-spacing:.06em;color:#c7cdb8;margin-bottom:15px}.subtitle{font-size:13px;color:#a0b9b0;margin-bottom:20px}.heading{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:20px}.heading p{margin-bottom:0}.badge{font-size:10px;display:inline-block;background:#2d4640;color:#b9d8bf;border:1px solid #486251;border-radius:3px;padding:2px 7px;letter-spacing:.02em}.badge.warn{color:#e8bd8d;border-color:#765c44;background:#463a2d}.badge.red{color:#f4aaa5;border-color:#835354;background:#3e2b2b}.empty{padding:24px;text-align:center;color:#86a39e;border:1px dashed #36564f;border-radius:5px;font-size:13px}.window-items{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.window-slot{aspect-ratio:1;border:1px dashed #4c6457;border-radius:4px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#1a3334;color:#6b8980;font-size:10px;overflow:hidden}.window-slot img{width:65%;height:55%}.window-slot span{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.window-desc{font-size:11px;color:#9ab4a6;margin:12px 0 0}.tip h3{font-family:TideSerif;color:#ded2a3;font-size:18px;font-weight:400}.tip p{font-size:12px;color:#a6bdb0;margin-bottom:10px}.journal{padding-bottom:10px}.log-entry{font-size:11px;color:#9db4ad;border-top:1px solid #2c4947;padding:10px 0}.log-entry b{font-weight:400;color:#d5c294;margin-right:7px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.item-card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid #3c5551;border-radius:5px;padding:15px;background:#143038aa}.item-card .art{height:78px;display:flex;justify-content:center;align-items:center;margin:0 0 12px;background:radial-gradient(ellipse at center,#6fa59522,transparent 75%)}.item-card .art img{height:78px;width:90px;object-fit:contain;filter:drop-shadow(0 6px 8px #081a1c)}.item-card h3{font-size:14px;color:#e2ddc5}.item-card .tags{display:flex;flex-wrap:wrap;gap:4px;min-height:25px;margin-bottom:5px}.item-card .description{font-size:11px;color:#91ada6;min-height:36px;margin-bottom:10px}.numbers{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#a6b7a9}.numbers b{font-size:15px;color:#e1ca8d}.item-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:13px}.item-actions button{flex:1;white-space:nowrap}.item-actions select{width:100%;background:#123039;color:#c8d4c5;border:1px solid #3e5b57;border-radius:3px;padding:5px;font-size:11px}.card-top{display:flex;justify-content:space-between}.quality{color:#d5b972;font-size:11px}.guest-stage{display:grid;grid-template-columns:165px 1fr;gap:24px;align-items:center;min-height:210px}.portrait{width:155px;height:174px;object-fit:contain;background:radial-gradient(ellipse,#77a79922,transparent 75%)}.guest-name{font-size:12px;color:#adcaba;margin-bottom:9px}.guest-dialogue{font-family:TideSerif;font-size:25px;color:#e5dbc3;line-height:1.7}.guest-details{font-size:12px;color:#a9bbb2}.choice-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}.trade-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sell-line{border:1px solid #3a5551;border-radius:5px;padding:14px;display:flex;flex-direction:column;gap:7px}.sell-line-header{display:flex;gap:12px;align-items:center}.sell-line img{width:48px;height:48px}.sell-line .choice-row{margin-top:0}.sell-line button{font-size:11px;padding:7px 9px}.story{border-color:#837452;background:linear-gradient(125deg,#323c2ccc,#152f33ee)}.story .story-text{font-family:TideSerif;font-size:18px;color:#e0d8bb;line-height:1.9}.story small{display:block}.workshop-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(200px,1fr);gap:20px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.grid-cell{aspect-ratio:.92;padding:7px 4px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#132c2f;border:1px dashed #426156;font-size:9px;color:#8ea79c;position:relative}.grid-cell img{width:56%;height:49%;object-fit:contain}.grid-cell strong{font-size:10px;font-weight:400}.grid-cell.occupied{border-style:solid}.grid-cell.selected{border:2px solid #dac687;background:#3d4836}.grid-cell.boosted:after{content:"↑";position:absolute;top:2px;right:5px;color:#8de3bd;font-size:13px}.grid-cell span{font-size:9px}.machine-detail{font-size:12px;color:#b3c6b9}.machine-detail h3{color:#e2d5ad;font-size:18px;font-family:TideSerif}.machine-detail .choice-row button{font-size:11px}.production-line{font-size:12px;border-top:1px solid #35534c;padding:12px 0}.production-line strong{color:#d5c498;font-weight:500}.production-line small{display:block}.machine-store{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.machine-store img{width:75px;height:65px;object-fit:contain;display:block;margin:0 auto 10px}.machine-store .item-card{padding:13px}.machine-store h3{font-size:12px}.machine-store p{font-size:11px;color:#a0b8a8;margin-bottom:12px}.machine-store button{font-size:11px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px}.filters button{font-size:11px;padding:5px 11px}.filters .active{border-color:#c7ba85;color:#e3d099;background:#344139}.salvage-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.route{background:linear-gradient(160deg,#223e40,#102a30);padding:22px;border:1px solid #456356;border-radius:6px}.route .route-no{font:45px Georgia;color:#658d7b;line-height:1;margin-bottom:28px}.route h3{font-family:TideSerif;font-size:23px;font-weight:400;color:#d9d2b7}.route p{font-size:12px;color:#a9c1b2;min-height:90px}.route button{width:100%;font-size:12px}.step-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:25px 0}.step{border-top:1px solid #557268;padding-top:14px;font-size:12px;color:#a8b9aa}.step b{display:block;color:#dfc991;font-size:15px;font-weight:400;margin-bottom:7px}.counter-scenery{height:160px;background:linear-gradient(90deg,#10292c77,#10292c11),url("assets/harbor.webp") 80% 55%/cover;border-radius:5px;margin:20px 0;position:relative}.counter-scenery span{position:absolute;bottom:16px;left:18px;font-family:TideSerif;font-size:20px;letter-spacing:.14em;text-shadow:0 3px 9px #000}.ledger-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.ledger-stats div{background:#133038;border:1px solid #35534e;padding:15px}.ledger-stats small{display:block}.ledger-stats strong{font:25px Georgia;color:#d7c28b}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;font-weight:400;color:#89ac9b;border-bottom:1px solid #4d6859;padding:9px}td{border-bottom:1px solid #2f4d47;padding:11px 9px;color:#bdd0be}.gain{color:#9ddab9}.loss{color:#e0a793}.rent-plan{display:flex;gap:12px;flex-wrap:wrap}.rent-plan div{flex:1;padding:15px;background:#1a3638;border:1px solid #486459;min-width:120px;font-size:12px}.rent-plan b{display:block;font:24px Georgia;color:#d6c48f}.app-footer{display:flex;justify-content:space-between;gap:15px;padding:25px 0;margin-top:20px;border-top:1px solid #38514a;font-size:10px;color:#73938b}.app-footer a{font-size:11px}.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);opacity:0;pointer-events:none;border:1px solid #91aa85;background:#223d34;color:#ecdfb7;padding:13px 23px;border-radius:6px;z-index:100;font-size:13px;max-width:90vw;width:max-content;box-shadow:0 15px 40px #0008;transition:opacity .15s,transform .15s}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{width:min(680px,92vw);max-height:85svh;overflow:auto;border:1px solid #7d8c66;border-radius:8px;background:linear-gradient(135deg,#193638,#0b242b);color:#d8e3d4;padding:35px;box-shadow:0 30px 120px #0009}dialog::backdrop{background:#07171bc9;backdrop-filter:blur(4px)}.dialog-close{position:absolute;top:9px;right:12px;font-size:22px;background:transparent;border:0;padding:2px 8px}dialog h2{color:#e4d3a7;margin-bottom:15px}dialog p,dialog li{font-size:13px;color:#b5cabb}dialog ul,dialog ol{padding-left:22px}dialog li{margin-bottom:9px}dialog button{font-size:12px}.manual-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.manual-grid h3{font-family:TideSerif;font-size:19px;font-weight:400;color:#daca9b}.inspect-art{height:160px;width:160px;margin:10px auto;display:block;border:1px solid #456859;border-radius:50%;background:#112d32}.ending-art{height:150px;background:url("assets/harbor.webp") 80% 55%/cover;border-radius:5px;margin-bottom:20px}.save-warning{color:#efb18e!important}.file-controls{display:flex;flex-wrap:wrap;gap:10px}.seed-field{background:#102a30;color:#e0dac2;border:1px solid #496259;padding:8px;border-radius:4px;width:100%;margin:10px 0 18px}.profit-note{font-size:11px;color:#8fb5a0;margin:9px 0}.danger-note{color:#deb18c}.disabled-note{color:#9ab1a5;font-size:12px}
@media(min-width:1500px){.landing{background-position:center 58%}}@media(max-width:1100px){#app{padding:0 22px}.workspace{grid-template-columns:minmax(0,1fr) 240px;gap:15px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tabs button{padding:13px 17px}.statusbar{gap:12px}.machine-store{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-layout{grid-template-columns:1fr}.grid-cell{aspect-ratio:1.2}.salvage-routes{gap:9px}.route{padding:15px}.route h3{font-size:20px}.forecast{max-width:150px}.guest-stage{grid-template-columns:120px 1fr;gap:15px}.portrait{width:115px;height:150px}.guest-dialogue{font-size:22px}}
@media(max-width:760px){body{font-size:14px}.landing{padding:50px 7vw;background-position:62% center;background-image:linear-gradient(90deg,#071c28dd,#061b2866),url("assets/harbor.webp")}.landing h1{font-size:72px;margin:25px 0}.landing-caption{bottom:15px;left:7vw;right:auto;font-size:9px}.landing-meta{font-size:10px;gap:10px}#app{padding:0 14px}.topbar{padding:15px 0}.logo{font-size:20px}.tools{gap:5px}.tools button{font-size:11px;padding:6px 8px}.statusbar{grid-template-columns:1.2fr 1fr 1fr;gap:12px;padding:17px 0}.date-block strong{font-size:23px}.stat strong{font-size:24px}.day-action{grid-column:3}.day-action button{font-size:11px;padding:10px 7px}.market-strip{flex-wrap:wrap;gap:5px 12px;padding:10px 12px}.market-strip #event-text{width:100%;order:3;font-size:11px}.forecast{max-width:none;flex:1;text-align:right;font-size:10px}.market-strip .eyebrow{font-size:8px}.market-strip strong{font-size:11px}.tabs{margin:15px 0;position:sticky;top:0;background:#0e252af5;z-index:10;justify-content:space-between}.tabs button{padding:12px 5px;font-size:9px;flex:1}.tabs button span{display:block;margin:0;font-size:12px}.workspace{display:flex;flex-direction:column;gap:0;min-height:0}.view,.sidebar{width:100%}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sidebar .panel{padding:15px;margin-bottom:12px}.sidebar .journal{grid-column:1/-1}.journal #log{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.panel{padding:17px;margin-bottom:13px}h2{font-size:25px}.heading{gap:10px}.subtitle{font-size:12px}.cards{gap:10px}.item-card{padding:12px}.item-card .art{height:68px}.item-card .art img{height:68px}.item-card .description{font-size:10px;min-height:34px}.item-card .item-actions button{font-size:10px;min-height:36px}.guest-stage{grid-template-columns:95px 1fr;gap:15px;min-height:170px}.portrait{width:95px;height:145px}.guest-dialogue{font-size:19px}.guest-details{font-size:11px}.trade-options{grid-template-columns:1fr}.step-list{gap:10px}.step{font-size:11px}.step b{font-size:13px}.counter-scenery{height:135px}.salvage-routes{grid-template-columns:1fr}.route{display:grid;grid-template-columns:45px 1fr;gap:0 12px;padding:16px}.route .route-no{grid-row:1/4;font-size:35px;margin:0}.route h3{font-size:20px;margin-bottom:6px}.route p{min-height:0;margin-bottom:12px}.route button{grid-column:2}.ledger-stats{gap:7px}.ledger-stats div{padding:12px}.ledger-stats strong{font-size:21px}.app-footer{flex-wrap:wrap;padding:15px 0}.manual-grid{grid-template-columns:1fr}dialog{padding:30px 22px}.timeline{gap:3px}.story .story-text{font-size:17px}.window-desc{font-size:10px}.tip p{font-size:11px}.grid-cell{aspect-ratio:1.08}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.portrait{background-image:url("assets/portraits.webp");background-size:300% 200%;height:155px;border-radius:5px;box-shadow:0 8px 35px #081c2255}.portrait-metal{background-position:0% 0%}.portrait-water{background-position:50% 0%}.portrait-bio{background-position:100% 0%}.portrait-antique{background-position:0% 100%}.portrait-relic{background-position:50% 100%}.portrait-apprentice{background-position:100% 100%}.portrait-story{width:90px;height:90px;float:left;margin:0 17px 8px 0}.story .choice-row{clear:both}@media(max-width:1100px){.portrait{height:115px}.portrait-story{height:90px}}@media(max-width:760px){.portrait{height:95px}.portrait-story{width:70px;height:70px}}
.date-block strong{white-space:nowrap}@media(max-width:760px){.date-block strong{font-size:21px}.item-card .item-actions button{font-size:11px;min-height:40px}}
