:root{--paper:#4b5058;--card:#d1d6dd;--ink:#20344f;--muted:#4b586c;--line:#aeb8c5;--nav:#15191f;--blue:#315785;--gold:#c8a556;--soft:#c5cfde;font-family:'Segoe UI',Arial,sans-serif;color:var(--ink);font-size:15px;line-height:1.6;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,textarea,select{font:inherit}button,input,textarea,select,a,summary{touch-action:manipulation}button,summary{cursor:pointer}button,a,input,textarea,select,summary{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--gold)}button{border:1px solid #929faf;border-radius:6px;padding:8px 13px;background:#e3e7ed;color:var(--ink);font-size:12px;font-weight:600}button:hover{background:#f1f3f6}button:disabled{cursor:default;opacity:.45}button.primary{background:var(--blue);border-color:#244569;color:#fff}button.primary:hover{background:#254873}button.gold{background:var(--gold);border-color:#b69345;color:#1a2535}button.danger{color:#853832;border-color:#b89998;background:#dfd5d7}button.quiet{background:transparent;color:inherit;border-color:#7e8a9a}a{color:var(--blue);text-underline-offset:3px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{line-height:1.3}h1{font-size:32px;letter-spacing:-.7px}h2{font-size:21px}h3{font-size:17px}h4{font-size:14px}[hidden]{display:none!important}.skip{position:fixed;top:-80px;left:12px;background:var(--gold);color:#111;padding:10px;z-index:100}.skip:focus{top:10px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:700;text-transform:uppercase;color:var(--gold);margin-bottom:10px}.muted,.hint{color:var(--muted);font-size:12px}.hint{margin-top:6px}.loading,.auth-wrap{max-width:580px;margin:8vh auto;padding:25px}.loading{color:#eef1f6}.loading p:last-child{margin-top:18px}.auth-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:30px;margin-top:25px}.auth-card form{display:grid;gap:18px;margin-top:24px}.auth-wrap>h1{color:#f1f3f7}.auth-wrap>p:not(.eyebrow){color:#d5deeb;margin-top:14px}.auth-foot{color:#ccd5e1;margin-top:20px;font-size:12px}.auth-foot a{color:#e8cc91}
.sidebar{position:fixed;inset:0 auto 0 0;width:266px;background:var(--nav);color:#d3dbe7;padding:26px 19px;display:flex;flex-direction:column;z-index:30;overflow:auto}.brand{display:flex;gap:11px;align-items:center;margin:0 6px 25px}.brand-mark{background:var(--gold);color:#171f2c;clip-path:polygon(0 0,100% 0,100% 77%,50% 100%,0 77%);width:40px;height:48px;display:grid;place-items:center;font-size:10px;font-weight:800;padding-bottom:5px;flex-shrink:0}.brand strong{font-size:15px;color:#eff2f7}.brand small{display:block;font-size:9px;letter-spacing:.14em;color:#aeb9c8}.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#a9b7cb;margin:0 8px 10px}.module-list{display:grid;gap:3px}.module-list button{border:0;border-left:3px solid transparent;background:transparent;display:flex;gap:10px;padding:7px 8px;text-align:left;font-size:11px;line-height:1.4;color:#cbd4e1;font-weight:400}.module-list button span{font-size:10px;min-width:18px;color:#96aac6;font-weight:700}.module-list button[aria-current=true]{border-left-color:var(--gold);background:#ffffff0b;color:#fff}.module-list button[aria-current=true] span{color:var(--gold)}.module-list button:hover{background:#ffffff09;color:#fff}.sidebar-foot{margin-top:auto;padding:25px 8px 0;font-size:11px;color:#9eacc0}.sidebar-foot a{color:#d9bd7f}.sidebar-close{display:none}.workspace{margin-left:266px;min-width:0}.topbar{position:sticky;top:0;background:#3e454ff7;color:#e8edf5;z-index:20;border-bottom:1px solid #ffffff1b;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 30px;backdrop-filter:blur(10px)}.topbar-title{font-size:12px;font-weight:600}.topbar-meta{font-size:10px;color:#b7c5d7}.topbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.status{font-size:11px;white-space:nowrap;color:#cbd6e3;display:inline-flex;align-items:center;gap:6px}.status::before{content:'';width:6px;height:6px;border-radius:50%;background:#aacdb3}.status.dirty::before{background:var(--gold)}.status.error::before{background:#e1a09c}.mobile-menu{display:none}.main{max-width:1180px;margin:auto;padding:34px 30px 70px}.page-heading{color:#edf1f6;margin-bottom:24px}.page-heading .summary{color:#c8d3e2;margin-top:13px;font-size:13px;max-width:80ch}.page-heading .eyebrow{margin-bottom:10px}.page-heading h1{max-width:30ch}.module-header{background:var(--card);padding:26px;border:1px solid var(--line);border-radius:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span{font-weight:650;font-size:12px;color:#344b67}.field input,.field textarea,.field select{border:1px solid #9aa8bb;border-radius:5px;background:#e4e8ed;color:#1d334e;padding:10px 11px;width:100%;min-width:0;font-size:13px;line-height:1.65}.field textarea{resize:vertical;min-height:90px}.field input::placeholder,.field textarea::placeholder{color:#758093}.field.inline{flex-direction:row;align-items:center;gap:10px}.field.inline input{width:auto}.field small{font-size:11px;color:#526279}.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:29px 0 14px;color:#edf1f6}.section-toolbar .muted{color:#c5cfdd}.actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.section-list{display:grid;gap:14px}.section-card{background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden}.section-card>summary{padding:19px 22px;display:flex;align-items:center;gap:13px;list-style:none;font-size:15px;font-weight:650}.section-card>summary::-webkit-details-marker{display:none}.section-card>summary::before{content:'›';font-size:22px;font-weight:400;line-height:1;color:#5c7597}.section-card[open]>summary::before{transform:rotate(90deg)}.section-number{font-size:10px;font-weight:750;color:#627895}.section-summary-title{flex:1;min-width:0;overflow-wrap:anywhere}.section-count{font-weight:400;font-size:11px;color:#5d6d82}.section-body{padding:2px 23px 24px}.section-actions{display:flex;justify-content:flex-end;gap:7px;padding-bottom:18px;flex-wrap:wrap}.subsection{border-top:1px solid #a8b5c7;margin-top:24px;padding-top:21px}.subsection-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.subsection-head p{margin-top:4px}.item-list{display:grid;gap:12px}.item-card{background:#c2cbd7;border:1px solid #a6b3c5;border-radius:7px;padding:16px}.item-card .actions{justify-content:flex-end;margin-bottom:12px}.item-card .actions .item-label{margin-right:auto;font-size:11px;color:#536780}.item-card .field+.field{margin-top:12px}.item-card .field textarea{min-height:86px}.small-button{padding:5px 9px;font-size:11px}.empty{font-size:12px;color:#52647d;border:1px dashed #9eacbf;border-radius:6px;padding:16px;line-height:1.8}.option-details{border-top:1px solid #a8b5c7;margin-top:24px;padding-top:18px}.option-details>summary{font-size:13px;font-weight:650}.option-details>.form-grid{margin-top:17px}.image-card{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;background:#c2cbd7;border:1px solid #a6b3c5;border-radius:7px;padding:16px}.image-preview{background:#e4e8ed;border:1px solid #a6b3c5;border-radius:5px;min-height:130px;display:flex;align-items:center;justify-content:center;overflow:hidden}.image-preview img{max-width:100%;max-height:220px;width:auto;height:auto;display:block}.image-fields>.field{margin-top:10px}.image-fields>.field:first-of-type{margin-top:0}.image-meta{font-size:10px;color:#576c85;margin-top:7px}.image-tools{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.table-wrap{overflow:auto;margin-top:15px}.table-editor{width:100%;border-collapse:collapse;font-size:12px;min-width:400px}.table-editor th,.table-editor td{padding:5px;border:1px solid #9cacbf;vertical-align:top}.table-editor textarea,.table-editor input{width:100%;min-width:100px;border:1px solid #acb7c7;border-radius:3px;background:#e4e8ed;color:#20344f;padding:7px;font:inherit}.table-editor th{background:#bdc9d9}.table-editor th .actions{justify-content:flex-end;margin-top:5px}.table-editor td:last-child{width:42px}.table-editor textarea{min-height:63px;resize:vertical}.danger-zone{padding:15px;border:1px solid #b99a99;border-radius:5px;background:#ded2d5}.save-footer{margin-top:28px;display:flex;justify-content:flex-end;gap:12px;align-items:center;color:#c7d2e2;font-size:12px}.notice{position:fixed;bottom:20px;right:20px;max-width:450px;background:#162333;color:#eef2f7;border:1px solid #7e94b0;border-left:4px solid var(--gold);border-radius:8px;padding:16px 20px;box-shadow:0 12px 30px #0003;z-index:100;font-size:13px}.notice.error{border-left-color:#db9790}.error-message{color:#85342d;font-size:13px;background:#e5ccca;border:1px solid #b8908b;padding:12px;border-radius:5px}.error-message:empty{display:none}.banner{padding:13px 17px;background:#566278;color:#eef2f7;border:1px solid #8c9bb1;border-radius:7px;font-size:12px;margin-bottom:20px}.dialog{width:min(92vw,850px);max-width:1100px;max-height:90dvh;border:1px solid #8797ad;border-radius:10px;background:var(--card);color:var(--ink);padding:25px;overflow:auto}.dialog::backdrop{background:#091322d4}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.dialog-header h2{font-size:21px}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.dialog p+p{margin-top:10px}.preview-lead{font-size:14px;line-height:1.85;margin-top:17px;white-space:pre-wrap}.preview-meta{font-size:11px;color:#526680;margin-top:15px}.preview-section{border-top:1px solid #aab6c6;margin-top:26px;padding-top:23px}.preview-section h3{font-size:20px;margin-bottom:16px}.preview-section p,.preview-section dd{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.preview-section dl{margin:0}.preview-section dt{font-weight:700;color:#244769;margin-top:18px;font-size:14px}.preview-section dd{margin:4px 0 0}.preview-section figure{margin:20px 0}.preview-section img{max-width:100%;max-height:550px;display:block;margin:auto}.preview-section figcaption{font-size:12px;margin-top:10px}.preview-section table{border-collapse:collapse;width:100%;font-size:12px}.preview-section th,.preview-section td{border:1px solid #9dacbf;padding:10px;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}.preview-section caption{text-align:left;font-weight:700;margin-bottom:8px}.preview-example{border-left:3px solid var(--blue);background:#c2cddd;padding:18px;margin-top:20px}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.library-item{padding:10px;display:flex;flex-direction:column;gap:8px;text-align:left;min-width:0}.library-item img{width:100%;height:140px;object-fit:contain;background:#d5dce6}.library-item span{font-size:10px;overflow-wrap:anywhere}.history-list{display:grid;gap:10px}.history-row{padding:15px;background:#c2cbd7;border:1px solid #a1afc2;border-radius:6px;display:flex;align-items:center;justify-content:space-between;gap:12px}.history-row strong{display:block;font-size:13px}.history-row small{display:block;color:#546a86;font-size:11px}.mobile-scrim{display:none}.unsaved-note{font-size:11px;color:#c8d3e2}
.discord-login{display:inline-block;margin-top:22px;background:var(--blue);border:1px solid #244569;border-radius:6px;padding:11px 19px;color:#fff;text-decoration:none;font-size:13px;font-weight:650}.discord-login:hover{background:#254873}.login-link{font-weight:650}.auth-card>.error-message{margin-top:18px}
.profile-wrap{max-width:680px}.profile-heading{display:flex;align-items:center;gap:15px}.profile-avatar{width:56px;height:56px;flex-shrink:0;border:1px solid #547399;border-radius:50%;background:var(--blue);color:#e9d4a3;font-size:25px;font-weight:650;display:grid;place-items:center}.profile-facts{display:grid;gap:13px;margin:25px 0 0}.profile-facts>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px}.profile-facts dt{font-size:11px;font-weight:650;color:#566d8c}.profile-facts dd{font-size:13px;margin:0;overflow-wrap:anywhere}.role-list{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0;margin:14px 0 0}.role-list li{background:#bdc8d8;border:1px solid #92a5c0;border-radius:16px;padding:4px 11px;font-size:12px;color:#294b72;overflow-wrap:anywhere;max-width:100%}.access-note{margin:24px 0 20px!important;border-left:3px solid #a08036;padding:11px 14px;background:#c2cbd6;border-radius:3px;color:#3c526e;font-size:13px}
@media(max-width:1100px){.sidebar{width:238px;padding:23px 14px}.workspace{margin-left:238px}.topbar{padding:14px 22px}.main{padding:30px 22px 60px}.topbar-meta{display:none}.image-card{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:820px){.sidebar{display:none;width:min(86vw,300px)}body.menu-open .sidebar{display:flex}.sidebar-close{display:block;margin-bottom:20px;align-self:flex-end;color:#dce4ef}.workspace{margin:0}.mobile-menu{display:block}.topbar{gap:10px;padding:12px 15px;flex-wrap:wrap}.topbar-title{display:none}.topbar-actions{flex:1}.status{font-size:10px}.main{padding:28px 18px 50px}.mobile-scrim{position:fixed;inset:0;background:#071221bc;z-index:29}body.menu-open .mobile-scrim{display:block}.topbar-actions>button{font-size:11px;padding:7px 10px}.secondary-tool{display:none}.page-heading h1{font-size:28px}.section-card>summary{padding:17px}.section-body{padding:0 17px 20px}.module-header{padding:20px}.image-card{grid-template-columns:160px minmax(0,1fr)}.notice{left:15px;right:15px;bottom:15px;max-width:none}}
@media(max-width:540px){.topbar-actions{gap:6px}.topbar-actions .status{width:100%;justify-content:flex-end;order:5}.main{padding:24px 12px 45px}.form-grid{grid-template-columns:1fr;gap:15px}.module-header{padding:18px}.image-card{grid-template-columns:1fr;gap:15px}.image-preview img{max-height:240px}.section-count{display:none}.section-card>summary{font-size:14px;gap:9px}.section-body{padding:0 14px 18px}.item-card{padding:13px}.actions{gap:5px}.section-toolbar{align-items:flex-start}.section-toolbar h2{font-size:19px}.subsection-head{align-items:flex-start;flex-wrap:wrap}.dialog{padding:18px;width:95vw}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-item img{height:100px}.auth-wrap{padding:20px;margin:4vh auto}.auth-card{padding:24px}.save-footer{flex-wrap:wrap}.history-row{align-items:flex-start;flex-wrap:wrap}.preview-section h3{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
