
:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #111111;
    background: #ffffff;
    font-synthesis: none;
    font-weight: 400;
    --accent: #111111;
    --muted: #e5e5e5;
    --line: #e5e5e5;
    --soft: #e5e5e5;
    --sidebar: 218px
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

button, input, textarea {
    font: inherit
}

button, a {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer;
    color: inherit
}

button {
    border: 0;
    background: none
}

button:disabled {
    cursor: not-allowed;
    opacity: .5
}

a {
    color: inherit;
    text-decoration: none
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 4px
}

button {
    transition: background .18s, box-shadow .18s, transform .18s, color .18s
}

button:active {
    transform: translateY(1px)
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle
}

.icon-button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #111111
}

.icon-button .icon {
    width: 17px;
    height: 17px
}

.icon-button:hover {
    background: #ffffff;
    color: var(--accent)
}

.green {
    background: #ffffff;
    color: #111111
}

.blue {
    background: #ffffff;
    color: #111111
}

.orange {
    background: #ffffff;
    color: #111111
}

.purple {
    background: #ffffff;
    color: #111111
}

.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    border-radius: 7px;
    padding: 0 17px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap
}

.primary-button {
    background: var(--accent);
    color: #111111;
    box-shadow: none
}

.primary-button:hover {
    background: #ffffff;
    box-shadow: none
}

.primary-button .icon {
    width: 16px;
    height: 16px
}

.secondary-button {
    border: 1px solid #dddddd;
    background: #ffffff
}

.secondary-button:hover {
    background: #ffffff
}

kbd {
    font-family: inherit;
    font-size: 10px;
    font-weight: 400;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 1px 5px;
    color: #111111
}

.sidebar {
    width: var(--sidebar);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid #dddddd;
    padding: 31px 18px 0;
    z-index: 30
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-left: 9px
}

.brand-mark {
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #111111;
    width: 37px;
    height: 41px;
    border-radius: 11px 11px 13px 13px;
    transform: rotate(-4deg)
}

.brand-mark .icon {
    width: 24px;
    height: 24px;
    transform: rotate(4deg)
}

.brand > span:last-child {
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: 650;
    display: flex;
    align-items: baseline;
    gap: 7px
}

.brand small {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2px;
    color: #111111
}

.workspace {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    text-align: left;
    padding: 9px 6px;
    border-radius: 7px
}

.workspace:hover {
    background: #ffffff
}

.workspace-avatar {
    width: 30px;
    height: 30px;
    border: 1px solid #dddddd;
    background: #ffffff;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #111111;
    font-size: 14px;
    font-weight: 600
}

.workspace > span:nth-child(2) {
    font-size: 11px;
    font-weight: 550;
    flex: 1
}

.workspace small {
    display: block;
    font-size: 7px;
    letter-spacing: .5px;
    color: #111111;
    margin-top: 4px
}

.workspace > .icon {
    width: 12px;
    color: #111111
}

.search-button {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    width: 100%;
    padding: 9px 8px;
    margin: 16px 0 29px;
    color: #111111
}

.search-button > .icon {
    width: 15px;
    height: 15px
}

.search-button > span {
    font-size: 10px;
    white-space: nowrap
}

.search-button kbd {
    border-color: #dddddd;
    padding: 1px 3px;
    font-size: 9px;
    margin-left: auto;
    color: #111111
}

.nav-label {
    font-size: 9px;
    letter-spacing: 1px;
    color: #111111;
    padding: 0 12px;
    margin-bottom: 12px
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.main-nav > button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    gap: 11px;
    font-size: 12px;
    color: #111111;
    border-radius: 7px;
    text-align: left
}

.main-nav > button:hover {
    background: #ffffff
}

.main-nav > button .icon {
    width: 17px;
    height: 17px
}

.main-nav > button.active {
    background: #ffffff;
    color: #111111;
    font-weight: 550
}

.main-nav b {
    margin-left: auto;
    font-size: 10px;
    font-weight: 500;
    background: #ffffff;
    min-width: 22px;
    line-height: 20px;
    border-radius: 4px;
    text-align: center;
    color: #111111
}

.collection-label {
    margin-top: 33px;
    margin-bottom: 4px
}

.collections > button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    width: 100%;
    font-size: 11px;
    color: #111111;
    text-align: left;
    border-radius: 6px
}

.collections > button:hover {
    background: #ffffff
}

.collections > button.selected {
    color: #111111;
    font-weight: 500
}

.collection-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #ffffff
}

.collection-dot.blue {
    background: #ffffff
}

.collection-dot.purple {
    background: #ffffff
}

.collections small {
    margin-left: auto;
    color: #111111;
    font-size: 9px;
    font-weight: 400
}

.sub-collection {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 8px 24px;
    color: #111111;
    font-size: 9px;
    padding: 5px 0 5px 7px;
    border-left: 1px solid #dddddd
}

.sub-collection .icon {
    width: 9px;
    height: 9px
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 35px
}

.growth-card {
    border: 1px solid #dddddd;
    border-radius: 9px;
    padding: 18px 13px 14px;
    background: #ffffff;
    position: relative;
    overflow: hidden
}

.growth-illustration {
    position: absolute;
    right: -9px;
    top: -6px;
    transform: rotate(-19deg);
    color: #111111;
    opacity: .45
}

.growth-illustration .icon {
    width: 67px;
    height: 67px;
    stroke-width: .8
}

.growth-card strong {
    display: block;
    font-size: 11px;
    font-weight: 500;
    position: relative
}

.growth-card p {
    font-size: 8px;
    color: #111111;
    line-height: 1.8;
    margin: 8px 0 17px
}

.week-dots {
    display: flex;
    justify-content: space-between;
    gap: 4px
}

.week-dots > span {
    width: 18px;
    height: 18px;
    border: 1px solid #dddddd;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #111111;
    font-size: 7px
}

.week-dots .done {
    background: #ffffff;
    border-color: #dddddd;
    color: white
}

.week-dots .icon {
    width: 10px;
    height: 10px
}

.week-dots i {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%
}

.growth-card > small {
    display: block;
    font-size: 7px;
    color: #111111;
    margin-top: 12px
}

.profile {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    text-align: left;
    padding: 20px 3px
}

.profile-avatar, .small-avatar {
    background: #ffffff;
    display: grid;
    place-items: center;
    border: 2px solid #dddddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #111111;
    font-size: 14px;
    font-weight: 500
}

.profile > span:nth-child(2) {
    font-size: 10px;
    flex: 1
}

.profile small {
    display: flex;
    align-items: center;
    font-size: 7px;
    margin-top: 5px;
    color: #111111;
    gap: 3px
}

.profile small i {
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%
}

.profile > .icon {
    width: 15px;
    color: #111111
}

.main-shell {
    margin-left: var(--sidebar)
}

.topbar {
    height: 73px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 31px
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: #111111
}

.breadcrumb .icon {
    width: 12px;
    height: 12px;
    color: #111111
}

.breadcrumb strong {
    color: #111111;
    font-weight: 500
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 17px
}

.local-state {
    font-size: 9px;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 5px
}

.local-state i {
    height: 5px;
    width: 5px;
    background: #ffffff;
    border-radius: 50%
}

.small-avatar {
    width: 29px;
    height: 29px;
    font-size: 12px
}

.topbar-right .icon-button {
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding-left: 12px;
    width: 37px
}

main {
    padding: 31px 31px 0;
    max-width: 1800px;
    margin: 0 auto
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
    color: #111111;
    font-weight: 500
}

h1 {
    font-size: 25px;
    font-weight: 550;
    letter-spacing: .2px;
    line-height: 1.5;
    margin: 8px 0 8px;
    color: #111111
}

.page-heading p {
    font-size: 10px;
    color: #111111;
    letter-spacing: .3px;
    margin: 0
}

.stats {
    display: grid;
    grid-template-columns:1.15fr 1fr 1.12fr 1fr;
    border: 1px solid #dddddd;
    border-radius: 9px;
    margin: 27px 0 24px;
    background: #ffffff;
    padding: 20px 0
}

.stat {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 22px;
    position: relative;
    border-right: 1px solid #dddddd;
    min-height: 43px
}

.stat:last-child {
    border-right: 0
}

.stat-icon {
    width: 37px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 9px
}

.stat-icon .icon {
    width: 19px;
    height: 19px;
    stroke-width: 1.4
}

.stat > div > span {
    display: block;
    font-size: 9px;
    color: #111111;
    margin-bottom: 6px
}

.stat strong {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 23px;
    line-height: 1;
    font-weight: 550;
    letter-spacing: -.7px;
    color: #111111
}

.stat strong small {
    color: #111111;
    letter-spacing: 0;
    font-size: 8px;
    font-weight: 400
}

.stat-note {
    font-size: 8px;
    color: #111111;
    margin-left: auto;
    white-space: nowrap;
    align-self: flex-end;
    padding-bottom: 2px
}

.stat-note.orange-text {
    color: #111111
}

.mini-ring {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    margin-left: auto;
    position: relative
}

.mini-ring:after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #ffffff
}

.knowledge-workspace {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 290px;
    gap: 18px;
    align-items: stretch
}

.graph-panel {
    border: 1px solid #dddddd;
    border-radius: 9px;
    background: #ffffff;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column
}

.panel-toolbar {
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dddddd;
    padding: 0 19px;
    background: #ffffff;
    gap: 10px
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.panel-title > .icon {
    width: 16px;
    height: 16px;
    color: #111111
}

.panel-title h2 {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    color: #111111
}

.count-label {
    font-size: 8px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 3px 5px;
    margin-left: 2px
}

.graph-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    color: #111111;
    padding: 6px 8px;
    border-radius: 4px
}

.filter-button:hover {
    background: #ffffff
}

.filter-button .icon {
    width: 12px;
    height: 12px
}

.graph-actions > .icon-button {
    border: 1px solid #dddddd;
    width: 25px;
    height: 25px
}

.graph-actions > .icon-button .icon {
    width: 13px;
    height: 13px
}

.graph-canvas {
    height: 563px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    background-image: none;
    background-size: 18px 18px;
    flex: 1
}

.graph-context {
    position: absolute;
    top: 23px;
    left: 23px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 7px;
    letter-spacing: 1.3px;
    color: #111111;
    z-index: 1
}

.graph-context > span:last-child {
    letter-spacing: .8px;
    font-size: 7px;
    color: #111111;
    margin-left: 5px
}

.live-dot {
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%
}

.graph-world {
    height: calc(100% - 94px);
    width: 100%;
    position: absolute;
    top: 50px;
    transform: scale(var(--zoom));
    transform-origin: 50% 48%;
    transition: transform .25s
}

.graph-world > svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    overflow: visible
}

.connection {
    fill: none;
    stroke: #bbbbbb;
    stroke-width: 1.3
}

.connection.selected {
    stroke: #bbbbbb;
    stroke-width: 1.8
}

.connection-dot {
    fill: #bbbbbb;
    stroke: #bbbbbb;
    stroke-width: 2
}

.connection-dot.selected {
    fill: #bbbbbb
}

.knowledge-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 170px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: none;
    padding: 15px 13px 12px;
    z-index: 2;
    transition: box-shadow .2s, border-color .2s, opacity .2s
}

.knowledge-node:active {
    transform: translate(-50%, -50%)
}

.knowledge-node:hover {
    box-shadow: none;
    border-color: #dddddd;
    z-index: 3
}

.node-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.node-symbol {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0
}

.node-heading strong {
    font-size: 11px;
    font-weight: 550;
    color: #111111
}

.knowledge-node p {
    font-size: 8px;
    color: #111111;
    margin: 9px 0 14px;
    letter-spacing: .25px
}

.node-meta {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    align-items: center
}

.node-meta > span:first-child {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
    color: #111111
}

.node-meta .icon {
    width: 10px;
    height: 10px
}

.status {
    font-size: 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px;
    border-radius: 3px;
    white-space: nowrap;
    font-weight: 400
}

.status i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor
}

.status.mastered {
    color: #111111;
    background: #ffffff
}

.status.learning {
    color: #111111;
    background: #ffffff
}

.status.weak {
    color: #111111;
    background: #ffffff
}

.node-progress {
    height: 2px;
    background: #ffffff;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden
}

.node-progress > span {
    height: 100%;
    display: block;
    border-radius: 3px
}

.node-progress > .green {
    background: #ffffff
}

.node-progress > .blue {
    background: #ffffff
}

.node-progress > .purple {
    background: #ffffff
}

.node-progress > .orange {
    background: #ffffff
}

.knowledge-node.is-selected {
    border: 1.5px solid #dddddd;
    box-shadow: none
}

.selected-node-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: white;
    font-size: 6px;
    padding: 3px 8px;
    border-radius: 0 0 4px 4px;
    white-space: nowrap
}

.root-node {
    width: 184px;
    background: #ffffff;
    border: 1px solid #dddddd;
    padding: 17px 15px 13px;
    box-shadow: none
}

.root-overline {
    display: block;
    font-size: 7px;
    color: #111111;
    margin-bottom: 10px;
    letter-spacing: 1px
}

.root-node .node-heading strong {
    font-size: 12px;
    color: #111111
}

.root-node .node-symbol {
    font-size: 12px;
    font-weight: 600;
    background: #ffffff;
    color: white;
    width: 29px;
    height: 29px
}

.root-node .node-heading > .icon {
    width: 12px;
    height: 12px;
    color: #111111;
    margin-left: auto
}

.root-node p {
    color: #111111;
    margin: 10px 0 15px
}

.root-node .node-meta {
    justify-content: flex-start;
    gap: 13px
}

.root-node .node-meta > span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
    color: #111111
}

.root-node .node-progress {
    background: #ffffff;
    margin-top: 12px
}

.root-node .node-progress > span {
    background: #ffffff
}

.dimmed {
    opacity: .3
}

.graph-legend {
    position: absolute;
    bottom: 21px;
    left: 21px;
    display: flex;
    gap: 14px;
    z-index: 4
}

.graph-legend > span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 7px;
    color: #111111
}

.legend-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%
}

.legend-dot.mastered {
    background: #ffffff
}

.legend-dot.learning {
    background: #ffffff
}

.legend-dot.weak {
    background: #ffffff
}

.zoom-controls {
    position: absolute;
    bottom: 14px;
    right: 16px;
    display: flex;
    align-items: center;
    border: 1px solid #dddddd;
    background: #ffffff;
    border-radius: 6px;
    padding: 3px;
    box-shadow: none;
    z-index: 4
}

.zoom-controls > .icon-button {
    width: 24px;
    height: 23px
}

.zoom-controls .icon {
    width: 12px;
    height: 12px
}

.zoom-controls > span {
    font-size: 8px;
    color: #111111;
    width: 31px;
    text-align: center
}

.zoom-controls > i {
    width: 1px;
    height: 11px;
    background: #ffffff;
    margin: 0 3px
}

.canvas-hint {
    position: absolute;
    bottom: 61px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: #111111;
    white-space: nowrap;
    letter-spacing: .5px
}

.graph-bottom {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #dddddd;
    background: #ffffff;
    gap: 10px
}

.graph-bottom > div {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 8px;
    color: #111111
}

.small-leaf {
    color: #111111
}

.small-leaf .icon {
    width: 14px;
    height: 14px
}

.graph-bottom > button {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    color: #111111;
    white-space: nowrap
}

.graph-bottom > button .icon {
    width: 12px;
    height: 12px
}

.inspector {
    border: 1px solid #dddddd;
    border-radius: 9px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden
}

.inspector-top {
    height: 49px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dddddd
}

.inspector-top > span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    color: #111111
}

.inspector-top > span .icon {
    width: 13px;
    height: 13px
}

.inspector-top > .icon-button {
    width: 20px;
    height: 20px
}

.inspector-top > .icon-button .icon {
    width: 12px;
    height: 12px
}

.inspector-content {
    padding: 20px 18px 15px;
    flex: 1
}

