/* ============ tokens ============ */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e2e5ea;
  --border-strong: #cfd4dc;
  --text: #1b2230;
  --text-2: #475467;
  --muted: #6b7686;
  --accent: #2a7385;
  --accent-hover: #215e6d;
  --accent-soft: rgba(42, 115, 133, 0.1);
  --accent-text: #ffffff;
  --mark: rgba(250, 204, 21, 0.38);
  --danger: #b42318;
  --danger-soft: rgba(180, 35, 24, 0.08);
  --ok: #1f7a4d;
  --code-bg: #f3f4f7;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", "Leelawadee UI", Tahoma, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, "Noto Sans Thai", monospace;
  --radius: 8px;
  --radius-sm: 5px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e1116;
  --surface: #151a21;
  --surface-2: #1b212a;
  --border: #252c36;
  --border-strong: #3b4553;
  --text: #f0f3f7;
  --text-2: #d0d7e0;
  --muted: #a6b0bd;
  --accent: #5fb0c2;
  --accent-hover: #7cc2d2;
  --accent-soft: rgba(95, 176, 194, 0.13);
  --accent-text: #0b1419;
  --mark: rgba(250, 204, 21, 0.28);
  --danger: #f97066;
  --danger-soft: rgba(249, 112, 102, 0.12);
  --ok: #4ec38a;
  --code-bg: #10151b;
  --shadow: none;
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.error { color: var(--danger); font-size: 14px; margin: 8px 0 0; }

/* ============ controls ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-link {
  background: none; border: 0; padding: 0; color: var(--muted);
  font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--text); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
}
.textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus, .btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
}
.field-label { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 4px; }
.field { margin-bottom: 14px; }
.checkbox { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.checkbox input { accent-color: var(--accent); width: 15px; height: 15px; }

/* ============ topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { font-family: var(--mono); font-weight: 600; font-size: 16px; color: var(--text); letter-spacing: -0.2px; }
.brand:hover { text-decoration: none; }
.brand-prompt { color: var(--accent); }
.brand-lg { font-size: 26px; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.role-badge {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--muted);
}

.app { max-width: 1240px; margin: 0 auto; padding: 24px 20px 80px; }

/* ============ home ============ */
.search-wrap { position: relative; max-width: 760px; margin: 8px auto 28px; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search-input {
  width: 100%; height: 52px; padding: 0 56px 0 48px;
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: var(--shadow);
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-input::-webkit-search-cancel-button { display: none; }
.kbd {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 7px;
}

.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
.sidebar { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; padding-right: 4px; }
.side-title {
  font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted); margin: 0 0 8px;
}
.side-section + .side-section { margin-top: 24px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 6px 9px; border-radius: var(--radius-sm); border: 0; background: none;
  font-size: 14px; color: var(--text-2); text-align: left; cursor: pointer;
}
.cat-item:hover { background: var(--surface-2); color: var(--text); }
.cat-item.active { background: var(--accent-soft); color: var(--text); font-weight: 500; }
.cat-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.cat-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 12px; line-height: 1;
  padding: 5px 8px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; white-space: nowrap;
}
.chip::before { content: "#"; color: var(--muted); }
.chip:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip.active::before { color: inherit; opacity: 0.7; }
.chip .n { color: var(--muted); margin-left: 2px; }
.chip.active .n { color: inherit; opacity: 0.7; }
.chip.static { cursor: default; }

.toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.result-count { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.toolbar-row .spacer { flex: 1; }
.toolbar-row .select { width: auto; height: 32px; font-size: 13px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-card {
  display: block; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; box-shadow: var(--shadow);
  transition: border-color 0.12s;
}
.doc-card:hover { border-color: var(--border-strong); text-decoration: none; }
.doc-card:hover .doc-title { color: var(--accent); }
.doc-card-head { display: flex; align-items: flex-start; gap: 8px; }
.doc-title { font-size: 16px; font-weight: 600; margin: 0; line-height: 1.4; flex: 1; }
.doc-summary { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.doc-snippet {
  margin: 8px 0 0; padding: 6px 10px; font-size: 13.5px; color: var(--text-2);
  background: var(--surface-2); border-left: 2px solid var(--border-strong); border-radius: 0 4px 4px 0;
}
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.cat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-2);
}
.status-badge {
  font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 4px;
  background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--muted);
}
.pin { color: var(--accent); }
.pin svg { width: 15px; height: 15px; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty .mono { display: block; font-size: 13px; margin-bottom: 6px; }

.mobile-filter-btn { display: none; }

/* ============ doc view ============ */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
.doc-layout.no-toc { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; font-family: var(--mono); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.doc-header { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 24px; }
.doc-header h1 { font-size: 28px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.3px; }
.doc-header .doc-summary { font-size: 16px; margin: 0; }
.doc-actions { display: flex; gap: 6px; margin-left: auto; }
.doc-header-top { display: flex; align-items: flex-start; gap: 12px; }
.doc-header-top h1 { flex: 1; }

.toc { position: sticky; top: 78px; align-self: start; font-size: 13px; max-height: calc(100vh - 100px); overflow: auto; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 3px 0 3px 12px; margin-left: -1px; color: var(--muted); border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }
.toc .lvl-3 a { padding-left: 24px; }

.attachments { margin-top: 36px; border-top: 1px solid var(--border); padding-top: 18px; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px;
}
.file-item a { color: var(--text); word-break: break-all; }
.file-item .size { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.file-ext { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; padding: 2px 5px; border-radius: 3px; background: var(--surface-2); color: var(--muted); min-width: 38px; text-align: center; }

/* ============ markdown ============ */
.md { font-size: 15.5px; line-height: 1.75; overflow-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3, .md h4 { line-height: 1.35; margin: 1.8em 0 0.6em; scroll-margin-top: 72px; letter-spacing: -0.2px; }
.md h1 { font-size: 1.6em; }
.md h2 { font-size: 1.35em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border); }
.md h3 { font-size: 1.15em; }
.md h4 { font-size: 1em; }
.md p, .md ul, .md ol, .md blockquote, .md table, .md pre { margin: 0 0 1em; }
.md ul, .md ol { padding-left: 1.6em; }
.md li + li { margin-top: 0.25em; }
.md img { max-width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.md blockquote { margin-left: 0; padding: 0.6em 1em; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); }
.md blockquote > :last-child { margin-bottom: 0; }
.md code { font-family: var(--mono); font-size: 0.88em; background: var(--code-bg); border: 1px solid var(--border); padding: 0.1em 0.35em; border-radius: 4px; }
.md pre { position: relative; background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; line-height: 1.55; }
.md pre code { background: none; border: 0; padding: 0; font-size: 13.5px; }
.md table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; font-size: 14px; }
.md th, .md td { border: 1px solid var(--border); padding: 6px 12px; text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); font-weight: 600; }
.md input[type="checkbox"] { accent-color: var(--accent); margin-right: 6px; }
.copy-btn {
  position: absolute; top: 6px; right: 6px;
  font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); cursor: pointer;
  opacity: 0; transition: opacity 0.12s;
}
.md pre:hover .copy-btn, .copy-btn:focus { opacity: 1; }
.copy-btn.done { color: var(--ok); }

