/* Painted parchment, with restrained late-medieval display typography. */
:root{font-family:'Segoe UI',Arial,sans-serif}
body:not(.theme-light){--text:#302b22;--muted:#786d58;--yellow:#88612d;--line:#bbab87;--panel:#e5d6b5;--hover:#d8c59e;background:#171714;color:#302b22}
.workspace{display:block;max-width:1920px;margin:auto;padding:0 32px 24px}
body .sidebar{position:relative;inset:auto;width:100%;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:18px 28px;padding:22px 12px;background:transparent!important;border:0!important;box-shadow:none!important;z-index:10}
.sidebar:before,.sidebar:after,.page-head:before,.page-head:after{display:none!important}
body .sidebar .brand{margin:0;padding:0;font-family:Georgia,serif;font-size:25px;letter-spacing:.025em;color:#dfc88b;text-shadow:none;font-weight:400;white-space:nowrap}
body .sidebar .crest{width:32px;height:32px;filter:none}
.sidebar-caption{display:none}
body .sidebar nav{display:flex;align-items:center;justify-content:center;flex:1;gap:22px;padding:0;overflow-x:auto}
body .nav-item{width:auto;padding:8px 0;display:block;white-space:nowrap;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0;font-family:Georgia,serif;font-size:12px;font-weight:400;letter-spacing:.045em;color:#c6b995!important;text-align:center}
body .nav-item:hover,body .nav-item.active{color:#f2d78d!important}.nav-item.active span:first-child{border-bottom:1px solid #b79a58;padding-bottom:6px}
.nav-count,.chapter-number{display:none!important}
body .sidebar-bottom{display:flex;align-items:center;gap:12px;padding:0;margin:0}
.sidebar-bottom .connection{display:none}.sidebar-bottom .theme-toggle{margin:0;font-size:10px;color:#c6b995}
.sidebar-bottom .account{border:0;padding:0;gap:6px;color:#e4d9be}.sidebar-bottom .account strong{font-size:11px;font-weight:400}.sidebar-bottom .account small{font-size:9px;color:#a79b80}.sidebar-bottom .icon-button{color:#c6b995;width:24px}
body .main-shell{margin:0;width:100%;background:radial-gradient(ellipse at 48% 20%,#eee1c1 0%,#e0cda6 85%);border:0;box-shadow:0 10px 40px #0003;min-height:calc(100vh - 100px);position:relative;isolation:isolate}
.main-shell:before{content:'';position:absolute;inset:0;background:url('/aged-surface.svg');opacity:.55;mix-blend-mode:multiply;pointer-events:none;z-index:-1}
body .topbar{height:42px;padding:0 30px;background:transparent!important;border:0!important;font-size:10px;color:#8a795b}
body .topbar b,body #breadcrumb{color:#766344}.topbar .icon-button,body #mode-badge{color:#826e4d}
body main{padding:24px 32px 30px;max-width:none;margin:0;min-height:calc(100vh - 195px)}
body .page-head{border:0!important;padding:0 0 20px;margin:0 0 18px;gap:18px;align-items:center}
body .page-head h1{font-family:Georgia,'Times New Roman',serif;font-size:36px;line-height:1.2;font-style:normal;font-weight:400;letter-spacing:.01em;color:#403725!important;text-shadow:none;margin:0 0 10px}
body .page-head .eyebrow{font-family:Georgia,serif;font-size:9px;font-weight:400;color:#8e774e;letter-spacing:.16em;margin-bottom:12px}
body .page-head p{font-size:12px;color:#806e51}
body h2,body h3{font-family:Georgia,serif;font-style:normal;font-weight:400;color:#463b28!important;text-shadow:none;letter-spacing:.01em}
body .primary,body .secondary,body .sheet-upload,body .sheet-more summary{font-family:Georgia,serif;font-size:12px;font-weight:400;letter-spacing:.015em;border-radius:0;box-shadow:none;min-height:34px}
body .primary{background:#8a4637!important;border:1px solid #8a4637!important;color:#fff0d2!important;padding:10px 18px;text-shadow:none}
body .primary:hover{background:#74392e!important}
body .secondary,body .sheet-upload,body .sheet-more summary{background:#d6bf8f!important;border:1px solid #b49a68!important;color:#594529!important;box-shadow:none!important}
body .secondary:hover{background:#cbb27d!important;border-color:#b49a68!important}
body .section-tabs{gap:20px;border:0;padding:0;margin-bottom:18px}
body .section-tabs button{background:transparent!important;border:0!important;box-shadow:none!important;padding:6px 0;font-size:12px;font-family:Georgia,serif;color:#877353!important}
body .section-tabs button.active{color:#713d2d!important;box-shadow:0 1px #9c6850!important}
body .sheet-mode{gap:8px}.sheet-mode button{border:0!important;background:transparent!important;color:#806c4c!important;padding:6px 10px}.sheet-mode button.selected{background:#bba06c33!important;color:#5b4425!important}
body .toolbar{border:0;padding:0;gap:10px}
body input,body select,body textarea,body .toolbar input,body .toolbar select{font-family:'Segoe UI',Arial,sans-serif;background:#f3e9d1!important;border:1px solid #bbaa86!important;box-shadow:none!important;color:#423a2c!important;border-radius:0}
body input::placeholder,body textarea::placeholder{color:#998b71}
body label,body .hint,body .muted{color:#78684e}
body .panel,body .summary-banner,body .contract-card,body dialog,body .drawer{background:#e9dabc!important;background-image:none!important;border:1px solid #bca77d!important;box-shadow:none!important;border-radius:0;color:#423a2c}
body .contract-card{border:0!important;border-top:2px solid #ad9361!important;padding:22px;background:#eee2c7!important;box-shadow:0 4px 14px #5d452312!important}
.contract-card:before{display:none!important}body .contract-card:hover{background:#e5d4b0!important}
body .contract-card p{font-size:13px;line-height:1.8;color:#68573e}.contract-card .eyebrow{font-family:Georgia,serif;font-size:10px;color:#937a50}
body .panel p,body .note p,body .timeline-item p{color:#68573e}
body .summary-banner{background:#d7d2b4!important;border:0!important}.summary-banner .symbol{color:#7a8358}
body .table-wrap{background:#eee3cb!important;border:1px solid #bba982!important;box-shadow:none}
body th,body .clan-grid th,body .clan-grid th.clan-sticky{background:#d1bc91!important;color:#574323!important;border-color:#bba982!important;font-family:Georgia,serif;font-weight:400}
body td,body .clan-grid td{font-family:'Segoe UI',Arial,sans-serif;color:#48412f!important;border-color:#d1c19e!important}
body .clan-grid td,body .clan-grid td strong,body .clan-grid .member-link,body .clan-grid .member-link strong,body .clan-grid .sheet-mark{font-family:'Segoe UI',Arial,sans-serif;font-size:12px;font-weight:400;line-height:20px}
body .clan-grid td,body .clan-grid:not(.wide) td{height:26px;padding:2px 7px}
body .clan-grid .clan-sticky{background:#eee3cb!important}
body .clan-grid tbody tr:nth-child(even){background:#e7d9bd!important}
body tbody tr:hover,body .clan-grid tr:hover,body .clan-grid tr:hover .clan-sticky{background:#ddd0af!important}
body .clan-grid .sheet-mark{color:#80745c!important}.clan-grid .sheet-mark.present{background:#9fae742b!important;color:#526136!important}.clan-grid .sheet-mark.absent{background:#ab615521!important;color:#873e32!important}
body .member-link strong,body .group-label{color:#57462e}body .member-link:hover strong,body .text-button{color:#8c4634}
body .member-link small,body .table-foot,body .sheet-legend,body .note small{color:#8a785c}
body .tag,body .chip{color:#75623e;background:#d9c7a233;border-color:#baa47a}.tag.clan{color:#627346!important;background:#aab77b22!important}
body .sheet-more-menu{background:#eee2c7!important;border-color:#b49a68!important}
body .page-footer{padding:15px 32px;border-top:1px solid #b9a47c55;font-size:10px;color:#99815b}
body .auth-screen{background:radial-gradient(ellipse at center,#ecdfc0,#cbb58d)!important;box-shadow:none;background-image:none}
body .auth-content{padding:28px;max-width:590px;border:0}body .auth-brand{font-family:Georgia,serif;font-size:42px;color:#51412b!important;font-weight:400}
body .auth-form h2{font-family:Georgia,serif;font-size:27px;font-weight:400;font-style:normal;color:#59452c!important}
body.register-expanded #main{background:#e7d8b9!important;border:0;padding:12px 18px}
body.register-expanded .page-head{padding-bottom:8px;margin-bottom:10px}body.register-expanded .page-head h1{font-size:25px;margin:0}
body.theme-light{background:#c7b48f}.theme-light .sidebar .brand{color:#443522!important}.theme-light .nav-item{color:#705a38!important}.theme-light .nav-item.active,.theme-light .nav-item:hover{color:#8a4637!important}.theme-light .sidebar-bottom .account,.theme-light .sidebar-bottom .icon-button,.theme-light .sidebar-bottom .theme-toggle{color:#604b30}
@media(min-width:1550px){body .sidebar{flex-wrap:nowrap}.sidebar-bottom{margin-left:auto!important}}
@media(max-width:1549px){body .sidebar nav{order:3;flex-basis:100%;justify-content:flex-start}body .sidebar-bottom{margin-left:auto}body .sidebar{gap:12px;padding:16px 4px}}
@media(max-width:780px){.workspace{padding:0 8px 12px}body .sidebar .brand{font-size:23px}body .sidebar nav{gap:22px}.sidebar-bottom .account small{display:none}.sidebar-bottom .account{display:flex}body .sidebar-bottom .theme-toggle{font-size:9px}body main{padding:18px 14px}body .page-head{flex-wrap:wrap}body .page-head h1{font-size:29px}body .topbar{padding:0 14px}.sidebar-bottom{gap:8px!important}}
/* Keep native controls and secondary surfaces consistent with the paper. */
body .main-shell,body .auth-screen,body dialog,body .drawer{color-scheme:light}
body input[type=date]{color-scheme:light!important}
body.register-expanded .sidebar{visibility:hidden;pointer-events:none}
body .note,body .role-detail td{background:#e5d5b4!important;color:#423a2c}
body .event-card{background:#eee2c7!important;border-color:#c4ae83!important;color:#423a2c}
body .event-card:hover{background:#e2d1af!important}
body .event-card strong,body .score{color:#64482c!important}
body .event-card-date,body .event-card-meta{color:#78664b!important}
body .event-card-open{color:#8a4637!important}
body .nav-item span,body .sidebar .brand{font-weight:400!important}
body .auth-form label,body .auth-kicker,body .auth-switch button{color:#655033}

/* Shared illustrated manuscript skin: every route, including authentication. */
body,body:not(.theme-light),body.theme-light{background:#c6aa79 url('/parchment-paper.png') repeat;background-size:750px;color:#362e22;--text:#362e22;--muted:#79684c;--line:#ad946b;--panel:#e6d4ad;--hover:#d9c297;--yellow:#86572c;color-scheme:light}
body:before{content:'';position:fixed;inset:0;background:linear-gradient(90deg,#dfc99f88,#dfc99f22),url('/parchment-landscape.png?v=20261028-terrain') right bottom/cover no-repeat;pointer-events:none;z-index:-1}
.workspace{max-width:1800px;padding:0 38px 32px}
body .sidebar{padding:26px 4px 22px;gap:20px;min-height:88px}
body .sidebar .brand{color:#342c20!important;font-size:28px}
body .nav-item,body.theme-light .nav-item{color:#564329!important;font-size:12px;text-transform:uppercase;letter-spacing:.075em;text-shadow:none}
body .nav-item:hover,body .nav-item.active,body.theme-light .nav-item.active{color:#883d2e!important}
body .nav-item.active span:first-child{border-bottom-color:#985d3c}
body .sidebar-bottom .account,body .sidebar-bottom .theme-toggle,body .sidebar-bottom .icon-button{color:#594a32!important}
body .sidebar-bottom .account small{color:#79694e}
body .main-shell{background:linear-gradient(#f1e5ca99,#e8d6b199),url('/parchment-paper.png') repeat;background-size:auto,750px;box-shadow:0 8px 32px #583b1820;min-height:calc(100vh - 130px)}
body .main-shell:before{display:none}
body .topbar{border-bottom:1px solid #94744730!important;height:40px}
body main{padding:28px 32px}
body .page-head{min-height:110px;padding-bottom:22px;margin-bottom:20px;background:linear-gradient(90deg,#ead7b100,#ead7b100 50%,#ead7b133),url('/parchment-landscape.png?v=20261028-terrain') right 62%/650px auto no-repeat;background-blend-mode:normal,multiply}
body .page-head h1{font-size:36px;max-width:75%;font-weight:400}
body .page-head p{color:#645239;max-width:60%}
body .panel,body .contract-card,body .drawer,body dialog,body .event-card,body .note{background-image:linear-gradient(#f2e8d3bd,#e6d2adb3),url('/parchment-paper.png')!important;background-size:auto,600px!important;border-color:#b09870!important}
body .contract-card:hover,body .event-card:hover{background-image:linear-gradient(#e8d8b9aa,#d9bd8e88),url('/parchment-paper.png')!important}
body .primary{background-image:linear-gradient(#934d35bb,#713a2fdd),url('/parchment-paper.png')!important;background-size:auto,300px!important;border-color:#713c2d!important;box-shadow:inset 0 0 0 2px #e4c48a24!important;letter-spacing:.04em}
body .secondary,body .sheet-upload,body .sheet-more summary{background-image:linear-gradient(#ddc49588,#c7aa7499),url('/parchment-paper.png')!important;background-size:auto,300px!important;border-color:#a58a5d!important;box-shadow:inset 0 0 0 2px #f7ecd12b!important}
body .summary-banner{background-image:linear-gradient(#b5bd9888,#cdd0acaa),url('/parchment-paper.png')!important;background-size:auto,600px!important}
body .table-wrap{background:#eee0c3f2!important}
body th,body .clan-grid th,body .clan-grid th.clan-sticky{background-image:linear-gradient(#d4bb8eaa,#d4bb8eaa),url('/parchment-paper.png')!important;background-size:auto,600px!important}
body .auth-screen{background:linear-gradient(90deg,#ead9b44d,#ead9b426),url('/parchment-landscape.png?v=20261028-terrain') center/cover no-repeat!important}
body .auth-screen:before,body .auth-screen:after,body .auth-sun{display:none!important}
body .auth-content{background:linear-gradient(#efe1c4d9,#e9d6b0c9),url('/parchment-paper.png') center/650px;padding:42px 44px;box-shadow:0 14px 65px #5a3c1824;max-width:620px}
body .auth-brand{font-size:44px!important;letter-spacing:.045em}
body .auth-switch button{color:#766043!important;background:none!important;font-family:Georgia,serif;font-weight:400}
body .auth-switch button.active{color:#883d2e!important;border-color:#883d2e!important}
body.register-expanded #main{background:#e4d2ad url('/parchment-paper.png') repeat!important;background-size:750px!important}
body.register-expanded .page-head{background:none;min-height:0}
body.theme-light .main-shell{background-image:linear-gradient(#fff8e5c9,#f6ebd3c9),url('/parchment-paper.png')}
body.theme-light:before{background-color:#fff6df55}
@media(min-width:1550px){body .sidebar nav{gap:17px}body .nav-item{font-size:11px}}
@media(max-width:1549px){body .sidebar{padding:20px 4px 16px}body .sidebar nav{justify-content:center}}
@media(max-width:780px){.workspace{padding:0 10px 16px}body .sidebar nav{justify-content:flex-start}body main{padding:20px 16px}body .page-head{background-size:440px;min-height:110px}body .page-head h1{font-size:29px;max-width:100%}body .page-head p{max-width:100%}body .auth-content{padding:28px 22px;max-width:calc(100% - 28px)}}
/* Fade the marginal drawing into the page instead of framing it as a banner. */
body .page-head{position:relative;isolation:isolate;background:none!important}
body .page-head:after{display:block!important;content:'';position:absolute;right:0;top:0;bottom:0;width:55%;background:url('/parchment-landscape.png?v=20261028-terrain') right 65%/650px auto no-repeat;mix-blend-mode:multiply;opacity:.65;mask-image:linear-gradient(90deg,transparent,#000 65%);pointer-events:none;z-index:-1}
body.register-expanded .page-head:after{display:none!important}
body .auth-intro .eyebrow{color:#80633d!important;font-weight:400}
/* Illustration belongs to the page margins; headings stay clear. */
body .page-head:after{display:none!important}

/* Let the page parchment show through without fading text or portraits. */
body .main-shell,body.theme-light .main-shell{background:rgba(249,239,215,.62);background-image:none;box-shadow:0 8px 32px #583b1815}
body .table-wrap{background:rgba(239,224,191,.28)!important}
body .table-wrap table,body .table-wrap tbody,body .table-wrap tbody td{background-color:transparent}
body .table-wrap tbody tr,body .clan-grid tbody tr:nth-child(even){background:transparent!important}
body .table-wrap tbody tr:nth-child(even){background:rgba(179,145,88,.07)!important}
body .table-wrap tbody tr:hover,body .clan-grid tr:hover{background:rgba(186,150,90,.2)!important}
body th,body .clan-grid th{background:rgba(195,163,106,.45)!important;background-image:none!important}
/* Sticky cells need an opaque backing so scrolling values never overlap. */
body .clan-grid .clan-sticky{background:#ead9b6!important}
body .clan-grid th.clan-sticky{background:#d4bc90!important}
body .clan-grid tr:hover .clan-sticky{background:#decca6!important}

/* Single neutral chronicle: ink, sage, ochre and painted countryside. */
body.theme-light{--text:#3d3326;--muted:#4e4130;--yellow:#834b30;--line:#856f5247;--panel:#bfa36e;--hover:#d6c4a3;background:#d4c19d;color:var(--text);color-scheme:light}
body.theme-light:before{background:linear-gradient(180deg,#cdb68d7a 0,#cdb68d30 110px,#bb9d6508 240px),url('/parchment-landscape.png?v=20261028-terrain') center/100% 100% no-repeat}
body.theme-light .workspace{padding:0 3.5vw 35px;max-width:1920px}
body.theme-light .sidebar{min-height:96px;padding:22px 0;gap:20px;flex-wrap:wrap}
body.theme-light .sidebar .brand{font-size:29px;color:#443829!important;text-shadow:none;letter-spacing:.02em}
body.theme-light .sidebar nav{position:static;display:flex;flex:1;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 22px;padding:0;overflow:visible;filter:none;height:auto}
body.theme-light .sidebar nav:before,.landmark-icon{display:none!important}
body.theme-light .nav-item{flex:none;min-width:0;max-width:none;min-height:0;padding:7px 0;display:block;font:400 12px/1.5 Georgia,serif;letter-spacing:.045em;text-transform:uppercase;color:#514331!important;text-shadow:none;transform:none!important;background:none!important}
body.theme-light .nav-item:hover,body.theme-light .nav-item.active{color:#8b422e!important}
body.theme-light .nav-item.active span{border-bottom:1px solid #8b422e;padding-bottom:6px}
body.theme-light .sidebar-bottom{margin:0!important;padding:0;background:none!important;box-shadow:none}
body.theme-light .sidebar-bottom .account,body.theme-light .sidebar-bottom .icon-button{color:#493c2c!important}
body.theme-light .sidebar-bottom .account small{color:#493d2d}
body.theme-light .main-shell{background:linear-gradient(115deg,#bfa36edb,#bfa36ec7);box-shadow:none;max-width:none;margin:0;min-height:calc(100vh - 130px)}
body.theme-light .main-shell:before{display:none}
body.theme-light .topbar{padding:0 26px;border-bottom:1px solid #7d684d30!important;color:#68563f}
body.theme-light main{padding:26px;min-height:calc(100vh - 230px)}
body.theme-light .page-head{margin-bottom:18px;padding-bottom:12px;gap:16px}
body.theme-light .page-head>div:first-child{flex:1;min-width:0}
body.theme-light .page-head h1{font-size:34px;color:#473b2b!important;max-width:none;margin-bottom:8px}
body.theme-light .page-head p{max-width:650px;color:#473b2b}
body.theme-light h2,body.theme-light h3{color:#4a3d2d!important}
body.theme-light .panel,body.theme-light .contract-card,body.theme-light .event-card,body.theme-light .note,body.theme-light .waiting-hero{background:#c1a572e8!important;background-image:none!important;border:0!important;border-top:1px solid #88715355!important;box-shadow:none!important;border-radius:0}
body.theme-light .contract-card:hover,body.theme-light .event-card:hover{background:#c9b083e8!important}
body.theme-light .summary-banner{background:#b49254cc!important;padding:18px 24px;border:0!important}
body.theme-light .primary{background:#7b674c!important;border:1px solid #7b674c!important;color:#fff7df!important;box-shadow:none!important}
body.theme-light .primary:hover{background:#64533d!important}
body.theme-light .secondary,body.theme-light .sheet-upload,body.theme-light .sheet-more summary{background:#bd9a5cbf!important;border:1px solid #88715355!important;color:#504331!important;box-shadow:none!important}
body.theme-light .secondary:hover,body.theme-light .sheet-upload:hover,body.theme-light .sheet-more summary:hover{background:#c9a364!important;color:#75462f!important}
body.theme-light input,body.theme-light select,body.theme-light textarea,body.theme-light .toolbar input,body.theme-light .toolbar select{background:#c2ba82ed!important;color:#473b2b!important;border:1px solid #88715366!important;box-shadow:none!important;color-scheme:light!important}
body.theme-light .table-wrap{background:#c4aa79f2!important;border:1px solid #856f5247!important}
body.theme-light th,body.theme-light .clan-grid th{background:#b28f4ef2!important;color:#433829!important;border-color:#aa884a55!important}
body.theme-light td,body.theme-light .clan-grid td{color:#423728!important;border-color:#af8d4d40!important}
body.theme-light .table-wrap tbody tr:nth-child(even){background:#806a4e09!important}
body.theme-light .table-wrap tbody tr:hover{background:#bc9e6740!important}
body.theme-light .clan-grid .clan-sticky{background:#c2a775!important}
body.theme-light .clan-grid th.clan-sticky{background:#b28f4e!important}
body.theme-light .clan-grid tr:hover .clan-sticky{background:#cab285!important}
body.theme-light .member-link strong,body.theme-light .group-label{color:#4e4130!important}
body.theme-light .text-button,body.theme-light .event-card-open{color:#884a32!important}
body.theme-light .tag,body.theme-light .chip{background:#cdb68d22!important;border-color:#856f5247!important;color:#5d4e39!important}
body.theme-light .section-tabs button,body.theme-light .sheet-mode button{color:#493d2d!important}
body.theme-light .section-tabs button.active,body.theme-light .sheet-mode button.selected{color:#87452f!important}
body.theme-light .drawer,body.theme-light dialog,body.theme-light .sheet-more-menu{background:#c0a36f!important;border:1px solid #b29050!important;color:#423728;box-shadow:0 12px 45px #332b2038!important;z-index:40}
body.theme-light .overlay{z-index:39}
body.theme-light .toast{bottom:24px;background:#b5ae73;color:#4e4130;border-color:#b18e4e}
body.theme-light .auth-screen{background:linear-gradient(90deg,#a0804622,#a0804622),url('/parchment-landscape.png?v=20261028-terrain') center/cover no-repeat!important}
body.theme-light .auth-content{background:#c1a571eb;box-shadow:0 8px 40px #42372925;padding:34px 40px}
body.theme-light .auth-brand{color:#473b2c!important}
body.theme-light .page-footer{color:#493d2d;padding:12px 26px}
body.theme-light.register-expanded #main{background:#bd9f69!important}
body.theme-light.register-expanded .sidebar{display:none!important}
@media(max-width:1500px){body.theme-light .sidebar nav{order:3;flex-basis:100%;justify-content:flex-start;padding:4px 0 10px}body.theme-light .sidebar-bottom{margin-left:auto!important}body.theme-light .sidebar{gap:12px;min-height:110px}}
@media(max-width:700px){body.theme-light .workspace{padding:0 12px 20px}body.theme-light .sidebar nav{gap:8px 17px}body.theme-light .nav-item{font-size:11px}body.theme-light main{padding:18px 12px}body.theme-light .page-head h1{font-size:28px}body.theme-light .topbar{padding:0 12px}body.theme-light .sidebar .brand{font-size:25px}body.theme-light .auth-content{padding:25px 20px}}
/* Keep the landscape continuous; only data and controls need a quiet surface. */
body.theme-light .main-shell{background:transparent!important;box-shadow:none!important}
body.theme-light .topbar{background:#ba9b6180!important}
body.theme-light .page-head{padding-top:10px;text-shadow:0 1px 8px #f1ead1,0 0 18px #ece5cd}
body.theme-light .page-head .eyebrow,body.theme-light .page-head p{color:#483c2c!important}
body.theme-light .sheet-controls,body.theme-light .toolbar{background:#bda06ae8;padding:9px 12px;gap:10px;margin-bottom:10px}
body.theme-light .sheet-controls .section-tabs{margin:0}
body.theme-light .table-wrap{background:#c4a977f5!important}
body.theme-light .page-footer{background:#ba9b61bf}
body.theme-light .event-list .event-card{background:#c1a572f2!important}
body.theme-light .event-list .event-card:hover{background:#cab286f2!important}
body.theme-light .page-head{background:linear-gradient(90deg,#bb9c64ef 0%,#bb9c64df 48%,#bb9c64bb 100%);padding:18px 18px 16px;margin-bottom:14px;text-shadow:none}
body.theme-light .sheet-controls,body.theme-light .toolbar{padding:5px 8px;margin-bottom:7px}
body.theme-light .sheet-controls .section-tabs button{padding:5px 0}
body.theme-light .page-head{background:linear-gradient(90deg,#bb9c64ef,#bb9c64df 48%,#bb9c64bb)!important}
body.theme-light #main>.section-tabs,body.theme-light .empty,body.theme-light .event-page-nav,body.theme-light .sheet-legend,body.theme-light .table-foot{background:#bda06aed;padding:12px 16px;color:#5c4d39}
body.theme-light .empty strong{color:#453a2b}
body.theme-light .table-wrap .empty{background:none}
body.theme-light.register-expanded .page-head{background:transparent!important}
body.theme-light .sheet-controls .section-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:18px}
/* Earth pigments from the painted fields and autumn trees. */
body.theme-light .primary{background:#a45f35!important;border-color:#844b2e!important;color:#fff0c5!important}
body.theme-light .primary:hover{background:#8c4b2c!important}
body.theme-light .secondary,body.theme-light .sheet-upload,body.theme-light .sheet-more summary{border-color:#876b3d77!important;color:#3e3824!important}
body.theme-light .page-head h1,body.theme-light h2,body.theme-light h3{color:#382f23!important}
body.theme-light .muted,body.theme-light .hint,body.theme-light label,body.theme-light .sheet-sub,body.theme-light .member-link small{color:#504331!important}
body.theme-light input::placeholder,body.theme-light textarea::placeholder{color:#62523c!important}
body.theme-light .table-wrap tbody tr:nth-child(even){background:#6d5b4312!important}
body.theme-light .table-wrap tbody tr:hover{background:#d4ad6847!important}
body.theme-light .note{border-left:2px solid #b87943!important}
body.theme-light .tag.clan,body.theme-light .sheet-mark.present{background:#7d684d38!important;color:#3d3326!important}
body.theme-light .sheet-mark.absent{background:#b0683930!important;color:#703a23!important}
body.theme-light{scrollbar-color:#7d684d #c0a36e}
body.theme-light .clan-grid,body.theme-light .table-wrap,body.theme-light .drawer{scrollbar-color:#7d684d #c0a36e}
/* Autumn folio: one golden pigment system, with quiet amber accents. */
body.theme-light{--text:#352f22;--muted:#62553a;--yellow:#8b551e;--line:#9b7c424d;--panel:#cfb679;--hover:#d8b467}
body.theme-light .sidebar .brand,body.theme-light .auth-brand{font-family:'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;font-variant:small-caps;font-weight:400;letter-spacing:.065em;font-size:36px;color:#352e20!important;line-height:1.15}
body.theme-light .sidebar .brand::first-letter,body.theme-light .auth-brand::first-letter{font-size:1.22em;color:#80501f}
body.theme-light .sidebar nav{gap:12px 24px;border-bottom:1px solid #7e633b55;padding-bottom:12px}
body.theme-light .nav-item{font-family:'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;letter-spacing:.075em;font-variant:small-caps;text-transform:none;font-size:15px;font-weight:400;color:#423720!important}
body.theme-light .nav-item.active,body.theme-light .nav-item:hover{color:#905318!important}
body.theme-light .nav-item.active span{border-color:#9c661f}
body.theme-light .sidebar-bottom .icon-button{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;color:#514125!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.theme-light .sidebar-bottom .icon-button svg{width:21px;height:21px}
body.theme-light .sidebar-bottom .icon-button:hover{color:#a05f20!important;background:#dcb76833!important}
body.theme-light .primary{background:#d1a348!important;border:1px solid #a67d31!important;color:#332919!important;box-shadow:inset 0 1px #ead29480!important}
body.theme-light .primary:hover{background:#ddb453!important}
body.theme-light .secondary,body.theme-light .sheet-upload,body.theme-light .sheet-more summary{background:#d7bb7d70!important;border-color:#8f74374d!important;color:#483a20!important}
body.theme-light .secondary:hover,body.theme-light .sheet-upload:hover,body.theme-light .sheet-more summary:hover{background:#deb85b99!important;color:#483a20!important}
body.theme-light input,body.theme-light select,body.theme-light textarea,body.theme-light .toolbar input,body.theme-light .toolbar select{background:#d7bf86ed!important;border-color:#8c703b66!important;color:#3e3320!important}
body.theme-light .page-head{background:linear-gradient(90deg,#c9ac6bef,#c9ac6be0 55%,#c9ac6bbf)!important}
body.theme-light .sheet-controls,body.theme-light .toolbar,body.theme-light #main>.section-tabs{background:#ccb175e8}
body.theme-light .table-wrap{background:#d3bd86f5!important}
body.theme-light th,body.theme-light .clan-grid th,body.theme-light .clan-grid th.clan-sticky{background:#bfa061!important;color:#3a3020!important}
body.theme-light .clan-grid .clan-sticky{background:#d3bd86!important}
body.theme-light .table-wrap tbody tr:hover,body.theme-light .clan-grid tr:hover .clan-sticky{background:#d9b461!important}
body.theme-light .table-wrap tbody tr:nth-child(even){background:#9f702a0d!important}
body.theme-light .sheet-mode button.selected{background:#ca943c44!important;color:#71440f!important}
body.theme-light .page-head h1,body.theme-light h2,body.theme-light h3{color:#3d3120!important;font-family:'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;font-weight:400}
body.theme-light .page-head .eyebrow,body.theme-light .page-head p{color:#53432a!important}
body.theme-light .text-button,body.theme-light .event-card-open{color:#80501c!important}
@media(max-width:700px){body.theme-light .sidebar .brand{font-size:29px}body.theme-light .nav-item{font-size:13px;letter-spacing:.035em}}
/* Folio layout: a quiet working page within the illustrated landscape. */
body.theme-light .nav-item{font-size:18px;letter-spacing:.035em;padding:9px 0}
body.theme-light .sidebar nav{gap:12px 25px}
body.theme-light .workspace{padding:0 3.5vw 18px}
body.theme-light .main-shell{max-width:1640px;margin:6px auto 0}
body.theme-light .topbar{background:transparent!important;color:#352b1c!important;padding:0 8px;height:32px;text-shadow:0 1px 4px #e3cb8f}
body.theme-light #main{background:linear-gradient(#dbc28ff5,#d6bc85fa),url('/parchment-paper.png') center/700px;padding:26px 30px 30px;border-top:3px double #8b673c;box-shadow:0 6px 24px #392b1b30;min-height:calc(100vh - 235px)}
body.theme-light .page-head{background:none!important;min-height:0;padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid #97733f66!important;align-items:center}
body.theme-light .page-head h1{font-size:32px;margin:0 0 7px}
body.theme-light .page-head .eyebrow{font-size:10px;margin-bottom:9px;color:#6b4c27!important}
body.theme-light .page-head p{font-size:13px;line-height:1.5;color:#544329!important;margin:0}
body.theme-light #main>.section-tabs,body.theme-light .sheet-controls,body.theme-light .toolbar,body.theme-light .event-page-nav,body.theme-light .table-foot,body.theme-light .sheet-legend{background:transparent!important;padding:0;margin-bottom:16px}
body.theme-light #main>.section-tabs{display:flex;flex-wrap:wrap;gap:8px 24px;border-bottom:1px solid #9c7c4c66;padding-bottom:12px}
body.theme-light .section-tabs button{font-size:15px!important;color:#514025!important}
body.theme-light .section-tabs button.active{color:#843f19!important}
body.theme-light .toolbar{align-items:center;gap:10px}
body.theme-light input,body.theme-light select,body.theme-light textarea,body.theme-light .toolbar input,body.theme-light .toolbar select{background:#e1cb9a!important;color:#332a1c!important;border-color:#9c7d4c!important}
body.theme-light .table-wrap{background:#dcc493!important;border:1px solid #9e7b424d!important}
body.theme-light td,body.theme-light .clan-grid td{color:#30291c!important;border-color:#9b773b3b!important}
body.theme-light th,body.theme-light .clan-grid th{background:#c3a468!important;color:#30271a!important;font-size:12px}
body.theme-light .clan-grid .clan-sticky{background:#dcc493!important}
body.theme-light .table-wrap tbody tr:nth-child(even){background:#a27a2b0d!important}
body.theme-light .table-wrap tbody tr:hover{background:#cca75138!important}
body.theme-light .event-list{display:block;border-top:2px solid #9a7439;border-bottom:1px solid #9a743966;background:#dec795}
body.theme-light .event-list .event-card{background:transparent!important;border:0!important;border-bottom:1px solid #9a743940!important;padding:16px 18px;min-height:64px;gap:16px;box-shadow:none!important}
body.theme-light .event-list .event-card:nth-child(even){background:#b68a3620!important}
body.theme-light .event-list .event-card:hover{background:#cca24c40!important}
body.theme-light .event-card strong{color:#352b1d!important;font-size:14px;font-weight:500}
body.theme-light .event-card-date,body.theme-light .event-card-meta,body.theme-light .event-card-open{color:#64451f!important;font-size:12px}
body.theme-light .page-footer{background:none!important;padding:16px 8px;color:#342b1d!important;text-shadow:0 1px 4px #e5cc97;font-size:11px}
body.theme-light .panel,body.theme-light .summary-banner,body.theme-light .note,body.theme-light .waiting-hero{background:#d8be88!important;border:1px solid #9e7b424d!important}
body.theme-light #security-form{display:grid;grid-template-columns:1.1fr 1fr;gap:0;max-width:1100px;background:#ddc593;border:1px solid #a4834b60}
body.theme-light #security-form>.panel{background:none!important;border:0!important;margin:0;padding:24px;min-width:0}
body.theme-light #security-form>.panel:first-child{grid-row:span 2;border-right:1px solid #a4834b60!important}
body.theme-light #security-form>.panel:last-child{border-top:1px solid #a4834b60!important}
body.theme-light #security-form h3{font-size:23px;margin:0 0 12px}
body.theme-light #security-form p{font-size:13px;line-height:1.6;color:#544128!important}
body.theme-light #security-form label{font-size:13px}
body.theme-light .ranking-overview{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-bottom:22px;padding:0 0 16px;border-bottom:1px solid #9a743940;color:#554123;font-size:13px}
body.theme-light .ranking-overview strong{font:400 26px Georgia,serif;color:#754719;margin-right:5px}
body.theme-light .ranking-overview>span:last-child{margin-left:auto;font-size:12px}
body.theme-light #main[data-page="ranking"]>.hint{font-size:12px;color:#544128!important;line-height:1.6;margin:12px 0 24px}
body.theme-light .ranking-settings{background:#d3b77d!important;padding:0;border:1px solid #98744066!important}
body.theme-light .ranking-settings>summary{color:#48331b!important;padding:18px 22px;font:400 21px 'Palatino Linotype',Georgia,serif;cursor:pointer}
body.theme-light .ranking-settings .settings-form{max-width:none;padding:0 22px 22px}
body.theme-light .ranking-settings .panel{background:none!important;border:0!important;border-top:1px solid #98744055!important;padding:20px 0;margin:0}
body.theme-light .ranking-number,body.theme-light .score{color:#6d4018!important}
body.theme-light .muted,body.theme-light .hint,body.theme-light .panel p,body.theme-light .contract-card p{color:#56432a!important}
body.theme-light .contract-grid{gap:24px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
body.theme-light .contract-card{position:relative;background:#d8bd83 url('/contract-folio.png') center/100% 100%!important;border:1px solid #9b753f70!important;padding:25px 24px 105px;min-height:390px;box-shadow:0 3px 9px #5b3c1726!important}
body.theme-light .contract-card:hover{background:#d8bd83 url('/contract-folio.png') center/100% 100%!important;box-shadow:0 5px 15px #5b3c1740!important}
body.theme-light .contract-card .contract-top{margin-bottom:19px}
body.theme-light .contract-card .eyebrow{font:400 12px 'Palatino Linotype',Georgia,serif;letter-spacing:.12em;color:#735028!important}
body.theme-light .contract-card p{font-size:13px;line-height:1.65;overflow-wrap:anywhere}
body.theme-light .contract-bottom{border-top:1px solid #916a3b66;padding-top:12px;color:#5f4729}
body.theme-light .empty{background:none!important;color:#5f4729;padding:40px 16px}
body.theme-light.register-expanded #main{background:#dcc493!important;padding:15px}
@media(max-width:1100px){body.theme-light .contract-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.theme-light .nav-item{font-size:17px}}
@media(max-width:700px){body.theme-light #main{padding:20px 14px}body.theme-light .contract-grid{grid-template-columns:1fr}body.theme-light #security-form{grid-template-columns:1fr}body.theme-light #security-form>.panel:first-child{grid-row:auto;border-right:0!important;border-bottom:1px solid #a4834b60!important}body.theme-light .nav-item{font-size:15px}body.theme-light .ranking-overview>span:last-child{margin-left:0}body.theme-light .page-head h1{font-size:28px}}
body.theme-light .event-date-filter{border:1px solid #9c7d4c;background:#e1cb9a;border-radius:0;min-height:43px}
body.theme-light .event-date-filter input{background:transparent!important;border:0!important;min-height:41px}
body.theme-light .contract-card .member-link strong,body.theme-light .contract-card .group-label,body.theme-light .contract-card p{color:#392819!important}
/* Natural paper proportions: crop blank paper instead of stretching the seal. */
body.theme-light .contract-card,body.theme-light .contract-card:hover{background-color:#ead9ae!important;background-image:url('/contract-folio.png?v=20261025-scroll')!important;background-position:center bottom!important;background-size:100% auto!important;background-repeat:no-repeat!important;padding-bottom:32%;min-height:430px;border-color:#b99a645c!important}
body.theme-light .contract-card .contract-bottom{margin-top:auto}
/* Rolled ends are independent of the form height, so long contracts stay usable. */
body.theme-light dialog:has(#contract-form){width:min(760px,calc(100vw - 44px));max-height:92vh;max-height:92svh;padding:44px 34px;background:#ead9ae url('/parchment-paper.png') center/650px!important;border:0!important;border-radius:9px 9px 11px 11px;overflow:visible;box-shadow:0 18px 65px #20170e66!important}
body.theme-light dialog:has(#contract-form)::before,body.theme-light dialog:has(#contract-form)::after{content:'';position:absolute;left:-13px;right:-13px;height:34px;border:1px solid #bca06e;border-radius:17px;background:linear-gradient(180deg,#ae8c51 0%,#d6bc85 13%,#f1e1b9 40%,#ecdbb0 58%,#ceb17a 84%,#ae8b4e 100%);box-shadow:0 4px 5px #61421b30;pointer-events:none;z-index:2}
body.theme-light dialog:has(#contract-form)::before{top:0}
body.theme-light dialog:has(#contract-form)::after{bottom:0;transform:rotate(180deg)}
body.theme-light dialog:has(#contract-form) #dialog-content{max-height:calc(92vh - 94px);max-height:calc(92svh - 94px);overflow-y:auto;padding:0 8px 0 0;scrollbar-color:#b89961 #e8d6a8}
body.theme-light dialog:has(#contract-form) .dialog-head{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #ad89514d}
body.theme-light #contract-form h3{font-size:25px;margin:8px 0 22px}
body.theme-light #contract-form input,body.theme-light #contract-form select,body.theme-light #contract-form textarea{background:#f3e6c373!important;border:1px solid #b99c6877!important;color:#34291b!important}
body.theme-light #contract-form textarea{min-height:200px;line-height:1.65;resize:vertical}
body.theme-light #contract-form .form-actions{margin-top:22px;padding-top:14px;border-top:1px solid #ad89514d;gap:12px}
@media(max-width:700px){body.theme-light dialog:has(#contract-form){padding:42px 18px;width:calc(100vw - 36px)}body.theme-light .contract-card{min-height:390px}}
body.theme-light dialog:has(#contract-form){background:linear-gradient(#f2e3bf80,#f2e3bf80),url('/parchment-paper.png') center/650px!important}

/* Light register paper, readable ink and a gently lifted upper edge. */
body.theme-light #main {
 background:linear-gradient(105deg,#f8edcfb8,#f1dfb7a6),url('/parchment-paper.png') center/780px!important;
 color:#382a1c; border:0; border-radius:3px 17px 4px 2px;
 box-shadow:0 3px 12px #30251538,inset 0 12px 16px -14px #75562b;
}
body.theme-light #main::before {
 content:'';display:block;height:15px;margin:-26px -30px 15px;
 background:linear-gradient(175deg,#d3b786 0%,#fbefd1 39%,#e6d2a8 70%,#9a784749 100%);
 border-radius:70% 18% 50% 15% / 9px 15px 7px 5px;
 transform:rotate(-.18deg);box-shadow:0 4px 5px -4px #725c3c;
}
body.theme-light .table-foot,body.theme-light .sheet-pagination,body.theme-light .sheet-pagination button,
body.theme-light .sheet-legend,body.theme-light .sheet-legend summary {color:#4b321b!important}
body.theme-light .sheet-pagination button:disabled {color:#917c60!important}
body.theme-light .sheet-legend {font-size:12px;margin-top:12px}
body.theme-light .clan-grid {background:#f0e2c3!important}
body.theme-light .clan-grid td,body.theme-light .clan-grid th {border-right:1px solid #92744933}
body.theme-light .clan-grid td {background:#f0e2c3!important}
body.theme-light .clan-grid tr:nth-child(even) td {background:#e9d9b8!important}
body.theme-light .clan-grid th {background:#d8bf8e!important;color:#382a1c!important}
body.theme-light .clan-grid .sheet-mark {color:#66513c!important}
body.theme-light .clan-grid .sheet-mark.present {background:#9cad805e!important;color:#35432a!important}
body.theme-light .clan-grid .sheet-mark.absent {background:#be806b45!important;color:#793e2e!important}
body.theme-light .clan-event-head {position:relative;padding-top:17px!important}
.event-remove {position:absolute;top:0;right:2px;padding:0 4px;border:0;background:none;color:#805f3a;font-size:14px;line-height:16px}
.mark-popover {position:fixed;z-index:10000;width:306px;max-height:calc(100vh - 16px);overflow:auto;padding:5px;background:#f3e7cb;border:1px solid #af9161;box-shadow:0 5px 18px #231b1645;border-radius:4px}
.mark-popover button {display:flex;gap:10px;width:100%;text-align:left;padding:8px;border:0;background:transparent;color:#382a1c;font:12px Arial}
.mark-popover button b {width:24px;flex:none}
.mark-popover button:hover,.mark-popover button:focus-visible,.mark-popover button.selected {background:#d7bb815e;color:#743a1f}
body.theme-light .contract-card,body.theme-light .contract-card:hover {border:0!important;background-color:transparent!important;box-shadow:none!important;position:relative;padding-bottom:32%}
body.theme-light .contract-card .contract-open {position:absolute;bottom:9%;left:43%;max-width:35%;padding:9px 10px;background:#e5c781!important;border:1px solid #98703f!important;color:#432b16!important;font:15px Georgia;text-align:center;box-shadow:0 2px 3px #63472124}
body.theme-light .contract-card .contract-open:hover {background:#efd9a5!important;color:#813d22!important}
body.theme-light dialog:has(#contract-form) {border-radius:8px 20px 5px 12px;background:linear-gradient(#faedcf99,#efdeb599),url('/parchment-paper.png') center/780px!important;padding-top:38px}
body.theme-light dialog:has(#contract-form)::before {height:23px;left:-5px;right:-9px;top:-5px;border:0;border-radius:75% 20% 40% 15% / 16px 8px 12px 5px;background:linear-gradient(174deg,#c8aa75,#fbefd4 43%,#dfc392 76%,#95723e);transform:rotate(-.65deg);box-shadow:0 5px 7px -5px #654a29}
body.theme-light dialog:has(#contract-form)::after {height:21px;left:-7px;right:3px;bottom:-4px;border:0;border-radius:20% 65% 15% 80% / 10px 17px 5px 12px;background:linear-gradient(8deg,#ae8956,#f8e9ca 55%,#d8bd91);transform:rotate(.4deg);box-shadow:0 3px 6px #44302032}
.contract-service {border-top:1px solid #a7895b66;margin-top:20px;padding-top:14px}
.contract-service .timeline {max-height:300px;overflow:auto;margin-top:14px}
.sheet-crest {width:18px;height:22px;object-fit:contain;vertical-align:middle;margin-right:5px}

/* Continuous register viewport and restrained contract details. */
body.theme-light .clan-grid {height:65vh;max-height:none;overflow:auto;overflow-anchor:none}
body.register-expanded.theme-light .clan-grid {height:auto;flex:1;min-height:200px}
body.theme-light .clan-grid tbody tr:not(.sheet-spacer) {height:28px}
body.theme-light .clan-grid tbody tr:not(.sheet-spacer) td {height:28px;box-sizing:border-box;padding:2px 7px;white-space:nowrap}
body.theme-light .clan-grid .sheet-spacer,body.theme-light .clan-grid .sheet-spacer td {padding:0!important;border:0!important;line-height:0;font-size:0;background:transparent!important}
body.theme-light .contract-card .contract-open,body.theme-light .contract-card .contract-open:hover {background:transparent!important;border:0!important;box-shadow:none!important;text-decoration:underline;text-underline-offset:4px;font-size:16px;color:#623716!important}
body.theme-light .contract-card::before {display:block!important;content:'';position:absolute;top:0;left:0;right:0;height:42px;background:url('/contract-folio.png?v=20261025-scroll') center top/100% auto no-repeat;pointer-events:none}
body.theme-light .contract-card .contract-top {position:relative;z-index:1}
body.theme-light dialog:has(#contract-form) {background:linear-gradient(#f7ebd1ed,#efdfbfec),url('/parchment-paper.png') center/780px!important;border-radius:4px 9px 4px 7px;padding:30px 32px}
body.theme-light dialog:has(#contract-form)::before {left:0;right:0;top:-3px;height:11px;border-radius:60% 15% 40% 20%;transform:rotate(-.15deg);background:linear-gradient(#faefd8,#e4cfa6);box-shadow:0 2px 4px #6b502c26}
body.theme-light dialog:has(#contract-form)::after {left:0;right:0;bottom:-3px;height:10px;border-radius:15% 70% 25% 50%;transform:rotate(.1deg);background:linear-gradient(#e3cda4,#f4e6c9);box-shadow:0 2px 4px #6b502c26}
body.theme-light dialog:has(#contract-form) #dialog-content {max-height:calc(92svh - 60px);padding-right:12px}
body.theme-light dialog:has(#contract-form) input,body.theme-light dialog:has(#contract-form) select,body.theme-light dialog:has(#contract-form) textarea {background:#fcf3dfb8!important;color:#402e20!important}
.contract-service h3 {font-size:20px}.contract-service section h3{font-size:15px;margin-bottom:6px}

body.theme-light dialog:has(#contract-form) {background-blend-mode:normal!important}
body.theme-light .contract-card .contract-open {font-size:15px;padding:4px 0;left:42%;max-width:30%}
/* Group bands stay aligned with the virtual register's 28 px row grid. */
.clan-grid .sheet-group-row,.clan-grid .sheet-group-row td{height:28px!important;max-height:28px!important;padding:0 8px!important;background:#d1b367!important;color:#302518!important}
.sheet-group-title{position:sticky;left:8px;display:inline-flex;align-items:center;gap:10px;white-space:nowrap;font-family:Georgia,serif;font-size:14px}
.sheet-group-title small{font-family:inherit;color:#49391e!important}
.game-server{margin:16px 0;padding:22px}.game-server details{margin-top:18px;padding-top:12px;border-top:1px solid #aa905d}.game-server label{display:block;margin:14px 0}.game-server textarea{min-height:220px;width:100%;font-family:monospace}.game-server .field-row{align-items:end}.game-server .form-actions{gap:12px}
.game-server .game-map-row{display:flex;align-items:flex-end;gap:12px;max-width:760px;margin:16px 0}.game-server .game-map-row label{flex:1;min-width:0;margin:0}.game-server .game-map-row button{flex:0 0 auto;width:auto!important;height:42px;margin:0;white-space:nowrap}.game-server .server-status{font:600 14px/1.5 sans-serif;white-space:nowrap}.game-server .server-status.on{color:#326532!important}.game-server .server-status.off{color:#a13328!important}.game-server .server-status.unknown{color:#725719!important}.game-server .form-actions button:disabled{opacity:.5;cursor:default}@media(max-width:600px){.game-server .game-map-row{flex-wrap:wrap}.game-server .game-map-row label{flex-basis:100%}}

/* Readable division bands without changing the virtual grid row height. */
body.theme-light .clan-grid .sheet-group-row td{background:#e3c56f!important;color:#302510!important;border-top:1px solid #ad883b!important;border-bottom:1px solid #ba9849!important;overflow:visible!important}
body.theme-light .clan-grid .sheet-group-title{display:inline-flex!important;align-items:center;min-width:560px;width:max-content;gap:14px;line-height:26px!important;font-family:Georgia,serif!important;font-size:18px!important;font-weight:600!important;letter-spacing:.15px;color:#302510!important}
body.theme-light .clan-grid .sheet-group-name{font:inherit!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
body.theme-light .clan-grid .sheet-group-title small{display:inline!important;margin-left:auto;padding-left:20px;font:600 17px/26px Georgia,serif!important;color:#302510!important;white-space:nowrap!important}
body.theme-light .clan-grid .clan-event-head>strong{font-size:14px!important;letter-spacing:.5px}
body.theme-light .clan-grid thead th,body.theme-light .clan-grid th.clan-event-head{position:sticky!important;top:0!important;z-index:5!important;background:#bfa061!important;background-image:none!important}
body.theme-light .clan-grid thead th.clan-sticky{z-index:7!important}
body.theme-light .clan-grid .sheet-group-row td,body.theme-light .clan-grid .sheet-group-row:hover td{background:#e3c56f!important;background-image:none!important;color:#302510!important}
body.theme-light .clan-grid .sheet-group-title{min-width:0!important;gap:12px!important}
body.theme-light .clan-grid .sheet-group-title small{margin-left:0!important;padding-left:8px!important;color:#302510!important}
body.theme-light .clan-grid .event-edit{position:absolute;top:1px;left:3px;padding:0 3px;background:none!important;border:0!important;color:#5b3d16!important;line-height:16px;cursor:pointer}
.clan-grid [draggable=true]{cursor:grab}.clan-grid [draggable=true]:active{cursor:grabbing}
body.theme-light .sheet-mark.absent,body.theme-light .clan-grid .sheet-mark.absent{background:#be806b5e!important;color:#793e2e!important;font-weight:400!important}
body.theme-light .sheet-mark.unregistered,body.theme-light .clan-grid .sheet-mark.unregistered{background:#dfb64e5e!important;color:#705514!important;font-weight:400!important}
body.theme-light .clan-grid .sheet-rank{display:block;width:100%;text-align:left;background:none!important;border:0;padding:0;color:#49351a!important;cursor:pointer;font:inherit}
.sheet-drag-handle{display:inline-block;cursor:grab;padding-right:5px;color:#70552a;user-select:none}.clan-grid [data-drag-row] .member-link{display:inline-flex}
.mark-popover .rank-options{max-height:230px;overflow:auto}.mark-popover input{width:100%;margin-bottom:6px}.clan-grid{contain:layout paint}

/* Hierarchy bands override striped member rows at every depth. */
body.theme-light .clan-grid tbody tr.sheet-group-row td,
body.theme-light .clan-grid tbody tr.sheet-group-row:nth-child(even) td,
body.theme-light .clan-grid tbody tr.sheet-group-row:hover td {
 background:#e3c56f!important;background-image:none!important;color:#302510!important;
 height:auto!important;max-height:none!important;padding:5px 8px!important;
}
body.theme-light .clan-grid tbody tr.sheet-group-row{height:auto!important;max-height:none!important}
body.theme-light .clan-grid .sheet-group-row .sheet-group-title{font-size:18px!important;line-height:28px!important;background:transparent!important}
body.theme-light .clan-grid .sheet-group-row[data-group-depth="0"] .sheet-group-title{font-size:24px!important;line-height:34px!important}
body.theme-light .clan-grid .sheet-group-row[data-group-depth="1"] .sheet-group-title{font-size:21px!important;line-height:30px!important}
body.theme-light .clan-grid .sheet-group-title small{font-size:.82em!important;line-height:inherit!important;padding-left:0!important}

/* Compact bands: subdivisions are smaller than their parent organization. */
body.theme-light .clan-grid tbody tr.sheet-group-row[data-group-size] td{padding:2px 8px!important}
body.theme-light .clan-grid .sheet-group-row[data-group-size="realm"] .sheet-group-title{font-size:22px!important;line-height:30px!important}
body.theme-light .clan-grid .sheet-group-row[data-group-size="major"] .sheet-group-title{font-size:20px!important;line-height:27px!important}
body.theme-light .clan-grid .sheet-group-row[data-group-size="unit"] .sheet-group-title{font-size:16px!important;line-height:23px!important}
body.theme-light .clan-grid .sheet-group-row[data-group-size="unit"] .sheet-crest{width:15px;height:18px}

body .sidebar .brand .clan-brand-sun{display:inline-block!important;width:32px!important;height:32px!important;object-fit:contain;flex-shrink:0;margin-right:10px;vertical-align:middle}
body.theme-light .clan-grid .event-edit,body.theme-light .clan-grid .event-remove{color:#805f3a!important;opacity:.65;font-weight:400}
body.theme-light .clan-grid .event-edit:hover,body.theme-light .clan-grid .event-remove:hover{opacity:1}

.contract-facts{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px}
.contract-role-line{display:flex;align-items:baseline;gap:12px;margin:8px 0}.contract-role-line>strong{font-size:13px;min-width:92px}
body.theme-light dialog:has(#contract-form){padding:22px 28px}
#contract-form textarea{min-height:90px!important;height:110px}
.contract-service{margin-top:12px;padding-top:10px}.contract-service section{margin-top:14px}.contract-service h3{margin:8px 0}
#contract-note-form textarea{min-height:60px!important;height:65px;margin-bottom:8px}#contract-note-form{margin-top:10px}.contract-history{margin-top:14px}.contract-service .note{padding:10px;margin:8px 0}

body.theme-light #contract-form .form-actions{margin:6px 0!important;padding:0!important;border:0!important;gap:8px}
body.theme-light #contract-form>label{margin-bottom:8px!important}
body.theme-light .contract-service{margin-top:8px;padding-top:8px}
body.theme-light .contract-notes .note{background:#bca27630!important;border:1px solid #96744440!important;border-left:3px solid #a3844e!important;padding:8px 12px!important;margin:6px 0!important;box-shadow:none!important}
.contract-notes .note p{margin:0 0 5px;white-space:pre-wrap}.contract-notes .note-actions{margin-top:3px;display:flex;gap:12px}
body.theme-light #contract-note-form{margin:6px 0!important}body.theme-light #contract-note-form textarea{height:46px;min-height:46px!important;margin-bottom:4px!important}
#contract-note-form button[hidden]{display:none!important}

/* Contract actions stay with the title, leaving service and notes together. */
.contract-dialog-head{gap:12px;margin-bottom:12px}
.contract-dialog-head h2{flex:1}
.contract-dialog-head .contract-save{flex-shrink:0;padding:8px 14px;font-size:12px}
@media(max-width:480px){.contract-dialog-head{gap:8px;flex-wrap:wrap}.contract-dialog-head h2{font-size:18px}.contract-dialog-head .contract-save{padding:7px 10px}}

body.theme-light:before{background:url("/parchment-landscape.png?v=20261028-terrain") center center/cover no-repeat}

/* Illustration coordinates share the background's centered cover crop. */
.landscape-life{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;overflow:hidden}
.castle-cloth{transform-box:fill-box;transform-origin:left center;animation:castle-breeze 3.8s ease-in-out infinite}
@keyframes castle-breeze{0%,100%{transform:skewY(-3deg) scaleX(.96)}50%{transform:skewY(4deg) scaleX(1)}}
.sky-flock{opacity:0;will-change:transform;animation:flock-flight 65s linear infinite}
.flock-two{animation-name:flock-flight-high;animation-duration:83s;animation-delay:19s}
.sky-bird{transform-box:fill-box;transform-origin:center;animation:bird-wings 1.4s ease-in-out infinite}
.sky-bird:nth-child(2){animation-delay:-.4s}.sky-bird:nth-child(3){animation-delay:-.8s}.sky-bird:nth-child(4){animation-delay:-.2s}
@keyframes bird-wings{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.35)}}
@keyframes flock-flight{0%{transform:translate(-100px,185px);opacity:0}4%{opacity:.6}46%{opacity:.6}50%,100%{transform:translate(1820px,120px);opacity:0}}
@keyframes flock-flight-high{0%{transform:translate(-100px,90px);opacity:0}4%{opacity:.45}40%{opacity:.45}44%,100%{transform:translate(1820px,155px);opacity:0}}
@media(prefers-reduced-motion:reduce){.castle-cloth,.sky-bird{animation:none}.sky-flock{display:none;animation:none}}