.detail-badges {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.type-label {
    background: #ffffff;
    color: #111111;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 7px
}

.detail-badges .status {
    font-size: 7px
}

.inspector-content > h2 {
    font-size: 19px;
    font-weight: 550;
    letter-spacing: .5px;
    color: #111111;
    margin: 12px 0 9px
}

.detail-path {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
    color: #111111
}

.detail-path .icon {
    width: 9px;
    height: 9px
}

.detail-tabs {
    display: flex;
    gap: 23px;
    border-bottom: 1px solid #dddddd;
    margin-top: 21px
}

.detail-tabs > button {
    font-size: 9px;
    color: #111111;
    padding: 0 0 12px;
    position: relative
}

.detail-tabs > button.active {
    color: #111111;
    font-weight: 500
}

.detail-tabs > button.active:after {
    content: '';
    height: 2px;
    background: #ffffff;
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0
}

.detail-tabs > button > span {
    font-size: 7px;
    margin-left: 3px;
    color: #111111
}

.definition {
    padding-top: 19px
}

.definition h3, .attached-title h3 {
    margin: 0;
    font-size: 9px;
    font-weight: 500;
    color: #111111
}

.definition p {
    font-size: 9px;
    line-height: 2;
    color: #111111;
    margin: 10px 0 15px;
    letter-spacing: .15px
}

.mastery-box {
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px
}

.mastery-box > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.mastery-box > div > span {
    font-size: 8px;
    color: #111111
}

.mastery-box strong {
    font-size: 17px;
    font-weight: 500;
    color: #111111;
    line-height: 1
}

.mastery-box strong > small {
    font-size: 8px;
    margin-left: 2px
}

.mastery-track {
    height: 4px;
    background: #ffffff;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden
}

.mastery-track > span {
    display: block;
    height: 100%;
    background: #ffffff;
    border-radius: 3px
}

.mastery-box p {
    font-size: 7px;
    color: #111111;
    margin: 9px 0 0
}

.attached-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 23px 0 12px
}

.attached-title h3 {
    display: flex;
    align-items: center;
    gap: 5px
}

.attached-title h3 .icon {
    width: 12px;
    height: 12px
}

.attached-title > span {
    font-size: 8px;
    color: #111111
}

.attached-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 312px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent
}

.attached-card {
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 11px 11px 10px;
    width: 100%;
    background: white;
    text-align: left;
    flex-shrink: 0
}

.attached-card:hover {
    border-color: #dddddd;
    background: #ffffff;
    transform: translateX(1px)
}

.attached-card > div {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 7px;
    color: #111111
}

.card-number {
    color: #111111;
    background: #ffffff;
    border-radius: 3px;
    line-height: 15px;
    padding: 0 4px;
    font-size: 7px
}

.attached-card > div > .icon {
    margin-left: auto;
    width: 10px;
    height: 10px;
    color: #111111
}

.attached-card > p {
    font-size: 9px;
    color: #111111;
    line-height: 1.8;
    margin: 7px 0 8px
}

.attached-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 6px;
    color: #111111
}

.attached-footer i {
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%
}

.inspector-footer {
    padding: 13px 18px 15px;
    border-top: 1px solid #dddddd;
    background: #ffffff
}

.inspector-footer .primary-button {
    width: 100%;
    font-size: 9px;
    min-height: 36px;
    background: #ffffff
}

.inspector-footer .primary-button:hover {
    background: #ffffff
}

.inspector-footer .primary-button > .icon {
    width: 13px;
    height: 13px
}

.inspector-footer .primary-button > span {
    background: #ffffff;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 8px;
    margin-right: auto
}

.inspector-footer .primary-button > .icon:last-child {
    margin-left: auto
}

.inspector-footer > small {
    display: block;
    text-align: center;
    font-size: 6px;
    color: #111111;
    margin-top: 9px;
    letter-spacing: .2px
}

.cards-tab-note {
    font-size: 9px;
    color: #111111;
    line-height: 1.9;
    margin-top: 20px
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 1px;
    color: #111111;
    font-size: 7px
}

.page-footer > span:first-child {
    display: flex;
    align-items: center;
    gap: 5px
}

.page-footer .icon {
    width: 11px;
    height: 11px;
    color: #111111
}

.page-footer > span:last-child {
    font-size: 6px;
    letter-spacing: .3px
}

.page-footer i {
    font-style: normal;
    border-left: 1px solid #dddddd;
    padding-left: 9px;
    margin-left: 7px;
    color: #111111;
    font-size: 6px
}

.review-area {
    border: 1px solid #dddddd;
    border-radius: 10px;
    background-color: #ffffff;
    background-image: none;
    background-size: 18px 18px;
    min-height: 625px;
    overflow: hidden
}

.review-top {
    display: flex;
    justify-content: center;
    padding: 20px 25px
}

.session-progress {
    width: min(100%, 220px)
}

.session-progress > span {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #111111
}

.session-progress b {
    font-size: 10px;
    color: #111111;
    font-weight: 500
}

.session-progress em {
    font-style: normal;
    color: #111111;
    font-size: 8px
}

.session-progress > div {
    height: 3px;
    background: #ffffff;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 4px
}

.session-progress i {
    display: block;
    background: #ffffff;
    height: 100%;
    transition: width .3s
}

.review-focus {
    max-width: 620px;
    margin: 17px auto 0;
    padding: 0 20px
}

.review-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 8px;
    color: #111111;
    margin-bottom: 16px
}

.node-symbol.small {
    width: 22px;
    height: 22px;
    font-size: 10px;
    border-radius: 5px
}

.review-breadcrumb > button {
    font-size: 9px;
    color: #111111
}

.review-breadcrumb > .icon {
    width: 10px;
    height: 10px
}

.flashcard {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    min-height: 333px;
    box-shadow: none;
    padding: 22px 28px 0;
    cursor: pointer;
    transition: box-shadow .25s, transform .25s
}

.flashcard:hover {
    box-shadow: none
}

.flashcard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    letter-spacing: .7px;
    color: #111111
}

.flashcard-top > span:first-child {
    display: flex;
    gap: 6px;
    align-items: center
}

.flashcard-top .icon {
    width: 13px;
    height: 13px;
    color: #111111
}

.flashcard-top > span:last-child {
    font-size: 10px;
    color: #111111
}

.question-content {
    text-align: center;
    padding: 36px 12px 27px
}

.question-kicker {
    font-size: 8px;
    letter-spacing: 1px;
    color: #111111
}

.question-content h2 {
    font-size: 23px;
    line-height: 1.85;
    font-weight: 500;
    max-width: 460px;
    margin: 17px auto 24px;
    color: #111111
}

.question-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #111111
}

.question-decoration > span {
    height: 1px;
    width: 29px;
    background: #ffffff
}

.question-decoration .icon {
    height: 16px;
    width: 16px;
    stroke-width: 1.2
}

.question-content > p {
    font-size: 8px;
    color: #111111;
    margin: 11px 0 0
}

.flashcard-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #dddddd;
    gap: 10px;
    padding: 15px 0;
    margin-top: 10px;
    font-size: 7px;
    color: #111111
}

.flashcard-bottom > span {
    display: flex;
    align-items: center;
    gap: 5px
}

.flashcard-bottom .icon {
    width: 11px;
    height: 11px
}

.reveal-button {
    background: var(--accent);
    color: #111111;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    min-height: 43px;
    font-size: 11px;
    gap: 10px;
    margin-top: 19px;
    position: relative
}

.reveal-button:hover {
    background: #ffffff
}

.reveal-button .icon {
    width: 15px;
    height: 15px
}

.reveal-button kbd {
    position: absolute;
    right: 15px;
    border-color: #dddddd;
    color: #111111;
    font-size: 8px;
    padding: 2px 5px
}

.keyboard-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 7px;
    color: #111111;
    margin-top: 13px
}

.keyboard-hint > .icon {
    width: 12px;
    height: 12px
}

.review-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: #111111;
    font-size: 8px;
    margin: 29px 0 24px
}

.review-note > .icon {
    width: 13px;
    height: 13px
}

.answer-content {
    padding: 15px 0 8px;
    animation: answer-in .3s ease
}

.answer-content h2 {
    font-size: 17px;
    font-weight: 550;
    line-height: 1.8;
    color: #111111;
    margin: 6px 0 10px
}

.answer-content > p {
    font-size: 10px;
    line-height: 1.95;
    color: #111111;
    margin: 0 0 13px
}

.answer-content pre {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 10px;
    line-height: 1.8;
    padding: 15px 18px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    color: #111111;
    overflow: auto;
    margin: 0
}

.takeaway {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 14px;
    font-size: 8px;
    line-height: 1.8;
    color: #111111
}

.takeaway .icon {
    width: 13px;
    height: 13px;
    margin-top: 1px
}

.rating-header {
    display: flex;
    justify-content: space-between;
    color: #111111;
    font-size: 9px;
    margin: 20px 0 10px
}

.rating-header > span {
    font-size: 7px;
    color: #111111
}

.rating-buttons {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 10px
}

.rating {
    border: 1px solid;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 13px 5px 12px;
    gap: 6px
}

.rating strong {
    font-size: 11px;
    font-weight: 500
}

.rating > span {
    font-size: 7px;
    opacity: .7
}

.rating > kbd {
    position: absolute;
    left: 7px;
    top: 6px;
    border: none;
    padding: 0;
    font-size: 7px;
    color: inherit;
    opacity: .5
}

.rating.red {
    color: #111111;
    background: #ffffff;
    border-color: #dddddd
}

.rating.orange {
    color: #111111;
    background: #ffffff;
    border-color: #dddddd
}

.rating.blue {
    color: #111111;
    background: #ffffff;
    border-color: #dddddd
}

.rating.green {
    color: #111111;
    background: #ffffff;
    border-color: #dddddd
}

.rating:hover {
    filter: brightness(.98);
    transform: translateY(-3px);
    box-shadow: none
}

.completed {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
    text-align: center
}

.completed-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid #dddddd;
    box-shadow: none;
    background: #ffffff;
    color: #111111;
    border-radius: 50%;
    margin-bottom: 31px
}

.completed-icon > .icon {
    width: 30px;
    height: 30px;
    stroke-width: 1.3
}

.completed h2 {
    font-size: 26px;
    color: #111111;
    font-weight: 500;
    margin: 15px 0 9px
}

.completed > p {
    font-size: 10px;
    color: #111111;
    line-height: 1.8
}

.completed-stats {
    display: flex;
    gap: 38px;
    margin: 25px 0 33px
}

.completed-stats > div {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.completed-stats strong {
    font-size: 23px;
    font-weight: 500;
    color: #111111
}

.completed-stats span {
    font-size: 9px;
    color: #111111
}

#toast {
    position: fixed;
    bottom: 28px;
    left: calc(50% + var(--sidebar) / 2);
    transform: translate(-50%, 12px);
    padding: 12px 20px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: none;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 120;
    text-align: center;
    max-width: 90vw;
    white-space: nowrap
}

#toast.visible {
    opacity: 1;
    transform: translate(-50%, 0)
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #ffffff;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    animation: answer-in .15s
}

.modal {
    width: 510px;
    max-width: 100%;
    max-height: 85vh;
    overflow: auto;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 14px;
    box-shadow: none;
    padding: 25px
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px
}

.modal-header h2 {
    font-size: 17px;
    font-weight: 550;
    color: #111111;
    margin: 0
}

.modal-intro {
    font-size: 11px;
    line-height: 1.9;
    color: #111111;
    margin: 0 0 20px
}

.modal-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dddddd;
    background: white;
    border-radius: 7px;
    color: #111111
}

.modal-search > .icon {
    width: 17px;
    height: 17px
}

.modal-search > input {
    background: none;
    border: none;
    min-width: 0;
    width: 100%;
    font-size: 12px;
    color: #111111;
    outline: none
}

.modal-search kbd {
    font-size: 8px
}

.search-results {
    max-height: 52vh;
    overflow: auto;
    scrollbar-width: thin
}

.results-label {
    font-size: 9px;
    color: #111111;
    margin: 19px 0 8px;
    letter-spacing: .4px
}

.search-result {
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    width: 100%;
    padding: 10px 8px;
    border-radius: 6px
}

.search-result:hover {
    background: #ffffff
}

.search-result > span:not(.node-symbol) {
    font-size: 11px;
    line-height: 1.8;
    flex: 1;
    color: #111111
}

.search-result small {
    font-size: 8px;
    color: #111111;
    display: block
}

.search-result > .icon {
    width: 14px;
    height: 14px;
    color: #111111
}

.search-result > .icon:last-child {
    margin-left: auto
}

.modal form {
    display: flex;
    flex-direction: column
}

.modal label {
    font-size: 10px;
    color: #111111;
    display: block;
    margin-bottom: 8px
}

.modal form input, .modal textarea {
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 11px 12px;
    font-size: 12px;
    color: #111111;
    background: white;
    margin-bottom: 20px;
    resize: vertical;
    width: 100%
}

.modal input::placeholder, .modal textarea::placeholder {
    color: var(--muted);
    opacity: 1
}

.parent-info {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px;
    background: #ffffff;
    font-size: 10px;
    color: #111111;
    border-radius: 6px;
    margin-bottom: 20px
}

.parent-info .icon {
    width: 13px;
    height: 13px
}

.parent-info strong {
    color: #111111;
    font-weight: 400
}

.history-summary {
    display: flex;
    justify-content: space-around;
    background: #ffffff;
    border: 1px solid #dddddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px
}

.history-summary > div {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px
}

.history-summary strong {
    font-size: 24px;
    font-weight: 500;
    color: #111111
}

.history-summary span {
    font-size: 9px;
    color: #111111
}

.history-list {
    max-height: 45vh;
    overflow: auto
}

.history-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid #dddddd
}

.history-check {
    color: #111111;
    display: grid;
    place-items: center;
    background: #ffffff;
    border-radius: 50%;
    height: 26px;
    width: 26px;
    flex-shrink: 0
}

.history-check .icon {
    width: 13px;
    height: 13px
}

.history-row > div {
    flex: 1
}

.history-row strong {
    font-size: 10px;
    line-height: 1.8;
    color: #111111;
    font-weight: 400;
    display: block
}

.history-row small {
    font-size: 8px;
    color: #111111;
    display: block;
    margin-top: 4px
}

.history-rating {
    font-size: 8px;
    border-radius: 4px;
    padding: 3px 6px;
    background: #ffffff;
    color: #111111;
    flex-shrink: 0
}

.history-rating.r0 {
    background: #ffffff;
    color: #111111
}

.history-rating.r1 {
    background: #ffffff;
    color: #111111
}

.history-rating.r2 {
    background: #ffffff;
    color: #111111
}

.empty-small {
    text-align: center;
    padding: 25px 8px;
    color: #111111;
    font-size: 11px;
    line-height: 2
}

.empty-small > .icon {
    width: 28px;
    height: 28px;
    color: #111111;
    stroke-width: 1.2
}

.empty-small h3 {
    font-size: 15px;
    color: #111111;
    font-weight: 500
}

.empty-small p {
    font-size: 10px;
    line-height: 2
}

.empty-small .primary-button {
    margin-top: 12px
}

.help-steps > div {
    display: flex;
    gap: 15px;
    padding: 15px 0
}

.help-steps > div > .icon {
    width: 24px;
    height: 24px;
    color: #111111
}

.help-steps strong {
    font-size: 12px;
    font-weight: 500;
    color: #111111
}

.help-steps p {
    font-size: 11px;
    color: #111111;
    line-height: 1.9;
    margin: 6px 0 0
}

.prototype-note {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1.9;
    color: #111111;
    margin-top: 18px
}

.workspace-dialog {
    text-align: center
}

.workspace-dialog > .profile-avatar {
    height: 55px;
    width: 55px;
    font-size: 24px;
    margin: 15px auto
}

.workspace-dialog h3 {
    font-size: 18px;
    font-weight: 500;
    color: #111111
}

.workspace-dialog > p {
    font-size: 12px;
    color: #111111;
    line-height: 2
}

.workspace-dialog .prototype-note .icon {
    width: 15px;
    height: 15px;
    margin-right: 5px
}

