:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#202325;background:#f4f7f5;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{min-height:42px;border:1px solid #116b64;border-radius:7px;padding:.62rem .85rem;color:#fff;background:#116b64;cursor:pointer}button:hover:not(:disabled){background:#0d5a54}button:disabled{cursor:not-allowed;opacity:.5}button.secondary{color:#202325;border-color:#a9b8b3;background:#fff}button.secondary:hover:not(:disabled){background:#e8efec}button.danger{color:#fff;border-color:#a0333a;background:#a0333a}button.danger:hover:not(:disabled){background:#842930}input,select,textarea{width:100%;border:1px solid #b9c5c0;border-radius:6px;padding:.65rem .7rem;color:#202325;background:#fff}textarea{min-height:76px;resize:vertical}label{display:grid;gap:.35rem;color:#46514d;font-size:.88rem;font-weight:700}h1,h2,h3,p{margin:0}h2{font-size:1.2rem}h3{font-size:1rem}.app-shell{min-height:100vh;padding-top:.9rem}.workspace{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(420px,1.45fr);gap:1rem;padding:1rem}.panel{display:grid;align-content:start;gap:1rem;min-width:0;border:1px solid #d4ded9;border-radius:8px;padding:1rem;background:#fff}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.panel-heading span{color:#66736e;font-size:.86rem;font-weight:700;text-transform:capitalize}.stacked-form,.dialog-form{display:grid;gap:.75rem}.npc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.npc-grid button{align-self:end}.button-row,.item-actions,.encounter-controls{display:flex;flex-wrap:wrap;gap:.5rem}.section-add-toggle{justify-self:start;min-height:36px;padding:.45rem .7rem}.inline-control-row{display:flex;flex-wrap:wrap;gap:.5rem}.section-add-toggle.active-toggle{color:#202325;border-color:#c9a329;background:#fff1a6}.section-add-toggle.active-toggle:hover:not(:disabled){background:#ffe66d}.compact-table-wrap{overflow-x:auto}.compact-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.84rem}.compact-table th,.compact-table td{border-bottom:1px solid #d7e1dc;padding:.36rem .28rem;text-align:left;vertical-align:top;overflow-wrap:anywhere}.compact-table th{color:#46514d;font-size:.74rem;font-weight:800}.compact-table-heading-label{display:inline-flex;align-items:center;justify-content:center;line-height:1.1}.compact-table-heading-cell{padding-left:.18rem;padding-right:.18rem}.compact-table-control-column,.compact-table th.compact-table-control-column{text-align:center}.compact-table-heading-cell .compact-table-heading-label{width:100%}.compact-table-input-cell .compact-number-input{display:block;margin-left:auto;margin-right:auto}.compact-table-input-cell .initiative-cell{justify-content:center}.compact-table th:nth-child(1),.compact-table td:nth-child(1){width:18ch}.compact-table th:nth-child(2),.compact-table td:nth-child(2){width:10ch}.compact-table th:nth-child(3),.compact-table td:nth-child(3){width:5.5ch}.compact-table th:nth-child(4),.compact-table td:nth-child(4){width:10ch}.compact-table th:nth-child(5),.compact-table td:nth-child(5){width:5.8ch}.compact-table th:nth-child(6),.compact-table td:nth-child(6){width:6.6ch}.compact-table th:nth-child(7),.compact-table td:nth-child(7){width:7ch}.compact-number-input{min-height:28px;padding:.22rem .24rem;font-size:.82rem;appearance:textfield;-moz-appearance:textfield}.compact-number-input-short{width:3.7ch}.compact-number-input-medium{width:4.7ch}.compact-number-input::-webkit-outer-spin-button,.compact-number-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.compact-name-input{min-height:28px;padding:.22rem .28rem;font-size:.82rem}.compact-select-input{min-height:28px;padding:.22rem .24rem;font-size:.82rem}.initiative-cell{display:flex;align-items:center;gap:.18rem}.initiative-move-button,.initiative-move-spacer{display:inline-grid;place-items:center;flex:0 0 auto;width:20px;height:20px}.initiative-move-button{min-height:20px;border-color:#a9b8b3;border-radius:6px;padding:0;color:#202325;background:#fff;font-size:.8rem;line-height:1}.initiative-move-button:hover:not(:disabled){background:#e8efec}.name-cell{display:flex;align-items:center;gap:.3rem;min-width:0}.name-cell span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.delete-combatant-button{display:inline-grid;place-items:center;flex:0 0 auto;width:24px;height:24px;min-height:24px;border-color:#a0333a;border-radius:6px;padding:0;color:#a0333a;background:#fff;font-size:.82rem;line-height:1}.delete-combatant-button:hover:not(:disabled){background:#f8e7e9}.delete-combatant-button.armed{color:#fff;background:#a0333a}.delete-combatant-button.armed:hover:not(:disabled){background:#842930}.list,.combatant-list,.action-log{display:grid;gap:.65rem}.action-log{gap:.35rem}.list-item,.combatant-edit,.log-entry{border:1px solid #d7e1dc;border-radius:8px;padding:.75rem;background:#fbfcfc}.log-entry{display:flex;align-items:baseline;gap:.35rem;min-width:0;border:0;border-radius:0;padding:0;background:transparent;color:#3d4744;font-size:.78rem;line-height:1.25;white-space:nowrap;overflow:hidden}.list-item,.combatant-edit{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem}.list-item strong,.combatant-edit strong,.log-entry strong{color:#202325;flex:0 0 auto;font-size:inherit}.list-item span,.combatant-edit span,.log-entry span{color:#65716d;font-size:.86rem}.list-item p,.latest-action,.log-entry p{margin-top:.35rem;color:#46514d;line-height:1.4}.list-item span,.combatant-edit span{display:block;text-transform:capitalize}.log-entry-round,.log-entry-separator,.log-entry-name{flex:0 0 auto;color:#576360}.log-entry-text{min-width:0;color:#3d4744;font-size:inherit;overflow:hidden;text-overflow:ellipsis}.log-entry-system{color:#576360;font-weight:700}.turn-controls{display:grid;grid-template-columns:auto auto minmax(0,.86fr) auto;align-items:stretch;gap:.65rem}.turn-tool-buttons{display:grid;gap:.4rem;align-content:start;width:12.5rem}.turn-tool-buttons button{min-height:34px;padding:.42rem .62rem;font-size:.86rem}.current-turn-panel{display:grid;gap:.4rem;align-content:start}.action-tool-control{width:12.5rem;max-width:12.5rem}.current-action-control{width:100%;max-width:100%;justify-self:stretch}.action-search-control{min-height:34px;padding:.42rem .62rem;font-size:.86rem;white-space:nowrap}.condition-tool-control{width:100%;max-width:100%}.condition-search-control{min-height:34px;padding:.42rem .62rem;font-size:.86rem}.condition-apply-control{min-height:34px;padding:.42rem .62rem;color:#314642;border-color:#bfdad5;background:#fff;font-size:.86rem;font-weight:900}.condition-apply-control.ready{color:#202325;border-color:#c9a329;background:#fff1a6}.condition-apply-control.ready:hover:not(:disabled){background:#ffe66d}.current-status{display:grid;gap:.45rem;border:1px solid #a8d7d0;border-radius:8px;padding:.65rem;background:#e9f8f6}.status-heading{display:flex;align-items:center;justify-content:space-between;gap:.45rem}.status-hp-row{display:inline-flex;align-items:center;gap:.3rem;flex:0 0 auto}.status-heading strong{min-width:0;flex:1 1 auto;color:#202325;font-size:1.05rem;line-height:1.2;overflow-wrap:anywhere}.status-heading span{flex:0 0 auto;border-radius:7px;padding:.24rem .45rem;color:#fff;background:#116b64;font-size:.86rem;font-weight:900}.status-heading .status-hp{color:#314642;background:#fff}.status-heading .status-temp-hp{color:#202325;background:#fff1a6;border:1px solid #c9a329;border-radius:7px;padding:.22rem .5rem;font-size:.78rem;font-weight:900}.status-details{display:grid;grid-template-rows:1.1rem auto;align-content:start;gap:.4rem;color:#314642}.status-details .latest-action{margin-top:0;font-size:.88rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;min-width:0}.turn-order{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));grid-auto-flow:row;gap:.55rem}.turn-card{display:grid;grid-template-rows:auto 1.75rem minmax(1.35rem,1fr) 3.42rem;gap:.3rem;height:168px;min-width:0;border:2px solid #d7e1dc;border-radius:8px;padding:.55rem;background:#fbfcfc;overflow:hidden}.turn-card-player{border-color:#2f6f40}.turn-card-npc{border-color:#2f5f9e}.turn-card-monster{border-color:#a0333a}.turn-card.current{background:#fff9d8;box-shadow:0 0 0 2px #2023251f inset}.turn-card.acted{background:#edf0ef}.turn-card.selectable{cursor:pointer}.turn-card.selected{box-shadow:0 0 0 3px #116b64 inset}.turn-card.unavailable{opacity:.6}.turn-card strong{display:block;min-width:0;color:#202325;font-size:.92rem;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.turn-card-hp-row{display:inline-flex;align-items:center;justify-self:start;gap:.3rem;min-height:0;border:0;padding:0;background:transparent}.turn-card-temp-hp,.turn-card-hp{display:inline-flex;align-items:center;min-height:0;border:1px solid #bfdad5;border-radius:7px;border-color:#bfdad5;padding:.22rem .5rem;background:#fff;font-size:.78rem;font-weight:900}.turn-card-hp{color:#314642}.turn-card-temp-hp{border:1px solid #c9a329;border-radius:7px;color:#202325;background:#fff1a6}.turn-card.selectable:hover .turn-card-hp{background:#e8efec}.turn-card.selectable:hover .turn-card-temp-hp{background:#ffe66d}.turn-card-action{margin:0;color:#46514d;font-size:.78rem;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.turn-card-conditions{display:flex;flex-direction:column;align-items:stretch;gap:.22rem;min-width:0}.turn-card-condition{display:inline-flex;align-items:center;justify-content:space-between;min-height:28px;width:100%;border:1px solid #be8b30;border-radius:7px;padding:.12rem .18rem .12rem .45rem;color:#202325;background:#ffe1a8;font-size:.76rem;font-weight:800}.turn-card-condition{min-width:0}.turn-card-condition-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.turn-card-chip-remove{flex:0 0 auto}.condition-chips{display:flex;flex-wrap:wrap;gap:.35rem}.status-condition-chips{min-height:28px;align-content:start}.condition-chip{display:inline-flex;align-items:center;gap:.35rem;min-height:28px;border:1px solid #be8b30;border-radius:7px;padding:.15rem .2rem .15rem .45rem;color:#202325;background:#ffe1a8;font-size:.8rem;font-weight:800}.chip-remove{display:grid;place-items:center;min-width:22px;width:22px;height:22px;min-height:22px;border-color:#8a5d15;border-radius:6px;padding:0;color:#fff;background:#8a5d15;font-size:.76rem;font-weight:900}.chip-remove:hover:not(:disabled){background:#704a10}.quiet,.empty{color:#6d7773;font-size:.92rem}.action-log{border-top:1px solid #d7e1dc;padding-top:1rem}.dialog-backdrop{position:fixed;inset:0;display:grid;place-items:center;padding:1rem;background:#20232585;z-index:10}.dialog{display:grid;gap:1rem;width:min(100%,480px);border:1px solid #d4ded9;border-radius:8px;padding:1rem;background:#fff;box-shadow:0 18px 60px #20232547}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.close-button{min-height:36px}.dialog-target{border-radius:7px;padding:.55rem .7rem;color:#314642;background:#e9f8f6;font-weight:800}.small-button{min-height:36px;padding:.45rem .65rem}@media(max-width:1180px){.workspace{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px){.workspace,.npc-grid,.turn-controls{grid-template-columns:1fr}.panel-heading{align-items:start;flex-direction:column}}
