#notes-pane { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding: clamp(14px, 2vw, 22px); box-sizing: border-box; }
#notes-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); flex: none; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 0 16px; gap: 16px; align-items: start; justify-items: stretch; box-sizing: border-box; }
.notes-card { display: grid; gap: 14px; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--border); border-radius: 14px; background: var(--panel); min-width: 0; }
.notes-card-heading { display: grid; gap: 6px; }
.notes-card-heading h2 { margin: 0; font-size: 16px; font-weight: 650; color: var(--text); }
.notes-card-heading p, .notes-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
#notes-body .field { gap: 8px; font-size: 13px; font-weight: 550; }
#notes-body textarea, #notes-body input[type=text] { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 9px; line-height: 1.6; resize: vertical; min-width: 0; max-height: 360px; overflow-y: auto; }
#notes-body textarea:focus-visible, #notes-body input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
#notes-body textarea:disabled, #notes-body input:disabled { opacity: .55; }
.notes-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notes-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.notes-card > .btn, .notes-actions .btn { justify-self: start; min-height: 40px; }
.notes-plan { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; padding: 12px 14px; border-radius: 9px; background: var(--sunken); }
.notes-plan p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.notes-plan-link { font-size: 13px; font-weight: 600; }
.notes-card .tool-status:empty { display: none; }
.notes-card .tool-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  #notes-body { gap: 12px; }
  .notes-card { border-radius: 10px; }
  .notes-actions { align-items: flex-start; flex-direction: column; }
  .notes-card > .btn, .notes-actions .btn { width: 100%; }
}

.workspace-tabbar { display: flex; align-items: center; flex: none; gap: 6px; padding-right: 12px; background: var(--panel); border-bottom: 1px solid var(--border); }
.workspace-tabbar .workspace-tabs { min-width: 0; border-bottom: 0; flex: 1; }
.workspace-quick-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.workspace-icon-action { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 40px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.workspace-icon-action:hover { color: var(--text); background: var(--raised); }
.workspace-icon-action[aria-pressed=true] { color: var(--green); }
.workspace-icon-action[aria-pressed=true] svg { fill: currentColor; }
.workspace-icon-action:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.workspace-icon-action:disabled { opacity: .5; cursor: wait; }
.report-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 24px 80px #0008; }
.report-dialog[open] { animation: report-enter 180ms ease-out; }
.report-dialog::backdrop { background: rgb(6 8 15 / .55); backdrop-filter: blur(4px); animation: report-backdrop 180ms ease-out; }
.report-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.report-header h2 { margin: 0 0 5px; font-size: 22px; }
.report-header p { margin: 0; font-size: 13px; color: var(--muted); }
.report-header .account-close { font-size: 26px; padding: 4px 10px; }
.report-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px; }
.report-form p { margin: 0; }
.report-form select { display: block; width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--sunken); color: var(--text); font: inherit; }
.report-form textarea, .report-form select { grid-column: 1 / -1; }
.report-form textarea { min-width: 0; box-sizing: border-box; width: 100%; min-height: 160px; max-height: 40vh; resize: vertical; padding: 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--sunken); color: var(--text); font: inherit; line-height: 1.6; }
.report-actions { display: flex; justify-content: flex-end; }
@keyframes report-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes report-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 440px) { .workspace-tabbar { padding-right: 4px; gap: 0; } .workspace-quick-actions { gap: 0; } .workspace-icon-action { width: 34px; padding: 7px; } .workspace-tabbar .workspace-tabs { gap: 0; padding-left: 4px; padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .report-dialog[open], .report-dialog::backdrop { animation: none; } }
html[data-reduce-motion="1"] .report-dialog, html[data-reduce-motion="1"] .report-dialog::backdrop { animation: none; }