@keyframes answer-in {
    from {
        opacity: 0;
        transform: translateY(6px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (min-width: 1600px) {
    :root {
        --sidebar: 238px
    }

    .sidebar {
        padding-left: 23px;
        padding-right: 23px
    }

    .knowledge-workspace {
        grid-template-columns:minmax(0, 1fr) 320px;
        gap: 22px
    }

    main {
        padding: 36px 40px 0
    }

    .graph-canvas {
        min-height: 610px
    }

    .knowledge-node {
        width: 190px;
        padding: 17px 15px 14px
    }

    .root-node {
        width: 204px
    }

    .node-heading strong {
        font-size: 12px
    }

    .knowledge-node p {
        font-size: 9px
    }

    .inspector-content {
        padding: 23px
    }

    .definition p {
        font-size: 10px
    }

    .attached-card > p {
        font-size: 10px
    }

    .attached-cards {
        max-height: 350px
    }

    .graph-world {
        height: calc(100% - 110px);
        top: 60px
    }

    h1 {
        font-size: 29px
    }

    .stats {
        padding: 24px 0
    }

    .stat {
        padding: 0 29px
    }

    .review-area {
        min-height: 680px
    }

    .review-focus {
        margin-top: 35px;
        max-width: 680px
    }

    .flashcard {
        min-height: 365px
    }

    .question-content {
        padding: 46px 20px 32px
    }

    .question-content h2 {
        font-size: 26px
    }

    .sidebar .growth-card p {
        font-size: 9px
    }
}

@media (max-width: 1250px) {
    :root {
        --sidebar: 190px
    }

    .sidebar {
        padding: 25px 13px 0
    }

    .brand > span:last-child {
        font-size: 21px
    }

    .brand small {
        font-size: 9px
    }

    .workspace > span:nth-child(2) {
        font-size: 10px
    }

    .workspace small {
        font-size: 6px
    }

    .search-button {
        gap: 4px
    }

    .search-button > span {
        font-size: 9px
    }

    .search-button kbd {
        font-size: 8px
    }

    .search-button > .icon {
        width: 12px
    }

    .topbar {
        padding: 0 23px
    }

    main {
        padding: 26px 23px 0
    }

    h1 {
        font-size: 21px
    }

    .primary-button {
        padding: 0 12px;
        font-size: 11px;
        min-height: 38px
    }

    .stats {
        margin: 24px 0 20px;
        padding: 17px 0
    }

    .stat {
        padding: 0 15px;
        gap: 9px
    }

    .stat-icon {
        width: 31px;
        height: 34px
    }

    .stat-icon > .icon {
        width: 17px;
        height: 17px
    }

    .stat-note {
        display: none
    }

    .stat strong {
        font-size: 21px
    }

    .stat strong small {
        font-size: 7px
    }

    .knowledge-workspace {
        grid-template-columns:minmax(0, 1fr) 260px;
        gap: 14px
    }

    .knowledge-node {
        width: 146px;
        padding: 12px 10px 10px
    }

    .node-heading {
        gap: 6px
    }

    .node-heading strong {
        font-size: 10px
    }

    .node-symbol {
        width: 23px;
        height: 23px;
        font-size: 12px
    }

    .knowledge-node p {
        font-size: 7px
    }

    .node-meta > span:first-child {
        font-size: 6px
    }

    .node-meta .status {
        font-size: 6px;
        padding: 2px 3px;
        gap: 3px
    }

    .root-node {
        width: 158px
    }

    .root-node .node-heading strong {
        font-size: 10px
    }

    .root-node .node-symbol {
        width: 25px;
        height: 25px;
        font-size: 10px
    }

    .root-node .node-meta {
        gap: 7px
    }

    .root-node .node-meta > span {
        font-size: 6px
    }

    .graph-context {
        left: 17px;
        font-size: 6px;
        gap: 5px
    }

    .graph-context > span:last-child {
        font-size: 6px
    }

    .inspector-content {
        padding: 18px 15px 13px
    }

    .inspector-content > h2 {
        font-size: 18px
    }

    .definition p {
        font-size: 8px
    }

    .graph-legend {
        gap: 8px;
        left: 14px
    }

    .graph-legend > span {
        font-size: 6px
    }

    .graph-bottom {
        padding: 16px 12px
    }

    .graph-bottom > div {
        font-size: 7px;
        gap: 4px
    }

    .graph-bottom > button {
        font-size: 7px
    }

    .graph-bottom > div .icon {
        width: 12px
    }

    .zoom-controls {
        right: 12px
    }

    .page-heading p {
        font-size: 9px
    }

    .eyebrow {
        font-size: 7px
    }

    .graph-canvas {
        min-height: 545px
    }

    .panel-toolbar {
        padding: 0 13px
    }

    .panel-title h2 {
        font-size: 11px
    }

    .count-label {
        font-size: 7px
    }

    .filter-button {
        font-size: 8px;
        padding: 4px;
        gap: 4px
    }

    .graph-actions {
        gap: 5px
    }
}

@media (max-width: 1050px) {
    .knowledge-workspace {
        display: block
    }

    .inspector {
        display: none
    }

    .inspector.mobile-open {
        display: flex;
        position: fixed;
        right: 15px;
        top: 90px;
        bottom: 20px;
        width: 300px;
        z-index: 40;
        box-shadow: none;
        overflow: auto
    }

    .inspector-content {
        flex: 1
    }

    .attached-cards {
        max-height: 310px
    }

    .knowledge-node {
        width: 175px;
        padding: 15px 13px 12px
    }

    .node-heading strong {
        font-size: 11px
    }

    .knowledge-node p {
        font-size: 8px
    }

    .node-meta > span:first-child {
        font-size: 7px
    }

    .node-meta .status {
        font-size: 7px
    }

    .root-node {
        width: 184px
    }

    .root-node .node-heading strong {
        font-size: 12px
    }

    .root-node .node-meta > span {
        font-size: 7px
    }

    .graph-canvas {
        height: 530px;
        min-height: 530px
    }

    .page-heading {
        gap: 10px
    }

    h1 {
        font-size: 20px
    }

    .stat {
        padding: 0 12px;
        gap: 8px
    }

    .stat strong {
        font-size: 20px
    }

    .stat strong small {
        font-size: 6px
    }

    .stat > div > span {
        font-size: 8px
    }

    .stat-icon {
        width: 28px;
        height: 30px
    }

    .stats {
        grid-template-columns:1fr 1fr 1fr 1fr
    }

    .mini-ring {
        width: 24px;
        height: 24px
    }

    .mini-ring:after {
        inset: 3px
    }

    .stat:last-child {
        gap: 6px
    }

    .stat:last-child .mini-ring {
        display: none
    }

    .inspector-footer .primary-button {
        min-height: 36px
    }

    .topbar-right {
        gap: 10px
    }

    .review-area {
        min-height: 620px
    }
}

@media (max-width: 760px) {
    :root {
        --sidebar: 68px
    }

    .sidebar {
        padding: 22px 10px 0;
        align-items: center
    }

    .brand {
        padding: 0
    }

    .brand-mark {
        width: 34px;
        height: 38px
    }

    .brand > span:last-child, .workspace, .search-button > span, .search-button > kbd, .nav-label, .main-nav > button > span, .main-nav > button > b, .collections, .sidebar-bottom, .growth-card {
        display: none
    }

    .search-button {
        width: 35px;
        height: 35px;
        padding: 0;
        display: grid;
        place-items: center;
        margin: 29px 0 19px;
        background: transparent;
        border: none
    }

    .search-button > .icon {
        width: 18px;
        height: 18px
    }

    .main-nav {
        gap: 13px
    }

    .main-nav > button {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center
    }

    .main-nav > button .icon {
        width: 19px;
        height: 19px
    }

    .topbar {
        height: 60px;
        padding: 0 19px
    }

    .breadcrumb {
        gap: 6px;
        font-size: 8px
    }

    .breadcrumb > span:first-child, .breadcrumb > .icon:first-of-type {
        display: none
    }

    .topbar-right {
        gap: 4px
    }

    .local-state {
        display: none
    }

    .topbar-right .icon-button {
        border: 0;
        padding: 0;
        width: 28px
    }

    .small-avatar {
        width: 25px;
        height: 25px;
        font-size: 10px
    }

    main {
        padding: 24px 18px 0
    }

    .eyebrow {
        font-size: 6px;
        letter-spacing: 1.4px
    }

    h1 {
        font-size: 19px;
        margin: 8px 0
    }

    .page-heading p {
        font-size: 8px;
        line-height: 1.8
    }

    .stats {
        margin: 22px 0 18px;
        grid-template-columns:1fr 1fr;
        row-gap: 22px;
        padding: 17px 0
    }

    .stat:nth-child(2) {
        border: 0
    }

    .stat {
        padding: 0 15px;
        gap: 10px
    }

    .stat strong {
        font-size: 22px
    }

    .stat strong small {
        font-size: 7px
    }

    .stat > div > span {
        font-size: 8px;
        margin-bottom: 7px
    }

    .stat-icon {
        width: 32px;
        height: 33px
    }

    .stat-note {
        display: block;
        font-size: 7px
    }

    .stat:last-child .mini-ring {
        display: block
    }

    .graph-canvas {
        height: 590px;
        min-height: 590px
    }

    .graph-world {
        width: 670px;
        left: 50%;
        margin-left: -335px;
        height: calc(100% - 125px);
        top: 67px
    }

    .knowledge-node {
        width: 158px;
        padding: 13px 11px 10px
    }

    .node-heading strong {
        font-size: 10px
    }

    .root-node {
        width: 170px
    }

    .root-node .node-heading strong {
        font-size: 11px
    }

    .graph-context {
        font-size: 6px;
        left: 15px;
        top: 19px;
        gap: 5px
    }

    .graph-context > span:last-child {
        display: none
    }

    .graph-bottom {
        padding: 14px 12px
    }

    .graph-bottom > div {
        font-size: 7px
    }

    .graph-bottom > button {
        font-size: 7px
    }

    .graph-bottom > div > span:last-child {
        max-width: 145px;
        line-height: 1.8
    }

    .graph-legend {
        bottom: 24px
    }

    .graph-legend > span {
        font-size: 6px
    }

    .canvas-hint {
        bottom: 65px;
        font-size: 6px
    }

    .zoom-controls {
        right: 10px;
        bottom: 17px;
        padding: 2px
    }

    .zoom-controls > .icon-button {
        width: 21px;
        height: 21px
    }

    .zoom-controls > span {
        font-size: 7px;
        width: 26px
    }

    .panel-toolbar {
        height: 51px
    }

    .panel-title h2 {
        font-size: 10px
    }

    .panel-title > .icon {
        width: 14px
    }

    .count-label {
        font-size: 6px;
        padding: 3px 4px
    }

    .filter-button {
        font-size: 7px
    }

    .graph-actions > .icon-button {
        height: 23px;
        width: 23px
    }

    .panel-title {
        gap: 5px
    }

    .graph-actions {
        gap: 4px
    }

    .inspector.mobile-open {
        right: 12px;
        top: 72px;
        bottom: 12px;
        width: min(320px, calc(100vw - 92px))
    }

    .page-footer {
        font-size: 6px;
        gap: 10px;
        padding: 18px 0
    }

    .page-footer > span:last-child {
        font-size: 5px
    }

    .page-footer i {
        display: none
    }

    .page-footer > span:first-child {
        gap: 3px
    }

    .page-footer .icon {
        width: 10px;
        height: 10px
    }

    .review-top {
        padding: 17px 15px
    }

    .session-progress > span {
        font-size: 7px
    }

    .review-focus {
        padding: 0 15px;
        margin-top: 15px
    }

    .flashcard {
        padding: 18px 18px 0;
        min-height: 328px
    }

    .question-content {
        padding: 30px 0 23px
    }

    .question-content h2 {
        font-size: 21px;
        line-height: 1.9;
        margin: 18px auto 23px
    }

    .question-kicker {
        font-size: 7px
    }

    .question-content > p {
        font-size: 7px
    }

    .flashcard-top {
        font-size: 6px
    }

    .flashcard-bottom {
        font-size: 6px;
        padding: 14px 0
    }

    .rating-header {
        font-size: 8px;
        flex-direction: column;
        gap: 5px
    }

    .rating-header > span {
        font-size: 7px
    }

    .rating-buttons {
        gap: 6px
    }

    .rating {
        padding: 14px 3px 11px
    }

    .rating strong {
        font-size: 10px
    }

    .rating > span {
        font-size: 6px
    }

    .keyboard-hint {
        font-size: 6px
    }

    .answer-content h2 {
        font-size: 15px
    }

    .answer-content > p {
        font-size: 9px
    }

    .answer-content pre {
        font-size: 9px;
        padding: 12px
    }

    .takeaway {
        font-size: 7px
    }

    .review-note {
        font-size: 7px;
        margin-top: 25px
    }

    .review-area {
        min-height: 610px
    }

    .reveal-button {
        font-size: 10px
    }

    .reveal-button kbd {
        font-size: 7px;
        right: 10px
    }

    .completed h2 {
        font-size: 20px
    }

    .completed > p {
        font-size: 9px;
        max-width: 250px
    }

    .completed-stats {
        gap: 28px
    }

    .completed .eyebrow {
        font-size: 6px;
        letter-spacing: 1px
    }

    .completed .primary-button {
        font-size: 10px;
        width: 200px
    }

    .modal {
        padding: 20px
    }

    .modal-header h2 {
        font-size: 15px
    }

    #toast {
        left: 50%;
        font-size: 10px;
        white-space: normal;
        width: max-content;
        max-width: 85vw
    }
}

@media (max-width: 460px) {
    main {
        padding: 22px 12px 0
    }

    h1 {
        font-size: 16px;
        letter-spacing: 0
    }

    .page-heading p {
        font-size: 7px;
        max-width: 195px
    }

    .eyebrow {
        font-size: 5px;
        letter-spacing: 1px
    }

    .stat {
        padding: 0 10px;
        gap: 7px
    }

    .stat-icon {
        width: 28px;
        height: 30px
    }

    .stat-icon > .icon {
        width: 15px
    }

    .stat strong {
        font-size: 21px;
        gap: 4px
    }

    .stat strong small {
        font-size: 6px
    }

    .stat-note {
        display: none
    }

    .stats {
        row-gap: 20px
    }

    .graph-world {
        width: 535px;
        margin-left: -267.5px;
        transform: scale(calc(var(--zoom) * .82));
        height: calc(100% - 100px);
        top: 40px
    }

    .graph-canvas {
        height: 555px;
        min-height: 555px
    }

    .knowledge-node {
        width: 148px
    }

    .root-node {
        width: 160px
    }

    .root-node .node-heading strong {
        font-size: 10px
    }

    .node-heading strong {
        font-size: 9px
    }

    .knowledge-node p {
        font-size: 7px
    }

    .node-meta .status {
        font-size: 6px
    }

    .node-meta > span:first-child {
        font-size: 6px
    }

    .root-node .node-meta > span {
        font-size: 6px
    }

    .root-node .node-meta {
        gap: 7px
    }

    .graph-legend {
        gap: 7px;
        left: 9px
    }

    .legend-dot {
        width: 4px;
        height: 4px
    }

    .graph-legend > span {
        font-size: 5px;
        gap: 3px
    }

    .graph-context {
        font-size: 5px;
        letter-spacing: 1px
    }

    .zoom-controls > .icon-button {
        width: 18px;
        height: 20px
    }

    .zoom-controls > span {
        font-size: 6px;
        width: 23px
    }

    .zoom-controls .icon {
        width: 10px;
        height: 10px
    }

    .graph-bottom > div > span:last-child {
        font-size: 6px;
        max-width: 115px
    }

    .graph-bottom > button {
        font-size: 6px;
        gap: 4px
    }

    .graph-bottom {
        padding: 12px 9px
    }

    .graph-bottom > div {
        gap: 3px
    }

    .graph-bottom > div .icon {
        width: 11px
    }

    .panel-toolbar {
        padding: 0 10px
    }

    .count-label {
        display: none
    }

    .graph-actions {
        gap: 7px
    }

    .filter-button {
        font-size: 6px
    }

    .page-footer > span:last-child {
        display: none
    }

    .review-top {
        padding: 16px 10px
    }

    .review-focus {
        padding: 0 11px
    }

    .review-breadcrumb {
        font-size: 7px;
        gap: 5px
    }

    .review-breadcrumb > button {
        font-size: 8px
    }

    .flashcard {
        padding: 17px 14px 0;
        min-height: 330px
    }

    .question-content h2 {
        font-size: 19px
    }

    .question-content {
        padding: 32px 0 25px
    }

    .question-content > p {
        font-size: 6px
    }

    .flashcard-bottom > span:last-child {
        font-size: 5px;
        gap: 2px
    }

    .flashcard-bottom > span:first-child {
        font-size: 5px;
        gap: 3px
    }

    .flashcard-top {
        font-size: 5px
    }

    .flashcard-top .icon {
        width: 11px;
        height: 11px
    }

    .rating-buttons {
        gap: 4px
    }

    .rating strong {
        font-size: 9px
    }

    .rating > span {
        font-size: 5px
    }

    .rating > kbd {
        left: 5px;
        top: 5px;
        font-size: 6px
    }

    .keyboard-hint {
        font-size: 5px
    }

    .review-note {
        font-size: 6px
    }

    .answer-content h2 {
        font-size: 14px
    }

    .answer-content > p {
        font-size: 8px
    }

    .answer-content pre {
        font-size: 8px;
        padding: 10px
    }

    .takeaway {
        font-size: 6px
    }

    .review-area {
        min-height: 605px
    }

    .completed h2 {
        font-size: 17px
    }

    .completed-stats {
        gap: 23px
    }

    .completed > p {
        font-size: 8px
    }

    .completed .primary-button {
        width: 180px;
        font-size: 9px
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Comfortable reading sizes for the knowledge workspace. */
@media (min-width: 761px) {
    .workspace > span:nth-child(2) {
        font-size: 12px
    }

    .search-button > span {
        font-size: 10px
    }

    .nav-label {
        font-size: 10px
    }

    .main-nav > button {
        font-size: 13px
    }

    .collections > button {
        font-size: 12px
    }

    .sub-collection {
        font-size: 10px
    }

    .profile > span:nth-child(2) {
        font-size: 11px
    }

    .growth-card strong {
        font-size: 12px
    }

    .growth-card p {
        font-size: 9px
    }

    .breadcrumb {
        font-size: 11px
    }

    .local-state {
        font-size: 10px
    }

    .eyebrow {
        font-size: 9px
    }

    .page-heading p {
        font-size: 12px
    }

    .primary-button {
        font-size: 12px
    }

    .stat > div > span {
        font-size: 11px
    }

    .stat strong {
        font-size: 26px
    }

    .stat strong small {
        font-size: 10px
    }

    .stat-note {
        font-size: 9px
    }

    .panel-title h2 {
        font-size: 13px
    }

    .count-label {
        font-size: 9px
    }

    .filter-button {
        font-size: 10px
    }

    .graph-context {
        font-size: 8px
    }

    .graph-context > span:last-child {
        font-size: 8px
    }

    .knowledge-node {
        width: 180px;
        padding: 15px 13px 12px
    }

    .node-heading strong {
        font-size: 12px
    }

    .knowledge-node p {
        font-size: 10px;
        margin: 9px 0 12px
    }

    .node-meta > span:first-child {
        font-size: 9px
    }

    .node-meta .status {
        font-size: 8px
    }

    .node-meta .icon {
        width: 11px;
        height: 11px
    }

    .root-node {
        width: 196px
    }

    .root-node .node-heading strong {
        font-size: 13px
    }

    .root-overline {
        font-size: 8px
    }

    .root-node p {
        font-size: 10px
    }

    .root-node .node-meta > span {
        font-size: 9px
    }

    .root-node .node-meta {
        gap: 9px
    }

    .selected-node-label {
        font-size: 8px;
        bottom: -22px
    }

    .graph-legend > span {
        font-size: 9px
    }

    .graph-bottom > div {
        font-size: 10px
    }

    .graph-bottom > button {
        font-size: 10px
    }

    .canvas-hint {
        font-size: 9px
    }

    .zoom-controls > span {
        font-size: 10px
    }

    .knowledge-workspace {
        height: 650px;
        grid-template-columns:minmax(0, 1fr) 300px
    }

    .graph-canvas {
        height: auto;
        min-height: 0
    }

    .inspector-content {
        overflow: auto;
        min-height: 0;
        scrollbar-width: thin;
        scrollbar-color: #cccccc transparent
    }

    .inspector-top > span {
        font-size: 11px
    }

    .type-label {
        font-size: 9px
    }

    .detail-badges .status {
        font-size: 9px
    }

    .inspector-content > h2 {
        font-size: 22px
    }

    .detail-path {
        font-size: 9px
    }

    .detail-tabs > button {
        font-size: 11px
    }

    .definition h3, .attached-title h3 {
        font-size: 11px
    }

    .definition p {
        font-size: 12px;
        line-height: 1.9;
        color: #111111
    }

    .mastery-box > div > span {
        font-size: 10px
    }

    .mastery-box p {
        font-size: 9px
    }

    .attached-title > span {
        font-size: 10px
    }

    .attached-card > div {
        font-size: 9px
    }

    .card-number {
        font-size: 9px
    }

    .attached-card > p {
        font-size: 11px;
        color: #111111
    }

    .attached-footer {
        font-size: 8px
    }

    .attached-cards {
        max-height: none;
        overflow: visible
    }

    .inspector-footer .primary-button {
        font-size: 11px;
        min-height: 39px
    }

    .inspector-footer > small {
        font-size: 8px
    }

    .cards-tab-note {
        font-size: 11px
    }

    .page-footer {
        font-size: 9px
    }

    .page-footer > span:last-child {
        font-size: 8px
    }

    .page-footer i {
        font-size: 7px
    }

    .session-progress > span {
        font-size: 10px
    }

    .session-progress b {
        font-size: 12px
    }

    .session-progress em {
        font-size: 10px
    }

    .review-breadcrumb {
        font-size: 10px
    }

    .review-breadcrumb > button {
        font-size: 11px
    }

    .flashcard-top {
        font-size: 10px
    }

    .question-kicker {
        font-size: 10px
    }

    .question-content > p {
        font-size: 10px
    }

    .flashcard-bottom {
        font-size: 9px
    }

    .reveal-button {
        font-size: 13px;
        min-height: 46px
    }

    .keyboard-hint {
        font-size: 9px
    }

    .review-note {
        font-size: 10px
    }

    .answer-content h2 {
        font-size: 19px
    }

    .answer-content > p {
        font-size: 12px;
        line-height: 1.9
    }

    .answer-content pre {
        font-size: 12px
    }

    .takeaway {
        font-size: 10px
    }

    .rating-header {
        font-size: 11px
    }

    .rating-header > span {
        font-size: 9px
    }

    .rating strong {
        font-size: 13px
    }

    .rating > span {
        font-size: 9px
    }

    .rating > kbd {
        font-size: 9px
    }

    .review-focus {
        max-width: 690px
    }

    .review-area {
        min-height: 650px
    }

    .review-focus .question-content {
        padding: 38px 12px 27px
    }

    .review-focus .question-content h2 {
        font-size: 26px;
        max-width: 530px
    }

    .help-steps p {
        font-size: 12px
    }

    .prototype-note {
        font-size: 11px
    }

    .search-result > span:not(.node-symbol) {
        font-size: 12px
    }

    .search-result small {
        font-size: 10px
    }
}

@media (min-width: 1181px) and (max-width: 1370px) {
    .knowledge-node {
        width: 162px;
        padding: 13px 10px 10px
    }

    .node-heading {
        gap: 6px
    }

    .node-heading strong {
        font-size: 11px
    }

    .node-symbol {
        width: 24px;
        height: 24px
    }

    .knowledge-node p {
        font-size: 9px
    }

    .node-meta > span:first-child {
        font-size: 8px
    }

    .node-meta .status {
        font-size: 7px
    }

    .root-node {
        width: 178px
    }

    .root-node .node-heading strong {
        font-size: 12px
    }

    .root-node .node-meta > span {
        font-size: 8px
    }

    .root-node .node-meta {
        gap: 7px
    }

    .graph-context > span:last-child {
        display: none
    }

    .graph-legend {
        gap: 9px;
        left: 14px
    }

    .graph-legend > span {
        font-size: 8px
    }

    .graph-bottom > div {
        font-size: 8px
    }

    .graph-bottom > button {
        font-size: 8px
    }

    .knowledge-workspace {
        grid-template-columns:minmax(0, 1fr) 280px;
        gap: 15px
    }
}

@media (min-width: 761px) and (max-width: 1180px) {
    .knowledge-workspace {
        display: block;
        height: 640px
    }

    .graph-panel {
        height: 100%
    }

    .graph-canvas {
        height: auto;
        min-height: 0
    }

    .inspector {
        display: none
    }

    .inspector.mobile-open {
        display: flex;
        position: fixed;
        right: 16px;
        top: 86px;
        bottom: 20px;
        width: 330px;
        z-index: 40;
        box-shadow: none;
        overflow: hidden;
        height: auto
    }

    .inspector-content {
        padding: 20px
    }

    .inspector-footer .primary-button {
        min-height: 39px
    }

    .definition p {
        font-size: 12px
    }

    .attached-cards {
        max-height: none
    }

    .graph-world {
        height: calc(100% - 100px);
        top: 50px
    }

    .stat {
        padding: 0 15px
    }

    .stat strong small {
        font-size: 8px
    }

    .stat > div > span {
        font-size: 10px
    }

    .page-heading p {
        font-size: 11px
    }

    .primary-button {
        font-size: 11px
    }

    .search-button > span {
        font-size: 9px
    }

    .graph-context > span:last-child {
        font-size: 8px
    }

    .breadcrumb {
        font-size: 10px
    }
}

@media (min-width: 761px) and (max-width: 930px) {
    .graph-world {
        transform: scale(calc(var(--zoom) * .88));
        width: 700px;
        left: 50%;
        margin-left: -350px
    }

    .stat {
        gap: 8px;
        padding: 0 12px
    }

    .stat > div > span {
        font-size: 9px
    }

    .stat strong small {
        font-size: 7px
    }

    .stat strong {
        font-size: 24px
    }

    .stat-icon {
        width: 30px;
        height: 32px
    }

    .graph-legend > span {
        font-size: 8px
    }

    .graph-bottom > div, .graph-bottom > button {
        font-size: 9px
    }

    .canvas-hint {
        font-size: 8px
    }

    .page-heading p {
        font-size: 10px
    }
}

@media (max-width: 760px) {
    .graph-canvas {
        overflow-x: auto;
        overflow-y: hidden
    }

    .graph-world {
        width: 610px;
        left: 0;
        margin-left: 0
    }

    .graph-canvas .graph-context {
        position: sticky;
        left: 15px;
        top: 20px;
        width: max-content
    }

    .graph-legend {
        position: sticky;
        left: 14px;
        top: 548px;
        width: max-content
    }

    .zoom-controls {
        position: sticky;
        left: calc(100% - 131px);
        top: 535px;
        width: max-content
    }

    .canvas-hint {
        position: sticky;
        top: 500px;
        left: 50%;
        display: block;
        width: max-content;
        transform: translateX(-50%)
    }

    .graph-world {
        height: calc(100% - 125px);
        top: 63px
    }

    .node-heading strong {
        font-size: 12px
    }

    .knowledge-node p {
        font-size: 9px
    }

    .node-meta > span:first-child {
        font-size: 8px
    }

    .node-meta .status {
        font-size: 7px
    }

    .knowledge-node {
        width: 160px
    }

    .root-node {
        width: 174px
    }

    .root-node .node-heading strong {
        font-size: 12px
    }

    .root-node .node-meta > span {
        font-size: 8px
    }

    .root-node .node-meta {
        gap: 8px
    }

    .canvas-hint {
        font-size: 8px
    }

    .question-kicker, .question-content > p {
        font-size: 9px
    }

    .flashcard-top {
        font-size: 8px
    }

    .flashcard-bottom > span:first-child, .flashcard-bottom > span:last-child {
        font-size: 8px
    }

    .rating > span {
        font-size: 8px
    }

    .rating strong {
        font-size: 12px
    }

    .rating-header {
        font-size: 10px
    }

    .rating-header > span, .keyboard-hint {
        font-size: 8px
    }

    .answer-content > p {
        font-size: 11px
    }

    .answer-content pre {
        font-size: 10px
    }

    .takeaway {
        font-size: 9px
    }

    .review-note {
        font-size: 8px
    }

    .inspector-content > h2 {
        font-size: 22px
    }

    .definition h3, .attached-title h3 {
        font-size: 11px
    }

    .definition p {
        font-size: 12px;
        line-height: 1.9;
        color: #111111
    }

    .detail-tabs > button {
        font-size: 11px
    }

    .attached-card > p {
        font-size: 11px
    }

    .attached-card > div, .attached-footer {
        font-size: 9px
    }

    .inspector-content {
        overflow: auto;
        min-height: 0
    }

    .inspector-top > span {
        font-size: 11px
    }

    .inspector-footer .primary-button {
        font-size: 11px
    }

    .attached-cards {
        max-height: none;
        overflow: visible
    }

    .mastery-box > div > span {
        font-size: 10px
    }

    .mastery-box p {
        font-size: 9px
    }

    .type-label, .detail-badges .status {
        font-size: 9px
    }

    .detail-path {
        font-size: 9px
    }

    .inspector-footer > small {
        font-size: 8px
    }

    .attached-title > span {
        font-size: 10px
    }
}

@media (max-width: 460px) {
    .graph-world {
        transform: scale(var(--zoom));
        width: 570px;
        left: 0;
        margin-left: 0;
        height: calc(100% - 110px);
        top: 48px
    }

    .graph-canvas .graph-context {
        font-size: 7px;
        top: 18px
    }

    .graph-legend {
        top: 515px;
        gap: 9px
    }

    .graph-legend > span {
        font-size: 7px
    }

    .zoom-controls {
        top: 502px;
        left: calc(100% - 121px)
    }

    .canvas-hint {
        top: 470px;
        font-size: 7px;
        left: 150px
    }

    .panel-title h2 {
        font-size: 12px
    }

    .filter-button {
        font-size: 9px
    }

    .graph-bottom > div > span:last-child {
        font-size: 8px;
        max-width: 125px
    }

    .graph-bottom > button {
        font-size: 8px
    }

    .flashcard-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px
    }

    .question-content h2 {
        font-size: 20px
    }

    .question-kicker {
        font-size: 8px
    }

    .flashcard-top {
        font-size: 7px
    }

    .question-content > p {
        font-size: 8px
    }

    .review-breadcrumb {
        font-size: 8px
    }

    .rating > span {
        font-size: 7px
    }

    .rating strong {
        font-size: 11px
    }

    .rating-header > span {
        font-size: 8px;
        line-height: 1.8
    }

    .keyboard-hint {
        font-size: 7px;
        line-height: 1.8
    }

    .answer-content > p {
        font-size: 11px
    }

    .answer-content h2 {
        font-size: 17px
    }

    .answer-content pre {
        font-size: 10px
    }

    .takeaway {
        font-size: 9px
    }

    .review-area {
        min-height: 660px
    }

    .review-note {
        font-size: 7px
    }

    .stat > div > span {
        font-size: 9px
    }

    .stat strong small {
        font-size: 7px
    }

    .page-heading p {
        font-size: 9px
    }

    .page-heading {
        align-items: flex-start
    }

    .eyebrow {
        font-size: 6px
    }

    .page-heading h1 {
        font-size: 17px;
        max-width: 190px;
        line-height: 1.8
    }

    .topbar {
        padding: 0 12px
    }

    .breadcrumb {
        font-size: 9px
    }

    .stats {
        margin-top: 18px
    }

    .page-heading > div:first-child {
        min-width: 0
    }
}

.expanded-canvas {
    overflow: auto !important
}

.graph-world.expanded-world {
    left: 0 !important;
    margin-left: 0 !important;
    transform-origin: 0 0 !important;
    top: 45px !important
}

.reset-demo {
    font-size: 10px;
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: 24px;
    padding: 6px
}

.reset-demo:hover {
    color: #111111
}

.reset-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end
}

.knowledge-workspace.detail-hidden {
    grid-template-columns:minmax(0, 1fr)
}

/* Content-focused navigation and first-class question cards. */
.compact-heading {
    min-height: 42px;
    align-items: center
}

.compact-heading h1 {
    font-size: 25px;
    font-weight: 550;
    line-height: 1.5;
    margin: 0;
    max-width: none
}

.stats {
    margin-top: 21px;
    margin-bottom: 20px
}

.stats.stats-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 8px 0 12px;
    padding: 7px 0
}

.stats-compact .stat {
    min-height: 28px;
    padding: 0 12px;
    gap: 8px
}

.stats-compact .stat-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 6px
}

