/* The workstation uses a porcelain/champagne palette and restrained chamfered controls. */
:root{color-scheme:light;--bg:#eeefed;--panel:#fafbf9;--raised:#f0f0eb;--line:#d9dcd7;--text:#343d42;--muted:#7c8587;--accent:#a59a7d;--cyan:#4988a4}
body{background:#eeefed url('/assets/porcelain.png') no-repeat center top;background-size:100% 700px;letter-spacing:.2px;font-size:16px;font-weight:600}
.topbar{height:88px;background:#f9faf8d9;border-bottom:1px solid #c7cbc7;gap:65px}.brand{font-size:21px;letter-spacing:1.5px;font-weight:700}.brand-mark{background:transparent;color:#a5997a;border:1px solid #a5997a;border-radius:0;width:35px;height:35px;line-height:32px;transform:rotate(45deg);font-size:25px}.brand-mark span{display:block;transform:rotate(-45deg)}.brand small{color:#90958e;letter-spacing:2.5px;font-size:11px;margin-top:7px}.topbar nav{gap:33px}.nav-item{font-weight:700;color:#788082;font-size:15px;letter-spacing:1px}.nav-item.active{color:#807356}.nav-item.active:after{height:1px;background:#a5997a}.top-actions{gap:25px}.status{font-size:13px;color:#7b8886;letter-spacing:.8px}.status:before,.live-dot{background:#73988c}#ship-count{background:#e9ece7;color:#7f897e;border-radius:0;font-size:12px}
main{padding-top:39px}.eyebrow{color:#9a917c;letter-spacing:3px;font-size:12px}.page-heading{padding:2px 0 24px;margin-bottom:24px;border-bottom:1px solid #d7dcd6;align-items:flex-end}h1{font-weight:700;letter-spacing:1px;font-size:clamp(26px,2.6vw,36px);line-height:1.5}h1>span{color:#a69c86}.page-heading>div{min-width:0}.page-heading p{font-size:16px;font-weight:600;color:#8a9392;margin-top:11px;letter-spacing:1px}.step-hint{font-size:13px;letter-spacing:.5px;color:#949b93}.step-hint i{color:#b8bfb5}
.workspace{gap:25px;grid-template-columns:270px minmax(320px,1fr) 270px}.panel{background:#fcfdfbe8;border:1px solid #d5dad5;border-radius:2px;box-shadow:0 6px 18px #394b3b04}.control-panel,.design-panel{padding:22px}.section-title{margin-bottom:25px}h2{font-weight:700;letter-spacing:1.5px;font-size:16px}.section-title h2 span{color:#a89e86;font-family:monospace;font-size:13px}.subtle-tag{color:#9c9689;border-color:#d5d4c9;border-radius:0;font-size:11px;letter-spacing:.5px}.text-button{font-size:14px;font-weight:700;color:#8c8e7f}.field-label, label{color:#687779;font-size:14px;letter-spacing:.4px}label small{font-weight:600;color:#a4aaa0;font-size:12px}input,select{font-weight:600;background:#f5f7f3;border-color:#d6ddd5;border-radius:2px;color:#435158;font-size:15px}input::placeholder{color:#a4aea7}input:focus,select:focus{border-color:#9ba88f;box-shadow:0 0 0 2px #9ba88f13}.ship-slot{font-size:15px;border-color:#becbbf;border-radius:0;background:#f1f5f0;color:#84968b;height:116px;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px))}.ship-slot.has-ship{border-color:#a2b5ae}.ship-slot.has-ship:after{background:linear-gradient(transparent 25%,#102b39d9)}.ship-slot .slot-name{letter-spacing:1px;font-weight:700}.slot-name small{letter-spacing:.5px;font-size:11px;font-weight:600}.ship-slot img{opacity:.91}.slot-plus{color:#a7b4a6}.route-connector{color:#8e9e94;height:40px}.route-connector span{color:#a49a81}.route-connector i{background:#d4dcd2}.route-connector small{font-size:11px;color:#9ca79c;letter-spacing:2px}.divider{background:#dde2d9;margin:23px 0}.segmented{background:#edf1ea;border-radius:2px;padding:3px}.segmented button{border-radius:0;color:#879786;font-size:14px;letter-spacing:1px;padding:9px}.segmented button.selected{background:#9c927b;color:#fff}.two-fields select{font-size:13px}.adjust{border-color:#dce2d8}.adjust summary{color:#78867b;letter-spacing:.8px;font-size:14px}.adjust summary span{color:#9ba899}.adjust .muted{font-size:13px;color:#929e91}.crop-group strong{font-size:14px;color:#8e846b}.panel-footnote{font-size:13px;color:#9aa693;line-height:1.9}.crop-group label{font-size:13px;color:#78867b}
.primary,.secondary{clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);border-radius:0;letter-spacing:1px;font-size:14px;font-weight:700;padding:11px 18px}.primary{background:#93866b;color:#fff;border-color:#93866b}.primary:hover{background:#807458}.secondary{background:#edf0e9;border-color:#d5dccf;color:#69775e}.danger{color:#a13e3e;background:#f6e5df;border-radius:0;font-weight:700}.icon-button{background:#edf0e9;color:#86917c;border-radius:0}
.preview-panel{background:#f5f6f1;box-shadow:none}.preview-toolbar{font-size:13px;background:#fdfefa;color:#8d998b;border-color:#dce2d7;letter-spacing:1px;height:47px}.preview-toolbar>span:first-child{color:#82907c}.canvas-stage{padding:25px;background-image:linear-gradient(135deg,#f0f1eb 25%,transparent 25%),linear-gradient(315deg,#edf0e7 20%,transparent 20%);background-size:100% 100%}#preview{background:#f1f0ed;box-shadow:0 7px 21px #1c343220}#preview-empty{background:#f5f4ee url('/assets/porcelain.png') center/cover;border:1px solid #d4d0c5;color:#70766c}#preview-empty h3{font-weight:700;letter-spacing:2px;font-size:20px}#preview-empty p{color:#9b9f92;font-size:14px}#preview-empty small{font-size:12px;color:#a7a99b}.empty-orbit{color:#a89e83;border-color:#b9af97;box-shadow:none;border-radius:0;transform:rotate(45deg);font-size:36px;width:57px;height:57px;line-height:57px;margin-bottom:30px}.preview-caption{font-size:13px;color:#a1a995;letter-spacing:.5px}.preview-caption span:first-child{color:#84927d}.export-bar{background:#eef1e9;border-color:#d8dfd1;padding:16px 19px}.export-bar label{font-size:13px;color:#87957f}.export-bar select{font-size:14px;background:#f8faf4;border-color:#d4ddcc}.export-bar .primary{height:42px}
.template-list{gap:11px}.template{padding:11px 9px;background:#f9faf5;border:1px solid #d7ddcf;border-radius:0;gap:10px}.template.selected{background:#f0f0e6;border-color:#b4a789;box-shadow:none}.template strong{color:#686f60;font-size:15px;letter-spacing:1.3px;font-weight:700}.template small{color:#a0a18f;font-size:12px;letter-spacing:.4px}.template em{color:#a0987a;font-size:13px}.frame-thumb{width:48px;height:48px;object-fit:cover;border-radius:0;border:1px solid #e4e5da;background:#dce2d6}.logo-area{border-color:#c3cbb9;background:#f1f4ec;border-radius:0}.logo-area span{color:#93a086;font-size:13px}.settings-note,.muted{font-size:13px;color:#959e8b}.design-panel>label{margin-bottom:17px}
.library-toolbar .search-field{background:#f8faf3;border-color:#d1dac6;border-radius:0}.search-field span{color:#99a68b}.ship-card{background:#f9fbf4;border-color:#cdd7c4;border-radius:0}.ship-card .photo{clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%)}.ship-card h3{font-size:17px;color:#53654f;letter-spacing:1px;font-weight:700}.ship-card .meta{font-size:12px;font-weight:600;color:#94a38a}.library-note{font-size:14px;color:#98a58f}.empty-library{border-color:#c7d2bd;border-radius:0;color:#9aa68f}.empty-library h3{color:#6b7d5f}.compact .selected{border-color:#9e9377}.card-actions .secondary{font-size:12px;letter-spacing:.2px;padding:7px 9px}.empty-library .secondary{margin-top:10px}
dialog{color:#53654a;background:#f8faf4;border-color:#c6d1bc;border-radius:2px;box-shadow:0 20px 80px #10271840}dialog::backdrop{background:#18282350;backdrop-filter:blur(5px)}.dialog-head h2{font-weight:700;letter-spacing:2px;font-size:22px}.search-input{background:#f0f4e9}.dialog-actions .primary{background:#93866b}.dialog-actions .danger{font-weight:700;font-size:14px}#login-dialog{background:#faf9f4 url('/assets/porcelain.png') center/cover}#login-dialog h2{font-weight:700;letter-spacing:3px}#toast{background:#4f6456;color:#f9fff7;border-radius:2px;box-shadow:0 9px 40px #0002;font-size:15px}footer{color:#a2ab98;padding-top:5px;font-size:12px;letter-spacing:.7px}footer i{color:#b6bea9}
@media(min-width:1450px){.workspace{grid-template-columns:290px minmax(320px,1fr) 280px}.ship-slot{height:128px}}
@media(max-width:1150px){.workspace{grid-template-columns:255px minmax(300px,1fr);gap:20px}.design-panel{grid-template-columns:1fr 1fr 1fr}.template-list{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.topbar{height:auto;min-height:96px;padding-top:14px;padding-bottom:14px;gap:12px}.brand{font-size:18px;letter-spacing:1px}.brand-mark{width:27px;height:27px;line-height:25px;font-size:21px}.brand small{font-size:9px;letter-spacing:1.5px}.topbar nav{width:100%;height:34px;margin-left:0;justify-content:space-between;gap:20px}.nav-item{font-size:13px;letter-spacing:0}.page-heading{padding-bottom:20px;align-items:flex-start}h1{font-size:26px;letter-spacing:1px}.page-heading p{font-size:13px;letter-spacing:.5px}.eyebrow{letter-spacing:1.5px;font-size:10px}.workspace{grid-template-columns:1fr;gap:18px}.control-panel,.design-panel{padding:19px}.design-panel{grid-template-columns:1fr 1fr}.template-list{grid-template-columns:1fr}.canvas-stage{padding:14px}.ship-slot{height:135px}.preview-caption{font-size:12px}.export-bar{padding:13px}.template{padding:9px}.frame-thumb{width:43px;height:43px}.ship-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-toolbar{gap:10px}.page-heading>.primary{font-size:12px;padding:10px 12px}footer{font-size:11px}.settings-note{font-size:12px}}
.library-price{position:absolute;left:10px;top:10px;padding:5px 10px;background:#faf9f0f2;color:#51544a;border:1px solid #b4a789;font-size:16px;font-weight:700;clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px)}
.picker-rule{margin:0 0 14px}
.marker-controls{grid-column:1/-1;display:grid;gap:13px;margin-top:18px}.marker-hint{display:block;float:none;margin-top:6px}#type-control button{padding:9px 6px;letter-spacing:0;white-space:nowrap}
.marker-mode-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.marker-mode{min-width:0;padding:8px 5px;border:1px solid #d7ddcf;background:#f9faf5;color:#686f60;text-align:center}.marker-mode.selected{border-color:#b4a789;background:#f0f0e6}.marker-mode strong{font-size:12px;line-height:1.6;display:block}.marker-mode-preview{height:43px;display:grid;place-items:center}.marker-label-preview{display:flex;align-items:center;gap:3px;padding:5px 4px;border:1px solid #aaa18b;background:#eeece4;font-size:10px;color:#454b4c;white-space:nowrap}.marker-label-preview img{width:13px;height:13px;opacity:.75}.marker-arrow-preview svg{width:43px;height:43px;transform:rotate(180deg)}
.picker-tools{display:flex;align-items:flex-end;gap:12px;margin-bottom:14px}.picker-tools .search-input{flex:1;min-width:0;margin:0}.picker-sort{display:grid;gap:5px;flex:0 0 210px;margin:0}
@media(max-width:600px){.picker-tools{flex-direction:column;align-items:stretch}.picker-sort{flex-basis:auto}}
.card-actions button{font-size:13px;font-weight:700}.library-toolbar .muted{font-size:13px}input[type=file]{font-size:14px}.section-title h2 span{font-weight:700}h1{text-wrap:balance}
@media(max-width:700px){.export-bar{flex-wrap:wrap}.export-bar label{flex:1 1 40%}.export-bar .primary{width:100%}.canvas-stage:has(#preview-empty:not(.hidden)){min-height:430px}}
@media(max-width:360px){.export-bar label{flex-basis:100%}}
.topbar{gap:32px}.topbar nav{gap:24px;flex-shrink:0}.nav-item{white-space:nowrap}.export-bar label{min-width:125px}
@media(max-width:900px){.export-bar{flex-wrap:wrap}.export-bar .primary{width:100%}}
@media(max-width:700px){.topbar{gap:12px}}
.topbar{height:auto;min-height:88px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px;row-gap:12px}.account-actions{display:flex;align-items:center;gap:14px;margin-left:auto;min-width:0}.account-actions #current-user{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.account-actions .text-button{white-space:nowrap;flex-shrink:0}.top-actions{margin-left:0}
#email-login-form>label,#register-form>label{margin-bottom:16px}#auth-modes{margin:20px 0}#auth-modes button{font-size:13px;font-weight:700}#registration-note{margin-bottom:18px}.password-hint{float:none;display:block;margin-top:5px;font-size:12px}#login-error{color:#a13e3e;font-size:14px;line-height:1.6;margin:16px 0 0;overflow-wrap:anywhere}
@media(max-width:700px){.account-actions{width:100%;margin-left:0;justify-content:space-between}.account-actions #current-user{max-width:calc(100vw - 145px)}}
#roles-dialog{max-width:490px}#roles-dialog>p{margin-bottom:18px}#role-form>label{margin-bottom:14px}#role-result{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}#role-status{overflow-wrap:anywhere;line-height:1.7}#role-error,#owner-error{color:#a13e3e;font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin:16px 0}.account-actions{flex-wrap:wrap}.owner-page{min-height:100vh;display:grid;place-items:center;padding:24px}.owner-panel{width:min(450px,100%);padding:30px}.owner-panel h1{font-size:28px;margin:8px 0 16px}.owner-panel>p,.owner-panel form>label{margin-bottom:20px}.owner-panel>a{display:block;margin-top:20px;text-align:center}
@media(max-width:700px){.account-actions #current-user{max-width:100%;flex:1 1 100%}.account-actions{justify-content:flex-start;gap:10px 20px}}

.arrow-color-control>label{display:block;margin:0 0 7px}.arrow-color-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.arrow-color-row input[type=color]{width:44px;height:34px;padding:3px;cursor:pointer;flex-shrink:0}.arrow-color-row span{font:700 12px monospace;color:#686f60}.arrow-color-row .text-button{margin-left:auto;font-size:12px;white-space:nowrap;padding:4px 0}.arrow-color-row .text-button:disabled{opacity:.5;cursor:default}
