@charset "UTF-8";

/* Folio: a desk atlas, composed in mineral paper, deep ink, and quiet colour. */
:root {
  color-scheme: light;
  --paper: #f2f1eb;
  --surface: #fffefa;
  --surface-soft: #f8f7f2;
  --ink: #263b33;
  --text: #303b36;
  --muted: #65725f;
  --line: #dfE3d9;
  --line-strong: #cbd3c8;
  --forest: #244f41;
  --forest-soft: #e9eee5;
  --terracotta: #a75c40;
  --terracotta-soft: #f5e9e1;
  --blue-soft: #e9eef1;
  --radius: 10px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: var(--paper); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .42; }
a { color: var(--forest); text-underline-offset: 3px; }
button, a, input, textarea, select, [tabindex] { outline-offset: 3px; }
:focus-visible { outline: 2px solid #6c8974; }
button { transition: background-color .15s, border-color .15s, color .15s; }
svg { display: inline-block; width: 17px; height: 17px; flex: 0 0 auto; vertical-align: middle; stroke-width: 1.7; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
::selection { background: #d7e4d2; color: #183829; }
* { scrollbar-width: thin; scrollbar-color: #bfc9bc transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #bfc9bc; border-radius: 8px; }
.skip-link { position: fixed; top: -60px; left: 220px; z-index: 100; background: white; padding: 12px; border-radius: 5px; }
.skip-link:focus { top: 10px; }

.app-shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); width: 100%; height: 100dvh; min-height: 0; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #e9ece3; border-right: 1px solid #d8ded3; padding: 27px 16px 17px; gap: 5px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 7px 29px; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 38px; color: var(--surface); background: var(--forest); border-radius: 3px 10px 3px 3px; font-family: Georgia, serif; font-size: 26px; line-height: 1; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 29px; letter-spacing: -1px; line-height: 1; color: #244436; }
.brand-caption { font-size: 11px; text-transform: uppercase; letter-spacing: 1.7px; margin-top: 6px; color: #71816e; }
.nav-label { display: flex; align-items: center; justify-content: space-between; margin: 16px 9px 7px; font-size: 11px; line-height: 1.6; font-weight: 700; letter-spacing: 1.65px; color: #6e7d6b; text-transform: uppercase; }
.board-link { display: flex; align-items: center; width: 100%; min-width: 0; gap: 9px; text-align: left; border: 1px solid transparent; border-radius: 6px; background: none; padding: 10px 11px; color: #53664f; font-size: 12px; }
.board-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-link:hover { background: #e0e5d9; }
.board-link.is-active { background: #fffdf7; border-color: #d4dccc; color: #254b37; box-shadow: 0 2px 3px #2d463007; font-weight: 600; }
.board-link.is-active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #668267; margin-left: auto; flex: 0 0 auto; }
.sidebar .text-button { justify-content: flex-start; padding: 8px 11px; color: #677860; }
.sidebar-footer { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #70816c; }
.sidebar-footer p { line-height: 1.55; padding: 8px; }
.sidebar-footer .button { width: 100%; justify-content: flex-start; font-size: 11px; }
.sidebar .divider { margin: 15px 5px; }
.sidebar-note { margin: 12px 8px; font-size: 11px; line-height: 1.6; color: #7a8573; }
.sidebar-boards { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.board-link-wrap { display: flex; align-items: center; gap: 2px; min-width: 0; }
.board-link-wrap .board-link { flex: 1; }
.board-link-wrap > .icon-button { flex: 0 0 auto; width: 20px; min-width: 20px; opacity: .65; }
.board-link-wrap:hover > .icon-button { opacity: 1; }

.workspace { display: grid; grid-template-rows: 56px auto 42px minmax(0, 1fr) 36px; min-width: 0; min-height: 0; overflow: hidden; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 0 28px; border-bottom: 1px solid var(--line); background: #f8f8f2; }
.workspace-header .search-field { max-width: 480px; flex: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header-brand { font-size: 11px; color: #697b5f; letter-spacing: .3px; white-space: nowrap; }
.header-label, .header-status { font-size: 11px; color: var(--muted); white-space: nowrap; }
.header-status { display: flex; align-items: center; gap: 6px; }
.header-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #75966b; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; background: #e1e7db; border: 1px solid #d0d8c9; border-radius: 50%; font-size: 11px; font-weight: 700; color: #516345; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 28px 16px; min-width: 0; }
.heading-copy { min-width: 0; }
.eyebrow { display: block; color: #6c795e; text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; line-height: 1.5; font-weight: 700; }
.heading-copy h1 { color: var(--ink); font: 400 34px/1.13 Georgia, "Times New Roman", serif; letter-spacing: -1.3px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heading-copy p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 7px; }
.heading-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 28px; border-top: 1px solid var(--line); min-width: 0; }
.toolbar-group { display: flex; align-items: center; gap: 7px; min-width: 0; }
.toolbar-group > .field-label { margin: 0; white-space: nowrap; }
.toolbar-label { color: #7b8475; font-size: 11px; margin-right: 5px; white-space: nowrap; }
.workspace-toolbar .select { min-height: 28px; padding-top: 3px; padding-bottom: 3px; background-color: transparent; border-color: transparent; font-size: 11px; font-weight: 600; }
.workspace-toolbar .button, .workspace-toolbar .text-button { font-size: 11px; padding: 5px 8px; min-height: 28px; }
.workspace-toolbar .badge { background: none; padding: 0; font-size: 11px; color: #65735e; }
.board-viewport { min-height: 0; min-width: 0; padding: 0 28px; overflow: hidden; }
.panel-grid { display: grid; grid-template-columns: repeat(var(--columns, 2), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 2), minmax(0, 1fr)); gap: 14px; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.board-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 28px; font-size: 11px; color: #64715d; min-width: 0; }
.board-footer .toolbar-group { gap: 5px; }
.board-footer .button { min-height: 25px; padding: 4px 8px; font-size: 11px; }
.page-count { font-variant-numeric: tabular-nums; white-space: nowrap; }

.button, .icon-button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--surface); min-height: 32px; padding: 7px 11px; font-size: 11px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.button:hover, .icon-button:hover { border-color: #9baa96; background: #f1f4eb; }
.button-primary { color: #fffdf7; background: var(--forest); border-color: var(--forest); box-shadow: 0 1px 2px #22463612; }
.button-primary:hover { color: white; background: #32614f; border-color: #32614f; }
.button-secondary { background: var(--surface); }
.button-quiet, .icon-button, .text-button { background: none; border-color: transparent; }
.button-quiet:hover, .text-button:hover { background: #e7ece0; border-color: transparent; }
.icon-button { min-width: 27px; min-height: 27px; width: 27px; height: 27px; padding: 4px; color: #7a8576; }
.icon-button svg { width: 15px; height: 15px; }
.text-button { padding: 5px 8px; color: var(--forest); min-height: 26px; }
.button-danger { color: #a14334; background: #fff6f2; border-color: #e7c9bf; }
.button-danger:hover { border-color: #bd8675; background: #fbebe4; }
.divider { height: 1px; background: var(--line); flex: 0 0 auto; }
.muted { color: var(--muted); }
.badge { display: inline-flex; align-items: center; border: 1px solid #dde3d5; border-radius: 4px; background: #f0f3e9; padding: 2px 6px; font-size: 11px; line-height: 1.5; color: #748069; white-space: nowrap; }
.kbd, kbd { display: inline-block; color: #728365; border: 1px solid #dce1d5; background: #f7f8f1; border-bottom-width: 2px; padding: 1px 5px; border-radius: 3px; font: 11px/1.5 "Segoe UI", sans-serif; white-space: nowrap; }
.search-field { display: flex; align-items: center; gap: 9px; color: #88907f; min-width: 0; }
.search-field input { width: 100%; min-width: 0; border: none; background: transparent; padding: 8px 0; font-size: 12px; outline: none; }
.search-field input::placeholder { color: #77836c; }
.search-field:focus-within { color: var(--forest); }
.search-field:focus-within input { box-shadow: 0 1px 0 #849975; }
.search-field .kbd { flex-shrink: 0; }

.discipline-panel { --panel-accent: #55704e; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); border: 1px solid #dce1d3; border-radius: var(--radius); box-shadow: 0 2px 5px #36402b03; overflow: hidden; }
.discipline-panel[data-discipline="marketing"] { --panel-accent: #9f7251; }
.discipline-panel[data-discipline="creative"] { --panel-accent: #7f7a9b; }
.discipline-panel[data-discipline="operations"] { --panel-accent: #5a8590; }
.discipline-panel[data-discipline="people"] { --panel-accent: #a06d76; }
.discipline-panel[data-discipline="technology"] { --panel-accent: #58799f; }
.discipline-panel.is-wide { grid-column: span var(--columns, 2); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; min-width: 0; flex-shrink: 0; }
.panel-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-identity > div { min-width: 0; }
.panel-glyph { display: grid; place-items: center; width: 33px; height: 37px; flex: 0 0 auto; border-radius: 5px; color: var(--panel-accent); background: color-mix(in srgb, var(--panel-accent) 9%, white); border: 1px solid color-mix(in srgb, var(--panel-accent) 14%, white); font: 22px/1 Georgia, serif; }
.panel-glyph svg { width: 19px; height: 19px; }
.panel-identity .eyebrow { font-size: 11px; letter-spacing: 1.25px; color: var(--panel-accent); }
.panel-header h2 { font: 400 22px/1.15 Georgia, "Times New Roman", serif; color: #314236; letter-spacing: -.45px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.panel-tools { display: flex; align-items: center; gap: 1px; }
.panel-tools .icon-button { width: 24px; min-width: 24px; height: 25px; min-height: 25px; }
.panel-context { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 8px; padding: 0 16px 9px; color: #818a78; font-size: 11px; flex-shrink: 0; }
.panel-context .select { width: auto; min-width: 0; max-width: 170px; font-size: 11px; min-height: 23px; padding: 3px 5px; border-color: #e4e8dc; }
.panel-context input { width: 100%; min-width: 0; color: #7a886e; background: #f8faf2; border: 1px solid #e6ebdb; border-radius: 3px; padding: 4px 7px; font-size: 11px; text-overflow: ellipsis; }
.panel-context input:focus { background: white; border-color: #92a57f; }
.panel-tabs { display: flex; align-items: center; gap: 13px; min-height: 28px; margin: 0 16px; border-bottom: 1px solid #e7eadf; flex-shrink: 0; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 4px; justify-content: center; padding: 8px 1px; white-space: nowrap; font-size: 11px; line-height: 1.3; color: #6a7a5f; border: none; border-bottom: 2px solid transparent; background: none; }
.tab:hover { color: var(--forest); }
.tab.is-active { color: var(--forest); border-bottom-color: #6f8460; font-weight: 600; }
.panel-body { min-height: 0; min-width: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 0 16px; }
.resource-list { display: flex; flex-direction: column; min-width: 0; }
.resource-row { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; padding: 10px 0; border: none; border-bottom: 1px solid #eef0e8; background: transparent; text-align: left; }
.resource-row:last-child { border-bottom: 0; }
.resource-row:hover { background: #f8f9f2; }
.resource-icon { display: grid; place-items: center; align-self: flex-start; width: 25px; min-width: 25px; height: 28px; margin-top: 1px; border: 1px solid #e7ebdf; border-radius: 4px; color: #6f845f; background: #f7f8f0; font-size: 11px; font-weight: 500; }
.resource-icon svg { width: 13px; height: 13px; }
.resource-copy { flex: 1; min-width: 0; }
.resource-title { display: block; color: #3c4b3c; font-size: 12px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-title button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: none; border: none; padding: 0; text-align: left; font: inherit; white-space: nowrap; }
.resource-open { display: block; width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: none; border: none; padding: 0; text-align: left; font: inherit; white-space: nowrap; }
.resource-open:hover { color: var(--forest); }
.resource-date { font-size: 11px; color: #69795d; white-space: nowrap; }
.resource-description { font-size: 12px; line-height: 1.5; margin-top: 2px; color: #6f7f63; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-meta { display: flex; align-items: center; gap: 6px; color: #69785f; font-size: 11px; margin-top: 5px; min-width: 0; }
.resource-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.resource-action { display: grid; place-items: center; min-width: 24px; width: 24px; height: 25px; padding: 3px; color: #a4ae99; border: 1px solid transparent; border-radius: 4px; background: none; }
.resource-action svg { width: 13px; height: 13px; }
.resource-action:hover { color: var(--forest); background: #eaf0e1; }
.resource-action.is-active, .resource-action.is-selected { color: #bd7f4f; }
.resource-action.is-active svg { fill: #f2e1c6; }
.type-label { font-size: 11px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; color: #89977c; }
.key-sequence { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 30px; padding: 3px 16px; border-top: 1px solid #e8ecdf; background: #fafbf6; color: #69795d; font-size: 11px; flex-shrink: 0; }
.panel-footer .text-button { font-size: 11px; min-height: 22px; padding: 3px 0; }
.panel-footer svg { width: 12px; height: 12px; }
.density-compact .resource-row { padding-top: 8px; padding-bottom: 8px; }
.density-compact .resource-meta { display: none; }
.density-comfortable .resource-row { padding-top: 15px; padding-bottom: 15px; }
.density-comfortable .resource-title { font-size: 12px; }
.density-comfortable .resource-description { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.density-comfortable .resource-icon { width: 29px; height: 32px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; padding: 28px 16px; color: #819076; text-align: center; height: 100%; }
.empty-state h2, .empty-state h3 { color: var(--ink); font: 400 24px/1.2 Georgia, serif; }
.empty-state p { max-width: 330px; font-size: 11px; line-height: 1.6; }
.empty-state svg { width: 26px; height: 26px; color: #a2b197; }

dialog { border: 1px solid #d4ddcf; padding: 0; color: var(--text); background: var(--surface); border-radius: 12px; box-shadow: 0 30px 100px #18302538; width: min(750px, calc(100vw - 48px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); overflow: hidden; }
dialog::backdrop { background: #20382e52; backdrop-filter: blur(3px); }
dialog > div { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 50px); }
#item-form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 50px); }
.modal { width: min(610px, calc(100vw - 48px)); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 25px 28px 20px; flex: 0 0 auto; border-bottom: 1px solid var(--line); }
.dialog-title { font: 400 29px/1.17 Georgia, "Times New Roman", serif; color: var(--ink); letter-spacing: -.5px; overflow-wrap: anywhere; }
.dialog-header .eyebrow { margin-bottom: 6px; }
.dialog-header p { font-size: 11px; line-height: 1.6; color: #718263; margin-top: 7px; }
.dialog-close { flex: 0 0 auto; }
.dialog-body { padding: 23px 28px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.dialog-body > * + * { margin-top: 17px; }
.dialog-body h3 { font-size: 11px; color: var(--forest); margin-bottom: 9px; }
.dialog-body p { font-size: 12px; line-height: 1.65; }
.dialog-body .tabs { margin-top: 0; margin-bottom: 20px; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 15px 28px; background: #f5f7ee; border-top: 1px solid var(--line); flex: 0 0 auto; }
.dialog-footer .toolbar-group { flex-wrap: wrap; }
.dialog-footer .muted { font-size: 11px; }
.field { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.field + .field { margin-top: 13px; }
.field-label { display: block; color: #67785c; font-size: 11px; font-weight: 600; line-height: 1.4; margin-bottom: 5px; }
.field .field-label { margin-bottom: 0; }
.input, .textarea, .select, .field input:not([type="checkbox"]), .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid #d7dfcd; border-radius: 5px; background: #fffefa; padding: 9px 10px; font-size: 12px; line-height: 1.45; min-height: 34px; }
.select { width: auto; }
.textarea, textarea.input { resize: vertical; min-height: 100px; max-height: 290px; }
.input:focus, .textarea:focus, .select:focus, .field input:focus, .field textarea:focus { border-color: #839b72; outline: 2px solid #d5e1c8; outline-offset: 1px; }
.input::placeholder, .textarea::placeholder { color: #a2aa99; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-grid .field + .field { margin-top: 0; }
.field-help { color: #89977c; font-size: 11px; line-height: 1.6; margin-top: 2px; }
.tabs { display: flex; align-items: center; gap: 19px; border-bottom: 1px solid var(--line); }
.preview { padding: 18px 20px; background: #f0f4e9; border: 1px solid #dfe7d3; border-radius: 7px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.75; max-height: 320px; overflow: auto; color: #506445; }
pre.preview { font-family: "Cascadia Mono", Consolas, monospace; font-size: 11px; }
.preview .eyebrow { margin-bottom: 10px; }
.preview-label { display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px; color: #80926f; }
.scope-note { font-size: 11px; color: #849476; line-height: 1.65; }
.checklist-summary { font-size: 11px; color: #7f936e; }
.validation { border-left: 2px solid #bd7758; background: #fbefe6; color: #9e593c; padding: 9px 12px; border-radius: 0 4px 4px 0; font-size: 11px; line-height: 1.6; }
.validation:empty { display: none; }
.source-details { border-top: 1px solid #e0e6d7; padding-top: 14px; color: #6b7c5f; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.source-details summary { cursor: pointer; color: #6b7c60; }
.checklist { display: flex; flex-direction: column; gap: 0; padding: 0; list-style: none; }
.checklist-step { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.55; padding: 12px 0; border-bottom: 1px solid #e8ecdf; }
.checklist-step input { accent-color: var(--forest); margin-top: 3px; width: 15px; height: 15px; flex: 0 0 auto; }
.checklist-step:has(input:checked) { color: #92a184; text-decoration: line-through; }
.preset-grid { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 0; border: 1px solid #e0e7d6; border-radius: 6px; overflow: hidden; }
.preset-grid > * { padding: 10px 12px; border-bottom: 1px solid #e7ecdf; font-size: 11px; overflow-wrap: anywhere; }
.preset-grid > :nth-child(odd) { color: #788c6a; background: #f5f8ee; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.catalog-option { display: flex; align-items: flex-start; gap: 11px; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: #fffefa; padding: 16px; min-width: 0; color: #617258; }
.catalog-option:hover { border-color: #99ad8b; background: #f7f9f0; }
.catalog-option.is-selected { border-color: #94ab82; background: #edf3e4; }
.catalog-option h3 { font: 400 19px/1.2 Georgia, serif; color: var(--ink); }
.catalog-option p { font-size: 11px; line-height: 1.6; margin-top: 5px; color: #88967c; }
.catalog-option input { accent-color: var(--forest); }
.layout-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 20px; }
.toast { position: fixed; left: calc(50% + 95px); bottom: 22px; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 18px; max-width: min(650px, calc(100vw - 32px)); border: 1px solid #5d7760; border-radius: 7px; padding: 12px 17px; background: #2d4a3c; color: #eef5e7; box-shadow: 0 5px 30px #203a2b33; font-size: 12px; line-height: 1.5; }
.toast-action { border: none; border-bottom: 1px solid #b6c8a7; color: #dfebd4; background: none; font-size: 11px; padding: 0 0 2px; white-space: nowrap; }

@media (min-width: 1600px) {
  .app-shell { grid-template-columns: 212px minmax(0, 1fr); }
  .workspace-header, .workspace-heading { padding-left: 38px; padding-right: 38px; }
  .workspace-toolbar { margin-left: 38px; margin-right: 38px; }
  .board-viewport, .board-footer { padding-left: 38px; padding-right: 38px; }
  .panel-header { padding: 18px 21px 13px; }
  .panel-context { padding-left: 21px; padding-right: 21px; }
  .panel-tabs { margin-left: 21px; margin-right: 21px; }
  .panel-body { padding: 0 21px; }
  .panel-footer { padding-left: 21px; padding-right: 21px; }
  .resource-title { font-size: 12px; }
  .resource-description { font-size: 12px; }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 160px minmax(0, 1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .workspace-header { padding-left: 20px; padding-right: 20px; }
  .workspace-heading { padding: 20px; }
  .heading-copy h1 { font-size: 30px; }
  .heading-copy p { max-width: 350px; }
  .workspace-toolbar { margin-left: 20px; margin-right: 20px; }
  .board-viewport, .board-footer { padding-left: 20px; padding-right: 20px; }
  .panel-grid { gap: 11px; }
  .panel-header { padding: 12px 12px 8px; }
  .panel-header h2 { font-size: 20px; }
  .panel-glyph { width: 28px; height: 32px; }
  .panel-context, .panel-footer { padding-left: 12px; padding-right: 12px; }
  .panel-tabs { margin-left: 12px; margin-right: 12px; gap: 10px; }
  .panel-body { padding-left: 12px; padding-right: 12px; }
  .heading-actions { gap: 4px; }
  .heading-actions .button { padding: 7px 8px; }
  .toast { left: calc(50% + 80px); }
}
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 150px minmax(0, 1fr); }
  .heading-copy p { display: none; }
  .workspace-heading { padding-top: 17px; padding-bottom: 17px; }
  .workspace-header { gap: 10px; }
  .header-status, .header-label { display: none; }
  .workspace-toolbar { gap: 5px; }
  .workspace-toolbar .toolbar-label { display: none; }
  .toolbar-group { gap: 4px; }
  .panel-header { padding-top: 15px; padding-bottom: 10px; }
  .panel-header h2 { font-size: 23px; }
  .resource-row { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 600px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: 54px minmax(0, 1fr); }
  .sidebar { flex-direction: row; align-items: center; gap: 5px; padding: 7px 12px; border-right: none; border-bottom: 1px solid #d8ded3; overflow-x: auto; overflow-y: hidden; }
  .brand { padding: 0 10px 0 0; flex-shrink: 0; gap: 7px; }
  .brand-mark { width: 22px; height: 27px; font-size: 19px; border-radius: 2px 6px 2px 2px; }
  .brand-name { font-size: 22px; }
  .brand-caption, .sidebar .nav-label, .sidebar .divider, .sidebar-note { display: none; }
  .board-link { width: auto; max-width: 140px; flex: 0 0 auto; padding: 7px 9px; font-size: 11px; }
  .board-link svg { width: 13px; height: 13px; }
  .board-link.is-active::after { display: none; }
  .sidebar .text-button { flex: 0 0 auto; padding: 7px 8px; font-size: 11px; }
  .sidebar-footer { flex-direction: row; padding: 0; margin: 0 0 0 auto; gap: 3px; flex-shrink: 0; }
  .sidebar-footer p, .sidebar-footer .muted { display: none; }
  .sidebar-footer .button { width: auto; font-size: 11px; min-height: 27px; padding: 5px 7px; }
  .sidebar-boards { flex-direction: row; flex: 0 0 auto; }
  .board-link-wrap { flex: 0 0 auto; }
  .board-link-wrap > .icon-button { width: 20px; min-width: 20px; }
  .header-brand { display: none; }
  .workspace { grid-template-rows: 49px auto auto minmax(0, 1fr) 39px; }
  .workspace-header { padding: 0 15px; }
  .workspace-header .search-field { max-width: none; }
  .search-field input { font-size: 11px; }
  .search-field .kbd { display: none; }
  .header-actions { gap: 5px; }
  .header-actions .button { min-height: 28px; font-size: 11px; padding: 5px 8px; }
  .workspace-heading { padding: 16px 15px 14px; align-items: flex-end; }
  .heading-copy h1 { font-size: 28px; }
  .heading-copy .eyebrow { font-size: 11px; }
  .heading-actions .button { min-height: 29px; padding: 6px 8px; font-size: 11px; }
  .heading-actions { flex-wrap: wrap; max-width: 160px; justify-content: flex-end; }
  .workspace-toolbar { margin: 0 15px; padding: 7px 0; flex-wrap: wrap; row-gap: 3px; }
  .workspace-toolbar .select { padding-left: 3px; padding-right: 3px; }
  .workspace-toolbar .button, .workspace-toolbar .text-button { padding: 4px 5px; font-size: 11px; }
  .workspace-toolbar .toolbar-group { gap: 3px; }
  .board-viewport { padding: 0 15px; }
  .board-footer { padding: 0 15px; font-size: 11px; gap: 5px; }
  .board-footer .button { font-size: 11px; padding: 4px 6px; }
  .board-footer > .muted { max-width: 45%; }
  .panel-header { padding: 16px 15px 12px; }
  .panel-header h2 { font-size: 24px; }
  .panel-glyph { width: 33px; height: 38px; }
  .panel-context { padding: 0 15px 10px; }
  .panel-tabs { margin: 0 15px; min-height: 34px; }
  .panel-body { padding: 0 15px; }
  .panel-footer { padding: 6px 15px; min-height: 34px; }
  .resource-title { font-size: 12px; }
  .resource-description { font-size: 12px; }
  .density-compact .resource-row { padding-top: 11px; padding-bottom: 11px; }
  .resource-action { width: 28px; height: 28px; }
  dialog, .modal { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
  dialog > div { max-height: calc(100dvh - 18px); }
  #item-form { max-height: calc(100dvh - 18px); }
  .dialog-header { padding: 20px 18px 16px; }
  .dialog-title { font-size: 25px; }
  .dialog-body { padding: 18px; }
  .dialog-footer { padding: 12px 18px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-option { padding: 13px; }
  .toast { left: 50%; bottom: 14px; font-size: 11px; width: max-content; padding: 10px 14px; }
  .skip-link { left: 15px; }
}
@media (max-width: 360px) {
  .workspace-heading { align-items: flex-start; gap: 6px; }
  .heading-copy h1 { font-size: 25px; }
  .heading-actions { max-width: 135px; }
  .workspace-header, .workspace-heading { padding-left: 10px; padding-right: 10px; }
  .workspace-toolbar { margin-left: 10px; margin-right: 10px; }
  .board-viewport, .board-footer { padding-left: 10px; padding-right: 10px; }
  .board-footer > .muted { display: none; }
  .board-footer { justify-content: center; }
  .resource-actions { gap: 0; }
  .resource-action { width: 23px; min-width: 23px; }
  .panel-tools .icon-button { width: 23px; min-width: 23px; }
}
@media (max-height: 650px) and (min-width: 601px) {
  .workspace { grid-template-rows: 48px auto 37px minmax(0, 1fr) 34px; }
  .workspace-heading { padding-top: 11px; padding-bottom: 11px; }
  .heading-copy h1 { font-size: 29px; }
  .heading-copy p { display: none; }
  .panel-header { padding-top: 9px; padding-bottom: 6px; }
  .panel-header h2 { font-size: 20px; }
  .panel-glyph { width: 27px; height: 29px; }
  .panel-context { padding-bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Final composition refinements against the rendered application. */
.brand-mark { flex: 0 0 auto; }
.brand-caption { display: block; font-size: 10px; letter-spacing: 1.05px; line-height: 1.55; }
.brand { align-items: flex-start; gap: 9px; padding-left: 3px; padding-right: 0; }
.brand > div { min-width: 0; }
.heading-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.heading-title h1 { min-width: 0; }
.heading-title .icon-button { flex: 0 0 auto; }
.heading-copy > .eyebrow { letter-spacing: 1.2px; font-size: 10px; }
.header-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-separator { color: #b9c2b1; }
.header-brand > :last-child { overflow: hidden; text-overflow: ellipsis; }
.workspace-label { letter-spacing: .8px; font-size: 10px; }
.profile-button { display: grid; place-items: center; border: 1px solid #cbd7c0; border-radius: 50%; background: #e7eddf; color: #5e7550; width: 30px; height: 30px; font-size: 10px; font-weight: 600; }
.segmented-control { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #dce3d4; border-radius: 6px; background: #e9ede1; }
.segmented-control .tab { border: none; padding: 5px 10px; font-size: 11px; color: #738368; border-radius: 4px; }
.segmented-control .tab.is-active { background: #fffefa; color: #385031; box-shadow: 0 1px 3px #334a2520; }
.toolbar-secondary { font-size: 11px; color: #728267; gap: 12px; }
.toolbar-secondary > .divider { width: 1px; height: 13px; }
.platform-control { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.platform-control .select { width: auto; }
.pagination { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.board-footer > span { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.board-footer > .pagination { flex: 0 0 auto; }
.footer-dot { color: #9baa8e; padding: 0 4px; }
.board-count { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; color: #819574; }
.board-dot { width: 5px; height: 5px; background: #9caa8e; border-radius: 2px; flex: 0 0 auto; }
.board-link.is-active::after { display: none; }
.sidebar-note { margin-top: 31px; }
.sidebar-note p { font-size: 11px; line-height: 1.85; margin-top: 8px; color: #6d7e62; }
.sidebar-note .eyebrow { font-size: 10px; line-height: 1.7; letter-spacing: 1.1px; }
.local-status { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-bottom: 6px; }
.local-status > span { width: 5px; height: 5px; background: #789466; border-radius: 50%; }
.sidebar-footer > div { display: flex; gap: 4px; }
.sidebar-footer .text-button { font-size: 11px; padding: 7px 6px; }
.sidebar-footer p { padding: 4px 0; font-size: 11px; line-height: 1.7; }
.type-filter { margin-left: auto; min-width: 0; }
.type-filter .select { width: auto; max-width: 139px; min-height: 25px; padding: 3px 6px; font-size: 11px; border-color: transparent; background: transparent; color: #788b6a; }
.panel-tabs { min-height: 31px; gap: 15px; }
.panel-tabs .tab { padding-top: 6px; padding-bottom: 6px; }
.panel-tabs .tab > span { display: inline-grid; place-items: center; min-width: 15px; color: #839873; font-size: 10px; }
.panel-header { padding-top: 10px; padding-bottom: 7px; }
.panel-context { padding-bottom: 6px; }
.panel-context input { padding-top: 3px; padding-bottom: 3px; }
.panel-header .eyebrow { font-size: 10px; letter-spacing: 1px; }
.panel-footer { min-height: 28px; }
.resource-actions .icon-button[aria-pressed="true"] { color: #b07949; }
.resource-actions .icon-button[aria-pressed="true"] svg { fill: #eee2cd; }
.resource-description { display: block; color: #6f7f63; }
.resource-icon { color: #70835f; }
.resource-actions .type-label { font-size: 11px; text-transform: none; letter-spacing: 0; color: #6f805f; }
.item-description { color: #6d7f60; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-heading, .checklist-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-heading .field-label { margin: 0; }
.destination-link { display: block; overflow-wrap: anywhere; padding: 15px 18px; background: #f1f5e9; border: 1px solid #dae4d0; border-radius: 5px; line-height: 1.65; }
.shortcut-display { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 20px 0; }
.shortcut-display kbd { font-size: 17px; padding: 9px 15px; border-radius: 6px; }
.source-details { display: flex; flex-wrap: wrap; column-gap: 15px; row-gap: 3px; }
.danger { color: #a05840; }
.catalog-option { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: start; gap: 6px 12px; }
.catalog-option > .panel-glyph { grid-row: 1 / 4; }
.catalog-option > strong { grid-column: 2; font: 400 21px/1.2 Georgia, serif; color: #3c5232; }
.catalog-option > span:not(.panel-glyph), .catalog-option > small { grid-column: 2; font-size: 11px; line-height: 1.55; }
.catalog-option > small { color: #7f926e; }
.catalog-option:disabled { opacity: 1; background: #f1f4eb; border-color: #dce4d1; }
.catalog-option:disabled > strong { color: #748567; }
.catalog-option:disabled > span:not(.panel-glyph), .catalog-option:disabled > small { color: #748567; }
.board-empty { grid-column: 1 / -1; grid-row: 1 / -1; }
@media (max-width: 1100px) {
  .workspace-label { display: none; }
  .header-separator { display: none; }
  .toolbar-secondary { gap: 6px; }
  .toolbar-secondary > .muted { display: none; }
  .workspace-heading { padding-top: 15px; padding-bottom: 15px; }
  .panel-header .eyebrow { font-size: 10px; letter-spacing: .5px; }
  .panel-identity { gap: 8px; }
  .sidebar .brand-caption { font-size: 10px; letter-spacing: .5px; }
  .resource-actions .type-label { display: none; }
}
@media (max-width: 850px) {
  .header-brand { display: none; }
  .panel-header { padding-top: 13px; padding-bottom: 10px; }
  .resource-actions .type-label { display: inline; }
}
@media (max-width: 600px) {
  .brand { align-items: center; padding: 0 5px 0 0; }
  .brand-caption, .sidebar .brand-caption, .local-status { display: none; }
  .sidebar .nav-label { display: flex; flex: 0 0 auto; font-size: 0; margin: 0; }
  .sidebar-note { display: none; }
  .sidebar-footer { margin-left: 0; }
  .sidebar-footer > div { gap: 2px; }
  .sidebar-footer .text-button { padding: 6px; }
  .workspace-heading { padding-top: 17px; padding-bottom: 17px; }
  .heading-copy > .eyebrow { display: none; }
  .heading-copy h1 { font-size: 29px; }
  .heading-title { gap: 4px; }
  .heading-title .icon-button { width: 20px; min-width: 20px; }
  .heading-actions { gap: 5px; max-width: 125px; }
  .heading-actions .button { font-size: 11px; }
  .workspace-toolbar { gap: 5px; padding-top: 8px; padding-bottom: 10px; }
  .segmented-control .tab { padding: 5px 10px; }
  .toolbar-secondary { gap: 3px; }
  .toolbar-secondary .platform-control { font-size: 0; }
  .toolbar-secondary .select { font-size: 11px; }
  .toolbar-secondary .text-button { font-size: 11px; }
  .panel-header { padding-top: 16px; padding-bottom: 12px; }
  .panel-context { padding-bottom: 10px; }
  .panel-tabs { min-height: 35px; }
  .panel-footer { min-height: 35px; }
  .density-compact .resource-meta { display: flex; }
  .board-footer { font-size: 11px; }
  .board-footer > span { max-width: none; }
  .pagination { gap: 1px; font-size: 11px; }
}
@media (max-width: 360px) {
  .heading-copy h1 { font-size: 25px; }
  .heading-title .icon-button { display: none; }
  .workspace-heading { align-items: center; }
  .heading-actions { max-width: 120px; }
  .resource-actions .type-label { display: none; }
  .panel-header .eyebrow { font-size: 10px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .workspace { grid-template-rows: 43px 58px 39px minmax(0, 1fr) 31px; }
  .workspace-heading { padding-top: 8px; padding-bottom: 8px; }
  .heading-copy > .eyebrow, .heading-copy > p, .sidebar-note { display: none; }
  .heading-copy h1 { font-size: 26px; }
  .heading-actions .button { min-height: 28px; padding: 5px 7px; font-size: 11px; }
  .panel-context { display: none; }
  .panel-header { padding-top: 8px; padding-bottom: 7px; }
  .panel-header h2 { font-size: 20px; }
  .panel-header .eyebrow { font-size: 10px; }
  .panel-glyph { width: 28px; height: 30px; }
  .panel-tabs { min-height: 28px; }
  .panel-tabs .tab { padding-top: 4px; padding-bottom: 4px; }
  .panel-footer { min-height: 27px; }
  .brand { padding-bottom: 12px; }
  .sidebar-footer { padding-top: 12px; }
  .sidebar-footer p { display: none; }
}
@media (max-width: 600px), (max-height: 500px) {
  .dialog-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}

/* Function-first desk: two compact command bands, visible content, direct actions. */
.app-shell { grid-template-columns: 168px minmax(0, 1fr); }
.workspace { grid-template-rows: 48px 40px minmax(0, 1fr) 32px; }
.workspace-heading { display: none; }
.workspace-header { padding: 0 20px; gap: 20px; }
.workspace-header .header-title, .workspace-header h1 { margin: 0; color: var(--ink); font: 400 24px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-brand, .header-board, .header-title-group { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 270px; }
.header-board > .icon-button, .header-title-group > .icon-button { flex: 0 0 auto; }
.workspace-header .search-field { max-width: 470px; flex: 1 1 220px; }
.workspace-header .header-actions { gap: 8px; }
.workspace-header .button { min-height: 29px; padding: 6px 10px; }
.workspace-toolbar { margin: 0 20px; padding: 0; min-height: 0; border-top: 0; gap: 10px; }
.workspace-toolbar .toolbar-group { gap: 7px; }
.workspace-toolbar .button, .workspace-toolbar .text-button { min-height: 27px; padding: 5px 9px; font-size: 11px; }
.workspace-toolbar .toolbar-secondary { gap: 8px; }
.workspace-toolbar .toolbar-label { font-size: 10px; }
.segmented-control { padding: 2px; gap: 2px; }
.segmented-control .tab { padding: 4px 10px; }
.board-viewport { padding: 0 20px; }
.panel-grid { gap: 12px; }
.board-footer { padding: 0 20px; }
.sidebar { padding-top: 19px; }
.sidebar .brand { padding-bottom: 17px; }
.sidebar .nav-label { margin-top: 9px; }
.sidebar .nav-label { font-size: 10px; letter-spacing: 1.15px; white-space: nowrap; }
.sidebar .board-link { padding: 9px 8px; gap: 7px; font-size: 11px; }
.sidebar-note { display: none; }
.panel-header { min-height: 42px; padding: 7px 13px 5px; gap: 8px; }
.panel-identity { gap: 8px; }
.panel-header h2 { font-size: 21px; line-height: 1.1; margin: 0; letter-spacing: -.4px; }
.panel-header .eyebrow, .panel-context { display: none; }
.panel-header .panel-glyph { width: 26px; height: 28px; border-radius: 4px; font-size: 19px; }
.panel-tools .icon-button { width: 26px; min-width: 26px; height: 26px; min-height: 26px; }
.panel-tabs { min-height: 30px; margin: 0 13px; gap: 13px; }
.panel-tabs .tab { padding-top: 5px; padding-bottom: 5px; font-size: 11px; }
.type-filter .select { min-height: 25px; padding-top: 2px; padding-bottom: 2px; }
.panel-body { padding: 0 13px; }
.panel-footer { min-height: 25px; padding: 2px 13px; font-size: 11px; }
.panel-footer .text-button { min-height: 21px; font-size: 11px; }
.resource-row, .density-comfortable .resource-row { align-items: center; gap: 8px; padding: 6px 0; min-height: 48px; }
.resource-icon, .density-comfortable .resource-icon { width: 24px; min-width: 24px; height: 26px; margin-top: 1px; }
.resource-copy { min-width: 0; overflow: hidden; }
.resource-open { white-space: normal; }
.resource-title, .density-comfortable .resource-title { font-size: 12px; line-height: 17px; }
.resource-description, .density-comfortable .resource-description { font-size: 11px; line-height: 15px; margin-top: 2px; }
.resource-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; color: #66765c; font-size: 11px; line-height: 15px; margin-top: 2px; text-align: left; }
.resource-status { display: block; color: #788567; font-size: 11px; line-height: 15px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-row:has(.resource-preview) .resource-description, .resource-row:has(.resource-preview) .resource-meta { display: none; }
.resource-actions { gap: 4px; }
.resource-actions .type-label { display: none; }
.resource-direct { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 45px; max-width: 90px; min-height: 27px; padding: 5px 8px; border: 1px solid #dce4d4; border-radius: 4px; background: #f4f7ee; color: #47603b; font-size: 11px; line-height: 1.2; font-weight: 500; white-space: nowrap; text-decoration: none; }
.resource-direct:hover { background: #e7efde; border-color: #a9bd98; color: #294423; }
.resource-direct svg { width: 12px; height: 12px; }
.resource-actions > .icon-button { width: 23px; min-width: 23px; height: 25px; min-height: 25px; padding: 3px; }
.resource-copy .key-sequence { display: flex; gap: 3px; font-size: 11px; color: #526c45; margin-top: 3px; line-height: 17px; }
.resource-copy .key-sequence kbd { font-size: 11px; line-height: 15px; padding: 0 4px; }
.density-compact .resource-row { min-height: 41px; padding-top: 4px; padding-bottom: 4px; }
.density-compact .resource-preview { display: block; white-space: nowrap; text-overflow: ellipsis; }
.density-compact .resource-meta { display: none; }
.density-compact .resource-status { margin-top: 1px; }
.density-compact .resource-copy .key-sequence { margin-top: 1px; }
.density-comfortable .resource-preview { -webkit-line-clamp: 2; }
.search-results .resource-row { min-height: 52px; }
@media (min-width: 1600px) {
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .workspace-header { padding-left: 26px; padding-right: 26px; }
  .workspace-toolbar { margin-left: 26px; margin-right: 26px; }
  .board-viewport, .board-footer { padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 1100px) {
  .workspace-header { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .header-brand, .header-board, .header-title-group { flex-basis: 210px; }
  .workspace-header .header-title, .workspace-header h1 { font-size: 23px; }
  .workspace-toolbar { margin-left: 16px; margin-right: 16px; gap: 6px; }
  .workspace-toolbar .toolbar-group, .workspace-toolbar .toolbar-secondary { gap: 4px; }
  .workspace-toolbar .button, .workspace-toolbar .text-button { padding-left: 6px; padding-right: 6px; }
  .workspace-toolbar .toolbar-label { display: none; }
  .board-viewport, .board-footer { padding-left: 16px; padding-right: 16px; }
  .resource-actions { gap: 1px; }
  .resource-direct { min-width: 42px; padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 850px) {
  .workspace { grid-template-rows: 47px auto minmax(0, 1fr) 32px; }
  .workspace-toolbar { min-height: 40px; flex-wrap: wrap; padding: 4px 0; row-gap: 3px; }
  .workspace-toolbar .toolbar-secondary { margin-left: auto; }
  .workspace-header .search-field { flex-basis: 140px; }
  .workspace-header .search-field .kbd { display: none; }
  .workspace-header .header-title, .workspace-header h1 { font-size: 22px; }
  .header-brand, .header-board, .header-title-group { flex-basis: 155px; }
  .workspace-header .header-actions { gap: 5px; }
  .workspace-header .profile-button { width: 27px; height: 27px; }
}
@media (max-width: 600px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px minmax(0, 1fr); }
  .sidebar { padding: 5px 10px; }
  .sidebar .brand { padding: 0 5px 0 0; }
  .workspace { grid-template-rows: auto auto minmax(0, 1fr) 32px; }
  .workspace-header { min-height: 72px; padding: 5px 12px 4px; flex-wrap: wrap; gap: 3px 8px; }
  .header-brand, .header-board, .header-title-group { flex: 1 1 calc(100% - 138px); max-width: calc(100% - 132px); order: 0; }
  .sidebar .nav-label { margin-top: 0; }
  .sidebar .nav-label { font-size: 0; }
  .workspace-header .header-title, .workspace-header h1 { font-size: 23px; }
  .workspace-header .header-actions { order: 1; margin-left: auto; }
  .workspace-header .search-field { order: 2; flex: 1 1 100%; max-width: none; min-height: 27px; }
  .workspace-header .search-field input { padding: 4px 0; font-size: 11px; }
  .workspace-header .button { min-height: 27px; padding: 5px 8px; font-size: 11px; }
  .workspace-toolbar { min-height: 67px; margin: 0 12px; padding: 5px 0; gap: 4px; }
  .workspace-toolbar .toolbar-group { gap: 3px; }
  .workspace-toolbar .toolbar-secondary { flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
  .workspace-toolbar .button, .workspace-toolbar .text-button { font-size: 11px; min-height: 26px; padding: 4px 6px; }
  .workspace-toolbar .segmented-control .tab { padding: 4px 8px; font-size: 11px; }
  .workspace-toolbar .platform-control { font-size: 0; }
  .workspace-toolbar .platform-control .select { font-size: 11px; padding-left: 2px; padding-right: 2px; }
  .board-viewport, .board-footer { padding-left: 12px; padding-right: 12px; }
  .panel-header { min-height: 43px; padding: 8px 12px 6px; }
  .panel-header h2 { font-size: 22px; }
  .panel-header .panel-glyph { width: 26px; height: 28px; }
  .panel-tabs { min-height: 31px; margin-left: 12px; margin-right: 12px; }
  .panel-body { padding-left: 12px; padding-right: 12px; }
  .panel-footer { min-height: 27px; padding-left: 12px; padding-right: 12px; }
  .resource-row, .density-comfortable .resource-row { min-height: 49px; padding-top: 6px; padding-bottom: 6px; }
  .density-compact .resource-row { min-height: 42px; padding-top: 4px; padding-bottom: 4px; }
  .resource-actions { gap: 1px; }
  .resource-direct { min-width: 42px; padding: 5px 6px; }
  .resource-icon, .density-comfortable .resource-icon { width: 22px; min-width: 22px; height: 24px; }
  .resource-actions .type-label { display: none; }
  .resource-title, .density-comfortable .resource-title { font-size: 12px; }
}
@media (max-width: 360px) {
  .workspace-header .header-title, .workspace-header h1 { font-size: 21px; }
  .workspace-header { padding-left: 10px; padding-right: 10px; }
  .workspace-toolbar { margin-left: 10px; margin-right: 10px; }
  .board-viewport, .board-footer { padding-left: 10px; padding-right: 10px; }
  .workspace-toolbar .toolbar-secondary { justify-content: flex-start; margin-left: 0; }
  .workspace-toolbar .button, .workspace-toolbar .text-button { padding-left: 5px; padding-right: 5px; }
  .resource-row { gap: 6px; }
  .resource-direct { min-width: 40px; padding-left: 5px; padding-right: 5px; }
  .resource-actions > .icon-button { width: 21px; min-width: 21px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .workspace { grid-template-rows: 43px auto minmax(0, 1fr) 29px; }
  .workspace-toolbar { min-height: 36px; padding-top: 2px; padding-bottom: 2px; }
  .workspace-header .header-title, .workspace-header h1 { font-size: 22px; }
  .panel-header { min-height: 38px; padding-top: 5px; padding-bottom: 4px; }
  .panel-header h2 { font-size: 20px; }
  .panel-header .panel-glyph { width: 25px; height: 26px; }
  .panel-tabs { min-height: 28px; }
  .panel-footer { min-height: 24px; }
  .sidebar .brand { padding-bottom: 9px; }
}



/* Dense tiles paginate their contents; no nested list scrolling. */
.discipline-panel { --item-height: 48px; }
.discipline-panel.density-compact { --item-height: 32px; }
.discipline-panel .panel-body { overflow: hidden; }
.discipline-panel .resource-row {
  height: var(--item-height); min-height: var(--item-height); max-height: var(--item-height);
  flex: 0 0 var(--item-height); padding: 3px 0; overflow: hidden;
}
.discipline-panel .resource-preview {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 15px; margin-top: 1px;
}
.density-compact .resource-copy { display: flex; align-items: center; gap: 8px; }
.density-compact .resource-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.density-compact .resource-preview { display: none; }
.density-compact .resource-copy .key-sequence {
  display: block; flex: 0 1 auto; max-width: 60%; margin: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; line-height: 17px;
}
.discipline-panel .panel-footer { min-height: 30px; height: 30px; padding-top: 1px; padding-bottom: 1px; }
.item-pagination { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
.item-range { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 11px; }
.item-pagination .icon-button { width: 25px; min-width: 25px; height: 25px; min-height: 25px; padding: 4px; }
@media (max-width: 600px) {
  .discipline-panel.density-compact { --item-height: 36px; }
  .item-pagination { gap: 3px; }
}