.stats-compact .stat-icon > .icon {
    width: 14px;
    height: 14px
}

.stats-compact .stat > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 7px
}

.stats-compact .stat > div > span {
    font-size: 11px;
    margin: 0
}

.stats-compact .stat strong {
    font-size: 16px;
    gap: 4px;
    letter-spacing: 0;
    white-space: nowrap
}

.stats-compact .stat strong small {
    font-size: 10px
}

.overview-tabs {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 20px
}

.overview-tabs > button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111111;
    font-size: 12px;
    padding: 0 2px 13px;
    position: relative
}

.overview-tabs > button > .icon {
    width: 16px;
    height: 16px
}

.overview-tabs > button > span {
    font-size: 10px;
    line-height: 18px;
    background: #ffffff;
    color: #111111;
    border-radius: 4px;
    min-width: 21px;
    padding: 0 5px;
    text-align: center
}

.overview-tabs > button.active {
    color: #111111;
    font-weight: 500
}

.overview-tabs > button.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
    border-radius: 2px
}

.overview-tabs > button.active > span {
    background: #ffffff;
    color: #111111
}

.text-button {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #111111;
    padding: 4px
}

.text-button .icon {
    width: 12px;
    height: 12px
}

.text-button:hover {
    color: #111111
}

.question-library {
    padding-bottom: 28px
}

