:root{--bg:#10191e;--panel:#162329;--panel2:#1b2c31;--line:#334649;--green:#9be0bb;--gold:#e0c78d}body{background:radial-gradient(ellipse at top,#223832,#10191e 65%)}header{background:linear-gradient(110deg,#192c2d,#111e24);box-shadow:0 6px 30px #0003}.brand{color:#ebd3a0}aside{background:linear-gradient(160deg,#1a2b30,#152027)}.pc{border:1px solid #33484c;background:linear-gradient(100deg,#253b3b,#1a2c31);padding:9px;margin:8px 0;transition:border-color .2s,transform .2s}.pc:hover{border-color:#779887;transform:translateY(-1px)}.pc img{width:48px;height:48px;box-shadow:0 2px 12px #0006}.pc-name{font-family:Georgia,serif;color:#f1e3be;font-size:15px}.character-create{width:100%;border-style:dashed;color:var(--green);margin:12px 0}button{transition:background .15s,border-color .15s}.primary{background:linear-gradient(110deg,#375f50,#28483f);box-shadow:0 3px 14px #0002}#right-panel .dice{padding:14px;background:#20323788;border:1px solid #3b5050;border-radius:12px}.map-toolbar button,.map-toolbar select{border-radius:18px}.sheet-shell{display:grid;grid-template-columns:226px minmax(0,1fr);min-height:760px}.character-dialog{width:min(1220px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;padding:0;overflow:hidden;background:#121f25;border:1px solid #6f8c7e;box-shadow:0 35px 140px #000a;border-radius:18px}.sheet-sidebar{padding:28px 20px;background:radial-gradient(ellipse at top,#304c43,#16282c 65%);border-right:1px solid #3c5651;overflow:auto;max-height:92dvh}.sheet-portrait{width:180px;height:200px;object-fit:cover;object-position:50% 22%;border-radius:90px 90px 20px 20px;border:2px solid #a99c71;box-shadow:0 8px 30px #0006;cursor:zoom-in}.sheet-name{margin:18px 0 5px;font-size:25px;overflow-wrap:anywhere}.sheet-subtitle{font-size:13px}.sheet-nav{display:flex;flex-direction:column;gap:7px;margin:26px -5px}.sheet-nav button{text-align:left;border:1px solid transparent;background:transparent;padding:11px 12px;font-size:13px;white-space:normal}.sheet-nav button.active{background:#34554b;border-color:#6e9480;color:#f2e2b8}.sheet-source{font-size:10px;line-height:1.6;color:#b0c2b7;padding-top:16px;border-top:1px solid #48615b}.sheet-main{display:flex;flex-direction:column;min-width:0;height:92dvh}.sheet-hero{padding:25px 30px 18px;background:radial-gradient(ellipse at 75% 5%,#37514988,transparent 65%),linear-gradient(125deg,#253b3b,#17292e);border-bottom:1px solid #476157}.sheet-topline{display:flex;align-items:center;justify-content:space-between}.sheet-close{font-size:27px;border:0;background:transparent;line-height:1;padding:0 5px}.sheet-hero h1{font-size:34px;color:#f1ddb2;letter-spacing:.2px;margin:0 0 4px}.sheet-hero p{font-size:12px}.sheet-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:20px}.sheet-stat{padding:11px 10px;background:#0f2126b3;border:1px solid #476158;border-radius:9px;display:flex;flex-direction:column}.sheet-stat strong{font:25px Georgia,serif;color:#b9eccb;margin:3px 0}.sheet-stat small{font-size:10px;color:#b0c3b9;line-height:1.4}.sheet-content{padding:22px 28px;overflow:auto;flex:1;min-height:0;scrollbar-color:#516d61 #17272d}.sheet-card{background:linear-gradient(130deg,#203237,#1a2b30);padding:19px;border:1px solid #3c5353;border-radius:12px;margin:0 0 15px;box-shadow:0 4px 14px #0002}.sheet-card h3{font:19px Georgia,serif;color:#e1cc97;margin-bottom:13px}.sheet-card>p{font-size:12px;white-space:pre-line}.sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}.sheet-grid label{margin:3px 0 9px}.sheet-grid button{margin-bottom:9px}.sheet-content .check,.sheet-content label:has(input[type=checkbox]){display:flex;align-items:center;gap:9px}.sheet-content input[type=checkbox]{width:17px;height:17px;margin:0;accent-color:#91c6a1}.sheet-content input,.sheet-content select{background:#112027;border-color:#425756;border-radius:7px}.sheet-content textarea{background:#112027;border-color:#425756;min-height:115px}.sheet-footer{display:flex;align-items:center;gap:9px;padding:14px 25px;background:#17292d;border-top:1px solid #40574f}.sheet-footer span{flex:1;font-size:11px}.sheet-footer button{font-size:12px}.ability-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.ability-grid .sheet-card{text-align:center;padding:18px 12px}.ability-grid h3{font-size:17px}.ability-mod{display:block;font:36px Georgia,serif;color:#9ddcba;margin:8px}.ability-grid input[type=number]{font-size:18px;text-align:center;max-width:100px;margin:auto}.ability-grid label{font-size:10px;justify-content:center;margin-top:14px}.skill-row{display:grid;grid-template-columns:1fr 140px 35px auto;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid #3a4e4e;font-size:12px}.skill-row b{color:#aee4bf}.resource-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #3a4e4e;padding:10px 0;font-size:13px}.resource-row>span{flex:1}.resource-row b{color:#afdfbb;min-width:55px}.resource-row button{min-width:32px}.spell-row{display:grid;grid-template-columns:minmax(120px,1fr) 115px 100px 30px;align-items:center;gap:8px;border-bottom:1px solid #3b504e;padding:9px 0}.spell-row label{font-size:10px}.spell-title{border:0;background:transparent;color:#e8d3a5;text-align:left;padding-left:0;white-space:normal}.spell-row small{font-size:10px;color:#b4c8bd}.spell-results{max-height:380px;overflow:auto;margin-top:10px}.catalog-row{display:flex;gap:12px;align-items:center;padding:6px 0;border-bottom:1px solid #3a504c}.catalog-row .spell-title{flex:1}.catalog-row small{font-size:11px}.catalog-row>button:last-child{font-size:10px}.feature-detail{border-bottom:1px solid #3a504c;padding:10px 0;font-size:12px}.feature-detail summary{cursor:pointer;color:#ead6a9}.feature-detail p{padding-top:12px}.sheet-import-note{font-size:11px;color:#b4c6bd;border-left:2px solid #bb9d62;padding-left:12px}.level-headline{font:23px Georgia,serif!important;color:#a6dfb8}.reference-dialog{width:760px;max-width:93vw;padding:28px;background:#1a2e32;border:1px solid #779983;max-height:85dvh}.reference-dialog .sheet-close{position:sticky;float:right;top:0}.reference-description{white-space:pre-line;line-height:1.7;font:16px Georgia,serif}.reference-card p{font-size:13px}.change-table{display:grid;grid-template-columns:1fr 100px 100px;gap:8px;font-size:12px;padding:14px 0;border-top:1px solid #4a6358;border-bottom:1px solid #4a6358;margin:16px 0;max-height:330px;overflow:auto}.review-dialog button{margin:15px 8px 0 0}@media(max-width:950px){.sheet-shell{grid-template-columns:175px minmax(0,1fr)}.sheet-sidebar{padding:22px 12px}.sheet-portrait{width:150px;height:165px}.sheet-stats{gap:5px}.sheet-stat{padding:8px}.sheet-hero{padding:20px}.sheet-content{padding:18px}.sheet-footer{padding:12px;flex-wrap:wrap}.sheet-footer span{flex:1 1 100%}.sheet-stat strong{font-size:21px}.spell-row{grid-template-columns:1fr 70px 90px 30px}}@media(max-width:650px){.character-dialog{width:98vw;max-width:98vw;height:96dvh;max-height:96dvh}.sheet-shell{display:block;min-height:0}.sheet-sidebar{padding:10px;max-height:none;display:flex;align-items:center;gap:10px;border:0;overflow:visible}.sheet-portrait{width:45px;height:55px;border-radius:10px;flex:0 0 auto}.sheet-name{font-size:16px;margin:0}.sheet-subtitle,.sheet-sidebar .tag,.sheet-source{display:none}.sheet-nav{display:flex;flex-direction:row;flex-wrap:wrap;margin:0;gap:3px}.sheet-nav button{font-size:9px;padding:5px}.sheet-main{height:calc(96dvh - 100px)}.sheet-hero{padding:10px 15px}.sheet-hero h1{font-size:25px}.sheet-stats{grid-template-columns:repeat(3,1fr);margin-top:10px}.sheet-stat{padding:6px}.sheet-stat:nth-child(n+4){display:none}.sheet-content{padding:10px}.sheet-card{padding:13px}.sheet-grid{gap:7px}.ability-grid{gap:6px;grid-template-columns:repeat(2,1fr)}.ability-grid h3{font-size:14px}.skill-row{grid-template-columns:1fr 98px 23px auto;gap:6px;font-size:10px}.skill-row select{font-size:10px;padding:6px}.spell-row{display:flex;flex-wrap:wrap}.spell-row .spell-title{flex:1 1 45%}.sheet-footer button{font-size:10px;padding:7px}.sheet-footer{gap:4px}}

@media(max-width:650px){.sheet-sidebar>.sheet-name{display:none}.sheet-nav{flex:1}.sheet-sidebar{min-height:78px}.sheet-main{height:calc(96dvh - 78px)}}
