.siege-work{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;margin-top:18px}#cars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.car{padding:0 15px 15px;min-width:0;background:#fcfcf8;border-radius:12px;overflow:hidden}.car h2{margin:0 -15px 14px;padding:13px 15px;background:#e2ebe4;border-top:3px solid #4d7970;font-size:14px}.car:nth-child(even) h2{background:#eee9dc;border-color:#af9057}.car h2 input{padding:2px;border:0;background:transparent;width:100%;font-weight:700}.car-zone{padding:10px;border:1px dashed #c4d4c4;border-radius:8px;margin-bottom:12px;min-height:72px}.car-zone.head-zone{background:#f3eddb;border-color:#d8c69c}.car-zone h3{font-size:11px;margin:0 0 8px;color:#60766b}.car-zone.drag-over{outline:3px solid #b18a49;background:#e8efdd}.siege-person{display:flex;gap:6px;align-items:center;margin:6px 0}.siege-person>button:first-child{flex:1;text-align:left;padding:9px 10px;min-width:0;background:#f3f6ef}.siege-person small{display:block;font-size:10px;color:#71817e}.siege-person .release{padding:5px;font-size:10px;background:transparent;flex:none}.siege-person.active>button:first-child{border-color:#af9057;background:#eee6cf}.car-foot{font-size:10px;color:#7b8c80}.car-actions{display:flex;gap:6px;margin-top:7px}.car-actions button{padding:4px 6px;font-size:10px}#people{max-height:650px;overflow:auto}#notice{min-height:25px}#settingsDialog label,#importDialog>label{display:grid;gap:6px;margin:16px 0;font-size:12px}.policy-row{gap:20px}#settingsDialog .policy-row input{width:125px}.topbar .mode-switch a{min-width:135px;padding:8px 13px}@media(max-width:1100px){#cars{grid-template-columns:repeat(2,minmax(0,1fr))}.siege-work{grid-template-columns:230px minmax(0,1fr)}}@media(max-width:650px){.siege-work{grid-template-columns:1fr}#cars{grid-template-columns:1fr}#people{max-height:260px}.topbar .mode-switch a{min-width:0;padding:7px 8px}.mode-switch small{letter-spacing:0;font-size:8px}.mode-switch strong{font-size:12px}.hero-emblem{display:none}}

#settingsDialog{width:min(1120px,calc(100% - 24px));padding:24px}#settingsDialog>h2{padding-bottom:12px;border-bottom:1px solid #dce3d6}.fixed-editor{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;margin:22px 0}.fixed-editor h3{font-size:13px;margin:0 0 10px}.fixed-editor aside{padding:14px;background:#e7eee2;border-radius:10px}.fixed-editor input[type=search]{width:100%;font-size:12px}.fixed-editor aside p{font-size:10px}#fixedPeople{max-height:50vh;overflow:auto;margin-top:10px}.fixed-person{display:block;width:100%;text-align:left;padding:8px;margin:5px 0;background:#f9fbf5;font-size:12px;cursor:grab}.fixed-person small{display:block;color:#71817e;font-size:10px}.fixed-person.active{border-color:#a98b4e;background:#f2ead8}.fixed-label{font-size:10px;color:#637d64}#fixedCars{max-height:55vh;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fixed-car{background:#f2f5ed;padding:12px;border:1px solid #dce4d5;border-radius:10px}.fixed-car>input{font-weight:700;width:100%;background:transparent;border:0;padding:3px;margin-bottom:8px}.fixed-zone{border:1px dashed #c2d1ba;padding:8px;border-radius:7px;margin:8px 0;min-height:80px}.fixed-zone[data-fixed-role=head]{background:#f2ecdb;border-color:#d7c79e}.fixed-zone h4{font-size:11px;color:#60766b;margin:0 0 8px}.fixed-zone>small{font-size:10px;color:#91a08b}.fixed-zone>button{font-size:10px;padding:5px 9px;margin-top:7px}.fixed-slot{display:flex;gap:5px;align-items:center}.fixed-slot .fixed-person{min-width:0}.fixed-slot .release{font-size:9px;padding:3px;flex-shrink:0}.fixed-zone.drag-over{outline:3px solid #b18a49}.share-settings{border-top:1px solid #dce3d6;padding-top:14px}.share-settings summary{cursor:pointer;color:#2c6965;font-size:13px}.share-settings textarea{font-family:monospace;overflow-wrap:anywhere;font-size:11px}.code-actions{display:flex;gap:8px;margin-top:10px}.code-actions button{font-size:11px}#settingsDialog>.dialog-actions{position:sticky;bottom:-24px;background:#fbfcf8;padding:14px 0;margin-top:12px;border-top:1px solid #dce3d6}@media(max-width:700px){.fixed-editor{grid-template-columns:1fr}.fixed-editor aside{max-height:240px;overflow:auto}#fixedPeople{max-height:150px}#fixedCars{grid-template-columns:1fr;max-height:40vh}.code-actions{flex-wrap:wrap}}

