body.cabinet {
  --canvas: #F5F5F7;
  --surface: rgba(255, 253, 247, .42);
  --surface-raised: rgba(255, 253, 247, .34);
  --border: rgba(118, 86, 32, .16);
  --text: #2B2110;
  --muted: #756B5C;
  --faint: #958975;
  --accent: #FF6A00;
  --accent-soft: rgba(255, 106, 0, .10);
  --accent-hover: #7F3E15;
  --focus: #FF6A00;
  --radius-sm: 12px;
  --radius: 18px;
  --shadow: 0 16px 40px -22px rgba(45, 29, 12, .42), 0 3px 10px -6px rgba(45, 29, 12, .20);
  --motion: 180ms;
  --glass: blur(28px) saturate(185%);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .10) 52%, rgba(255, 255, 255, 0));
  --glass-border: rgba(255, 255, 255, .55);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .74), inset 0 -1px 0 rgba(120, 90, 50, .06);
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  background: transparent;
}

body.cabinet.light { background: var(--canvas); }
body.cabinet.light .garden { display: none; }

.cab-wrap {
  position: relative;
  z-index: 5;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 104px 20px 96px;
}
.cab-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cab-title { margin: 0; color: var(--text); font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.cab-sub { margin-top: 5px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.cab-back,
.cab-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #2B2110;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: 500 13px Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.cab-back:hover,
.cab-ghost:hover { background: var(--accent-soft); }

.cab-card {
  padding: 22px 20px;
  color: var(--text);
  background-color: var(--surface);
  background-image: var(--glass-sheen);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glass-edge);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.cab-card + .cab-card { margin-top: 16px; }
.cab-card h2 { margin: 0 0 12px; color: var(--text); font-size: 20px; font-weight: 650; line-height: 1.25; }
.cab-hint,
.cab-empty { padding: 14px 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.cab-rank { padding-bottom: 12px; margin-bottom: 14px; color: #2B2110; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 650; }
.cab-id { display: flex; align-items: center; gap: 16px; }
.cab-avatar { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: 0 0 auto; color: #2B2110; background: var(--accent); border-radius: 50%; font-size: 26px; font-weight: 700; }
.cab-id-main { min-width: 0; }
.cab-role { margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.cab-name { color: var(--text); font-size: 22px; font-weight: 650; overflow-wrap: anywhere; }
.cab-since { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.cab-rows { margin-top: 18px; border-top: 1px solid var(--border); }
.cab-prow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--border); }
.cab-plbl { color: var(--muted); font-size: 13.5px; }
.cab-val { color: var(--text); font-size: 14px; font-weight: 600; text-align: end; text-decoration: none; overflow-wrap: anywhere; }
a.cab-val,
.cab-acct-wrap .cab-val { color: #2B2110; }
.cab-acct-wrap { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cab-plat { padding: 3px 8px; color: #2B2110; background: var(--accent-soft); border: 1px solid var(--border); border-radius: 7px; font-size: 11px; font-weight: 650; white-space: nowrap; }

.cab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.cab-stat { padding: 13px 10px; text-align: center; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.cab-stat .n { color: #2B2110; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cab-stat .l { margin-top: 3px; color: var(--muted); font-size: 11px; }
.cab-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.cab-opt { flex: 1 1 160px; min-height: 76px; padding: 12px 14px; color: var(--text); text-align: start; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; cursor: pointer; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.cab-opt:hover { background: var(--accent-soft); }
.cab-opt.on { border-color: #2B2110; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.cab-opt .t { font-size: 15px; font-weight: 650; }
.cab-opt .d { margin-top: 3px; color: var(--muted); font-size: 12px; }

.cab-field-label { margin: 4px 0 7px; color: var(--muted); font-size: 13px; }
.cab-input,
.cab-langsel,
.cab-readcount select {
  width: 100%;
  min-height: 46px;
  margin-bottom: 10px;
  padding: 0 13px;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: 400 16px Inter, sans-serif;
}
.cab-input:focus,
.cab-langsel:focus,
.cab-readcount select:focus { border-color: #2B2110; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.cab-btn { width: 100%; min-height: 46px; padding: 0 16px; color: #2B2110; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); font: 650 15px Inter, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.cab-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cab-btn.ghost { color: var(--text); background: transparent; border-color: var(--border); }
.cab-btn.ghost:hover { background: var(--accent-soft); }
.cab-btn.cab-danger { color: #FFFFFF; background: #B42318; border-color: #B42318; }
.cab-btn.cab-danger:hover { background: #912018; }
.cab-check { display: flex; align-items: flex-start; gap: 10px; min-height: 58px; margin-bottom: 8px; padding: 11px 12px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.cab-check input { margin-top: 3px; accent-color: #2B2110; }
.cab-check span { display: flex; flex-direction: column; }
.cab-check b { font-size: 13.5px; font-weight: 650; }
.cab-check i { margin-top: 2px; color: var(--muted); font-size: 12px; font-style: normal; }

.cab-tabs,
.cab-viewtog { display: flex; gap: 3px; width: fit-content; padding: 3px; background: var(--accent-soft); border: 1px solid var(--border); border-radius: 11px; }
.cab-tabs button,
.cab-viewtog button { min-height: 40px; padding: 0 14px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font: 500 13px Inter, sans-serif; cursor: pointer; }
.cab-tabs button.on,
.cab-viewtog button.on { color: #2B2110; background: var(--accent); font-weight: 650; }

.cab-doors { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.cab-door-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cab-door { display: flex; flex-direction: column; align-items: center; flex: 0 1 230px; max-width: 230px; min-height: 180px; padding: 20px 16px; color: var(--text); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); font: inherit; text-align: center; cursor: pointer; transition: transform var(--motion), border-color var(--motion), background var(--motion); }
.cab-door:hover { background: var(--accent-soft); border-color: #2B2110; transform: translateY(-2px); }
.cab-door:active { transform: scale(.98); }
.cab-door .di { display: grid; place-items: center; width: 64px; height: 64px; color: #2B2110; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 14px; }
.cab-door .di svg { width: 32px; height: 32px; }
.cab-door .dt { display: block; margin-top: 14px; font-size: 17px; font-weight: 650; line-height: 1.25; }
.cab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cab-langf { margin-inline-start: auto; }
.cab-bookrow { width: 100%; }
.cab-bookrow:hover { background: var(--accent-soft); }
.cab-book.open > .cab-bookrow { border-color: #2B2110; background: var(--accent-soft); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.cab-bookrow .chev { transition: transform var(--motion); }
.cab-book.open > .cab-bookrow .chev { transform: rotate(90deg); }
.cab-chap { width: 100%; min-height: 42px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-inline-start: 2px solid var(--accent); font: 400 13.5px Inter, sans-serif; text-align: start; cursor: pointer; }
.cab-chap:hover { color: var(--text); background: var(--accent-soft); }
.cab-chap .cn { display: inline-block; min-width: 20px; margin-inline-end: 4px; color: #2B2110; font-weight: 650; }
.cab-chapters { margin: 0 0 8px; padding: 8px 10px 10px 30px; background: var(--surface-raised); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.cab-chapters[hidden] { display: none; }
.cab-answer-item { padding: 0; overflow: hidden; }
.cab-answer-item .main { display: inline-block; padding: 12px 14px; color: var(--text); text-decoration: none; }
.cab-del,
.cab-answer-item .cab-del { min-width: 44px; min-height: 44px; padding: 0 10px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.cab-del:hover { color: #B42318; background: rgba(180, 35, 24, .1); }
.delete-mark { position: relative; display: inline-block; width: 14px; height: 16px; border: 1.8px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; }
.delete-mark::before { content: ""; position: absolute; top: -5px; left: 3px; width: 6px; height: 2px; background: currentColor; box-shadow: 0 -3px 0 -1px currentColor; }
.cab-term { padding: 13px 15px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cab-term .ct-t { color: #2B2110; font-size: 17px; font-weight: 650; }
.cab-term .ct-d { margin-top: 5px; color: var(--text); font-size: 13.5px; line-height: 1.55; white-space: pre-line; }
.cab-langs,
.cab-ltrs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; }
.cab-lang,
.cab-ltr { min-height: 36px; padding: 0 11px; color: var(--text); background: var(--surface-raised); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.cab-lang.on,
.cab-ltr.on { color: #2B2110; background: var(--accent); border-color: #2B2110; }
.cab-langbadge { padding: 2px 5px; color: #2B2110; border: 1px solid var(--border); border-radius: 5px; font-size: 10.5px; font-weight: 700; }
.cab-search,
.cab-searchbar { display: flex; align-items: center; gap: 9px; min-height: 48px; margin-bottom: 14px; padding: 0 13px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cab-searchbar { box-shadow: none; }
.cab-search input,
.cab-searchbar input { flex: 1; min-width: 0; min-height: 44px; color: var(--text); background: transparent; border: 0; outline: 0; font: 400 16px Inter, sans-serif; }
.cab-search input::placeholder,
.cab-searchbar input::placeholder { color: var(--faint); }
.cab-search-clear { min-width: 36px; min-height: 36px; color: #2B2110; background: var(--accent-soft); border: 1px solid var(--border); border-radius: 9px; font-size: 18px; cursor: pointer; }
.cab-subhead { margin: 18px 0 8px; padding: 9px 14px; color: #2B2110; background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-weight: 650; }
.cab-list { display: flex; flex-direction: column; gap: 4px; }
.cab-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 9px 14px; color: var(--text); text-align: start; text-decoration: none; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; cursor: pointer; }
.cab-row:hover { background: var(--accent-soft); border-color: #2B2110; }
.cab-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 7px; color: #2B2110; background: var(--accent); border-radius: 8px; font-size: 11px; font-weight: 700; }
.cab-badge.l2 { background: #7C5CE5; }
.cab-badge.l6 { background: #2C8B77; }
.cab-row .main { flex: 1; min-width: 0; }
.cab-row .rt { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cab-row .rs { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.cab-row .side { display: flex; flex: 0 0 auto; flex-direction: column; align-items: end; gap: 3px; max-width: 46%; text-align: end; }
.cab-num { min-width: 26px; color: #2B2110; font-size: 12px; font-weight: 650; text-align: end; font-variant-numeric: tabular-nums; }
.cab-row .chev { color: var(--faint); font-size: 18px; }
.cab-row .st { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.cab-row .st.read { color: #1F6B60; background: rgba(44, 139, 119, .14); }
.cab-row .st.plan { color: #2B2110; background: rgba(255, 106, 0, .14); }
.cab-locked { padding: 16px; color: var(--text); background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.55; }

.cab-article { max-width: 780px; margin: 0 auto; padding: 30px 40px 40px; color: var(--text); background-color: var(--surface);
  background-image: var(--glass-sheen); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 16px; line-height: 1.72; }
.cab-article h1 { margin: 0 0 8px; color: var(--text); font-size: 27px; font-weight: 700; line-height: 1.2; }
.cab-article h2 { margin: 24px 0 8px; color: var(--text); font-size: 21px; font-weight: 650; }
.cab-article h3 { margin: 18px 0 6px; color: var(--text); font-size: 17px; font-weight: 650; }
.cab-article p { margin: 0 0 12px; }
.cab-article ul,
.cab-article ol { margin: 0 0 12px 22px; }
.cab-article li { margin-bottom: 5px; }
.cab-article strong { color: var(--text); }
.cab-article em { color: var(--muted); }
.cab-article blockquote { margin: 0 0 12px; padding-inline-start: 14px; color: var(--muted); border-inline-start: 2px solid var(--accent); }
.cab-article hr { margin: 20px 0; border: 0; border-top: 1px solid var(--border); }
.cab-meta { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.cab-gate { max-width: 380px; margin: 60px auto; padding: 30px 24px; text-align: center; background-color: var(--surface);
  background-image: var(--glass-sheen); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.cab-gate .lock,
.cab-gate .lock-icon { position: relative; display: block; width: 32px; height: 28px; margin: 0 auto 14px; border: 2px solid var(--accent); border-radius: 7px; }
.cab-gate .lock::before,
.cab-gate .lock-icon::before { content: ""; position: absolute; left: 7px; top: -16px; width: 14px; height: 14px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 9px 9px 0 0; }
.cab-gate h2 { margin: 8px 0; color: var(--text); font-size: 22px; }
.cab-gate p { margin-bottom: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.cab-toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; max-width: 90vw; padding: 12px 20px; color: var(--text); background: var(--surface-solid); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--shadow), var(--glass-edge); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); font-size: 13.5px; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity var(--motion), transform var(--motion); }
.cab-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cab-marks { display: flex; gap: 10px; max-width: 780px; margin: 14px auto 0; flex-wrap: wrap; }
.cab-mark { flex: 1 1 180px; min-height: 46px; padding: 0 16px; color: var(--text); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); font: 600 14.5px Inter, sans-serif; cursor: pointer; }
.cab-mark:hover { background: var(--accent-soft); border-color: #2B2110; }
.cab-mark.on { color: #2B2110; background: var(--accent); border-color: #2B2110; }
.cab-notesbox { max-width: 780px; margin: 12px auto 0; padding: 14px 18px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cab-notes-lbl { display: block; margin-bottom: 7px; color: #2B2110; font-size: 12.5px; font-weight: 650; }
.cab-notesbox textarea { width: 100%; min-height: 72px; padding: 10px 12px; resize: vertical; color: var(--text); background-color: var(--surface);
  background-image: var(--glass-sheen); border: 1px solid var(--border); border-radius: var(--radius-sm); font: 400 16px Inter, sans-serif; line-height: 1.5; }
.cab-notesbox textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.cab-notes-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.cab-note-save { max-width: none; }
.cab-readcount { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.cab-readcount select { width: auto; min-width: 92px; margin: 0; font-size: 14px; }
.cab-lib-group { margin-top: 14px; }
.cab-lib-h { margin-bottom: 6px; color: #2B2110; font-size: 13px; font-weight: 650; }
.cab-lib-list { margin: 0; padding: 0; list-style: none; }
.cab-lib-list li { padding: 8px 10px; color: var(--text); border-bottom: 1px solid var(--border); font-size: 13.5px; }
.cab-lib-list li .d { margin-inline-start: 6px; color: var(--muted); font-size: 11.5px; }
.cab-ee-chaphead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 2px 0 16px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.cab-ee-chapbook { color: #2B2110; text-align: end; text-decoration: none; }
.cab-ee-chapbook:hover { text-decoration: underline; }
.cab-read-head { margin-bottom: 16px; }
.cab-read-head h1 { margin-bottom: 8px; color: var(--text); }
.cab-read-refs,
.cab-read-notes { margin-top: 10px; padding: 12px 16px; color: var(--text); background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.6; }
.cab-read-notes { background: var(--surface-raised); font-size: 12.5px; }
.cab-read-head .cab-refs-lbl { margin-inline-end: 6px; color: #2B2110; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cab-read-notes .cab-refs-lbl { color: var(--muted); }
.cab-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 5px 10px; color: #2B2110; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; text-decoration: none; }
.cab-chip:hover { background: var(--accent-soft); border-color: #2B2110; }
.cab-chapter-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13.5px; }
.cab-chapter-nav a { max-width: 46%; color: #2B2110; text-decoration: none; }
.cab-chapter-nav a:hover { text-decoration: underline; }
.cab-graph-back { display: inline-block; margin-bottom: 10px; color: #2B2110; font-size: 13px; text-decoration: none; }
.cab-relations { margin-top: 22px; padding: 15px 17px 13px; background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cab-rel-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.cab-rel { display: inline-flex; align-items: baseline; gap: 7px; max-width: 100%; padding: 6px 11px; color: var(--text); background: var(--surface-raised); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; text-decoration: none; }
.cab-rel:hover { background-color: var(--surface);
  background-image: var(--glass-sheen); border-color: #2B2110; }
.cab-rel-t { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-rel i { color: #2B2110; font-size: 11.5px; font-style: normal; }
.cab-rel-graph { display: inline-block; margin-top: 12px; color: #2B2110; font-size: 12.5px; text-decoration: none; }
.cab-searchbar .si-icon { position: relative; width: 18px; height: 18px; flex: 0 0 auto; border: 1.8px solid var(--accent); border-radius: 50%; }
.cab-searchbar .si-icon::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 1.8px; background: var(--accent); transform: rotate(45deg); }
.cab-search-head { margin-bottom: 6px; color: #2B2110; font-size: 13px; font-weight: 650; }
.cab-search-q { color: var(--text); font-size: 13.5px; font-style: italic; }
.cab-hit { align-items: flex-start; }
.cab-hit .cab-badge { margin-top: 2px; font-size: 10px; }
.cab-hit .rt { font-size: 15px; }
.cab-hit .hit-snip { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.cab-hit .hit-snip mark { padding: 0 2px; color: var(--text); background: var(--accent-soft); border-radius: 3px; }
.cab-read-layout { display: block; }
.cab-read-main { max-width: 1040px; margin: 0 auto; }
.cab-crumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.cab-crumbs a { color: #2B2110; text-decoration: none; }
.cab-crumbs a:hover { text-decoration: underline; }
.cab-crumbs .sep { color: var(--faint); }
.cab-crumbs .here { color: var(--text); font-weight: 650; }
.cab-article { max-width: none; margin: 0; padding: 28px 40px 40px; font-family: "Source Serif 4", Georgia, serif; font-size: 15.5px; line-height: 1.72; text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
.cab-article p { margin: 0; text-indent: 1.7em; }
.cab-article p + p { margin-top: .12em; }
.cab-article h1,
.cab-article h2,
.cab-article h3 { font-family: "Source Serif 4", Georgia, serif; text-align: start; text-indent: 0; }
.cab-article h1 { margin: 1.1em 0 .5em; font-size: 24px; }
.cab-article h2 { margin: 1em 0 .45em; font-size: 21px; }
.cab-article h3 { margin: .9em 0 .4em; font-size: 19px; }
.cab-article blockquote { color: var(--muted); text-align: center; text-indent: 0; margin: 1.05em 1.8em; line-height: 1.7; }
.cab-article blockquote p { text-indent: 0; text-align: center; }
.cab-article .ee-footnotes { margin-top: 26px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cab-article .ee-fn a { color: #2B2110; font-size: 11px; font-weight: 700; vertical-align: super; text-decoration: none; }
.cab-fnpop { position: fixed; z-index: 60; max-width: 360px; padding: 12px 15px; display: none; color: var(--text); background: var(--surface-solid); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--shadow), var(--glass-edge); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); font: 400 13.5px/1.6 "Source Serif 4", Georgia, serif; }
.cab-fnpop.on { display: block; }
.cab-fnpop .ee-fn-n { margin-inline-end: 3px; color: #2B2110; font-weight: 700; }
.cab-conc { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(53, 37, 17, .24); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cab-conc.on { display: flex; }
.cab-conc-card { width: min(760px, 100%); max-height: 84vh; display: flex; flex-direction: column; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: var(--shadow), var(--glass-edge); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.cab-conc-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; color: var(--text); border-bottom: 1px solid var(--border); }
.cab-conc-title { font-size: 17px; font-weight: 650; }
.cab-conc-x { width: 36px; height: 36px; margin-inline-start: auto; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 18px; cursor: pointer; }
.cab-conc-x:hover { background: var(--accent-soft); }
.cab-conc-body { padding: 8px 18px 20px; overflow: auto; }
.cab-conc-sum { margin: 8px 0 12px; color: var(--muted); font-size: 12.5px; }
.cab-seealso { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; color: var(--muted); font-size: 12.5px; }
.cab-form { padding: 4px 9px; color: #2B2110; background: var(--accent-soft); border: 1px solid var(--border); border-radius: 999px; font: 500 12px Inter, sans-serif; cursor: pointer; }
.cab-conc-src { padding: 12px 0; border-top: 1px solid var(--border); }
.cab-conc-src:first-of-type { border-top: 0; }
.cab-conc-src .src-title { display: flex; align-items: baseline; gap: 8px; color: var(--text); text-decoration: none; }
.cab-conc-src .src-title .tt { font-size: 14.5px; font-weight: 600; }
.cab-conc-src .src-title:hover .tt { color: #2B2110; }
.cab-conc-src .src-title .cnt { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.cab-conc-ref { display: block; margin-top: 8px; padding: 8px 10px; color: var(--text); background: var(--accent-soft); border-radius: 9px; font: 400 13.5px/1.6 "Source Serif 4", Georgia, serif; text-decoration: none; }
.cab-conc-ref:hover { background: var(--surface-raised); }
.cab-conc-ref mark { color: var(--text); background: color-mix(in srgb, var(--accent) 26%, transparent); border-radius: 3px; }
.cab-ee-box { margin: 18px 0 8px; padding: 20px 26px; text-align: center; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cab-ee-boxtitle { margin-bottom: 10px; color: var(--text); font-size: 20px; font-weight: 650; }
.cab-ee-refs,
.cab-ee-notes { margin-top: 6px; color: var(--text); font-size: 13px; line-height: 1.65; }
.cab-ee-refs a { color: #2B2110; text-decoration: none; }
.cab-ee-refs a:hover { text-decoration: underline; }
.cab-ee-lbl { margin-inline-end: 5px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.cab-ee-meta { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.cab-ee-notes { color: var(--muted); font-size: 12.5px; line-height: 1.55; text-align: start; }
.cab-ee-notes p { margin: 0 0 3px; }
.cab-langbox { padding: 14px 22px; }
.cab-lang-top { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.cab-lang-orig { color: var(--faint); font-size: 12px; font-style: italic; }
.cab-lang-sel { width: 100%; max-width: 360px; min-height: 46px; margin-top: 9px; padding: 0 12px; color: var(--text); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); font: 500 14px Inter, sans-serif; cursor: pointer; }
.cab-lang-sel:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.cab-toc { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); }
.cab-nav-h { padding: 14px 14px 10px; border-bottom: 1px solid var(--border); }
.cab-nav-h .cab-nav-title { color: #2B2110; font-size: 15px; font-weight: 650; }
.cab-nav-list { margin: 0; padding: 6px; list-style: none; }
.cab-nav-list a { display: flex; gap: 6px; padding: 8px 9px; color: var(--muted); border-radius: 9px; font-size: 12.5px; line-height: 1.45; text-decoration: none; }
.cab-nav-list a:hover { color: var(--text); background: var(--accent-soft); }
.cab-nav-list li.on a { color: var(--text); background: var(--accent-soft); font-weight: 650; }
.cab-nav-list .n { display: inline-block; min-width: 18px; color: #2B2110; font-weight: 650; }

@media (min-width: 1080px) {
  .cab-read-layout.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 34px; align-items: start; }
  .cab-read-layout.has-toc .cab-toc { position: sticky; top: 96px; align-self: start; }
}
@media (max-width: 1079px) { .cab-toc { margin-top: 16px; } }
@media (max-width: 640px) {
  .cab-wrap { padding: 88px 14px 72px; }
  .cab-stats { grid-template-columns: repeat(2, 1fr); }
  .cab-article { padding: 22px 18px 30px; font-size: 16px; }
  .cab-read-layout.has-toc { display: block; }
  .cab-crumbs { margin-bottom: 10px; }
  .cab-row .side { max-width: 40%; }
  .cab-conc { align-items: end; padding: 0; }
  .cab-conc-card { max-height: 88vh; border-radius: 18px 18px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
