/* DOCUMENT MASTER — Royal Emerald, Diamond Blue & Imperial Gold */
:root{
  --emerald:#064E28; --forest:#032B1A; --gold:#D4AF37; --gold2:#FFD700;
  --blue:#0077C8; --sapphire:#003B73; --purple:#63249A; --burgundy:#7C153D;
  --pearl:#F7FAFC; --navy:#061B30;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{font-family:'Segoe UI',Roboto,Arial,sans-serif; min-height:100vh; padding-bottom:64px}
html[data-theme="royal"] body{background:linear-gradient(180deg,#032B1A,#064E28 30%,#0a5c33 70%,#032B1A); color:#F7FAFC}
html[data-theme="light"] body{background:#eef3f6; color:#12242e}
html[data-theme="dark"] body{background:#0b1116; color:#e8eef2}
button{font-family:inherit; cursor:pointer}
.hidden{display:none !important}
.hidden-file{position:absolute; left:-9999px; width:1px; height:1px; opacity:0}

/* screens */
.screen{display:none; padding:10px 12px 20px; max-width:980px; margin:0 auto}
.screen.active{display:block}
#screen-editor{padding:0; max-width:none}
#screen-editor.active{display:flex; flex-direction:column; height:calc(100dvh - 64px)}

/* masthead */
.masthead{position:relative; border-radius:18px; overflow:hidden; border:3px solid var(--gold);
  box-shadow:0 6px 22px rgba(0,0,0,.45), inset 0 0 0 2px #7a5f14; margin-bottom:10px; background:#0b3d66}
.masthead .scenery{position:absolute; inset:0; width:100%; height:100%}
.shield{position:relative; margin:16px auto 14px; max-width:520px; text-align:center; padding:12px 18px 10px;
  background:linear-gradient(180deg,rgba(3,43,26,.92),rgba(6,78,40,.94));
  border:2px solid var(--gold); border-radius:14px 14px 60px 60px/14px 14px 42px 42px;
  box-shadow:0 0 0 4px rgba(212,175,55,.25), 0 8px 20px rgba(0,0,0,.5)}
.shield h1{margin:2px 0 0; font-family:Georgia,'Times New Roman',serif; font-size:clamp(24px,6.4vw,40px);
  letter-spacing:1px; color:#FFD700; text-shadow:0 2px 0 #7a5f14, 0 4px 10px rgba(0,0,0,.6)}
.stars{color:#FFD700; font-size:17px; letter-spacing:6px; margin-top:2px; text-shadow:0 1px 4px rgba(0,0,0,.6)}
.subtitle{margin:3px 0 0; font-weight:700; letter-spacing:3px; font-size:clamp(11px,2.8vw,14px); color:#fff}
.byline{margin:4px 0 2px; font-size:11.5px; color:#cfe8d8}

/* quick bar */
.quickbar{display:flex; gap:6px; overflow-x:auto; padding:6px 2px 10px; scrollbar-width:none}
.quickbar::-webkit-scrollbar{display:none}
.quickbar button{flex:1 0 auto; min-width:74px; display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:8px 6px; border-radius:12px; border:2px solid var(--gold); font-weight:800; font-size:12px; letter-spacing:.5px;
  color:#fff; background:linear-gradient(180deg,#0a6a38,#064E28); box-shadow:0 3px 8px rgba(0,0,0,.35)}
.quickbar button span{font-size:17px}
.quickbar button:nth-child(2){background:linear-gradient(180deg,#005a9e,#003B73)}
.quickbar button:nth-child(3){background:linear-gradient(180deg,#7a3ec2,#63249A)}
.quickbar button:nth-child(5){background:linear-gradient(180deg,#0e7d86,#075e63)}
.quickbar button:nth-child(7){background:linear-gradient(180deg,#9c1f52,#7C153D)}
.quickbar button:active{transform:scale(.96)}

/* feature cards */
.card-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media (min-width:760px){.card-grid{grid-template-columns:repeat(4,1fr)}}
.fcard{border:2px solid var(--gold); border-radius:16px; padding:14px 10px 12px; color:#fff; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:3px; box-shadow:0 4px 12px rgba(0,0,0,.35); min-height:118px}
.fcard .fic{font-size:30px; filter:drop-shadow(0 2px 3px rgba(0,0,0,.5))}
.fcard b{font-size:15px; line-height:1.2}
.fcard small{opacity:.88; font-size:11.5px; line-height:1.25}
.fcard:active{transform:scale(.97)}
.c-emerald{background:linear-gradient(160deg,#0d7a40,#064E28)}
.c-sapphire{background:linear-gradient(160deg,#005a9e,#003B73)}
.c-forest{background:linear-gradient(160deg,#0a5c33,#032B1A)}
.c-diamond{background:linear-gradient(160deg,#25a2ea,#0077C8)}
.c-purple{background:linear-gradient(160deg,#7d3bc4,#4c1d78)}
.c-teal{background:linear-gradient(160deg,#12a0a8,#075e63)}
.c-violet{background:linear-gradient(160deg,#8b46c7,#5b2a86)}
.c-goldblue{background:linear-gradient(160deg,#c39a1e,#8a6d1f 45%,#003B73)}

.adv-head{text-align:center; color:#FFD700; letter-spacing:2px; margin:18px 0 10px; font-size:17px;
  text-shadow:0 2px 6px rgba(0,0,0,.55); border-top:1px solid rgba(212,175,55,.5); padding-top:14px}
.tool-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media (min-width:760px){.tool-grid{grid-template-columns:repeat(4,1fr)}}
.tcard{border:1.5px solid rgba(212,175,55,.75); border-radius:14px; padding:11px; text-align:left; color:#F7FAFC;
  background:linear-gradient(165deg,rgba(6,27,48,.92),rgba(3,43,26,.92)); box-shadow:0 3px 10px rgba(0,0,0,.3)}
.tcard .tic{font-size:23px}
.tcard b{display:block; margin:4px 0 2px; font-size:14px}
.tcard small{display:block; opacity:.85; font-size:11.5px; line-height:1.3}
.tcard .status{display:inline-block; margin-top:6px; font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:20px}
.status.work{background:#0d7a40; color:#eafff2}
.status.later{background:#5b4a12; color:#ffe98a}
.home-foot{text-align:center; font-size:11.5px; opacity:.75; margin:16px 0 4px}
.designer-plaque{display:block; width:100%; height:auto; margin-top:12px; border-radius:10px;
  border:1.5px solid rgba(212,175,55,.65); box-shadow:0 4px 14px rgba(0,0,0,.35)}
.batch-tools{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:8px}
.batch-target{font-size:13.5px; display:flex; align-items:center; gap:6px}
.batch-target select{padding:8px; border-radius:8px; border:1px solid var(--gold); background:#F7FAFC; font-size:14px; color:#1c2733}
.batch-item{display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:7px 2px;
  border-bottom:1px solid rgba(212,175,55,.25); font-size:13.5px}
.bi-name{flex:1 1 38%; word-break:break-all}
.bi-kind{text-transform:uppercase; font-size:10.5px; font-weight:700; border:1px solid var(--gold);
  border-radius:6px; padding:1px 6px; white-space:nowrap}
.bi-status{flex:1 1 30%; opacity:.92}

/* bars & panels */
.bar{display:flex; align-items:center; gap:8px; margin:2px 0 10px}
.bar h2{margin:0; font-size:20px; color:var(--gold2)}
html[data-theme="light"] .bar h2{color:#064E28}
.icon-btn{background:rgba(212,175,55,.16); border:1.5px solid var(--gold); color:inherit; border-radius:10px;
  width:38px; height:38px; font-size:21px; line-height:1}
.panel{border:1.5px solid rgba(212,175,55,.65); border-radius:14px; padding:14px; margin-bottom:12px;
  background:rgba(6,27,48,.55)}
html[data-theme="light"] .panel{background:#fff}
html[data-theme="dark"] .panel{background:#121c24}
.panel h3{margin:0 0 8px; font-size:16px}
.panel.center{text-align:center}
.note{font-size:13px; opacity:.85; line-height:1.45}
.big-ic{font-size:44px}
.crown-sm{font-size:34px; color:var(--gold2)}
.subtitle-sm{letter-spacing:2px; font-weight:700; font-size:12px; margin:2px 0 8px}
.btn-grid{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
.mini-btn{border:1.5px solid var(--gold); background:linear-gradient(180deg,#0a6a38,#064E28); color:#fff;
  border-radius:10px; padding:9px 13px; font-weight:700; font-size:13.5px}
.mini-btn.gold{background:linear-gradient(180deg,#e9c94c,#b8912a); color:#231a02}
.mini-btn.ghost{background:transparent; color:inherit}
.mini-btn:active{transform:scale(.96)}
.set-row{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; font-size:14.5px}
.set-row select,.set-row input[type=range]{max-width:55%}
select,input[type=text],input[type=search]{font-family:inherit}
.status-list{margin:0; padding-left:20px; line-height:1.65; font-size:14px}
table.matrix{width:100%; border-collapse:collapse; font-size:13.5px}
table.matrix th,table.matrix td{border:1px solid rgba(212,175,55,.4); padding:6px 8px; text-align:left}
table.matrix td.ok{color:#57e389; font-weight:700}
table.matrix td.later{color:#ffd75e; font-weight:700}
html[data-theme="light"] table.matrix td.ok{color:#0a6a38}
html[data-theme="light"] table.matrix td.later{color:#8a6d1f}

/* templates */
.tpl-list{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media (min-width:760px){.tpl-list{grid-template-columns:repeat(3,1fr)}}
.tpl{border:1.5px solid rgba(212,175,55,.7); border-radius:12px; padding:12px; text-align:left; color:#F7FAFC;
  background:linear-gradient(160deg,rgba(0,59,115,.92),rgba(3,43,26,.92))}
html[data-theme="light"] .tpl{background:linear-gradient(160deg,#0077C8,#064E28)}
.tpl b{display:block; font-size:14.5px; margin-bottom:3px}
.tpl small{opacity:.85; font-size:11.5px; line-height:1.3; display:block}
.tpl .cat{font-size:10.5px; color:#FFD700; font-weight:700; letter-spacing:1px; text-transform:uppercase}

/* library */
.lib-tools{display:flex; gap:8px; margin-bottom:8px}
.lib-tools input{flex:1; padding:10px; border-radius:10px; border:1.5px solid var(--gold); font-size:14.5px}
.lib-tools select{border-radius:10px; border:1.5px solid var(--gold); padding:8px}
.lib-actions{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px}
.doc-list{display:flex; flex-direction:column; gap:8px}
.doc-item{display:flex; align-items:center; gap:10px; border:1.5px solid rgba(212,175,55,.55); border-radius:12px;
  padding:10px 12px; background:rgba(6,27,48,.5); text-align:left; color:inherit; width:100%}
html[data-theme="light"] .doc-item{background:#fff}
html[data-theme="dark"] .doc-item{background:#121c24}
.doc-item .di-ic{font-size:24px}
.doc-item .di-main{flex:1; min-width:0}
.doc-item .di-main b{display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:15px}
.doc-item .di-main small{opacity:.75; font-size:12px}
.doc-item .star{background:none; border:none; font-size:21px; color:#8b98a3; padding:4px}
.doc-item .star.on{color:#FFD700}
.doc-item .dots{background:none; border:none; font-size:20px; color:inherit; padding:4px 6px}

/* editor */
.ed-top{display:flex; align-items:center; gap:6px; padding:8px; background:#032B1A; color:#F7FAFC;
  border-bottom:2px solid var(--gold); position:relative}
.doc-title{flex:1; min-width:0; background:transparent; border:none; border-bottom:1px dashed rgba(212,175,55,.6);
  color:#FFD700; font-size:16.5px; font-weight:700; padding:5px 4px}
.save-state{font-size:11px; color:#9fd8b4; white-space:nowrap}
.ed-menu{position:absolute; top:52px; right:8px; z-index:40; background:#0b2537; border:1.5px solid var(--gold);
  border-radius:12px; padding:6px; display:flex; flex-direction:column; min-width:230px; box-shadow:0 10px 26px rgba(0,0,0,.5)}
.ed-menu button{background:none; border:none; color:#F7FAFC; text-align:left; padding:10px 12px; font-size:14.5px; border-radius:8px}
.ed-menu button:active{background:rgba(212,175,55,.25)}
.findbar{display:flex; gap:5px; flex-wrap:wrap; padding:7px 8px; background:#0b2537; border-bottom:1px solid var(--gold)}
.findbar input{flex:1 1 110px; padding:8px; border-radius:8px; border:1px solid #456; font-size:14px}
.fmtbar{background:#0B4026; border-bottom:2px solid var(--gold2); padding:8px 8px 4px; width:100%}
.fmt-row{display:flex; gap:7px; align-items:stretch; margin-bottom:7px; flex-wrap:wrap; width:100%}
.fmt-row::-webkit-scrollbar{display:none}
.fmt-row select{flex:1 1 0; min-width:0; min-height:54px; padding:10px 8px; border-radius:10px; border:1.5px solid #FFD700; background:#F7FAFC; color:#12242E; font-weight:700; font-size:16px}
.fb{flex:1 1 46px; min-width:50px; height:54px; border-radius:11px; border:1.5px solid #FFD700;
  background:linear-gradient(180deg,#1B7A43,#0B5C2E); color:#fff; font-weight:700; font-size:17px; padding:0 10px; position:relative}
.fb.wide{font-size:14.5px; font-weight:700}
.fb:active{background:#FFD700; color:#032B1A}
.fb input[type=color]{position:absolute; inset:0; opacity:0; width:100%; height:100%}
label.fb{display:flex; align-items:center; justify-content:center}
.fb.color{font-weight:800; border-bottom:4px solid #d33}
.fb.color.hl{border-bottom:4px solid #ff0}
.char-panel{display:flex; flex-wrap:wrap; gap:4px; padding:8px; background:#0B4026; border-bottom:1px solid var(--gold2)}
.char-panel button{flex:1 1 46px; min-width:50px; height:52px; font-size:19px; border-radius:8px; border:1.5px solid #FFD700;
  background:linear-gradient(180deg,#1B7A43,#0B5C2E); color:#fff; font-weight:700}
.page-wrap{overflow-y:auto; flex:1 1 auto; min-height:0; background:#3d4852; padding:14px 8px 30px}
html[data-theme="light"] .page-wrap{background:#c8d2d9}
/* page design sheet (Phase 4): header/footer bands + watermark live on the
   sheet around the editable page; the page border is drawn on the sheet */
.sheet{position:relative; margin:0 auto; width:fit-content; max-width:100%; background:#fff;
  border-radius:3px; box-shadow:0 4px 18px rgba(0,0,0,.45)}
.sheet.dark-sheet{background:#171d23}
.sheet .page{box-shadow:none; border-radius:0; margin:0}
.sheet-head,.sheet-foot{text-align:center; font-size:12px; color:#6a7683; padding-top:9px;
  font-family:Georgia,'Times New Roman',serif; white-space:pre-wrap; word-break:break-word}
.sheet-foot{padding-top:2px; padding-bottom:9px}
.sheet.dark-sheet .sheet-head,.sheet.dark-sheet .sheet-foot{color:#9fb0bc}
.wm-overlay{position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  overflow:hidden; pointer-events:none; z-index:5}
.wm-overlay span{transform:rotate(-45deg); font-size:52pt; font-weight:700; letter-spacing:3px;
  color:rgba(6,78,40,.08); white-space:nowrap}
.ps-row{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:6px}
.ps-row span{display:flex; align-items:center; gap:6px; font-size:13.5px}
.modal-box input[type=number]{padding:8px; border-radius:8px; border:1.5px solid var(--gold);
  font-size:14.5px; font-family:inherit}
.page{background:#fff; color:#1c2733; max-width:820px; margin:0 auto; min-height:70vh; padding:26px 22px;
  border-radius:3px; box-shadow:0 4px 18px rgba(0,0,0,.45); outline:none; font-size:17px; line-height:1.55;
  font-family:Georgia,'Times New Roman',serif; word-wrap:break-word}
.page.dark-page{background:#171d23; color:#e8eef2}
.page h1{font-size:27px; margin:.5em 0 .35em}
.page h2{font-size:22px; margin:.6em 0 .3em}
.page h3{font-size:18.5px; margin:.6em 0 .3em}
.page .dm-title{font-size:31px; text-align:center; color:#064E28; margin:.3em 0 .2em}
.page.dark-page .dm-title{color:#FFD700}
.page blockquote{border-left:4px solid var(--gold); margin:.6em 0; padding:.2em 0 .2em 14px; font-style:italic; color:#445}
.page.dark-page blockquote{color:#b9c6cf}
.page table{border-collapse:collapse; width:100%; margin:.6em 0}
.page table td,.page table th{border:1px solid #8a97a3; padding:6px 8px; min-width:40px}
.page img{max-width:100%; height:auto; border-radius:4px}
.page hr.dm-hr{border:none; border-top:2px solid #8a97a3; margin:14px 0}
.page .dm-pagebreak{border:none; border-top:2px dashed #0077C8; margin:20px 0; position:relative}
.page .dm-pagebreak::after{content:"PAGE BREAK"; position:absolute; top:-9px; right:0; font-size:9px;
  color:#0077C8; background:inherit; letter-spacing:1px}
.ed-bottom{display:flex; align-items:center; gap:8px; padding:7px 10px; background:#032B1A; color:#cfe8d8;
  border-top:2px solid var(--gold); font-size:12.5px; position:sticky; bottom:56px}
.ed-bottom .spacer{flex:1}

/* bottom nav */
.bottom-nav{position:fixed; left:0; right:0; bottom:0; z-index:50; display:flex; background:#032B1A;
  border-top:2.5px solid var(--gold); padding-bottom:env(safe-area-inset-bottom)}
.bottom-nav button{flex:1; background:none; border:none; color:#cfe8d8; padding:7px 2px 6px; font-size:11px;
  display:flex; flex-direction:column; align-items:center; gap:1px}
.bottom-nav button span{font-size:19px}
.bottom-nav button.active{color:#FFD700; font-weight:800; box-shadow:inset 0 3px 0 #FFD700}

/* sheets, modals, pin */
/* v1.8: renamed from .sheet — the old name collided with the editor's page
   sheet (.sheet, Phase 4), and this rule's rgba(0,0,0,.55) scrim + fixed
   positioning leaked over the editor, dimming the whole formatting toolbar */
.scrim{position:fixed; inset:0; z-index:60; background:rgba(0,0,0,.55); display:flex; align-items:flex-end}
.sheet-box{background:#0b2537; color:#F7FAFC; width:100%; border-radius:18px 18px 0 0; border-top:3px solid var(--gold);
  padding:16px; display:flex; flex-direction:column; gap:4px}
.sheet-box h3{margin:0 0 8px; color:#FFD700}
.sheet-box button{background:none; border:none; color:#F7FAFC; text-align:left; padding:12px 8px; font-size:15.5px; border-radius:8px}
.sheet-box button.ghost{opacity:.7}
.modal{position:fixed; inset:0; z-index:70; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; padding:18px}
.modal-box{background:#0e2a1e; color:#F7FAFC; border:2px solid var(--gold); border-radius:16px; padding:18px;
  width:100%; max-width:430px; max-height:86vh; overflow-y:auto}
html[data-theme="light"] .modal-box{background:#fdfdf8; color:#12242e}
.modal-box h3{margin:0 0 10px; color:#FFD700}
html[data-theme="light"] .modal-box h3{color:#064E28}
.modal-box input[type=text],.modal-box input[type=password],.modal-box select,.modal-box textarea{
  width:100%; padding:10px; border-radius:9px; border:1.5px solid var(--gold); font-size:15px; margin-bottom:10px; font-family:inherit}
.modal-btns{display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; margin-top:6px}
.pin-gate{position:fixed; inset:0; z-index:100; background:linear-gradient(180deg,#032B1A,#061B30);
  display:flex; align-items:center; justify-content:center}
.pin-box{text-align:center; color:#F7FAFC; padding:20px}
.pin-crown{font-size:52px; color:#FFD700}
.pin-box h2{color:#FFD700; letter-spacing:1px; margin:6px 0 2px}
.pin-dots{font-size:26px; letter-spacing:10px; color:#FFD700; margin:14px 0}
.pin-pad{display:grid; grid-template-columns:repeat(3,72px); gap:10px; justify-content:center}
.pin-pad button{height:58px; font-size:21px; border-radius:50%; border:2px solid var(--gold);
  background:rgba(212,175,55,.12); color:#fff; font-weight:700}
.pin-msg{color:#ff9d9d; min-height:20px}
.recovery{position:sticky; top:0; z-index:55; display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  background:#7C153D; color:#fff; padding:9px 12px; font-size:13.5px}
.props-table{width:100%; font-size:14px; border-collapse:collapse}
.props-table td{padding:5px 4px; border-bottom:1px solid rgba(212,175,55,.3)}
.props-table td:first-child{opacity:.75; width:42%}

/* ---- artwork homepage (supplied image used exactly as-is + overlays) ---- */
#screen-home{padding:0; max-width:760px}
.titlebar{background:linear-gradient(180deg,#0a5c33,#032B1A); color:#FFD700; font-family:Georgia,serif;
  font-weight:800; letter-spacing:1.5px; font-size:17px; text-align:center; padding:10px 8px;
  border-bottom:2.5px solid var(--gold); position:relative}
.titlebar .tb-crown{font-size:18px}
.titlebar .tb-ver{position:absolute; right:12px; top:50%; transform:translateY(-50%);
  font-family:Arial,sans-serif; font-size:11px; color:#cfe8d8; letter-spacing:0}
.art-wrap{position:relative; width:100%; margin:0 auto; line-height:0}
.art-img{width:100%; height:auto; display:block}
.ovl{position:absolute; background:transparent; border:none; padding:0; margin:0; cursor:pointer; z-index:3}
.ovl:active{background:rgba(255,215,0,.20); border-radius:16px}
body.on-home{padding-bottom:4px}

/* ---- writing assistants (v1.4) ---- */
.a-label{display:block; font-size:13px; font-weight:700; margin:12px 0 5px}
#assistBody select, #assistBody input[type=text]{display:block; width:100%; margin-top:5px; padding:10px;
  border-radius:9px; border:1.5px solid var(--gold); font-size:15px; font-family:inherit}
.a-text{display:block; width:100%; padding:10px; border-radius:9px; border:1.5px solid var(--gold);
  font-size:15px; font-family:inherit; line-height:1.5}
.a-result{white-space:pre-wrap; background:rgba(255,255,255,.08); border:1px solid rgba(212,175,55,.4);
  border-radius:10px; padding:10px 12px; font-size:14.5px; line-height:1.55; max-height:320px; overflow-y:auto}
html[data-theme="light"] .a-result{background:#f2f6f3}
.a-preview{background:#fff; color:#1c2733; border-radius:6px; padding:16px; line-height:1.55;
  font-family:Georgia,'Times New Roman',serif; box-shadow:0 2px 10px rgba(0,0,0,.3)}
.a-preview h1{font-size:24px; margin:.4em 0 .3em}
.a-preview .dm-title{font-size:27px; text-align:center; color:#064E28}
.a-preview h2{font-size:19px; margin:.6em 0 .25em}
.a-preview h3{font-size:16px; margin:.5em 0 .2em}
.issue-list{display:flex; flex-direction:column; gap:8px; margin-top:8px}
.issue{display:flex; gap:10px; align-items:flex-start; border:1px solid rgba(212,175,55,.4); border-radius:10px;
  padding:9px 10px; background:rgba(255,255,255,.04); margin-bottom:8px}
html[data-theme="light"] .issue{background:#f7faf7}
.issue.on{border-color:#57e389; background:rgba(13,122,64,.16)}
.issue-main{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px}
.issue-type{font-size:10.5px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:var(--gold2)}
html[data-theme="light"] .issue-type{color:#8a6d1f}
.issue-ctx{font-size:14px; line-height:1.45; word-break:break-word}
.issue-ctx mark{background:#FFD700; color:#1c2733; padding:0 2px; border-radius:3px}
.issue-fix{font-size:13.5px}
.issue-msg{font-size:12.5px; opacity:.8}
.issue-btn{flex:0 0 auto}
.issue-flag{flex:0 0 auto; font-size:11px; font-weight:700; padding:4px 8px; border-radius:12px;
  background:#5b4a12; color:#ffe98a}
