.annotation-entry{border-color:var(--taupe);background:var(--yellow);white-space:nowrap}
.annotation-card{display:grid;gap:10px;margin:14px 0;padding:10px;background:#f4eee0;border:1px dashed var(--taupe);text-align:left;width:min(270px,100%);font-size:12px}
.annotation-mini{display:block;position:relative;width:100%;overflow:hidden}
.annotation-mini img{display:block;width:100%;height:auto}
.annotation-mini svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
dialog.annotation-editor{max-width:1080px;width:96vw;height:min(850px,92dvh);max-height:94dvh;padding:0;overflow:hidden;border-radius:24px 9px 20px 9px}
.annotation-editor[open]{display:flex;flex-direction:column}
.annotation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 22px;background:var(--yellow);border-bottom:1px solid var(--taupe);flex-shrink:0}
.annotation-heading h2{font-size:21px}
.annotation-heading p{font-size:11px;margin:7px 0 0;overflow-wrap:anywhere;color:#766256}
.annotation-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;flex:1;min-height:0}
.annotation-picture{display:flex;flex-direction:column;min-height:0;min-width:0;padding:14px;background:#e6e5e3}
.annotation-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:12px;flex-shrink:0}
.annotation-toolbar button{font-size:12px;padding:7px 10px;border-radius:10px}
.annotation-toolset,.annotation-colors{display:flex;gap:4px}
.annotation-toolbar [aria-pressed=true]{outline:2px solid var(--ink);outline-offset:1px;background:var(--yellow)}
.annotation-colors button{width:30px;padding:5px;font-size:19px;text-shadow:0 0 1px #4a2a20;line-height:1}
.annotation-colors .ann-color-0{color:#b83b35}.annotation-colors .ann-color-1{color:#21629b}.annotation-colors .ann-color-2{color:#fff}.annotation-colors .ann-color-3{color:#30251f}
.annotation-width{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:400}
.annotation-width select{width:55px;padding:5px}
.annotation-stage{display:flex;justify-content:center;align-items:center;flex:1;min-height:120px;min-width:0;overflow:hidden;background:#d7d4cf;border:1px solid var(--line);border-radius:10px}
.annotation-board{position:relative;max-width:100%;max-height:100%;flex-shrink:0;background:#fff}
.annotation-board>img{display:block;width:100%;height:100%;user-select:none;-webkit-user-drag:none}
.annotation-board>svg{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;user-select:none}
.annotation-editor p.annotation-tip{font-size:11px;margin:9px 0 0;line-height:1.7;flex-shrink:0}
.annotation-note{display:flex;flex-direction:column;gap:16px;padding:20px;overflow:auto;border-left:1px dashed var(--taupe)}
.annotation-note label{font-size:13px}
.annotation-note textarea{min-height:170px;font-size:13px}
.annotation-note p{margin:0}
.annotation-note .primary{font-size:13px;min-height:44px}
.annotation-status{font-size:12px;color:#9b3832;line-height:1.75;white-space:pre-wrap}
.annotation-note small{line-height:1.8}
.file:has(.annotation-entry){flex-wrap:wrap}
@media(max-width:720px){dialog.annotation-editor{width:97vw;height:95dvh;max-height:95dvh;border-radius:17px}.annotation-heading{padding:12px 15px}.annotation-heading h2{font-size:18px}.annotation-layout{display:flex;flex-direction:column;overflow:auto}.annotation-picture{flex:0 0 auto;height:49dvh;min-height:290px;padding:10px}.annotation-toolbar{gap:6px}.annotation-note{flex-shrink:0;border-left:0;border-top:1px dashed var(--taupe);padding:16px;overflow:visible;gap:12px}.annotation-note textarea{min-height:85px}.annotation-note label{gap:6px}.annotation-note .primary{position:sticky;bottom:0;box-shadow:0 0 0 5px var(--paper)}}
@media(max-width:800px){
 .annotation-heading{padding:10px 12px}.annotation-heading button{min-height:44px;flex-shrink:0}
 .annotation-layout{display:flex;flex-direction:column;overflow:auto}
 .annotation-picture{height:50svh;min-height:320px;flex-shrink:0;padding:10px}
 .annotation-toolbar button{min-width:40px;min-height:40px;padding:8px}.annotation-colors button{min-width:36px}
 .annotation-width select{font-size:16px;min-height:40px;width:64px}.annotation-note textarea{font-size:16px}
 .annotation-note{overflow:visible;flex-shrink:0;border-left:0;padding:14px}.annotation-note .primary{min-height:46px}
 .annotation-stage{min-height:130px}
}

@media(max-width:800px){.annotation-picture{height:72svh;min-height:420px}.annotation-stage{min-height:240px}}