/* ============ editor ============ */
.editor-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.editor-head h1 { font-size: 20px; margin: 0; flex: 1; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.title-input { height: 46px; font-size: 20px; font-weight: 600; }
.editor-panes { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.editor-tabs { display: none; }
.md-toolbar { grid-column: 1 / -1; display: flex; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.md-toolbar .icon-btn { width: 30px; height: 30px; }
.md-toolbar .sep { width: 1px; background: var(--border-strong); margin: 5px 4px; }
.md-toolbar .hint { margin-left: auto; font-size: 12px; color: var(--muted); align-self: center; padding-right: 4px; }
.md-source {
  width: 100%; min-height: 560px; height: 62vh; border: 0; resize: none; padding: 14px 16px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6; background: var(--surface); color: var(--text);
  border-right: 1px solid var(--border);
}
.md-source:focus { outline: none; }
.md-source.dragover { background: var(--accent-soft); }
.md-preview { padding: 14px 20px; height: 62vh; min-height: 560px; overflow: auto; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.side-card h3 { margin: 0 0 12px; font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; width: 100%; }
.seg button { flex: 1; height: 32px; border: 0; background: var(--surface); font-size: 13px; cursor: pointer; color: var(--text-2); }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button.on { background: var(--accent); color: var(--accent-text); }

.tag-input { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 5px; min-height: 36px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: text; }
.tag-input:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.tag-input input { flex: 1; min-width: 80px; border: 0; background: none; color: var(--text); font: 13px var(--mono); padding: 3px; }
.tag-input input:focus { outline: none; }
.tag-input .chip { cursor: default; }
.chip .x { border: 0; background: none; padding: 0 0 0 3px; cursor: pointer; color: inherit; opacity: 0.6; font-size: 14px; line-height: 1; }
.chip .x:hover { opacity: 1; }

.attach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.attach-list li { display: flex; align-items: center; gap: 6px; }
.attach-list .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-list .icon-btn { width: 26px; height: 26px; }
.attach-list .icon-btn svg { width: 15px; height: 15px; }

.subtle-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }

/* ============ dialog / panel ============ */
.overlay { position: fixed; inset: 0; background: rgba(8, 12, 18, 0.45); z-index: 50; display: flex; justify-content: flex-end; }
.panel { width: min(720px, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; font-size: 16px; flex: 1; }
.panel-body { flex: 1; overflow: auto; padding: 16px 18px; }
.rev-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; height: 100%; }
.rev-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--border); padding-right: 12px; overflow: auto; }
.rev-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.rev-list button:hover { background: var(--surface-2); }
.rev-list button.on { background: var(--accent-soft); }
.rev-list .t { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; }

/* ============ manage ============ */
.manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.manage-grid .side-card { margin: 0; }
.row-list { list-style: none; margin: 0 0 12px; padding: 0; }
.row-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.row-list li:last-child { border-bottom: 0; }
.row-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row-list .icon-btn { width: 28px; height: 28px; }
.row-list .icon-btn svg { width: 15px; height: 15px; }
.inline-form { display: flex; gap: 6px; }
.inline-form .input { height: 32px; }
.color-input { width: 36px; height: 32px; padding: 2px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; flex-shrink: 0; }
.help { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.help code { font-family: var(--mono); font-size: 12px; background: var(--code-bg); padding: 1px 5px; border-radius: 3px; border: 1px solid var(--border); }

/* ============ toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 14px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px);
}
.toast.err { background: var(--danger); color: #fff; }

/* ============ login ============ */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-page .theme-toggle { position: fixed; top: 12px; right: 12px; }
.login-box { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px; box-shadow: var(--shadow); }
.login-box .muted { margin: 4px 0 24px; font-size: 14px; }
.login-box .btn-block { margin-top: 16px; height: 40px; }
.login-box .input { height: 40px; }

.loading { color: var(--muted); font-family: var(--mono); font-size: 13px; padding: 40px 0; text-align: center; }

/* ============ responsive ============ */
@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { position: static; max-height: none; display: none; margin-bottom: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
  .sidebar.open { display: block; }
  .mobile-filter-btn { display: inline-flex; }
  .editor-panes { grid-template-columns: 1fr; }
  .editor-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
  .editor-panes .md-source, .editor-panes .md-preview { height: 60vh; min-height: 360px; border-right: 0; }
  .editor-panes[data-tab="write"] .md-preview, .editor-panes[data-tab="preview"] .md-source { display: none; }
  .rev-grid { grid-template-columns: 1fr; }
  .rev-list { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 10px; max-height: 180px; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .app { padding: 16px 16px 60px; }
  .search-input { height: 46px; font-size: 16px; }
  .kbd { display: none; }
  .search-input { padding-right: 16px; }
  .doc-header h1 { font-size: 23px; }
  .doc-header-top { flex-direction: column; }
  .doc-actions { margin-left: 0; }
  .topnav .btn-label { display: none; }
  .manage-grid { grid-template-columns: minmax(0, 1fr); }
}