.question-library-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px
}

.question-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0
}

.question-filter > label {
    font-size: 11px;
    color: #111111
}

.question-filter > select, .modal form > select {
    border: 1px solid #dddddd;
    background: #ffffff;
    border-radius: 6px;
    color: #111111;
    font-size: 12px;
    padding: 9px 28px 9px 10px;
    max-width: 200px
}

.question-count {
    font-size: 10px;
    color: #111111;
    white-space: nowrap
}

.question-library-actions {
    display: flex;
    gap: 9px;
    align-items: center
}

.question-library-actions .primary-button, .question-library-actions .secondary-button {
    min-height: 36px;
    font-size: 11px;
    padding: 0 12px
}

.question-library-actions .icon {
    width: 14px;
    height: 14px
}

.question-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 17px
}

.question-card {
    border: 1px solid #dddddd;
    background: #ffffff;
    border-radius: 9px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden
}

.question-card:hover {
    border-color: #dddddd;
    box-shadow: none
}

.question-card.back-side {
    border-color: #dddddd;
    background: #ffffff
}

.question-card-header {
    padding: 17px 17px 0;
    display: flex;
    align-items: center;
    gap: 8px
}

.question-type {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #dddddd;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap
}

.question-type .icon {
    height: 12px;
    width: 12px
}

.question-category {
    font-size: 9px;
    color: #111111
}

.question-state {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 8px;
    color: #111111;
    white-space: nowrap
}

.question-state > i {
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%
}

.question-state.rated {
    color: #111111
}

.question-state.r0 {
    color: #111111
}

.question-state.r1 {
    color: #111111
}

.question-state.r2 {
    color: #111111
}

.question-state > i {
    background: currentColor
}

.question-card-content {
    padding: 20px 19px 14px;
    flex: 1;
    min-height: 154px;
    max-height: 238px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent;
    overflow-wrap: anywhere
}

.question-side-label {
    font-size: 9px;
    color: #111111;
    display: block;
    margin-bottom: 9px
}

.question-card-content > h3 {
    font-size: 14px;
    line-height: 1.85;
    font-weight: 500;
    color: #111111;
    margin: 0
}

.question-card-content > p {
    font-size: 11px;
    line-height: 1.9;
    color: #111111;
    margin: 11px 0 0
}

.back-side .question-side-label {
    color: #111111
}

.question-node-link {
    display: flex;
    align-items: center;
    gap: 7px;
    text-align: left;
    font-size: 10px;
    color: #111111;
    margin: 0 18px 16px;
    padding: 6px 7px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 5px;
    min-height: 33px;
    overflow-wrap: anywhere
}

.question-node-link > .icon {
    height: 11px;
    width: 11px;
    margin-left: auto;
    color: #111111
}

.question-node-link .node-symbol {
    width: 21px;
    height: 21px;
    font-size: 10px
}

.question-node-link:hover {
    background: #ffffff;
    color: #111111
}

.question-card-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #dddddd;
    padding: 11px 17px;
    background: #ffffff;
    gap: 8px
}

.question-card-footer > button {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #111111;
    padding: 3px 0
}

.question-card-footer > button > .icon {
    height: 13px;
    width: 13px
}

.question-card-footer > button:hover {
    color: #111111
}

.question-card-footer > .question-review {
    color: #111111
}

.modal form > select {
    margin-bottom: 20px;
    max-width: none;
    width: 100%;
    padding: 11px 12px
}

.workspace > span:nth-child(2) {
    line-height: 1.7
}

.profile {
    padding-top: 20px
}

.question-content {
    min-height: 229px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 12px !important
}

.question-content > h2 {
    margin: 0 auto !important
}

.review-focus {
    margin-bottom: 30px
}

.question-filter > select:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px
}

main {
    padding-bottom: 24px
}

.inspector-footer {
    padding-top: 14px;
    padding-bottom: 14px
}

.attached-title {
    margin-top: 20px
}

.mastery-box {
    margin-top: 4px
}

.question-card-content::-webkit-scrollbar {
    width: 4px
}

.question-card-content::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 5px
}

@media (min-width: 761px) {
    .knowledge-workspace {
        height: clamp(560px, calc(100dvh - 320px), 700px)
    }

    .graph-world {
        height: calc(100% - 94px);
        top: 40px
    }

    .review-area {
        min-height: calc(100dvh - 270px)
    }

    .review-focus {
        margin-top: 10px
    }

    .review-top {
        padding-top: 20px;
        padding-bottom: 20px
    }

    .flashcard {
        min-height: 315px
    }

    .question-content {
        min-height: 238px
    }

    .question-content > h2 {
        font-size: 25px !important
    }

    .page-heading.compact-heading > h1 {
        font-size: 25px
    }

    .question-grid {
        align-items: stretch
    }

    .question-library-toolbar .secondary-button > .icon {
        width: 14px;
        height: 14px
    }
}

@media (max-width: 1300px) and (min-width: 761px) {
    .question-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .question-card-content > h3 {
        font-size: 15px
    }

    .question-card-content {
        min-height: 150px
    }

    .question-card-header {
        gap: 9px
    }

    .question-type {
        font-size: 10px
    }

    .question-category {
        font-size: 10px
    }

    .question-state {
        font-size: 9px
    }

    .question-card-footer > button {
        font-size: 11px
    }

    .question-node-link {
        font-size: 11px
    }
}

@media (max-width: 760px) {
    .compact-heading h1, .page-heading.compact-heading > h1 {
        font-size: 22px;
        line-height: 1.5;
        max-width: none
    }

    .compact-heading {
        align-items: center;
        gap: 10px;
        min-height: 38px
    }

    .stats {
        margin-top: 18px;
        margin-bottom: 20px
    }

    .overview-tabs {
        gap: 24px;
        margin-bottom: 18px
    }

    .overview-tabs > button {
        font-size: 11px;
        gap: 6px;
        padding-bottom: 12px
    }

    .overview-tabs > button .icon {
        width: 14px;
        height: 14px
    }

    .overview-tabs > button > span {
        font-size: 9px
    }

    .question-library-toolbar {
        align-items: flex-start;
        gap: 13px;
        flex-direction: column;
        margin-bottom: 15px
    }

    .question-filter {
        width: 100%;
        gap: 8px
    }

    .question-filter > label {
        font-size: 11px;
        flex-shrink: 0
    }

    .question-filter > select {
        font-size: 11px;
        padding: 8px 24px 8px 9px;
        max-width: 185px
    }

    .question-count {
        font-size: 10px;
        margin-left: auto
    }

    .question-library-actions {
        width: 100%;
        justify-content: flex-end
    }

    .question-library-actions .primary-button, .question-library-actions .secondary-button {
        min-height: 35px;
        font-size: 10px;
        padding: 0 11px
    }

    .question-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .question-card-header {
        padding: 13px 12px 0;
        gap: 5px;
        flex-wrap: wrap
    }

    .question-type {
        font-size: 8px;
        gap: 4px;
        padding: 3px 5px
    }

    .question-category {
        font-size: 8px
    }

    .question-state {
        font-size: 7px
    }

    .question-card-content {
        padding: 17px 14px 14px;
        min-height: 158px;
        max-height: 240px
    }

    .question-card-content > h3 {
        font-size: 13px
    }

    .question-card-content > p {
        font-size: 11px
    }

    .question-node-link {
        margin: 0 12px 13px;
        font-size: 10px;
        padding: 5px
    }

    .question-card-footer {
        padding: 10px 13px
    }

    .question-card-footer > button {
        font-size: 10px
    }

    .question-card-footer > button > .icon {
        width: 12px;
        height: 12px
    }

    .question-side-label {
        font-size: 9px
    }

    .graph-canvas {
        height: 550px;
        min-height: 550px
    }

    .graph-world {
        height: calc(100% - 115px);
        top: 35px
    }

    .graph-legend {
        top: 515px
    }

    .zoom-controls {
        top: 502px
    }

    .review-area {
        min-height: 560px
    }

    .review-top {
        padding-bottom: 12px
    }

    .review-focus {
        margin-top: 14px
    }

    .review-focus .question-content {
        padding: 25px 0 !important;
        min-height: 215px
    }

    .flashcard {
        min-height: 290px
    }

    .flashcard-top {
        font-size: 9px
    }

    .review-focus .question-content > h2 {
        font-size: 21px
    }

    .question-library {
        padding-bottom: 15px
    }

    .profile {
        padding-bottom: 20px
    }
}

@media (max-width: 550px) {
    .question-grid {
        grid-template-columns:1fr;
        gap: 14px
    }

    .question-card-header {
        gap: 9px;
        padding: 16px 16px 0
    }

    .question-type {
        font-size: 9px
    }

    .question-category {
        font-size: 9px
    }

    .question-state {
        font-size: 9px
    }

    .question-card-content {
        min-height: 138px;
        padding: 18px 17px 16px
    }

    .question-card-content > h3 {
        font-size: 15px;
        line-height: 1.85
    }

    .question-node-link {
        margin: 0 15px 15px;
        font-size: 11px;
        padding: 6px 7px
    }

    .question-card-footer {
        padding: 12px 16px
    }

    .question-card-footer > button {
        font-size: 11px
    }

    .question-filter > select {
        max-width: 170px;
        min-width: 0
    }

    .question-filter > label {
        font-size: 10px
    }

    .question-count {
        font-size: 9px
    }

    .compact-heading h1, .page-heading.compact-heading > h1 {
        font-size: 21px
    }

    .question-library-actions .primary-button, .question-library-actions .secondary-button {
        font-size: 10px
    }

    .question-card-content > p {
        font-size: 12px
    }

    .question-filter {
        gap: 7px
    }
}

/* Knowledge cards, document dialogs, and card metadata. */
[hidden] {
    display: none !important
}

.sidebar .search-button {
    margin-top: 32px
}

.collections > button > i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #ffffff
}

.page-heading {
    min-height: 42px;
    align-items: center
}

.page-heading > h1 {
    font-size: 25px;
    line-height: 1.5;
    margin: 0;
    max-width: none
}

.main-shell main {
    padding-bottom: 100px
}

.map-workspace {
    display: flex;
    flex-direction: column;
    min-height: 100dvh
}

.map-workspace > .topbar {
    flex-shrink: 0
}

.map-workspace main {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding-bottom: 16px
}

.main-nav {
    gap: 8px
}

.map-panel {
    flex: 1;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff
}

.map-panel-toolbar {
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dddddd;
    padding: 0 19px;
    gap: 14px
}

.map-panel-toolbar > div {
    display: flex;
    align-items: center;
    gap: 10px
}

.map-panel-toolbar > div > .icon {
    width: 16px;
    height: 16px;
    color: #111111
}

.map-panel-toolbar h2 {
    font-size: 12px;
    font-weight: 500;
    color: #111111;
    margin: 0
}

.map-panel-toolbar .secondary-button {
    min-height: 30px;
    font-size: 10px;
    padding: 0 10px;
    gap: 5px
}

.map-panel-toolbar .secondary-button > .icon {
    width: 13px;
    height: 13px
}

.map-surface {
    min-height: 0;
    flex: 1;
    /* 滚动区域内的画布尺寸不参与面板高度计算。 */
    contain: size;
    overflow: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent;
    background-color: #ffffff;
    background-image: none;
    background-size: 18px 18px;
    overscroll-behavior: contain
}

.map-stage {
    position: relative;
    min-width: 100%;
    min-height: 100%
}

.map-world {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0
}

.map-connections {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    pointer-events: none
}

.map-connections .connection {
    stroke: #bbbbbb;
    stroke-width: 1.4;
    fill: none
}

.map-connections .connection.selected {
    stroke: #bbbbbb;
    stroke-width: 1.8
}

.map-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 226px;
    border: 1px solid #dddddd;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: none;
    z-index: 2;
    transition: border-color .18s, box-shadow .18s
}

.map-node:hover, .map-node:focus-within {
    z-index: 20;
    border-color: #dddddd;
    box-shadow: none
}

.map-node.questions-open {
    z-index: 21
}

.map-node.is-selected {
    border-color: #dddddd;
    box-shadow: none
}

.map-node.dimmed {
    opacity: .35
}

.map-node.dimmed:hover, .map-node.dimmed:focus-within, .map-node.dimmed.questions-open {
    opacity: 1
}

.map-node-main {
    width: 100%;
    height: 168px;
    padding: 14px 16px 46px;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-radius: 9px
}

.map-card-type {
    font-size: 8px;
    letter-spacing: .4px;
    color: #111111;
    margin: 0 0 10px
}

.map-node-title {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 27px
}

.map-node-title .node-symbol {
    width: 27px;
    height: 27px;
    font-size: 12px
}

.map-node-title strong {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 550;
    color: #111111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere
}

.map-node-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.85;
    color: #111111;
    margin-top: 10px;
    overflow-wrap: anywhere
}

.map-root {
    background: #ffffff;
    border-color: #dddddd
}

.map-root .map-node-title strong {
    color: #111111
}

.map-root .node-symbol {
    background: #ffffff;
    color: #111111;
    font-size: 12px
}

.map-root .map-node-summary {
    color: #111111
}

.node-plus {
    position: absolute;
    top: -11px;
    left: -11px;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid #dddddd;
    border-radius: 7px;
    background: #ffffff;
    color: #111111;
    box-shadow: none;
    z-index: 3
}

.node-plus .icon {
    width: 14px;
    height: 14px
}

.node-plus:hover {
    background: #ffffff;
    color: #111111;
    border-color: #dddddd
}

.map-node-bottom {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px
}

.map-node .status {
    font-size: 8px;
    padding: 4px 5px
}

.root-node-count {
    font-size: 9px;
    color: #111111
}

.map-node-progress {
    height: 3px;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 9px;
    background: #ffffff;
    border-radius: 3px;
    overflow: hidden;
    pointer-events: none
}

.map-node-progress > i {
    display: block;
    height: 100%;
    background: #ffffff;
    border-radius: 3px
}

.map-root .map-node-progress {
    background: #ffffff
}

.node-question-menu {
    position: relative;
    margin-left: auto
}

.node-questions-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: #111111;
    padding: 4px 6px;
    border-radius: 4px;
    background: #ffffff
}

.node-questions-trigger > .icon {
    width: 12px;
    height: 12px
}

.node-questions-trigger > .icon:last-child {
    width: 9px;
    height: 9px;
    color: #111111
}

.node-questions-trigger:hover {
    background: #ffffff;
    color: #111111
}

.node-questions-trigger[aria-expanded="true"] > .icon:last-child {
    transform: rotate(180deg)
}

.node-questions-popover {
    position: absolute;
    right: -5px;
    bottom: calc(100% - 1px);
    width: 285px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: none;
    border-radius: 8px;
    z-index: 50;
    cursor: default
}

.popup-below .node-questions-popover {
    top: calc(100% - 1px);
    bottom: auto
}

.node-questions-heading {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #111111;
    padding: 5px 7px 10px;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 4px
}

.node-questions-heading > small {
    font-size: 9px;
    color: #111111
}

