:root{color:#1a1814;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#efeae1;font-family:Avenir Next,PingFang SC,Hiragino Sans GB,Noto Sans SC,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0}button,textarea,.tab{font:inherit;text-decoration:none}.app{flex-direction:column;min-height:100%;display:flex}.app-battle,.app-create{height:100%;min-height:0;overflow:hidden}.topbar{border-bottom:1px solid #e3dccf;justify-content:space-between;align-items:flex-end;gap:16px;padding:18px 24px 14px;display:flex}.brand{align-items:flex-end;gap:22px;display:flex}.tabs,.team-row,.roster,.unit-list{gap:8px;display:flex}.tabs{align-items:center}.tab,.ghost,.team-red,.team-blue,.roster button{cursor:pointer;color:#3f3a33;background:0 0;border:0}.tab,.team-red,.team-blue,.roster button,.ghost{border-radius:999px;padding:8px 12px}.tab[aria-current=page]{color:#f7f4ee;background:#1a1814}.team-red[aria-pressed=true]{color:#fff8f3;background:#c4473a}.team-blue[aria-pressed=true]{color:#f4f8ff;background:#2d62b5}.roster{flex-direction:column}.roster button{text-align:left;border-radius:10px}.roster button[aria-pressed=true]{background:#efe2d4}.ghost{background:#e7e0d4}.ghost:disabled,.team-red:disabled,.team-blue:disabled{cursor:default;opacity:.55}.unit-list{color:#3f3a33;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}.scrub{accent-color:#e15a1c;width:100%}.top-side,.account{align-items:center;gap:12px;display:flex}.account{color:#3f3a33;font-size:13px}.login-gate{flex-direction:column;align-items:flex-start;gap:12px;display:flex}.login-gate h1,.login-gate p{margin:0}.login-gate h1{font-size:22px;font-weight:650}.login-gate p{color:#6d675e;line-height:1.5}.mark,.mark-sub,.top-note{margin:0}.mark{letter-spacing:.08em;text-transform:uppercase;font-size:22px}.mark-sub,.top-note{color:#6d675e;font-size:13px}.layout{flex:1;grid-template-columns:minmax(320px,420px) 1fr;gap:18px;min-height:0;padding:18px;display:grid}.layout-battle{grid-template-rows:minmax(0,1fr);overflow:hidden}.layout-battle .panel,.layout-battle .stage{height:100%;min-height:0}.layout-create{grid-template-rows:minmax(0,1fr);grid-template-columns:260px minmax(0,1fr) minmax(0,1fr);align-items:stretch;overflow:hidden}.layout-create-gate{grid-template-columns:minmax(280px,420px) minmax(0,1fr)}.layout-create .panel,.layout-create .shelf{height:100%;min-height:0}.layout-create .stage{align-self:start;height:520px;min-height:520px}.layout-create .panel{overflow:auto}.layout-studio{grid-template-columns:260px minmax(0,1fr)}.studio{flex-direction:column;gap:16px;min-width:0;height:100%;min-height:0;display:flex;overflow:auto}.studio-head{flex-direction:column;gap:8px;display:flex}.orbit{grid-template-columns:minmax(0,1fr) minmax(320px,46%);align-items:start;gap:12px;display:grid}.basics{flex-wrap:wrap;align-content:flex-start;gap:12px;min-width:0;display:flex}.layout-studio .orbit .stage{grid-column:2;width:auto;height:480px;min-height:420px;margin:0}.module{background:#fffdf8;border:1px solid #e3dccf;border-radius:16px;flex:150px;min-width:140px;padding:12px 14px}.module-wide{flex-basis:220px}.skill-board{flex-direction:column;gap:12px;display:flex}.skill-board-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.skill-board h2,.skill-card h3{margin:0;font-size:14px;font-weight:600}.skill-fall{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));align-items:start;gap:12px;display:grid}.skill-card{background:#fffdf8;border:1px solid #e3dccf;border-radius:16px;padding:12px 14px}.skill-card-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.text-button{color:#6d675e;cursor:pointer;font:inherit;background:0 0;border:0;padding:0;font-size:13px}.text-button:disabled{cursor:default;opacity:.4}.skill-picker{z-index:20;background:#1a181473;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.skill-picker-card{background:#fffdf8;border:1px solid #e3dccf;border-radius:18px;outline:none;flex-direction:column;gap:12px;width:min(420px,100%);padding:18px;display:flex}.skill-picker-card h2{margin:0;font-size:16px}.skill-picker-list{flex-direction:column;gap:8px;display:flex}.skill-picker-list button{color:#1a1814;cursor:pointer;width:100%;font:inherit;text-align:left;background:#f7f4ee;border:1px solid #e3dccf;border-radius:12px;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;display:flex}.skill-picker-list button:hover{background:#efe2d4}.skill-picker-list span{color:#6d675e;font-size:12px}.panel{flex-direction:column;gap:12px;min-height:0;display:flex;overflow:auto}.field{font-size:14px;font-weight:600}textarea{resize:vertical;color:#1a1814;background:#f7f4ee;border:1px solid #ddd4c6;border-radius:14px;width:100%;min-height:148px;padding:14px;line-height:1.5}textarea:focus-visible,button:focus-visible{outline-offset:2px;outline:2px solid #e15a1c}.examples,.history{flex-direction:column;gap:8px;display:flex}.shelf{border-right:1px solid #e3dccf;flex-direction:column;gap:10px;min-height:0;padding-right:14px;display:flex;position:relative;overflow:hidden}.shelf-scroll{flex:1;min-height:0;overflow:auto}.shelf-new{z-index:1;cursor:pointer;color:#1a1814;text-align:left;background:#e7e0d4;border:0;border-radius:12px;flex:none;padding:10px 12px;font-weight:650;position:sticky;left:0}.shelf-new[aria-pressed=true]{color:#f7f4ee;background:#1a1814}.history{margin:0;padding:0;list-style:none}.history li{min-width:0}.history button{cursor:pointer;text-align:left;color:#3f3a33;background:0 0;border:0;border-radius:12px;align-items:center;gap:10px;width:100%;padding:8px;display:flex}.history button:hover{background:#e7e0d4}.history button[aria-pressed=true],.history button[aria-pressed=true]:hover{background:#efe2d4}.history-thumb{color:#f7f4ee;background:#141816;border-radius:8px;flex:none;width:48px;height:48px;position:relative;overflow:hidden}.history-mark{place-items:center;font-size:16px;display:grid;position:absolute;inset:0}.history-thumb img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.history-copy{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.history-name,.history-prompt{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.history-name{color:#1a1814}.history-prompt{color:#6d675e;font-size:12px}.name-field{flex-direction:column;gap:6px;font-size:14px;font-weight:600;display:flex}.name-field input{color:#1a1814;width:100%;font:inherit;background:#f7f4ee;border:1px solid #ddd4c6;border-radius:10px;padding:8px 10px;font-weight:400}.prompt-line{color:#6d675e;margin:0;font-size:13px;line-height:1.5}.history-meta{color:#6d675e;font-size:12px}.job-prompt{margin:0;font-size:18px;font-weight:650;line-height:1.45}.traits h2,.history-title{margin:0;font-size:14px;font-weight:600}.traits{flex-direction:column;gap:10px;display:flex}.trait-grid{grid-template-columns:1fr 1fr;gap:8px 12px;display:grid}.trait-wide{grid-column:1/-1}.trait-note{color:#6d675e;font-size:12px;line-height:1.4}.trait{color:#6d675e;flex-direction:column;gap:4px;font-size:13px;display:flex}.trait input{color:#1a1814;width:100%;font:inherit;background:#f7f4ee;border:1px solid #ddd4c6;border-radius:10px;padding:8px 10px}.trait input[type=range]{accent-color:#e15a1c;background:0 0;border:0;padding:0}.chip[aria-pressed=true]{color:#f7f4ee;background:#1a1814}.chip,.primary{cursor:pointer;border:0}.chip{text-align:left;color:#3f3a33;background:0 0;border-radius:10px;padding:8px 10px}.chip:hover{background:#e7e0d4}.actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.primary{color:#fff8f3;background:#e15a1c;border-radius:999px;padding:11px 18px}.primary:disabled{cursor:default;opacity:.55}.count,.hint,.status,.stage-caption{color:#6d675e;font-size:13px}.status a{color:#9a3d12}.hint,.status,.error,.stage-caption,.stage-empty p{margin:0}.meter{background:#e3dccf;border-radius:999px;height:6px;overflow:hidden}.meter span{background:#e15a1c;height:100%;display:block}.error{color:#9d2c2c;line-height:1.45}.stage{background:#141816;border-radius:20px;min-height:520px;position:relative;overflow:hidden}.stage-tools{z-index:2;gap:8px;display:flex;position:absolute;top:12px;left:12px}.stage-tools button{cursor:pointer;color:#1a1814;background:#f7f1e6;border:0;border-radius:999px;padding:8px 12px}.stage-tools button[aria-pressed=true]{color:#f7f4ee;background:#1a1814}.stage-view,.stage-empty{position:absolute;inset:0 0 36px}.stage-empty{color:#d9d3c7;text-align:center;place-items:center;padding:24px;display:grid}.stage-caption{color:#b7c2bb;position:absolute;bottom:12px;left:16px;right:16px}.stage-message,.stage-loading{color:#f3efe6;margin:0;font-size:14px}.stage-message{text-align:center;place-items:center;padding:24px;display:grid;position:absolute;inset:0 0 36px}.verdict{color:#1a1814;background:#f7f1e6;border-radius:999px;margin:0;padding:8px 16px;font-weight:650;position:absolute;top:16px;left:50%;transform:translate(-50%)}.half-name{color:#1c2418;letter-spacing:.16em;pointer-events:none;-webkit-user-select:none;user-select:none;text-shadow:0 1px #ffffffbf;margin:0;font-size:13px;position:absolute;left:50%;transform:translate(-50%)}.soldier-row{flex-wrap:wrap;gap:8px;display:flex}.soldier-row button{cursor:pointer;color:#3f3a33;background:0 0;border:0;border-radius:999px;padding:8px 12px}.soldier-row button[aria-pressed=true]{background:#efe2d4}.half-name.far{top:7%}.half-name.near{bottom:3%}@media (width<=960px){.app-create{height:auto;min-height:100%;overflow:visible}.layout-create,.layout-create-gate{flex-direction:column;height:auto;display:flex;overflow:visible}.layout-create .panel,.layout-create .shelf{height:auto;overflow:visible}.layout-create .panel{order:1}.layout-create .shelf{order:2}.layout-create .stage{order:3;height:420px;min-height:420px}.layout-studio .studio{order:1;height:auto;overflow:visible}.layout-studio .shelf{order:2}.orbit{grid-template-columns:1fr}.layout-studio .orbit .stage{grid-area:2/1;width:100%;height:420px;min-height:420px}.basics{grid-row:1}.module,.module-wide{flex:calc(50% - 12px);width:auto}.shelf{border-bottom:1px solid #e3dccf;border-right:0;flex-direction:row;align-items:center;padding:0 0 12px;overflow:auto hidden}.shelf-scroll{min-width:max-content;overflow:visible}.history{flex-direction:row}.history li{flex:0 0 220px}.history-title{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}}@media (width<=800px){.topbar{flex-direction:column;align-items:flex-start}.layout{grid-template-columns:1fr}.layout-battle{grid-template-rows:minmax(0,1fr) minmax(220px,46vh)}.layout-battle .stage{height:auto;min-height:0}}
