/* Directory presentation from the personal catalog template. */
:root {
  --bg:#f4f6f9;
  --paper:#fff;
  --ink:#243247;
  --muted:#58677b;
  --line:#dee5ee;
  --blue:#2459b3;
  --selected:#eaf1ff;
  --soft:#f5f7fa;
  --amber:#795821;
  --sidebar:244px;
  --text:15px;
  --meta:13px;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:var(--text)/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
}
button,input,a {
  font:inherit;
}
button {
  cursor:pointer;
  color:inherit;
  border:0;
  background:transparent;
}
button:disabled {
  cursor:default;
  color:var(--muted);
}
button:hover {
  background:var(--soft);
}
button,a,input {
  outline-offset:3px;
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:2px solid var(--blue);
}
a {
  color:var(--blue);
  text-underline-offset:3px;
}
a:hover {
  text-decoration-thickness:2px;
}
::selection {
  background:#ccddff;
  color:#173a70;
}
input {
  caret-color:var(--blue);
}
[hidden] {
  display:none!important;
}
svg {
  width:18px;
  height:18px;
  flex-shrink:0;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:20px;
  line-height:1.4;
}
h2 {
  font-size:20px;
  line-height:1.45;
}
h3 {
  font-size:18px;
  line-height:1.5;
}
small {
  font-size:var(--meta);
}
.app {
  height:100dvh;
  min-height:520px;
  display:grid;
  grid-template-columns:var(--sidebar) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
}
.sidebar {
  padding:0 14px 18px;
  background:#f7f8fb;
  border-right:1px solid var(--line);
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.brand {
  display:flex;
  align-items:center;
  gap:9px;
  height:66px;
  min-height:66px;
  flex-shrink:0;
  padding:0 18px;
  margin:0 -14px 12px;
  border-bottom:1px solid var(--line);
}
.brand svg {
  width:20px;
  height:20px;
  margin-top:0;
  color:var(--blue);
}
.brand h1 {
  font-size:19px;
  white-space:nowrap;
  font-weight:700;
  letter-spacing:0;
}
.brand p {
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}
.nav-label {
  padding:0 12px 7px;
  color:var(--muted);
  font-size:13px;
}
.scheme-button {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  text-align:left;
  padding:11px 12px;
  border-radius:6px;
  min-height:46px;
  font-size:15px;
  line-height:1.5;
}
.scheme-button small {
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:400;
  margin-top:3px;
  line-height:1.5;
}
.scheme-button.selected {
  background:var(--selected);
  color:var(--blue);
  font-weight:600;
}
.scheme-button.selected small {
  color:#365c93;
}
.scheme-button .chev {
  margin-left:auto;
  width:14px;
}
.sidebar-rule {
  border-top:1px solid var(--line);
  margin:14px 10px 8px;
}
.sidebar-note {
  padding:16px 12px 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.75;
  margin-top:auto;
}
.main {
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  background:var(--paper);
}
.toolbar {
  display:flex;
  align-items:center;
  gap:16px;
  padding:12px 20px;
  min-height:66px;
  border-bottom:1px solid var(--line);
  background:#fafbfd;
}
.breadcrumbs {
  display:flex;
  align-items:center;
  gap:3px;
  flex:1;
  min-width:0;
  overflow-x:auto;
  white-space:nowrap;
  font-size:13px;
  color:var(--muted);
}
.crumb {
  flex-shrink:0;
  color:var(--blue);
  border-radius:4px;
  padding:4px 5px;
  line-height:1.5;
}
.breadcrumbs svg {
  width:12px;
  height:12px;
}
.search {
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 1 320px;
  min-width:200px;
  min-height:40px;
  border:1px solid #aebbcf;
  border-radius:6px;
  background:white;
  padding:7px 10px;
}
.search:focus-within {
  border-color:var(--blue);
}
.search svg {
  color:var(--muted);
}
.search input {
  font-size:14px;
  border:0;
  outline:none;
  width:100%;
  min-width:0;
  color:var(--ink);
  background:transparent;
}
.search input::placeholder {
  color:#667488;
}
.clear {
  padding:1px 4px;
  font-size:13px;
  color:var(--blue);
  white-space:nowrap;
}
.text-button {
  padding:7px 10px;
  border:1px solid #bdc8d8;
  border-radius:6px;
  background:white;
  font-size:13px;
  white-space:nowrap;
}
.workspace {
  flex:1;
  min-height:0;
  overflow:auto;
  background:white;
  position:relative;
  scrollbar-color:#aab8cc #f4f6f9;
  scrollbar-width:thin;
}
.columns {
  display:flex;
  min-height:100%;
  height:100%;
  width:max-content;
  min-width:100%;
}
.column {
  width:300px;
  flex:none;
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--line);
  background:var(--paper);
}
.column:has(.node[data-depth="2"]) {
  width:360px;
}
.column:first-child {
  position:sticky;
  left:0;
  z-index:2;
  width:310px;
}
.items {
  overflow:auto;
  flex:1;
  min-height:0;
  padding:10px 8px;
}
.node {
  width:100%;
  text-align:left;
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:12px 10px;
  border-radius:5px;
  line-height:1.5;
  min-height:66px;
  margin-bottom:2px;
}
.node.single-line {
  height:48px;
  min-height:48px;
  align-items:center;
  padding:8px 10px;
}
.node.single-line>.folder,.node.single-line>.chev {
  margin-top:0;
  align-self:center;
}
.node.single-line .label,.node.single-line .directory-name {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:normal;
}
.node>.folder {
  width:17px;
  height:17px;
  margin-top:3px;
  color:#6680a5;
}
.node .label {
  min-width:0;
  flex:1;
  overflow-wrap:anywhere;
  font-size:15px;
  font-weight:400;
}
.node .en {
  display:block;
  font-size:15px;
  line-height:1.5;
  margin-top:4px;
  color:var(--muted);
}
.node .directory-name {
  font-size:15px;
  font-weight:700;
  color:var(--ink);
  word-break:normal;
  overflow-wrap:anywhere;
}
.node>.chev {
  width:13px;
  height:15px;
  margin-top:4px;
  color:var(--muted);
}
.node.selected {
  background:var(--selected);
  color:var(--blue);
}
.node.selected .directory-name,.node.selected .en,.node.selected>.folder {
  color:#2459a5;
}
.review-code {
  font:13px/1.5 ui-monospace,"SFMono-Regular",Consolas,monospace;
  font-variant-numeric:tabular-nums;
  color:#4d6481;
  white-space:nowrap;
  font-weight:400;
}
.node.selected .review-code {
  color:#345b94;
}
.entry-group {
  font-size:13px;
  font-weight:600;
  color:var(--muted);
  padding:9px 10px 7px;
}
.entry-group:not(:first-child) {
  border-top:1px solid var(--line);
  margin-top:10px;
  padding-top:16px;
}
.detail {
  width:440px;
  padding:24px;
  background:#fcfdff;
  overflow:auto;
  flex:none;
  border-right:1px solid var(--line);
  font-size:15px;
  line-height:1.75;
}
.detail h3 {
  font-size:20px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.detail .route {
  margin-top:24px;
  font-size:13px;
  color:var(--muted);
  overflow-wrap:anywhere;
  line-height:1.8;
  border-top:1px solid var(--line);
  padding-top:16px;
}
.detail .route strong {
  display:block;
  color:var(--ink);
  font-weight:600;
  margin-bottom:6px;
}
.review-code-line {
  margin:12px 0;
  font-size:14px;
  color:var(--blue);
}
.empty {
  padding:36px 24px;
  color:var(--muted);
  max-width:65ch;
}
.empty h3 {
  color:var(--ink);
  margin-bottom:8px;
}
.more {
  margin:15px 0;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:6px;
}
.workspace::-webkit-scrollbar,.items::-webkit-scrollbar {
  height:10px;
  width:8px;
}
.workspace::-webkit-scrollbar-thumb,.items::-webkit-scrollbar-thumb {
  background:#b7c3d4;
  border-radius:5px;
}
.workspace::-webkit-scrollbar-track,.items::-webkit-scrollbar-track {
  background:#f4f6f9;
}
#storage-nav a {
  text-decoration:none;
  color:var(--ink);
  min-height:46px;
  gap:12px;
  font-weight:400;
}
#storage-nav a.selected {
  color:var(--blue);
  background:var(--selected);
  font-weight:600;
}
#storage-nav a svg {
  width:19px;
  height:19px;
  flex-shrink:0;
  stroke:currentColor;
  stroke-width:1.4;
  fill:none;
}
.columns>.column {
  width:300px;
  flex-shrink:0;
  border-right:1px solid #dee5ee;
}
.items {
  padding:8px;
}
.items .node.single-line {
  display:flex!important;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:48px;
  padding:10px;
  border-radius:5px;
  text-align:left;
  margin:2px 0;
}
.items .node.single-line .directory-name {
  font-size:14px;
  line-height:1.5;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.items .node.single-line svg {
  width:17px;
  height:17px;
  flex-shrink:0;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
}
.items .node:hover {
  background:#f5f7fa;
}
.items .node.selected {
  background:#eaf1ff;
  color:#2459b3;
}
.items .node {
  height:56px!important;
  min-height:56px!important;
  padding:6px 10px!important;
}
#storage-nav .scheme-button { margin-bottom: 4px; }
.sidebar > .brand { margin-bottom: 18px; }
.columns > .column[data-topic-depth="2"] { width: 360px; }
.columns > .column[data-topic-depth="3"] { width: 390px; }

@media (max-width: 650px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .sidebar { padding-bottom: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > .brand { height: 44px; min-height: 44px; margin-bottom: 0; }
  #storage-nav { display: flex; }
  #storage-nav .nav-label { display: none; }
  #storage-nav a { flex: 1; }
  .toolbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .breadcrumbs, .search { flex-basis: 100%; }
  .columns > .column, .columns > .column[data-topic-depth] { width: 82vw; }
  .column:first-child { position: relative; }
}

.intake-guide {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 48px) 56px;
  background: var(--paper);
  overflow-wrap: anywhere;
}
.intake-guide h1 { font-size: 26px; }
.intake-guide h2 { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 15px; }
.intake-guide p, .intake-guide li { margin: 8px 0; }
.intake-guide table { width: 100%; border-collapse: collapse; }
.intake-guide th, .intake-guide td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.intake-guide th { background: var(--soft); }
.intake-guide td:first-child { width: 25%; }
.intake-guide code { background: var(--soft); }
#guide-nav a { text-decoration: none; }
.detail > a { display: block; }

.detail.document-detail { width: min(680px, 90vw); }
.catalog-document { margin-top: 18px; overflow-wrap: anywhere; }
.catalog-document h1 { font-size: 20px; }
.catalog-document h2 { margin-top: 20px; font-size: 17px; }
.catalog-document a { display: inline; margin: 0; }
.catalog-document table { width: 100%; border-collapse: collapse; }
.catalog-document th, .catalog-document td { padding: 6px 8px; border: 1px solid var(--line); text-align: left; }