.node-question-titles {
    max-height: 208px;
    overflow: auto;
    scrollbar-width: thin
}

.node-question-titles > button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 10px 7px;
    border-radius: 5px;
    font-size: 11px;
    color: #111111;
    line-height: 1.7
}

.node-question-titles > button:hover {
    background: #ffffff
}

.node-question-titles > button > .icon {
    width: 13px;
    height: 13px;
    color: #111111
}

.node-question-titles > button > span {
    flex: 1;
    overflow-wrap: anywhere
}

.node-question-titles > button > .icon:last-child {
    width: 10px
}

.node-question-titles > p {
    padding: 10px 7px;
    font-size: 10px;
    color: #111111
}

.map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 47px;
    flex-shrink: 0;
    border-top: 1px solid #dddddd;
    padding: 0 16px;
    background: #ffffff
}

.map-footer .graph-legend {
    position: static;
    display: flex;
    align-items: center;
    gap: 17px
}

.map-footer .graph-legend > span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: #111111
}

.graph-legend i {
    height: 5px;
    width: 5px;
    border-radius: 50%
}

.graph-legend i.mastered {
    background: #ffffff
}

.graph-legend i.learning {
    background: #ffffff
}

.graph-legend i.weak {
    background: #ffffff
}

.map-footer .zoom-controls {
    position: static;
    display: flex;
    align-items: center;
    padding: 1px 3px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none
}

.map-footer .zoom-controls > span {
    font-size: 9px;
    width: 35px;
    text-align: center;
    color: #111111
}

.map-footer .zoom-controls > .icon-button {
    height: 25px;
    width: 26px
}

.map-footer .zoom-controls .icon {
    width: 13px;
    height: 13px
}

.workspace-dock {
    position: relative;
    margin-top: auto;
    margin-bottom: 20px
}

.workspace-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    box-shadow: none;
    padding: 10px 12px;
    width: 100%;
    text-align: left
}

.workspace-trigger > .profile-avatar {
    height: 32px;
    width: 32px;
    font-size: 13px;
    flex-shrink: 0
}

.workspace-trigger > span:nth-child(2) {
    font-size: 11px;
    color: #111111;
    flex: 1;
    min-width: 0;
    white-space: nowrap
}

.workspace-trigger small {
    display: block;
    font-size: 8px;
    color: #111111;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis
}

.workspace-trigger > .icon {
    width: 16px;
    height: 16px;
    color: #111111
}

.workspace-trigger:hover {
    border-color: #dddddd;
    background: #ffffff
}

.workspace-menu {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 0;
    width: 210px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 9px;
    box-shadow: none
}

.workspace-menu > button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 12px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #111111
}

.workspace-menu > button:hover {
    background: #ffffff
}

.workspace-menu > button > .icon {
    height: 17px;
    width: 17px;
    color: #111111
}

.workspace-menu small {
    margin-left: auto;
    font-size: 10px;
    color: #111111
}

.workspace-history-button {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #dddddd;
    width: 100%;
    border-radius: 6px;
    background: #ffffff;
    padding: 13px 12px;
    color: #111111;
    font-size: 12px
}

.workspace-history-button > .icon {
    height: 17px;
    width: 17px
}

.workspace-history-button > .icon:last-child {
    margin-left: auto;
    width: 13px
}

.modal.knowledge-dialog {
    width: 1020px;
    height: min(850px, 91dvh);
    max-width: calc(100vw - 48px);
    max-height: 91dvh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 13px
}

.knowledge-dialog > .modal-header {
    margin: 0;
    padding: 14px 25px;
    border-bottom: 1px solid #dddddd;
    flex-shrink: 0;
    background: #ffffff
}

.knowledge-dialog > .modal-header > h2 {
    font-size: 11px;
    font-weight: 400;
    color: #111111
}

.knowledge-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 26%);
    align-items: start;
    gap: 20px;
    padding: 24px 35px 20px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0
}

.knowledge-meta-top {
    display: flex;
    align-items: center;
    gap: 11px
}

.knowledge-meta-top > .node-symbol {
    width: 30px;
    height: 30px
}

.knowledge-meta-top .status {
    font-size: 9px
}

.knowledge-parent {
    font-size: 10px;
    color: #111111;
    margin-left: auto;
    text-align: right;
    max-width: 50%;
    overflow-wrap: anywhere
}

.knowledge-metadata > h1 {
    font-size: 27px;
    line-height: 1.5;
    font-weight: 550;
    margin: 15px 0 9px;
    overflow-wrap: anywhere;
    color: #111111;
    letter-spacing: .1px
}

.knowledge-metadata > p {
    font-size: 12px;
    line-height: 1.9;
    color: #111111;
    margin: 0;
    overflow-wrap: anywhere;
    max-height: 92px;
    overflow: auto
}

.knowledge-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 28px 35px 34px;
    background: white;
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent
}

.markdown-body {
    font-size: 14px;
    line-height: 1.95;
    color: #111111;
    overflow-wrap: anywhere;
    font-weight: 400
}

.markdown-body > :first-child {
    margin-top: 0
}

.markdown-body h1 {
    font-size: 27px;
    line-height: 1.5;
    font-weight: 550;
    color: #111111;
    letter-spacing: 0;
    margin: 26px 0 15px
}

.markdown-body h2 {
    font-size: 20px;
    font-weight: 550;
    line-height: 1.6;
    color: #111111;
    margin: 28px 0 13px;
    padding-bottom: 9px;
    border-bottom: 1px solid #dddddd
}

.markdown-body h3 {
    font-size: 17px;
    font-weight: 500;
    color: #111111;
    line-height: 1.7;
    margin: 23px 0 11px
}

.markdown-body h4, .markdown-body h5, .markdown-body h6 {
    font-size: 15px;
    line-height: 1.7;
    color: #111111;
    margin: 20px 0 10px
}

.markdown-body p {
    font-size: 14px;
    line-height: 1.95;
    margin: 12px 0;
    color: #111111
}

.markdown-body a {
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 3px
}

.markdown-body strong {
    font-weight: 600;
    color: #111111
}

.markdown-body ul, .markdown-body ol {
    padding-left: 25px;
    margin: 12px 0
}

.markdown-body li {
    margin: 5px 0
}

.markdown-body blockquote {
    margin: 19px 0;
    border-left: 3px solid #dddddd;
    background: #ffffff;
    border-radius: 0 5px 5px 0;
    padding: 9px 17px;
    color: #111111
}

.markdown-body blockquote p {
    margin: 4px 0;
    font-size: 13px;
    color: #111111
}

.markdown-body code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: .88em;
    color: #111111;
    border: 1px solid #dddddd;
    background: #ffffff;
    border-radius: 4px;
    padding: 2px 5px
}

.markdown-body pre {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 7px;
    padding: 18px 20px;
    overflow: auto;
    max-width: 100%;
    margin: 17px 0;
    line-height: 1.9;
    white-space: pre;
    text-align: left;
    overflow-wrap: normal
}

.markdown-body pre code {
    border: 0;
    background: none;
    border-radius: 0;
    padding: 0;
    font-size: 12px;
    color: #111111
}

.markdown-body table {
    border-collapse: collapse;
    display: block;
    max-width: 100%;
    overflow: auto;
    border-radius: 6px;
    font-size: 12px;
    margin: 18px 0
}

.markdown-body th, .markdown-body td {
    border: 1px solid #dddddd;
    padding: 10px 15px;
    min-width: 110px;
    text-align: left
}

.markdown-body th {
    background: #ffffff;
    color: #111111;
    font-weight: 500
}

.markdown-body tr:nth-child(even) {
    background: #ffffff
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px
}

.markdown-body hr {
    border: 0;
    border-top: 1px solid #dddddd;
    margin: 25px 0
}

.knowledge-dialog-footer {
    display: flex;
    justify-content: space-between;
    gap: 13px;
    padding: 15px 25px;
    border-top: 1px solid #dddddd;
    background: #ffffff;
    flex-shrink: 0
}

.knowledge-dialog-footer .primary-button, .knowledge-dialog-footer .secondary-button {
    font-size: 11px;
    min-height: 37px
}

.knowledge-dialog-footer .icon {
    width: 14px;
    height: 14px
}

.knowledge-related {
    min-width: 0
}

.knowledge-related > h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 550
}

.knowledge-related > h3 > span {
    padding: 2px 6px;
    border-radius: 4px;
    background: #eff4ff;
    color: #3b6bd9;
    font-size: 10px
}

.knowledge-question-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: min(112px, 20dvh);
    overflow-y: auto;
    padding: 3px;
    scrollbar-width: thin
}

.knowledge-question-list > button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-align: left;
    min-width: 0;
    width: 100%
}

.knowledge-question-list > button:hover {
    background: var(--soft)
}

.question-list-symbol {
    display: grid;
    place-items: center;
    height: 22px;
    width: 22px;
    border-radius: 5px;
    flex-shrink: 0
}

.question-list-symbol > .icon {
    height: 13px;
    width: 13px
}

.knowledge-question-list strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500
}

.knowledge-question-list > button > .icon {
    flex-shrink: 0;
    height: 13px;
    width: 13px;
    color: var(--muted)
}

.knowledge-related-empty {
    margin: 0;
    color: var(--muted);
    font-size: 12px
}

.modal.knowledge-editor-dialog {
    width: 1000px;
    height: min(890px, 93dvh);
    max-width: calc(100vw - 48px);
    max-height: 93dvh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.knowledge-editor-dialog > .modal-header {
    padding: 19px 27px;
    border-bottom: 1px solid #dddddd;
    margin: 0;
    flex-shrink: 0
}

.knowledge-editor-dialog > .modal-header > h2 {
    font-size: 17px
}

.knowledge-editor-dialog .knowledge-form {
    padding: 23px 28px;
    min-height: 0;
    overflow: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent
}

.metadata-fields {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px;
    flex-shrink: 0
}

.metadata-fields > label {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    color: #111111;
    gap: 8px;
    min-width: 0
}

.metadata-fields input, .metadata-fields textarea {
    margin: 0 !important;
    width: 100%;
    font-size: 12px !important;
    color: #111111 !important;
    border: 1px solid #dddddd;
    padding: 10px 12px !important
}

.metadata-fields > label {
    margin: 0 0 16px
}

.metadata-fields textarea {
    min-height: 65px;
    resize: vertical
}

.metadata-fields input {
    min-height: 42px
}

.knowledge-form .parent-info {
    padding: 9px 12px;
    font-size: 10px;
    margin: 0 0 17px;
    color: #111111;
    flex-shrink: 0
}

.knowledge-form .parent-info strong {
    color: #111111;
    font-weight: 400
}

.editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-shrink: 0
}

.editor-toolbar > label {
    font-size: 11px !important;
    margin: 0 !important
}

.editor-tabs {
    display: flex;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 3px
}

.editor-tabs > button {
    font-size: 10px;
    color: #111111;
    padding: 5px 10px;
    border-radius: 4px
}

.editor-tabs > button.active {
    color: #111111;
    background: white;
    box-shadow: none
}

.knowledge-form textarea.markdown-editor {
    flex: 1;
    min-height: 300px;
    resize: none;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 12px;
    color: #111111;
    background: #ffffff;
    line-height: 1.85;
    padding: 17px 19px;
    tab-size: 2;
    margin: 0 !important;
    white-space: pre;
    overflow: auto;
    overflow-wrap: normal
}

.editor-preview {
    flex: 1;
    min-height: 300px;
    padding: 19px 21px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: white;
    overflow: auto
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 19px 0 0;
    flex-shrink: 0
}

.form-footer .primary-button, .form-footer .secondary-button {
    font-size: 11px;
    min-height: 37px
}

.modal.question-editor-dialog {
    width: 730px;
    max-height: 92dvh
}

.question-editor-dialog .metadata-fields {
    gap: 16px
}

.modal.question-editor-dialog form > label {
    font-size: 11px
}

.modal.question-editor-dialog form > textarea {
    font-size: 12px;
    margin-bottom: 17px
}

.modal.question-editor-dialog form > select {
    font-size: 12px;
    margin-bottom: 20px
}

.question-image-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line)
}

.question-image-entry > span, .question-image-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6
}

.question-image-note {
    margin: 0 0 14px
}

.question-image-note:empty {
    display: none
}

.question-image-source {
    margin-bottom: 14px
}

.question-image-source > summary {
    cursor: pointer;
    font-size: 12px;
    color: var(--accent)
}

.question-image-source > img {
    display: block;
    max-width: 100%;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 6px
}

.question-image-review select {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    padding: 9px;
    margin: 6px 0 12px
}

.question-image-review select:required:invalid {
    color: var(--muted)
}

.question-image-review select option:not([value=""]) {
    color: #111827
}

.question-image-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    margin-bottom: 8px;
    scrollbar-width: thin
}

.question-image-tabs > button {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap
}

.question-image-tabs > button[aria-selected="true"] {
    border-color: #b6cafa;
    background: #eaf1ff;
    color: var(--accent)
}

.question-image-tabs [data-check] {
    display: flex;
    color: #15803d
}

.question-image-tabs [data-check] > .icon {
    width: 14px;
    height: 14px
}

.question-image-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px
}

.question-image-card > header {
    font-size: 13px
}

.question-image-card > fieldset {
    min-width: 0;
    margin: 12px 0 0;
    padding: 0;
    border: 0
}

.question-image-card textarea {
    margin: 6px 0 0
}

.question-image-footer {
    position: sticky;
    bottom: 0;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    background: #fff
}

.question-image-progress {
    margin-right: auto;
    color: var(--muted);
    font-size: 12px
}

.question-card-header {
    gap: 7px;
    padding-top: 14px
}

.question-edit {
    margin-right: -6px;
    flex-shrink: 0;
    width: 22px;
    height: 22px
}

.question-edit > .icon {
    height: 14px;
    width: 14px
}

.question-card-metadata {
    padding: 19px 19px 0
}

.question-card-metadata > h3 {
    font-size: 16px;
    font-weight: 550;
    line-height: 1.6;
    color: #111111;
    margin: 0;
    overflow-wrap: anywhere
}

.question-card-metadata > p {
    font-size: 11px;
    line-height: 1.85;
    color: #111111;
    margin: 9px 0 0;
    overflow-wrap: anywhere
}

.question-card .question-card-content {
    padding: 15px 19px 18px;
    min-height: 116px;
    max-height: 220px
}

.question-card-content > span {
    display: block;
    font-size: 9px;
    line-height: 1.5;
    color: #111111;
    margin-bottom: 8px
}

.question-card-content > p {
    font-size: 12px;
    line-height: 1.9;
    color: #111111;
    margin: 0;
    overflow-wrap: anywhere
}

.question-card .question-state {
    margin-left: auto
}

.question-card-header > .question-category {
    font-size: 9px
}

.flashcard-metadata {
    border-bottom: 1px solid #dddddd;
    padding: 17px 0 15px
}

.flashcard-metadata > h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: #111111;
    margin: 0
}

.flashcard-metadata > p {
    font-size: 10px;
    line-height: 1.8;
    color: #111111;
    margin: 5px 0 0
}

.review-focus .question-content {
    min-height: 195px !important;
    padding: 28px 12px !important
}

.review-focus .question-content > h2 {
    font-size: 24px !important
}

.review-breadcrumb > button {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #111111;
    font-size: 11px
}

.review-breadcrumb > span {
    font-size: 9px
}

.session-progress > span > b {
    color: #111111;
    font-size: 11px;
    font-weight: 400
}

.empty-text {
    font-size: 12px;
    color: #111111;
    text-align: center;
    padding: 20px;
    line-height: 1.9
}

.knowledge-scroll .empty-text {
    padding: 40px 10px
}

.history-summary {
    margin-top: 2px
}

.modal .reset-demo {
    font-size: 10px
}

@media (max-width: 1000px) {
    .metadata-fields {
        gap: 15px
    }

    .knowledge-detail-header {
        padding: 23px 27px 18px
    }

    .knowledge-scroll {
        padding: 24px 27px 30px
    }

    .knowledge-metadata > h1 {
        font-size: 25px
    }

    .question-card-header {
        flex-wrap: wrap
    }

    .question-edit {
        margin-left: 0
    }

    .question-type {
        font-size: 9px
    }

    .question-category {
        font-size: 9px
    }

    .question-state {
        font-size: 8px
    }
}

