:root{--ink:#273a35;--muted:#78827b;--paper:#f6f4ee;--panel:#fffefa;--line:#e1e4db;--green:#315e4b;--green-light:#e9f0e7;--gold:#b99a65;--red:#a45f51;--rail:#1e302d;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:14px;line-height:1.5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}a{color:var(--green);text-underline-offset:3px}button,input,select,textarea,a{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--gold)}input,select,textarea{border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);padding:10px 12px;max-width:100%;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #b9c9b8}input[type=checkbox]{width:16px;height:16px;accent-color:var(--green)}input[type=number]{font-variant-numeric:tabular-nums}label{display:block;font-size:12px;font-weight:600;color:#5d6e64}label input,label select,label textarea{display:block;margin-top:5px}h1,h2,h3,p{margin:0}h1{font-family:Georgia,"Times New Roman",serif;font-size:40px;font-weight:400;line-height:1.17;letter-spacing:-1px}h2{font-family:Georgia,"Times New Roman",serif;font-size:23px;font-weight:400;letter-spacing:-.3px}h3{font-size:14px;font-weight:650}svg.icon{height:19px;width:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.app-shell{display:grid;grid-template-columns:226px 1fr;min-height:100vh}.sidebar{background:var(--rail);color:#afbfb6;padding:31px 18px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;color:#f1e7d1;padding:0 14px 29px;border-bottom:1px solid #ffffff14}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--gold);border-radius:10px;color:#dac292;font-family:Georgia,serif;font-size:27px}.brand-word{font-family:Georgia,serif;font-size:24px;letter-spacing:3px}.brand small{display:block;color:#7e9a8d;font-size:9px;letter-spacing:2px;text-transform:uppercase}.workspace-label{padding:25px 14px 11px;font-size:9px;letter-spacing:2px;color:#7e958a}.nav{display:flex;flex-direction:column;gap:5px}.nav button{border:0;background:transparent;color:inherit;display:flex;align-items:center;gap:13px;text-align:left;border-radius:8px;padding:11px 14px;font-size:13px}.nav button:hover{background:#ffffff07;color:#fff}.nav button.active{background:#dfe7d91c;color:#f4efd9}.nav button.active:after{content:"";width:5px;height:5px;background:#d3bb84;border-radius:50%;margin-left:auto}.nav .count{font-size:10px;background:#a26350;color:#fff;border-radius:5px;padding:0 5px;margin-left:auto}.sidebar-foot{margin-top:auto;border-top:1px solid #ffffff14;padding:20px 14px 2px}.status-light{display:inline-block;width:6px;height:6px;border-radius:50%;background:#91b69b;margin-right:6px}.sidebar-foot p{font-size:11px}.sidebar-foot small{font-size:10px;color:#739084;display:block;margin-top:6px}.main{min-width:0}.topbar{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:21px 37px;border-bottom:1px solid var(--line);height:83px;background:#faf9f4}.crumb{font-size:11px;color:var(--muted)}.crumb strong{color:var(--ink);font-weight:500}.top-tools{display:flex;align-items:center;gap:10px}.save-status{font-size:10px;color:var(--muted);white-space:nowrap}.tag{display:inline-flex;align-items:center;border:1px solid #d7ded3;border-radius:5px;padding:3px 7px;font-size:9px;letter-spacing:.7px;font-weight:650;background:var(--green-light);color:var(--green);white-space:nowrap}.tag.gold{background:#f5efdf;border-color:#e9ddc7;color:#937747}.tag.red{background:#f6e8e1;border-color:#eac9bf;color:var(--red)}.tag.neutral{color:var(--muted);background:#f1f2ec;border-color:var(--line)}.content{max-width:1500px;margin:auto;padding:34px 37px 36px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:29px;gap:20px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:9px;color:var(--muted);font-weight:650;margin-bottom:11px}.subtitle{color:var(--muted);font-size:12px;margin-top:11px;line-height:1.7}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:9px 13px;background:var(--panel);color:var(--ink);font-size:11px;font-weight:550;white-space:nowrap;line-height:1.5}.button:hover{background:#eeefe6}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover{background:#254c3d}.button.danger{color:var(--red)}.button.ghost{background:transparent;border-color:transparent;padding:5px 8px}.button.small{padding:5px 9px;font-size:10px}.button.icon-only{padding:8px}.row{display:flex;gap:10px;align-items:center}.row.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:27px}.stat-card{border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:18px 20px;position:relative}.stat-card .stat-label{font-size:10px;color:var(--muted);display:flex;gap:7px;align-items:center}.stat-card .stat-value{font-family:Georgia,serif;font-size:32px;margin-top:9px;line-height:1.25}.stat-card .stat-foot{font-size:10px;color:var(--muted);margin-top:7px}.stat-card .stat-icon{position:absolute;right:18px;top:20px;color:#a7b5a7}.grid-main{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:23px}.stack{display:flex;flex-direction:column;gap:22px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:11px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line);gap:12px}.panel-head h2{font-size:21px}.panel-body{padding:22px}.panel-foot{padding:13px 22px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);background:#fbfaf6}.muted{color:var(--muted)}.small-text{font-size:11px}.empty{padding:28px;text-align:center;color:var(--muted);font-size:12px}.hero-panel{background:var(--rail);color:#e7eddf;border-color:var(--rail);padding:23px 24px;position:relative;overflow:hidden;min-height:189px}.hero-panel h2{font-size:27px;color:#efe7d0;margin:10px 0}.hero-panel .eyebrow{color:#8eac9a;margin:0}.hero-panel p{font-size:11px;color:#aec3b3;max-width:65%;margin-bottom:19px}.hero-panel .button{background:#f1e9d3;border-color:#f1e9d3;color:#31473d}.d20{position:absolute;right:20px;top:20px;height:143px;width:143px;opacity:.27;color:#c9b78a;fill:none;stroke:currentColor;stroke-width:1}.actors-list{padding:0 22px}.actor-row{display:grid;grid-template-columns:38px minmax(80px,1fr) 113px 50px 33px;gap:12px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.actor-row:last-child{border:0}.avatar{width:37px;height:39px;display:grid;place-items:center;border-radius:9px;background:#e5e8d8;color:#465e3d;font-family:Georgia,serif;font-size:19px;flex:none;border:1px solid #d5decf}.avatar.mira{background:#e4e4ec;color:#6c6d89;border-color:#d8d8e4}.avatar.eira{background:#efdfbf;color:#92704b;border-color:#e9d6b3}.avatar.npc{background:#ead9cf;color:#966c59;border-color:#e1cabe}.actor-name{font-weight:600;font-size:12px;color:var(--ink)}button.actor-name{border:0;background:none;text-align:left;padding:0}.actor-sub{font-size:9px;color:var(--muted);margin-top:4px}.hp-label{font-size:10px;font-weight:600;display:flex;justify-content:space-between;margin-bottom:6px}.hp-bar{height:4px;background:#e8ece2;border-radius:5px;overflow:hidden}.hp-bar span{height:100%;background:#709174;display:block;border-radius:5px}.hp-bar.wounded span{background:#bd9262}.hp-bar.critical span{background:var(--red)}.hp-caption{font-size:8px;color:var(--muted);text-align:right}.metric-small{font-size:17px;font-family:Georgia,serif;text-align:center}.metric-small small{display:block;font-family:system-ui;font-size:8px;color:var(--muted);letter-spacing:.5px}.timeline-item{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.timeline-item:last-child{border:0}.timeline-item .dot{width:7px;height:7px;border:1px solid #9daf9a;border-radius:50%;margin-top:6px;flex:none}.timeline-item p{font-size:11px;line-height:1.7}.timeline-item small{font-size:9px;color:var(--muted)}.turn-list{padding:8px 21px}.turn-row{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.turn-row:last-child{border:0}.turn-row.current{color:var(--green);font-weight:700}.turn-number{font-family:Georgia,serif;font-size:23px;width:30px;color:#8a967f}.turn-row .avatar{height:30px;width:28px;font-size:14px;border-radius:6px}.turn-row .turn-score{margin-left:auto;font-family:Georgia,serif;font-size:19px}.rule-link{font-size:9px;color:var(--muted);text-decoration:none}.rule-link:hover{text-decoration:underline}.rule-link .icon{width:11px;height:11px;vertical-align:middle}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.full-width{grid-column:1/-1}.check-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:400}.check-label input{margin:0}.section-divider{height:1px;background:var(--line);margin:21px 0}.section-caption{font-size:9px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase;margin-bottom:12px}.result-box{border:1px solid #ccdac7;background:#f0f5eb;border-radius:8px;margin-top:18px;padding:16px}.result-box.fail{border-color:#e3cbbf;background:#f9f0e9}.result-box .result-number{font-family:Georgia,serif;font-size:36px;line-height:1}.result-box p{font-size:11px;margin:8px 0}.result-box details{font-size:10px}.result-box summary{cursor:pointer}.result-box pre,.event details pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;max-height:300px;overflow:auto;background:#ffffff70;padding:12px;border-radius:5px}.actor-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px}.select-card{display:flex;width:100%;align-items:center;gap:12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:17px;text-align:left;margin-bottom:10px}.select-card.active{border-color:#7f9a7e;background:#f1f5eb}.select-card .tag{margin-left:auto}.sheet-title{display:flex;align-items:center;gap:16px}.sheet-title .avatar{height:56px;width:53px;font-size:28px}.sheet-stats{display:grid;grid-template-columns:repeat(6,1fr);border-bottom:1px solid var(--line)}.sheet-stat{padding:20px 8px;text-align:center;border-right:1px solid var(--line)}.sheet-stat:last-child{border:0}.sheet-stat span{font-family:Georgia,serif;font-size:26px;display:block}.sheet-stat small{font-size:9px;color:var(--muted)}.ability-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.ability{border:1px solid var(--line);padding:15px 5px;text-align:center;border-radius:8px;background:#fafaf4}.ability .abbr{font-size:9px;letter-spacing:1px;color:var(--muted)}.ability strong{font-family:Georgia,serif;font-size:27px;font-weight:400;display:block}.ability .modifier{font-size:11px;color:var(--green)}.ability .damaged{font-size:8px;color:var(--red)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;font-weight:500;letter-spacing:.4px;font-size:9px;color:var(--muted);padding:11px 16px;background:#f8f8f1;border-bottom:1px solid var(--line)}td{padding:12px 16px;border-bottom:1px solid var(--line)}tbody tr:last-child td{border-bottom:0}td.numeric{text-align:right;font-variant-numeric:tabular-nums}.chip{display:inline-flex;gap:5px;align-items:center;font-size:10px;padding:5px 8px;background:#eeeee4;border:1px solid var(--line);border-radius:5px;color:#607356}.chip .remove{border:0;background:none;color:var(--muted);padding:0 1px}.chips{display:flex;flex-wrap:wrap;gap:7px}.encounter-toolbar{display:flex;gap:18px;align-items:center;padding:17px 20px;background:#e9eee3;border:1px solid #d6dfce;border-radius:9px;margin-bottom:23px}.round-badge{font-family:Georgia,serif;font-size:30px;line-height:1;color:var(--green);border-right:1px solid #c7d4c0;padding-right:18px}.round-badge small{display:block;font-family:system-ui;font-size:8px;letter-spacing:1px;margin-top:5px}.budget-chips{display:flex;gap:6px;flex-wrap:wrap}.budget-chip{border:1px solid #bed0b6;border-radius:4px;padding:3px 7px;font-size:9px;color:#526d47}.budget-chip.spent{opacity:.4;text-decoration:line-through}.encounter-toolbar .button{margin-left:auto}.notice{border:1px solid #e1d3b6;border-radius:8px;background:#fbf4e4;padding:16px;font-size:11px;color:#8b754c;margin-bottom:20px}.notice p{margin:6px 0 12px}.notice strong{font-size:12px}.notice.error{border-color:#e4b9a7;color:#9d594a;background:#fcf0e9}.grid-map{display:grid;grid-template-columns:repeat(var(--cols),1fr);background:#cdd5c8;border:1px solid #cdd5c8;gap:1px;width:100%;min-width:420px;border-radius:6px;overflow:hidden}.grid-cell{aspect-ratio:1.13;position:relative;border:0;background:#f5f5e9;padding:2px;display:flex;align-items:center;justify-content:center;font-size:10px;color:#bfcaaf}.grid-cell:nth-child(even){background:#f0f1e5}.grid-cell:hover{box-shadow:inset 0 0 0 2px #9bac7e}.grid-cell.wall{background:repeating-linear-gradient(135deg,#56675e,#56675e 5px,#617267 5px,#617267 6px);color:#788b7b}.grid-cell.difficult{background:#e4dbbb;color:#b1a271}.grid-cell.path{background:#d4e2c2;box-shadow:inset 0 0 0 1px #91aa78}.grid-cell.origin{background:#e1e9d3}.map-token{height:29px;width:29px;border:1px solid #95a584;background:#eef5db;color:#40553b;border-radius:50%;display:grid;place-items:center;font-weight:600;box-shadow:0 2px 3px #21302a18;z-index:1}.map-token.npc{background:#f0daca;border-color:#bd9a7e;color:#855b42}.map-token.selected{outline:2px solid var(--gold);outline-offset:2px}.grid-cell .coordinate{position:absolute;bottom:2px;right:3px;font-size:7px}.map-legend{display:flex;gap:20px;align-items:center;font-size:10px;color:var(--muted);padding:15px 0 0}.map-legend i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px;background:#617267}.map-legend i.difficult{background:#e4dbbb}.map-wrap{overflow:auto}.spell-list{padding:8px 21px}.spell-row{display:flex;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.spell-row:last-child{border:0}.spell-level{font-family:Georgia,serif;font-size:21px;width:30px;height:37px;display:grid;place-items:center;background:#f0f0e5;border-radius:5px;color:#7f8b6a;flex:none}.spell-row p{font-size:10px;color:var(--muted);margin-top:4px}.spell-row .buttons{margin-left:auto;display:flex;gap:5px}.slot-row{display:flex;align-items:center;gap:8px;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px}.slot-row:last-child{border:0}.slot{height:11px;width:11px;border:1px solid #7e9b72;border-radius:50%;background:#8ba77d}.slot.spent{background:transparent;opacity:.35}.slot-row small{font-size:9px;color:var(--muted);margin-left:auto}.catalog-top{display:grid;grid-template-columns:1fr 190px;gap:14px;margin-bottom:20px}.catalog-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 110px 30px;gap:14px;align-items:center;padding:14px 21px;border-bottom:1px solid var(--line);font-size:11px}.catalog-row:last-child{border:0}.catalog-row .name{font-weight:600}.catalog-row small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.event{padding:18px 23px;border-bottom:1px solid var(--line)}.event:last-child{border:0}.event-header{display:flex;justify-content:space-between;gap:15px;align-items:center}.event p{font-size:12px}.event .dice-tape{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.die-pill{display:inline-block;font-size:9px;border:1px solid var(--line);border-radius:3px;padding:2px 5px;color:#7c8a73}.event details{margin-top:9px;font-size:10px;color:var(--muted)}.event summary{cursor:pointer}.review-card{padding:20px;border-bottom:1px solid var(--line)}.review-card p{font-size:11px;color:var(--muted);margin:9px 0 13px}.page-foot{margin-top:33px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;color:#9aa392;font-size:9px}.page-foot .icon{width:13px;height:13px;vertical-align:middle}.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:20px;color:var(--muted)}#toast{position:fixed;bottom:25px;right:25px;max-width:440px;z-index:100;padding:14px 20px;border-radius:9px;background:#2c493d;color:#fff;font-size:12px;box-shadow:0 8px 30px #18342622;display:none}#toast.show{display:block}#toast.error{background:#964e41}dialog{border:1px solid var(--line);border-radius:13px;max-width:750px;width:calc(100% - 40px);padding:0;color:var(--ink);background:var(--panel);box-shadow:0 22px 100px #12322933;max-height:90vh}dialog::backdrop{background:#1b2e2a66;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:22px 25px;border-bottom:1px solid var(--line)}.modal-body{padding:24px 25px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 25px;border-top:1px solid var(--line);background:#faf9f4}.form-error{color:var(--red);font-size:12px;padding:0 25px 16px}.feat-option{padding:8px 10px;background:#f6f6ed;border:1px solid var(--line);border-radius:5px}.feat-option small{font-size:9px;font-weight:400}.long-note{font-size:11px;line-height:1.85;color:var(--muted)}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.support-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px}.support-row:last-child{border:0}.progress-line{height:6px;background:#e9ece1;border-radius:5px;overflow:hidden;margin:12px 0}.progress-line span{display:block;height:100%;background:#899e72}.mobile-nav-button{display:none}.sidebar-close{display:none}.search-status{font-size:10px;margin:10px 0;color:var(--muted)}.code-block{font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);padding:14px;background:#f5f6ee;border-radius:6px}button.link{border:0;background:none;color:var(--green);font-size:11px;text-align:left;padding:0;text-decoration:underline;text-underline-offset:3px}
@media(min-width:1500px){.content{padding-top:45px}.grid-main{gap:27px}.sidebar{padding-top:37px}.stats{gap:22px}.stat-card{padding:22px 25px}}
@media(max-width:1190px){.app-shell{grid-template-columns:195px 1fr}.sidebar{padding-inline:10px}.content{padding:28px 24px}.topbar{padding-inline:24px}.grid-main{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:17px}.actor-row{grid-template-columns:32px minmax(70px,1fr) 80px 27px;gap:8px}.actor-row>.button{display:none}.actor-row .avatar{width:32px}.actor-layout{grid-template-columns:190px 1fr}.sheet-stats{grid-template-columns:repeat(3,1fr)}.sheet-stat{border-bottom:1px solid var(--line)}.ability-grid{gap:6px}.hero-panel .d20{width:114px;right:10px;top:30px}h1{font-size:34px}}
@media(max-width:980px){.grid-main{grid-template-columns:1fr}.grid-main>.stack{display:grid;grid-template-columns:1fr 1fr}.stats{grid-template-columns:repeat(2,1fr)}.two-columns{grid-template-columns:1fr}.ability-grid{grid-template-columns:repeat(3,1fr)}.save-status{display:none}.actor-layout{grid-template-columns:170px 1fr}.catalog-row{grid-template-columns:1fr 80px 100px 25px}.hero-panel p{max-width:70%}}
@media(max-width:720px){.app-shell{display:block}.sidebar{position:fixed;z-index:50;width:240px;left:-250px;transition:left .2s}.sidebar.open{left:0;box-shadow:0 0 0 100vmax #162c2866}.sidebar-close{display:block;position:absolute;right:10px;top:8px;background:none;color:#fff;border:0}.mobile-nav-button{display:inline-flex}.topbar{padding:12px 16px;height:66px;gap:8px}.top-tools{gap:5px}.top-tools .button{padding:7px 9px}.top-tools .button span{display:none}.crumb{font-size:9px}.content{padding:26px 17px}.page-head{align-items:flex-start;margin-bottom:22px}.page-head h1{font-size:31px}.page-head>.row{flex-wrap:wrap;justify-content:flex-end}.page-head .button{font-size:10px;padding:7px 9px}.subtitle{font-size:11px}.stats{gap:10px;margin-bottom:20px}.stat-card{padding:15px}.stat-card .stat-value{font-size:28px}.stat-card .stat-foot{font-size:9px}.grid-main>.stack{display:flex}.panel-head{padding:17px}.panel-body{padding:17px}.actors-list{padding-inline:17px}.actor-row{grid-template-columns:32px 1fr 80px 28px}.actor-layout{display:block}.actor-layout>.actor-menu{display:flex;overflow:auto;gap:10px;margin-bottom:18px}.select-card{min-width:175px;margin:0;padding:12px}.ability-grid{grid-template-columns:repeat(3,1fr)}.field-grid.three,.field-grid.four{grid-template-columns:repeat(2,1fr)}.sheet-title{gap:10px}.sheet-title h2{font-size:22px}.sheet-title .avatar{width:43px;height:45px}.sheet-stats{grid-template-columns:repeat(3,1fr)}.encounter-toolbar{padding:13px;gap:12px;flex-wrap:wrap}.encounter-toolbar .row{flex-wrap:wrap}.encounter-toolbar .button{margin-left:0}.catalog-top{grid-template-columns:1fr}.catalog-row{grid-template-columns:1fr 75px 25px;padding:13px 16px;gap:8px}.catalog-row>.tag{display:none}.spell-row{gap:10px}.spell-row .buttons{flex-direction:column}.spell-row p{max-width:250px;font-size:9px}.page-foot{font-size:8px}.page-foot>span:last-child{display:none}.hero-panel{min-height:185px}.hero-panel h2{font-size:25px}.hero-panel .d20{width:120px}.hero-panel p{max-width:69%}.modal-body{padding:20px}.modal-head{padding:18px 20px}.modal-actions{padding:16px 20px}.budget-chips{gap:4px}.modal-head h2{font-size:22px}#toast{left:17px;right:17px;bottom:17px}.event-header{align-items:flex-start}.event{padding:16px}.map-wrap{margin:0 -4px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Passage checks use the existing table palette and never change session state. */
.jev-presets select{flex:1;min-width:180px}.jev-result-meta{display:flex;justify-content:space-between;gap:12px;padding:17px 22px;font-size:12px;color:var(--muted);flex-wrap:wrap}.jev-verdict{padding:22px;border-top:1px solid var(--line)}.jev-verdict h3{font-size:16px;margin:15px 0;overflow-wrap:anywhere}.jev-verdict.entailment .tag{background:#e2eee7;color:#285c3e}.jev-verdict.contradiction .tag{background:#f5e5e1;color:#90463a}.jev-verdict.neutral .tag,.jev-verdict.uncertain .tag{background:#f1e9d8;color:#795b27}.jev-scores{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.jev-scores span{font-size:11px;display:block;color:var(--muted);margin-bottom:7px}.jev-scores strong{font-size:18px}.jev-meter{height:4px;background:#ebe8df;margin-top:9px}.jev-meter i{height:100%;display:block;background:#7d9a88}.jev-evidence{margin-top:22px;font-size:12px}.jev-evidence pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto}.jev-grid .support-row{gap:16px;align-items:start}.jev-grid .support-row span:last-child{text-align:right;font-size:12px;max-width:60%}@media(max-width:650px){.jev-scores{gap:9px}.jev-scores span{font-size:10px}.jev-result-meta{padding:15px}.jev-verdict{padding:18px}.jev-presets select{width:100%}}

.catalog-row{grid-template-columns:minmax(0,1fr) 110px 100px 45px 32px}.catalog-row>.small-text{overflow-wrap:anywhere}.catalog-row .name{overflow-wrap:anywhere}@media(max-width:980px){.catalog-row{grid-template-columns:minmax(0,1fr) 80px 100px 45px 32px}}@media(max-width:720px){.catalog-row{grid-template-columns:minmax(0,1fr) 45px 32px}.catalog-row>.small-text,.catalog-row>.tag{display:none}}

/* Guided character creation shares the table's paper, forest green and gold palette. */
.creation-dialog{max-width:1080px;width:calc(100% - 32px);max-height:94vh;scrollbar-gutter:stable}.creation-dialog .modal-head{padding:20px 28px}.creation-dialog .modal-head .eyebrow{margin-bottom:5px}.creation-dialog .modal-head h2{font-size:27px}.creation-dialog .modal-head .ghost{font-size:25px;line-height:1}.creation-steps{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:16px 22px;border-bottom:1px solid var(--line);background:var(--paper);gap:4px}.creation-steps button{display:flex;align-items:center;flex-direction:column;gap:7px;border:0;color:#52655a;background:transparent;padding:4px 0;border-radius:4px}.creation-steps button span{width:27px;height:27px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:var(--panel);font-size:11px}.creation-steps small{font-size:10px;line-height:1.3}.creation-steps [aria-current=step]{color:var(--green);font-weight:700}.creation-steps [aria-current=step] span{background:var(--green);color:white;border-color:var(--green)}.creation-steps .has-error span{border-color:var(--red);color:var(--red)}.creation-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;min-height:420px}.creation-stage{min-width:0;padding:28px}.creation-stage-head{margin-bottom:22px}.creation-stage-head h3{font-family:Georgia,serif;font-size:27px;font-weight:400;line-height:1.25}.creation-stage-head p{font-size:12px;line-height:1.7;color:#596b60;margin-top:8px}.creation-sheet{background:#eff1e7;border-left:1px solid var(--line);padding:26px 22px}.creation-sigil{width:50px;height:56px;border:1px solid var(--gold);border-radius:25px 25px 6px 6px;display:grid;place-items:center;font-family:Georgia,serif;font-size:28px;color:var(--green);margin-bottom:20px}.creation-sheet .eyebrow{font-size:9px;color:#5a6d60;margin-bottom:5px}.creation-sheet h3{font-family:Georgia,serif;font-size:24px;font-weight:400;overflow-wrap:anywhere}.creation-sheet>p{font-size:11px;color:#58685e;margin-top:5px}.creation-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:20px 0;border-bottom:1px solid #d8ddcf}.creation-mini-stats strong{font-family:Georgia,serif;font-size:26px;font-weight:400;display:block}.creation-mini-stats small{font-size:10px;color:#55695b}.creation-abilities{margin:16px 0}.creation-abilities div{display:flex;justify-content:space-between;padding:5px 0;font-size:11px}.creation-abilities dd{margin:0;font-weight:700}.creation-abilities dd span{font-weight:400;color:#587052;margin-left:8px}.creation-totals{border-top:1px solid #d8ddcf;padding-top:14px}.creation-totals p{display:flex;justify-content:space-between;gap:8px;padding:6px 0;font-size:11px}.creation-sheet .creation-sheet-note{font-size:10px;line-height:1.7;margin-top:16px}.creation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.creation-choice{display:flex;flex-direction:column;gap:9px;text-align:left;padding:16px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:7px}.creation-choice:hover{border-color:var(--green)}.creation-choice.selected,.creation-feat.selected{background:var(--green-light);border-color:var(--green)}.creation-choice-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.creation-choice-head strong{font-size:14px}.creation-choice-head small{color:#48634d;font-size:9px}.creation-choice>span:not(.creation-choice-head){font-size:11px}.creation-choice>small{color:#586c5e;font-size:10px}.creation-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.creation-callout{background:var(--green-light);border:1px solid #d6dfcf;padding:15px 17px;border-radius:7px;margin:18px 0;font-size:12px}.creation-callout strong{display:block;font-size:12px}.creation-callout p{color:#526a57;margin-top:5px;font-size:11px;line-height:1.7}.creation-callout.error{color:var(--red);background:#faf0eb;border-color:#dfc1b3}.creation-help{font-size:11px;line-height:1.85;color:#596b60;margin:15px 0}.creation-callout .rule-link,.creation-stage>.rule-link{color:#52614e;font-size:10px}.creation-callout .rule-link{display:inline-block;margin-top:8px}.creation-budget{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--paper);border:1px solid var(--line);padding:13px 15px;margin:18px 0;border-radius:7px;font-size:11px}.creation-budget strong{font-size:16px;font-variant-numeric:tabular-nums;color:var(--green)}.creation-budget.over strong{color:var(--red)}.creation-score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.creation-score{border:1px solid var(--line);border-radius:7px;padding:12px;background:var(--paper)}.creation-score input{font-size:19px;padding:8px 10px}.creation-score small{display:block;font-size:10px;font-weight:400;color:#586b5c;margin-top:7px}.creation-score b{display:block;margin-top:7px;font-size:11px;color:var(--ink)}.creation-score b span{float:right;color:var(--green)}.creation-hp-rolls{margin-top:16px}.creation-skill-list{border:1px solid var(--line);border-radius:7px;overflow:hidden}.creation-skill-row{display:grid;grid-template-columns:minmax(0,1fr) 65px 42px;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line)}.creation-skill-row:last-child{border-bottom:0}.creation-skill-row label{font-size:12px;color:var(--ink)}.creation-skill-row small{font-size:10px;color:#596b60}.creation-skill-row input{padding:7px}.creation-skill-row strong{text-align:right;color:var(--green);font-size:13px}.creation-advanced{margin:18px 0;font-size:11px;border-top:1px solid var(--line);padding-top:15px;color:#596b60}.creation-advanced summary{cursor:pointer;color:var(--green);margin-bottom:12px}.creation-advanced p{margin-top:8px}.creation-feat{display:flex;gap:10px;padding:14px;border:1px solid var(--line);border-radius:7px;background:var(--paper);align-items:flex-start;color:var(--ink)}.creation-feat input{margin:2px 0;flex-shrink:0}.creation-feat span{min-width:0}.creation-feat strong{font-size:12px;display:block}.creation-feat small{font-size:10px;font-weight:400;display:block;margin-top:5px;color:#556852}.creation-feat em{font-size:10px;font-style:normal;font-weight:400;display:block;margin-top:7px;color:var(--green)}.creation-feat.unavailable{background:#f8f1e9}.creation-feat.unavailable em{color:#874938}.creation-errors{font-size:12px;line-height:1.7;color:#8d4234;margin-top:18px}.creation-errors:empty{display:none}.creation-review-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.creation-review-stats div{border-bottom:2px solid var(--gold);padding-bottom:12px}.creation-review-stats strong{font-family:Georgia,serif;font-size:28px;font-weight:400;display:block}.creation-review-stats small{font-size:10px;color:#576d5b}.creation-review-list>div{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:10px;align-items:center;font-size:11px;padding:12px 0;border-bottom:1px solid var(--line)}.creation-review-list span{overflow-wrap:anywhere;color:#53695a}.creation-review-heading{margin:22px 0 12px;font-size:14px}.creation-warnings{font-size:11px;line-height:1.8;padding-left:18px;color:#705437}.creation-warnings li{margin-bottom:8px}.creation-confirm{padding:15px 0}.creation-confirm .check-label{align-items:flex-start;font-size:12px;color:var(--ink);line-height:1.7}.creation-confirm input{flex-shrink:0;margin-top:3px}.creation-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:17px 28px;background:var(--paper);border-top:1px solid var(--line);position:sticky;bottom:0;z-index:2}.creation-footer>div:first-child{display:flex;flex-direction:column;align-items:flex-start}.creation-footer span{font-size:10px;color:#53695a}.creation-footer .primary{min-width:120px}.creation-draft-notice{font-size:11px;color:var(--green);padding:10px 0 16px}.creation-dialog .creation-stage-head h3:focus{outline:none}
@media(max-width:800px){.creation-layout{grid-template-columns:minmax(0,1fr) 200px}.creation-stage{padding:22px}.creation-sheet{padding:22px 16px}.creation-choice-head{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:600px){.creation-dialog{width:calc(100% - 12px);max-height:96vh;border-radius:9px}.creation-dialog .modal-head{padding:16px}.creation-dialog .modal-head h2{font-size:24px}.creation-steps{padding:12px 8px;gap:2px}.creation-steps small{font-size:8px;overflow-wrap:anywhere}.creation-steps button span{width:24px;height:24px}.creation-layout{display:flex;flex-direction:column}.creation-stage{padding:20px 16px}.creation-stage-head h3{font-size:24px}.creation-sheet{border-left:0;border-top:1px solid var(--line);padding:18px}.creation-sheet .creation-sigil,.creation-sheet .creation-abilities,.creation-sheet-note{display:none}.creation-sheet h3{font-size:22px}.creation-mini-stats{padding:10px 0}.creation-totals{padding-top:8px}.creation-sheet .eyebrow{margin-top:0}.creation-options{grid-template-columns:1fr}.creation-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creation-filters{grid-template-columns:1fr}.creation-stage .field-grid{grid-template-columns:1fr}.creation-stage .field-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.creation-review-list>div{grid-template-columns:minmax(0,1fr) auto}.creation-review-list strong{grid-column:1}.creation-review-list span{grid-column:1;grid-row:auto}.creation-review-list .button{grid-column:2;grid-row:span 2}.creation-footer{padding:12px;gap:8px}.creation-footer>.row{gap:6px}.creation-footer .button{padding:8px 10px}.creation-footer .primary{min-width:95px}.creation-footer>div:first-child{max-width:105px}.creation-footer span{font-size:9px}.creation-footer .small{font-size:9px;padding:4px}.creation-budget{padding:12px}.creation-budget .button{white-space:normal}.creation-review-stats{grid-template-columns:repeat(2,1fr)}.creation-skill-row{padding:10px;grid-template-columns:minmax(0,1fr) 54px 33px;gap:8px}}
/* Keep the created sheet and wizard footer within narrow viewports. */
.actor-layout>.stack{min-width:0}
@media(max-width:380px){.creation-footer{flex-wrap:wrap}.creation-footer>div:first-child{flex:1 0 100%;max-width:none;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.creation-footer>.row{margin-left:auto}}

.actor-creation-return{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line)}.actor-creation-return .button{white-space:normal;text-align:left}.actor-creation-return p{flex:1;min-width:180px}