.siege-person>button:first-child,.fixed-person{display:flex;align-items:center;gap:8px}.member-copy{min-width:0;flex:1}.fixed-star{color:var(--group-color);display:inline-flex;flex-shrink:0;width:22px;height:22px;align-items:center;justify-content:center}.fixed-star svg{width:21px;height:21px}.member-assignment{margin-top:3px;font-weight:600}.star-legend{display:flex;gap:7px 12px;flex-wrap:wrap;margin:10px 0 12px;padding:10px 0;border-block:1px solid #cfddce;font-size:10px;color:#62776a}.star-legend b{font-size:16px;color:#32756b;vertical-align:middle}.star-legend small{width:100%;font-size:9px}.siege-person{cursor:default}.fixed-person{cursor:grab}.car h2{font-size:14px}.fixed-person .member-copy{display:block}

.star-legend .unfixed-legend b{color:#a0aaa2}.unfixed-star{opacity:.85}

.roster-view-controls{display:grid;gap:8px;margin:8px 0 12px}.roster-view-controls label{font-size:10px;color:#60766b;display:flex;align-items:center;justify-content:space-between;gap:7px}.roster-view-controls select{font-size:11px;padding:6px 7px;max-width:165px;background:#f8faf4}#listSummary{font-size:10px;line-height:1.8;margin:8px 0}

.defense-type{display:inline-block;float:right;font-size:10px;padding:2px 8px;border-radius:12px;font-weight:500;background:#d1e3d8;color:#326b55}.defense-type.reinforce{background:#f0e2bd;color:#8b682d}#settingsDialog .defense-select{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin:7px 0 12px}.defense-select select{font-size:11px;padding:5px 8px;min-width:100px}

.announcement-settings{border-top:1px solid #dce3d6;padding-top:18px;margin:18px 0}.announcement-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.announcement-heading h3{margin:0;font-size:14px}.announcement-heading p{font-size:11px}.announcement-heading button{padding:7px 10px;font-size:11px}.notice-board,#noticeEditors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.announcement-card,.notice-editor{padding:18px;border:1px solid #dedfcb;border-radius:10px;background:#f6f2df;min-width:0}.announcement-card.large,.notice-editor.large{grid-column:1/-1}.announcement-card.small,.notice-editor.small{background:#e9eee4;border-color:#d8e1d1}.announcement-card h2{font-size:15px;padding-bottom:10px;color:#7d6233}.announcement-card p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.95;color:#4c5f50}.notice-editor-tools{display:flex;gap:6px;align-items:center;margin-bottom:10px;flex-wrap:wrap}.notice-editor-tools strong{font-size:11px;margin-right:auto}.notice-editor-tools select,.notice-editor-tools button{padding:4px 7px;font-size:10px}.notice-editor>input,.notice-editor>textarea{width:100%;font-size:12px;background:#fffffaf0}.notice-editor>textarea{margin-top:9px}.notice-board:empty{display:none}@media(max-width:650px){.notice-board,#noticeEditors{grid-template-columns:1fr}.announcement-card.large,.notice-editor.large{grid-column:auto}.announcement-heading{align-items:start;flex-direction:column}}

.siege-work>section{min-width:0}#cars{display:flex;gap:14px;overflow-x:auto;align-items:stretch;padding-bottom:12px;scroll-snap-type:x proximity}#cars>.car{flex:0 0 260px;scroll-snap-align:start}#cars>.car .car-zone{margin-bottom:12px}@media(max-width:650px){#cars>.car{flex-basis:85%;max-width:300px}}