@media (max-width: 760px) {
    .stats.stats-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 4px
    }

    .sidebar .search-button {
        margin-top: 29px
    }

    .page-heading > h1 {
        font-size: 22px;
        line-height: 1.5
    }

    .page-heading {
        align-items: center;
        gap: 10px
    }

    .map-panel-toolbar {
        padding: 0 13px;
        height: 52px
    }

    .map-panel-toolbar h2 {
        font-size: 11px
    }

    .map-panel-toolbar > div {
        gap: 6px
    }

    .map-panel-toolbar > div > .icon {
        width: 14px
    }

    .map-panel-toolbar .secondary-button {
        min-height: 28px;
        font-size: 9px;
        padding: 0 7px
    }

    .map-panel-toolbar .filter-button {
        font-size: 9px;
        padding: 4px;
        gap: 5px
    }

    .map-footer {
        height: 43px;
        padding: 0 10px;
        gap: 10px
    }

    .map-footer .graph-legend {
        gap: 10px
    }

    .map-footer .graph-legend > span {
        font-size: 8px;
        gap: 4px
    }

    .map-footer .zoom-controls > .icon-button {
        height: 23px;
        width: 22px
    }

    .map-footer .zoom-controls > span {
        font-size: 8px;
        width: 31px
    }

    .workspace-dock {
        margin-bottom: 14px
    }

    .workspace-trigger {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
        border-radius: 9px
    }

    .workspace-trigger > span:nth-child(2), .workspace-trigger > .icon {
        display: none
    }

    .workspace-trigger > .profile-avatar {
        height: 29px;
        width: 29px;
        font-size: 12px
    }

    .workspace-menu {
        width: 195px
    }

    .workspace-menu > button {
        font-size: 11px;
        padding: 11px 9px
    }

    .modal.knowledge-dialog {
        height: 94dvh;
        max-height: 94dvh;
        max-width: calc(100vw - 22px);
        width: 100%;
        border-radius: 11px
    }

    .knowledge-dialog > .modal-header {
        padding: 11px 15px
    }

    .knowledge-detail-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 18px 21px 16px
    }

    .knowledge-meta-top {
        gap: 8px
    }

    .knowledge-meta-top > .node-symbol {
        height: 25px;
        width: 25px;
        font-size: 12px
    }

    .knowledge-meta-top > .status {
        font-size: 8px
    }

    .knowledge-parent {
        font-size: 8px;
        max-width: 48%
    }

    .knowledge-metadata > h1 {
        font-size: 23px;
        margin: 12px 0 8px;
        line-height: 1.5
    }

    .knowledge-metadata > p {
        font-size: 11px;
        line-height: 1.85;
        max-height: 85px
    }

    .knowledge-scroll {
        padding: 23px 21px 29px
    }

    .markdown-body {
        font-size: 13px;
        line-height: 1.95
    }

    .markdown-body p {
        font-size: 13px
    }

    .markdown-body h2 {
        font-size: 18px;
        margin-top: 24px
    }

    .markdown-body h3 {
        font-size: 16px
    }

    .markdown-body blockquote {
        padding: 8px 13px
    }

    .markdown-body blockquote p {
        font-size: 12px
    }

    .markdown-body pre {
        padding: 14px
    }

    .markdown-body pre code {
        font-size: 11px
    }

    .markdown-body table {
        font-size: 11px
    }

    .markdown-body td, .markdown-body th {
        min-width: 92px;
        padding: 8px 11px
    }

    .knowledge-dialog-footer {
        padding: 12px 15px;
        gap: 8px
    }

    .knowledge-dialog-footer .primary-button, .knowledge-dialog-footer .secondary-button {
        font-size: 10px;
        min-height: 34px;
        padding: 0 10px
    }

    .knowledge-dialog-footer .icon {
        height: 12px;
        width: 12px
    }

    .modal.knowledge-editor-dialog {
        max-width: calc(100vw - 22px);
        width: 100%;
        height: 94dvh;
        max-height: 94dvh
    }

    .knowledge-editor-dialog > .modal-header {
        padding: 15px 18px
    }

    .knowledge-editor-dialog > .modal-header > h2 {
        font-size: 15px
    }

    .knowledge-editor-dialog .knowledge-form {
        padding: 18px
    }

    .metadata-fields {
        grid-template-columns:1fr;
        gap: 0
    }

    .metadata-fields > label {
        font-size: 11px;
        margin-bottom: 14px
    }

    .metadata-fields input, .metadata-fields textarea {
        font-size: 12px !important
    }

    .metadata-fields textarea {
        min-height: 58px
    }

    .knowledge-form .parent-info {
        font-size: 9px;
        padding: 9px;
        margin-bottom: 14px
    }

    .knowledge-form textarea.markdown-editor {
        min-height: 265px;
        font-size: 11px;
        padding: 13px;
        flex-shrink: 0
    }

    .editor-preview {
        min-height: 265px;
        padding: 16px;
        flex-shrink: 0
    }

    .editor-tabs > button {
        font-size: 9px;
        padding: 5px 8px
    }

    .form-footer {
        padding-top: 16px
    }

    .form-footer .primary-button, .form-footer .secondary-button {
        font-size: 10px;
        min-height: 35px
    }

    .modal.question-editor-dialog {
        width: 100%;
        max-height: 92dvh
    }

    .question-card-metadata {
        padding: 18px 16px 0
    }

    .question-card-metadata > h3 {
        font-size: 16px
    }

    .question-card-metadata > p {
        font-size: 11px
    }

    .question-card .question-card-content {
        padding: 15px 16px 18px;
        min-height: 105px
    }

    .question-card-content > p {
        font-size: 12px
    }

    .question-card .question-edit {
        width: 20px;
        height: 20px
    }

    .flashcard-metadata {
        padding: 14px 0
    }

    .flashcard-metadata > h3 {
        font-size: 14px
    }

    .flashcard-metadata > p {
        font-size: 10px
    }

    .review-focus .question-content {
        padding: 25px 0 !important;
        min-height: 180px !important
    }

    .review-focus .question-content > h2 {
        font-size: 21px !important
    }

    .question-card-header > .question-category {
        font-size: 9px
    }

    .workspace-menu small {
        font-size: 9px
    }
}

@media (max-width: 460px) {
    .stats-compact .stat {
        padding: 0 8px
    }

    .stats-compact .stat-icon {
        display: none
    }

    .page-heading > h1 {
        font-size: 21px
    }

    .map-panel-toolbar h2 {
        font-size: 10px
    }

    .map-panel-toolbar > div > .icon {
        display: none
    }

    .map-panel-toolbar .secondary-button {
        font-size: 8px;
        gap: 3px
    }

    .map-panel-toolbar .secondary-button > .icon {
        width: 11px
    }

    .map-panel-toolbar {
        padding: 0 10px;
        gap: 7px
    }

    .map-panel-toolbar .filter-button {
        font-size: 8px;
        gap: 3px
    }

    .map-panel-toolbar > div {
        gap: 6px
    }

    .map-footer .graph-legend {
        gap: 7px
    }

    .map-footer .graph-legend > span {
        font-size: 6px;
        gap: 3px
    }

    .map-footer .zoom-controls > .icon-button {
        width: 19px;
        height: 22px
    }

    .map-footer .zoom-controls > span {
        font-size: 7px;
        width: 27px
    }

    .map-footer {
        gap: 8px;
        padding: 0 9px
    }

    .knowledge-dialog-footer {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between
    }

    .knowledge-dialog-footer .primary-button, .knowledge-dialog-footer .secondary-button {
        font-size: 9px;
        padding: 0 8px;
        min-height: 33px
    }

    .knowledge-dialog-footer > .secondary-button {
        font-size: 9px;
        padding: 0 8px
    }

    .knowledge-dialog-footer .icon {
        width: 11px;
        height: 11px
    }

    .knowledge-metadata > h1 {
        font-size: 22px
    }

    .knowledge-parent {
        font-size: 7px
    }

    .knowledge-detail-header {
        padding: 17px 18px 15px
    }

    .knowledge-scroll {
        padding: 21px 18px 27px
    }

    .modal-backdrop {
        padding: 10px
    }

    .question-card-header {
        gap: 7px
    }

    .question-card .question-state {
        font-size: 8px
    }

    .question-card .question-card-metadata {
        padding-top: 16px
    }

    .question-card .question-card-content {
        min-height: 105px
    }

    .flashcard-metadata > p {
        font-size: 9px
    }

    .review-breadcrumb > button {
        font-size: 9px
    }

    .review-breadcrumb > span {
        font-size: 8px
    }

    .review-focus .question-content > h2 {
        font-size: 20px !important
    }

    .question-card-header .question-type {
        font-size: 8px
    }

    .question-card-header > .question-category {
        font-size: 8px
    }
}

.question-card-footer > button:last-child {
    color: #111111
}

@media (min-width: 761px) {
    .topbar {
        height: 64px
    }

    .main-shell main {
        padding-top: 25px
    }

    .stats {
        padding: 16px 0;
        margin-top: 17px;
        margin-bottom: 17px
    }

    .overview-tabs {
        margin-bottom: 16px
    }
}

/* Neutral white surfaces with restrained blue accents. */
:root {
    color-scheme: light;
    --accent: #2563eb;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    color: #111827;
    background: #fff
}

body, input, textarea, select, button {
    color: #111827
}

.main-shell {
    background: #fff
}

.sidebar {
    background: #f8fafc;
    border-color: #e5e7eb
}

.topbar, .stats, .map-panel, .map-footer, .map-node, .question-card, .question-card-footer, .flashcard, .modal, .knowledge-metadata, .knowledge-scroll, .workspace-trigger, .workspace-menu {
    background: #fff;
    color: #111827;
    border-color: #e2e8f0
}

.topbar, .map-panel-toolbar, .knowledge-dialog > .modal-header, .knowledge-dialog-footer {
    background: #fbfcfe;
    border-color: #e5e7eb
}

.primary-button, .reveal-button {
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    box-shadow: 0 2px 4px rgb(37 99 235 / 12%)
}

.primary-button:hover, .reveal-button:hover {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
    box-shadow: 0 3px 7px rgb(37 99 235 / 16%)
}

.secondary-button {
    background: #fff;
    color: #374151;
    border-color: #dce2ea
}

.secondary-button:hover, .icon-button:hover, .main-nav > button:hover, .question-node-link:hover, .workspace-trigger:hover, .workspace-menu > button:hover {
    background: #f1f5f9;
    color: #1d4ed8
}

.icon-button, .main-nav > button, .collections > button, .sub-collection, .brand small, .breadcrumb, .breadcrumb .icon, .local-state, .nav-label, .filter-button {
    color: #6b7280
}

.main-nav > button.active {
    background: #eaf1ff;
    color: #2459c5
}

.main-nav > button.active b {
    background: #dce9ff;
    color: #2459c5
}

.brand-mark {
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    box-shadow: none;
    transform: none;
    border-radius: 8px
}

.brand-mark .icon {
    transform: none
}

.search-button {
    background: #fff;
    border-color: #e0e5ed;
    color: #6b7280
}

.search-button kbd {
    color: #8b95a5;
    border-color: #e2e8f0
}

.stat-icon, .node-symbol, .profile-avatar, .small-avatar, .workspace-avatar, .question-type, .question-list-symbol {
    background: #eff4ff;
    color: #3b6bd9;
    border: 1px solid #e4ecff
}

.stat-icon.orange {
    background: #fff7ed;
    color: #c47a24;
    border-color: #ffedd5
}

.stat > div > span, .stat strong small, .question-category, .question-state, .map-card-type, .root-node-count, .question-side-label, .question-card-content > span, .knowledge-parent, .knowledge-dialog > .modal-header > h2, .workspace-trigger small, .workspace-trigger > .icon, .keyboard-hint, .flashcard-top, .flashcard-bottom, .question-filter > label, .question-filter > span {
    color: #7b8493
}

.stat strong, .map-node-title strong, .question-card-metadata > h3, .knowledge-metadata > h1, .flashcard-metadata > h3, .modal-header h2 {
    color: #111827
}

.map-node-summary, .map-root .map-node-summary, .question-card-metadata > p, .knowledge-metadata > p, .flashcard-metadata > p {
    color: #6b7280
}

.map-panel-toolbar h2, .breadcrumb strong, .workspace-trigger > span:nth-child(2) {
    color: #374151
}

.map-surface {
    background-color: #f8fafc;
    background-image: radial-gradient(#dbe2ed .8px, transparent .8px);
    background-size: 20px 20px
}

.map-node, .question-card, .flashcard {
    box-shadow: 0 3px 9px rgb(15 23 42 / 4%)
}

.map-root {
    background: #f3f7ff;
    border-color: #b7ccf5
}

.map-root .node-symbol {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb
}

.map-node.is-selected {
    border-color: #709aee;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 7%)
}

.map-node:hover, .map-node:focus-within {
    border-color: #93b1ee;
    box-shadow: 0 5px 15px rgb(15 23 42 / 7%)
}

.node-plus {
    background: #fff;
    color: #3b6bd9;
    border-color: #b4c9ef;
    box-shadow: 0 1px 3px rgb(37 99 235 / 6%)
}

.node-plus:hover, .node-questions-trigger:hover, .node-question-titles > button:hover {
    background: #eff5ff;
    color: #2563eb
}

.node-questions-trigger {
    background: #f1f5fb;
    color: #627594
}

.node-questions-trigger > .icon:last-child {
    color: #8f9db2
}

.node-questions-popover, .workspace-menu {
    border-color: #dde5f0;
    box-shadow: 0 8px 28px rgb(15 23 42 / 11%)
}

.node-questions-heading {
    color: #4468a5
}

.node-questions-heading > small {
    color: #8994a5
}

.node-question-titles > button {
    color: #374151
}

.node-question-titles > button > .icon {
    color: #91a2ba
}

.map-connections .connection {
    stroke: #ccd6e4
}

.map-connections .connection.selected {
    stroke: #739be2
}

.map-node-progress, .mastery-track, .session-progress > div {
    background: #e9eef5
}

.map-node-progress > i, .mastery-track > span, .session-progress i {
    background: #7ba2ed
}

.status, .status.mastered {
    background: #f0f5ff;
    color: #5474a8;
    border: 1px solid #e3ebf8
}

.status.learning {
    background: #f4f5f7;
    color: #6b7280;
    border-color: #e8eaee
}

.status.weak {
    background: #fff7ec;
    color: #b4823f;
    border-color: #faecd8
}

.overview-tabs > button > button, .detail-tabs > button {
    color: #7b8493
}

.overview-tabs > button.active > button.active, .detail-tabs > button.active {
    color: #2563eb
}

.overview-tabs > button.active:after > button.active:after, .detail-tabs > button.active:after {
    background: #2563eb
}

.overview-tabs > button.active > span {
    background: #eaf1ff;
    color: #4c78cf
}

.overview-tabs > button > span, .main-nav b, .editor-tabs {
    background: #f1f4f8;
    color: #7b8493
}

.question-node-link, .parent-info, .prototype-note {
    background: #f8fafc;
    border-color: #e7edf4;
    color: #65758b
}

.question-card-footer > button {
    color: #7b8493
}

.question-card-footer > button:last-child, .review-breadcrumb > button, .text-button {
    color: #3569c6
}

.question-card .question-card-content > p, .answer-content > p {
    color: #4b5563
}

.question-card.back-side {
    background: #fcfdff;
    border-color: #a9c2ef
}

.question-card.back-side .question-card-footer {
    background: #f8fbff
}

.rating.red {
    background: #fafafa;
    border-color: #e5e7eb;
    color: #6b7280
}

.rating.orange {
    background: #fff8ed;
    border-color: #f5e6cc;
    color: #b17a2e
}

.rating.blue {
    background: #eff5ff;
    border-color: #dbe8ff;
    color: #3c70cb
}

.rating.green {
    background: #f6f2ff;
    border-color: #e9dfff;
    color: #8c6ac5
}

.rating:hover {
    filter: brightness(.985);
    box-shadow: 0 3px 8px rgb(15 23 42 / 5%)
}

.rating > span, .rating > kbd {
    opacity: .8
}

.review-area {
    background: #f8fafc;
    background-image: none
}

.flashcard-top, .flashcard-top > span:last-child {
    color: #8a96a8
}

.flashcard-top .icon {
    color: #7296d7
}

.takeaway {
    color: #7d8da5
}

.answer-content h2 {
    color: #111827
}

.markdown-body, .markdown-body p {
    color: #374151
}

.markdown-body strong, .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 {
    color: #111827
}

.markdown-body a {
    color: #2563eb
}

.markdown-body pre, .answer-content pre, .markdown-body code {
    background: #f5f7fb;
    color: #4d6488;
    border-color: #e5eaf2
}

.markdown-body pre code {
    background: none;
    color: #4d6488
}

.markdown-body pre code.hljs {
    display: inline;
    overflow: visible;
    padding: 0;
    background: none
}

.markdown-body blockquote {
    background: #f4f7fd;
    border-left-color: #9cb8eb;
    color: #60718c
}

.markdown-body blockquote p {
    color: #60718c
}

.markdown-body th {
    background: #f5f7fb;
    color: #4b5563
}

.markdown-body td {
    background: #fff;
    color: #4b5563
}

.markdown-body tr:nth-child(even) {
    background: #fafbfc
}

.knowledge-dialog-footer {
    background: #fbfcfe
}

.modal-backdrop {
    background: rgb(15 23 42 / 26%);
    backdrop-filter: none
}

.workspace-trigger {
    box-shadow: 0 5px 20px rgb(15 23 42 / 7%)
}

.workspace-menu > button {
    color: #4b5563
}

.workspace-menu > button > .icon {
    color: #7190c4
}

#toast {
    background: #fff;
    color: #374151;
    border-color: #c8d8f3;
    box-shadow: 0 5px 18px rgb(15 23 42 / 9%)
}

