.brand-mark.brand-logo { padding:0; overflow:visible; background:transparent; border-radius:0; }
.brand-logo img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
.pdf-link { border:0; background:transparent; padding:5px 0; text-align:left; }
.pdf-link:disabled { cursor:default; }
.week-agenda-title { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:16px; }
.agenda-date-controls { min-width:0; }
.agenda-date-controls .day-original { margin-top:5px; white-space:normal; }
.week-original { max-width:170px; white-space:normal; align-items:flex-start; line-height:1.5; }
.week-original svg,.agenda-date-controls .day-original svg { margin-top:1px; }
.original-unavailable { display:block; color:var(--muted); font-size:10px; }
.sheet-dialog { width:min(760px,calc(100vw - 32px)); padding:24px; max-height:92dvh; }
.sheet-dialog .dialog-header { margin-bottom:6px; align-items:start; }
.sheet-dialog .dialog-header h2 { margin:0; font-size:24px; }
.sheet-dialog .eyebrow { margin:0 0 4px; }
.sheet-date { margin:0 0 16px; color:var(--muted); }
.sheet-missing { padding:11px 13px; margin:0 0 14px; border-radius:10px; background:var(--amber-bg); color:var(--amber); font-size:12px; line-height:1.6; }
.sheet-loading { min-height:180px; display:flex; align-items:center; justify-content:center; gap:12px; color:var(--muted); }
.sheet-error { padding:26px 12px; text-align:center; }
.sheet-error p { margin:0 0 18px; }
.sheet-error .primary-button { margin:auto; }
.sheet-viewport { max-height:62dvh; overflow:auto; border:1px solid var(--line); border-radius:12px; background:#fff; overscroll-behavior:contain; }
.sheet-viewport img { display:block; width:100%; height:auto; }
.sheet-viewport.zoomed img { width:200%; max-width:none; }
.sheet-preview { display:block; position:relative; width:100%; padding:0; border:0; background:#fff; cursor:zoom-in; text-align:left; }
.sheet-preview-hint { position:absolute; right:9px; bottom:9px; max-width:calc(100% - 18px); padding:6px 9px; border-radius:7px; color:#fff; background:#18304fbb; font-size:11px; line-height:1.4; pointer-events:none; }
.sheet-viewport.zoomed .sheet-preview { width:200%; cursor:zoom-out; }
.sheet-viewport.zoomed .sheet-preview img { width:100%; }
.sheet-viewport.zoomed .sheet-preview-hint { display:none; }
.sheet-privacy { color:var(--muted); font-size:12px; line-height:1.6; margin:13px 0 0; }
.sheet-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:16px; }
.sheet-actions a { color:var(--accent); font-weight:600; text-decoration:none; }
.sheet-actions .sheet-action { justify-content:center; gap:7px; padding:10px 14px; border:1px solid var(--line); border-radius:9px; background:var(--soft,var(--paper)); color:var(--accent); font-weight:600; line-height:1.4; }
.sheet-actions .sheet-download { margin-left:auto; font-size:12px; }
.sheet-caption { color:var(--muted); font-size:12px; margin:14px 0 0; }
.sheet-dialog [hidden] { display:none!important; }
@media(max-width:600px) {
  .week-agenda-title { grid-template-columns:minmax(0,1fr) minmax(105px,36%); gap:10px; }
  .week-original { width:100%; max-width:none; }
  .agenda-date-controls h2 { line-height:1.5; }
  .sheet-dialog { width:calc(100vw - 20px); padding:20px 15px; border-radius:20px; }
  .sheet-viewport { max-height:50dvh; }
  .sheet-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
  .sheet-actions .sheet-action { padding:10px; text-align:center; }
  .sheet-actions .sheet-download { grid-column:1 / -1; margin-left:0; justify-self:start; }
  .sheet-dialog .dialog-header h2 { font-size:22px; }
}