.graph-legend i.mastered {
    background: #7ba2ed
}

.graph-legend i.learning {
    background: #a4afc0;
    border: 0
}

.graph-legend i.weak {
    background: #d9b07a
}

.map-footer .graph-legend > span, .map-footer .zoom-controls > span, .history-summary span, .history-row small, .question-count {
    color: #8a95a5
}

.local-state i {
    background: #91a5c8
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #8aacf0;
    outline-offset: 3px
}

/* Compact map cards: title, 20-character summary, add control, and question list. */
.map-node {
    width: 180px;
    height: 108px;
    border-radius: 8px
}

.map-node-main {
    height: 106px;
    padding: 12px 13px 29px;
    border-radius: 8px
}

.map-node:not(.map-root) > .map-node-main {
    cursor: grab;
    touch-action: none;
    user-select: none
}

.map-node.is-drag-source {
    opacity: .5
}

.map-node.is-drop-target {
    outline: 2px dashed var(--accent);
    outline-offset: 3px;
    opacity: 1
}

.map-drag-label {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    pointer-events: none;
    max-width: 180px;
    padding: 6px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 12px
}

.map-node-title {
    display: block;
    min-height: 20px;
    line-height: 20px
}

.map-node-title strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 20px;
    font-weight: 550
}

.map-node-summary {
    font-size: 10px;
    line-height: 17px;
    margin-top: 6px;
    -webkit-line-clamp: 2
}

.map-node-bottom {
    left: 12px;
    right: 10px;
    bottom: 7px;
    pointer-events: none
}

.map-node-bottom > * {
    pointer-events: auto
}

.node-detail-button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 20px;
    border-radius: 4px;
    background: #eff4fa;
    color: #667c9c
}

.node-detail-button:hover {
    background: #e7efff;
    color: var(--accent)
}

.node-detail-button > .icon {
    width: 13px;
    height: 13px
}

.node-plus {
    width: 22px;
    height: 22px;
    left: -9px;
    top: -9px;
    border-radius: 6px
}

.node-plus .icon {
    width: 12px;
    height: 12px
}

.node-questions-trigger {
    padding: 3px 5px;
    font-size: 9px;
    gap: 4px
}

.node-questions-trigger > .icon {
    width: 11px;
    height: 11px
}

.center-map-button {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #7b8493;
    padding: 5px 6px;
    border-radius: 5px
}

.center-map-button > .icon {
    width: 14px;
    height: 14px
}

.center-map-button:hover {
    background: #eff5ff;
    color: #2563eb
}

@media (max-width: 460px) {
    .center-map-button {
        font-size: 9px;
        gap: 4px;
        padding: 4px
    }

    .center-map-button > .icon {
        width: 12px;
        height: 12px
    }
}

.knowledge-metadata > h1 {
    margin-top: 0
}

.knowledge-scroll:focus-visible {
    outline-offset: -3px
}

/* Question categories and single-choice authoring/review. */
.question-kind {
    font-size: 9px;
    line-height: 1.5;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap
}

.question-kind.single {
    color: #416cb5;
    background: #edf3ff;
    border: 1px solid #e1eaff
}

.question-kind.qa {
    color: #737d8b;
    background: #f3f4f6;
    border: 1px solid #eceef1
}

.question-filter {
    flex-wrap: wrap;
    row-gap: 10px
}

.question-filter-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0
}

.question-filter-field > label {
    font-size: 11px;
    color: #7b8493;
    white-space: nowrap
}

.question-filter-field > select {
    border: 1px solid #dce3ed;
    background: #fff;
    border-radius: 6px;
    color: #526179;
    font-size: 11px;
    padding: 9px 25px 9px 10px;
    max-width: 180px
}

.question-filter-field > select:focus-visible {
    outline: 2px solid #8aacf0;
    outline-offset: 3px
}

.choice-preview {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.choice-preview > li {
    display: flex;
    gap: 7px;
    font-size: 10px;
    line-height: 1.8;
    color: #77849a;
    overflow-wrap: anywhere
}

.choice-preview > li > .markdown-body {
    min-width: 0
}

.choice-preview > li > span {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid #e5eaf1;
    border-radius: 4px;
    background: #f8fafc;
    font-size: 9px;
    color: #8b98ac;
    margin-top: 1px
}

.modal.question-preview-dialog {
    width: 680px
}

.question-preview-summary {
    margin: 10px 0;
    color: var(--muted);
    font-size: 12px
}

.question-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px
}

.question-preview-answer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line)
}

.question-classification {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px;
    margin-bottom: 18px
}

.question-classification > div {
    min-width: 0
}

.question-classification label {
    font-size: 11px !important
}

.question-classification select {
    width: 100%;
    min-width: 0;
    border: 1px solid #dfe5ee;
    border-radius: 6px;
    font-size: 12px;
    color: #526179;
    background: white;
    padding: 10px 12px
}

#single-answer-fields {
    border: 0;
    padding: 0;
    margin: 0 0 8px;
    min-width: 0
}

#single-answer-fields > legend {
    font-size: 11px;
    color: #6b7280;
    margin: 0 0 5px;
    padding: 0
}

.option-form-hint {
    font-size: 10px;
    color: #8a95a6;
    line-height: 1.8;
    margin: 0 0 12px
}

.question-option-row {
    display: grid;
    grid-template-columns:44px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px
}

.question-option-row .correct-option-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    font-size: 12px;
    color: #6b7890;
    cursor: pointer
}

.question-option-row input[type=radio] {
    height: 14px;
    width: 14px;
    min-width: 14px;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #2563eb;
    cursor: pointer
}

.question-option-row [data-option-text] {
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    padding: 9px 11px !important;
    font-size: 12px !important;
    line-height: 1.6
}

.question-option-row > .icon-button {
    width: 26px;
    height: 26px;
    color: #9aa5b5
}

.question-option-row > .icon-button .icon {
    height: 14px;
    width: 14px
}

.add-option-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 2px;
    margin: 3px 0 17px;
    color: #557fcb;
    font-size: 11px
}

.add-option-button > .icon {
    height: 13px;
    width: 13px
}

.add-option-button:hover {
    color: #2563eb
}

#single-answer-fields > label {
    font-size: 11px;
    margin-top: 3px
}

#single-answer-fields > label > span {
    font-size: 10px;
    color: #9ba5b4
}

#single-answer-fields > textarea, #qa-answer-fields > textarea {
    font-size: 12px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.flashcard.choice-flashcard {
    cursor: default
}

.review-focus .single-question-content {
    display: block;
    min-height: 0 !important;
    padding: 22px 0 12px !important;
    text-align: left
}

.review-focus .single-question-content > h2 {
    font-size: 20px !important;
    line-height: 1.8;
    margin: 0 0 18px !important;
    max-width: none
}

.review-question-markdown {
    width: 100%;
    min-width: 0
}

.review-question-markdown > p {
    font-size: clamp(16px, 2vw, 24px);
    color: #111827
}

.single-question-content > .review-question-markdown > p {
    font-size: clamp(15px, 1.6vw, 20px)
}

.review-choices {
    padding: 0;
    margin: 0;
    min-width: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.review-choice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #e3e9f2;
    border-radius: 7px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
    min-width: 0;
    transition: background .15s, border-color .15s
}

.review-choice:hover {
    border-color: #b5caef;
    background: #fbfcff
}

.review-choice > input {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin: 3px 0 0;
    accent-color: #2563eb;
    cursor: pointer
}

.choice-letter {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.8;
    color: #8a99b0;
    flex-shrink: 0
}

.choice-text {
    font-size: 12px;
    line-height: 1.8;
    color: #66768d;
    overflow-wrap: anywhere;
    flex: 1;
    min-width: 0
}

.choice-text .markdown-body, .choice-text .markdown-body p {
    font-size: inherit;
    line-height: inherit;
    color: inherit
}

.choice-text .markdown-body > p:only-child {
    margin: 0
}

.review-choice.is-selected {
    border-color: #8facdf;
    background: #f5f8ff
}

.review-choice.is-selected .choice-letter {
    color: #3f6dbc
}

.review-choice.is-correct {
    border-color: #8eace0;
    background: #f0f5ff
}

.review-choice.is-correct .choice-text, .review-choice.is-correct .choice-letter {
    color: #416ab0
}

.review-choice.is-incorrect {
    border-color: #edc59d;
    background: #fff8f0
}

.review-choice.is-incorrect .choice-text {
    color: #b18552
}

.review-choice > small {
    font-size: 8px;
    color: #6687c0;
    padding: 3px 5px;
    border: 1px solid #d7e3f8;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.6;
    flex-shrink: 0
}

.review-choices:disabled .review-choice {
    cursor: default
}

.answer-content .choice-feedback {
    font-size: 11px;
    margin: 4px 0 15px;
    color: #8d9aaf
}

.answer-content .choice-feedback.correct {
    color: #5177b9
}

.answer-content .choice-feedback.incorrect {
    color: #b58a58
}

.answer-content .review-choices {
    margin-bottom: 17px
}

.choice-flashcard .flashcard-bottom {
    margin-top: 15px
}

@media (max-width: 1100px) {
    .question-library-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .question-library-actions {
        justify-content: flex-end
    }
}

@media (max-width: 760px) {
    .question-filter-field > label {
        font-size: 10px
    }

    .question-filter-field > select {
        font-size: 10px;
        max-width: 160px;
        padding: 8px 22px 8px 9px
    }

    .question-filter {
        gap: 10px 14px
    }

    .question-filter > span {
        font-size: 9px;
        white-space: nowrap
    }

    .question-kind {
        font-size: 8px;
        padding: 2px 5px
    }

    .question-classification {
        gap: 12px
    }

    .question-classification select {
        font-size: 11px;
        padding: 10px
    }

    .question-option-row {
        grid-template-columns:40px minmax(0, 1fr) 25px;
        gap: 6px
    }

    .question-option-row [data-option-text] {
        font-size: 11px !important;
        padding: 9px !important
    }

    .review-choice {
        padding: 10px;
        gap: 7px
    }

    .choice-text {
        font-size: 11px
    }

    .review-focus .single-question-content > h2 {
        font-size: 18px !important
    }

    .choice-letter {
        font-size: 10px
    }

    .review-choice > small {
        font-size: 7px;
        padding: 3px
    }

    .review-choice input {
        height: 13px;
        width: 13px;
        margin-top: 3px
    }
}

@media (max-width: 460px) {
    .question-classification {
        grid-template-columns:1fr;
        gap: 14px
    }

    .question-filter-field {
        gap: 7px
    }

    .question-filter-field > select {
        max-width: 168px
    }

    .question-option-row {
        grid-template-columns:35px minmax(0, 1fr) 24px;
        gap: 4px
    }

    .question-option-row .correct-option-label {
        gap: 5px;
        font-size: 11px
    }

    .question-option-row input[type=radio] {
        height: 13px;
        width: 13px;
        min-width: 13px
    }

    .choice-preview > li {
        font-size: 10px
    }

    .choice-text {
        font-size: 10px
    }

    .review-choice {
        padding: 9px;
        gap: 6px
    }

    .review-choice > small {
        max-width: 40px;
        white-space: normal;
        text-align: center
    }

    .review-focus .single-question-content > h2 {
        font-size: 17px !important
    }
}

/* 云端账号与空间入口，延续白灰底色和少量蓝色强调。 */
.auth-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
    background: #f4f6fa
}

.auth-card {
    width: min(420px, 100%);
    padding: 40px;
    background: #fff;
    border: 1px solid #e1e6ef;
    border-radius: 20px;
    box-shadow: 0 16px 56px #1e293b0b;
    display: grid;
    gap: 20px
}

.auth-logo {
    font-size: 24px;
    font-weight: 750;
    color: #172033
}

.auth-logo small {
    font-size: 12px;
    font-weight: 400;
    color: #697386;
    margin-left: 8px
}

.auth-card h1 {
    font-size: 25px;
    margin: 4px 0
}

.auth-card p {
    color: #647084;
    line-height: 1.65;
    margin: 0
}

.auth-card form {
    display: grid;
    gap: 18px
}

.auth-card label, #base-form label, #access-key-form label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #344054
}

.auth-card input, #base-form input, #access-key-form input {
    width: 100%;
    border: 1px solid #d4dce8;
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: #101828;
    font: inherit
}

.auth-card input:focus, #base-form input:focus, #access-key-form input:focus {
    outline: 2px solid #b8ccff;
    outline-offset: 2px
}

.auth-card .primary-button {
    justify-content: center;
    min-height: 42px
}

.auth-card .auth-error {
    font-size: 13px;
    color: #b42318;
    min-height: 20px
}

.text-button {
    border: 0;
    background: none;
    color: #52637a;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 8px
}

.collections select {
    width: 100%;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid #d5ddea;
    border-radius: 8px;
    color: #263349;
    background: #fff
}

.collections .secondary-button {
    width: 100%;
    justify-content: center
}

.workspace-actions {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10px;
    margin: 20px 0
}

.workspace-actions button {
    justify-content: center
}

#base-form, #access-key-form, .import-dialog {
    padding: 24px;
    display: grid;
    gap: 18px
}

.form-hint, .import-dialog p {
    font-size: 13px;
    color: #667085;
    line-height: 1.6
}

.upload-image {
    font-size: 12px;
    padding: 6px 10px
}

.markdown-body img, .answer-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px
}

.auth-page ~ #modal-root {
    z-index: 50
}

button:disabled {
    cursor: wait
}

#import-progress {
    color: #2563eb;
    font-variant-numeric: tabular-nums
}

/* 卡片删除入口与确认框 */
.knowledge-dialog-footer > [data-new-question] {
    margin-inline-start: auto
}

.form-footer > .card-delete-button {
    margin-inline-end: auto
}

.secondary-button.card-delete-button {
    color: #b42318
}

.secondary-button.card-delete-button:hover {
    background: #fef3f2;
    border-color: #fecdca
}

.delete-confirm-dialog {
    width: min(440px, calc(100% - 32px));
    padding: 24px;
    border: 1px solid #e1e6ef;
    border-radius: 14px;
    background: #fff;
    color: #172033;
    box-shadow: 0 14px 48px #0f172a26
}

.delete-confirm-dialog::backdrop {
    background: #0f172a50
}

.delete-confirm-dialog h2 {
    margin: 0 0 12px;
    font-size: 19px
}

.delete-confirm-dialog p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere
}

.delete-confirm-dialog .delete-confirm-error {
    margin-top: 12px;
    color: #b42318
}

.delete-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px
}

.delete-confirm-actions .delete-confirm-submit {
    background: #b42318;
    color: #fff
}

.delete-confirm-actions .delete-confirm-submit:hover {
    background: #912018;
    color: #fff
}
