:root {
    color-scheme: dark;
    --font-ui: "Segoe WPC", "Segoe UI", "Segoe UI Variable Text", sans-serif;
    --font-code: Consolas, "Courier New", monospace;
    --code-size: 14px;
    --code-line-height: 19px;
    --bg-titlebar: #191a1b;
    --bg-activity: #191a1b;
    --bg-sidebar: #191a1b;
    --bg-editor: #121314;
    --bg-tabbar: #191a1b;
    --bg-panel: #191a1b;
    --bg-aux: #191a1b;
    --bg-status: #191a1b;
    --bg-tab-active: #121314;
    --bg-tab-inactive: #191a1b;
    --bg-input: #191a1b;
    --bg-quick: #202122;
    --bg-menu: #202122;
    --bg-selected: #313233;
    --bg-hover: rgba(255, 255, 255, 0.08);
    --bg-hover-soft: rgba(255, 255, 255, 0.05);
    --list-hover: rgba(255, 255, 255, 0.08);
    --list-active: rgba(255, 255, 255, 0.13);
    --fg: #bfbfbf;
    --fg-strong: #e7e7e7;
    --fg-editor: #bbbcbf;
    --fg-muted: #8c8c8c;
    --fg-faint: #6f6f6f;
    --titlebar-fg: #8c8c8c;
    --status-fg: #8c8c8c;
    --accent: #3994bc;
    --accent-strong: #48a0c7;
    --accent-soft: rgba(57, 148, 188, 0.18);
    --link: #48a0c7;
    --link-hover: #53a5ca;
    --button: #297aa0;
    --button-hover: #2b7da3;
    --border: #2a2b2c;
    --border-soft: #252627;
    --input-border: #333536;
    --badge: #307e9f;
    --menu-selection: #3994bc26;
    --selection: rgba(38, 79, 120, 0.65);
    --shadow-menu: 0 6px 22px rgba(0, 0, 0, 0.48);
    --shadow-panel: 0 12px 32px rgba(0, 0, 0, 0.42);
    --scroll-thumb: rgba(121, 121, 121, 0.42);
    --scroll-thumb-hover: rgba(148, 148, 148, 0.65);
    --seti-blue: #519aba;
    --seti-json: #cbcb41;
    --seti-shell: #8dc149;
    --seti-orange: #e37933;
    --seti-purple: #a074c4;
    --seti-default: #d4d7d6;
    --code-comment: #6a9955;
    --code-keyword: #c586c0;
    --code-string: #ce9178;
    --code-function: #dcdcaa;
    --code-type: #4ec9b0;
    --code-number: #b5cea8;
    --code-property: #9cdcfe;
    --code-punctuation: #d4d4d4;
    --code-tag: #569cd6;
    --code-attr: #9cdcfe;
    --terminal-green: #4ec9b0;
    --overlay: rgba(0, 0, 0, 0.22);
    --code-window-bg: #0e1012;
    --code-window-bar: #171a1d;
    --donate: #e06c75;
    --donate-soft: rgba(224, 108, 117, 0.14);
    --donate-border: rgba(224, 108, 117, 0.34);
    --success: #3fb950;
    --success-soft: rgba(63, 185, 80, 0.14);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-titlebar: #fafafd;
    --bg-activity: #fafafd;
    --bg-sidebar: #fafafd;
    --bg-editor: #ffffff;
    --bg-tabbar: #fafafd;
    --bg-panel: #fafafd;
    --bg-aux: #fafafd;
    --bg-status: #fafafd;
    --bg-tab-active: #ffffff;
    --bg-tab-inactive: #fafafd;
    --bg-input: #ffffff;
    --bg-quick: #fafafd;
    --bg-menu: #fafafd;
    --bg-selected: #e8e8e8;
    --bg-hover: rgba(0, 0, 0, 0.08);
    --bg-hover-soft: rgba(0, 0, 0, 0.04);
    --list-hover: rgba(0, 0, 0, 0.08);
    --list-active: rgba(0, 0, 0, 0.14);
    --fg: #202020;
    --fg-strong: #111111;
    --fg-editor: #202020;
    --fg-muted: #606060;
    --fg-faint: #8a8a8a;
    --titlebar-fg: #606060;
    --status-fg: #606060;
    --accent: #0069cc;
    --accent-strong: #0069cc;
    --accent-soft: rgba(0, 105, 204, 0.12);
    --link: #0069cc;
    --link-hover: #0063c1;
    --button: #0069cc;
    --button-hover: #0063c1;
    --border: #e2e2e5;
    --border-soft: #ececef;
    --input-border: #d8d8d8;
    --badge: #0069cc;
    --menu-selection: #0069cc1a;
    --selection: rgba(0, 105, 204, 0.18);
    --shadow-menu: 0 6px 22px rgba(20, 30, 45, 0.14);
    --shadow-panel: 0 12px 32px rgba(20, 30, 45, 0.12);
    --scroll-thumb: rgba(100, 100, 100, 0.28);
    --scroll-thumb-hover: rgba(80, 80, 80, 0.5);
    --seti-blue: #498ba7;
    --seti-json: #b7b73b;
    --seti-shell: #7fae42;
    --seti-orange: #cc6d2e;
    --seti-purple: #9068b0;
    --seti-default: #bfc2c1;
    --code-comment: #008000;
    --code-keyword: #af00db;
    --code-string: #a31515;
    --code-function: #795e26;
    --code-type: #267f99;
    --code-number: #098658;
    --code-property: #001080;
    --code-punctuation: #202020;
    --code-tag: #800000;
    --code-attr: #e50000;
    --terminal-green: #007f6e;
    --overlay: rgba(30, 40, 55, 0.16);
    --code-window-bg: #f6f8fa;
    --code-window-bar: #eef1f4;
    --donate: #c94f5c;
    --donate-soft: rgba(201, 79, 92, 0.1);
    --donate-border: rgba(201, 79, 92, 0.28);
    --success: #1a7f37;
    --success-soft: rgba(26, 127, 55, 0.1);
}

[hidden] {
    display: none !important;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: var(--bg-editor);
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: -1px;
}

::selection {
    background: var(--selection);
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

kbd {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    padding: 0 4px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg-input);
    color: var(--fg-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.codicon {
    display: inline-block;
    flex: none;
    font-size: 16px;
    line-height: 1;
}

.seti {
    font-size: 16px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    background: var(--scroll-thumb);
    background-clip: padding-box;
    border-radius: 7px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-hover);
    background-clip: padding-box;
}

.workbench {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-width: 320px;
    overflow: hidden;
    background: var(--bg-editor);
}

.titlebar {
    position: relative;
    z-index: 20;
    display: flex;
    flex: 0 0 35px;
    align-items: center;
    height: 35px;
    padding-left: 4px;
    background: var(--bg-titlebar);
    color: var(--titlebar-fg);
    user-select: none;
}

.titlebar-left {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.titlebar-drag {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.titlebar-logo {
    display: grid;
    flex: none;
    width: 33px;
    height: 29px;
    place-items: center;
    border-radius: 4px;
}

.titlebar-logo:hover {
    background: var(--bg-hover);
}

.titlebar-logo img {
    display: block;
    width: 17px;
    height: 17px;
}

.menubar {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
    margin-left: 2px;
    overflow: hidden;
}

.menu-trigger {
    height: 29px;
    padding: 0 7px;
    border-radius: 4px;
    color: var(--titlebar-fg);
    font-size: 12px;
    white-space: nowrap;
}

.menu-trigger:hover,
.menu-trigger.is-open {
    background: var(--bg-hover);
    color: var(--fg);
}

.nav-controls {
    display: flex;
    align-items: center;
    margin-left: 2px;
}

.icon-button {
    display: inline-grid;
    flex: none;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 4px;
    color: var(--fg-muted);
}

.icon-button:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--fg);
}

.icon-button:disabled {
    color: var(--fg-faint);
    cursor: default;
    opacity: 0.5;
}

.nav-button {
    width: 28px;
    height: 28px;
}

.nav-button .codicon {
    font-size: 15px;
}

.command-center {
    position: relative;
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    width: min(600px, 38vw);
    min-width: 190px;
    height: 24px;
    padding: 0 42px 0 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--fg-muted);
    font-size: 12px;
    text-align: center;
}

.command-center:hover {
    border-color: var(--input-border);
    background: var(--bg-hover-soft);
    color: var(--fg);
}

.command-center .codicon {
    margin-right: 7px;
    font-size: 14px;
}

.command-center-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-center-hint {
    position: absolute;
    right: 8px;
    color: var(--fg-faint);
    font-size: 10px;
}

.titlebar-right {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    height: 100%;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--button);
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
}

.contact-pill:hover {
    background: var(--button-hover);
}

.contact-pill .codicon {
    font-size: 14px;
}

.heart-icon {
    display: block;
    flex: none;
    width: 14px;
    height: 14px;
}

.donate-pill {
    margin-left: 6px;
    border: 1px solid var(--donate-border);
    background: var(--donate-soft);
    color: var(--donate);
}

.donate-pill:hover {
    border-color: var(--donate);
    background: var(--donate);
    color: #ffffff;
}

.layout-controls {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.layout-button {
    width: 28px;
    height: 28px;
}

.layout-button.is-active {
    color: var(--fg);
}

#toggleSidebar .sidebar-icon-mobile {
    display: none;
}

.window-controls {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    margin-left: 4px;
}

.window-button {
    display: grid;
    width: 46px;
    height: 35px;
    place-items: center;
    color: var(--titlebar-fg);
}

.window-button .codicon {
    font-size: 11px;
}

.window-button:hover {
    background: var(--bg-hover);
    color: var(--fg);
}

.window-close:hover {
    background: #c42b1c;
    color: #ffffff;
}

.main-area {
    display: flex;
    flex: 1 1 auto;
    gap: 4px;
    min-height: 0;
    padding: 0 4px 4px;
    background: var(--bg-editor);
}

.sidebar {
    display: flex;
    flex: 0 0 344px;
    width: 344px;
    min-height: 0;
    overflow: hidden;
    border: 0.8px solid var(--border);
    border-radius: 8px;
    background: var(--bg-sidebar);
}

.sidebar.is-hidden {
    display: none;
}

.activitybar {
    display: flex;
    flex: 0 0 44px;
    flex-direction: column;
    width: 44px;
    min-height: 0;
    padding-bottom: 4px;
    background: var(--bg-activity);
}

.activity-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3px;
}

.activity-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: auto;
}

.activity-item {
    position: relative;
    display: grid;
    flex: none;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--fg-muted);
}

.activity-item::before {
    position: absolute;
    inset: 4px;
    border-radius: 4px;
    background: transparent;
    content: "";
}

.activity-item:hover {
    color: var(--fg);
}

.activity-item:hover::before {
    background: var(--bg-hover-soft);
}

.activity-item.is-active {
    color: var(--fg-strong);
}

.activity-item.is-active::before {
    background: var(--bg-selected);
}

.activity-donate::before {
    border-radius: 0;
}

.activity-item .codicon {
    position: relative;
    z-index: 1;
    font-size: 24px;
}

.activity-badge {
    position: absolute;
    right: 5px;
    bottom: 6px;
    z-index: 2;
    display: grid;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid var(--bg-activity);
    border-radius: 9px;
    background: var(--badge);
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
}

.account-button {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto 4px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 50%;
}

.account-button:hover {
    border-color: var(--fg-muted);
}

.account-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-view {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.sidebar-header {
    display: flex;
    flex: 0 0 35px;
    align-items: center;
    height: 35px;
    padding: 0 8px 0 20px;
}

.sidebar-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--fg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebar-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0;
}

.sidebar-actions .icon-button {
    width: 22px;
    height: 22px;
}

.sidebar-actions .codicon {
    font-size: 15px;
}

.sidebar-close {
    display: none;
}

.sidebar-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-bottom: 12px;
}

.sidebar-panel {
    display: none;
}

.sidebar-panel.is-visible {
    display: block;
}

.section-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 22px;
    padding: 0 8px 0 20px;
    color: var(--fg-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-caption-actions {
    display: flex;
    align-items: center;
    color: var(--fg-faint);
}

.tree {
    padding-bottom: 2px;
}

.tree-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 22px;
    padding-right: 8px;
    padding-left: calc(8px + var(--depth, 0) * 12px);
    border: 1px solid transparent;
    border-radius: 2px;
    color: var(--fg);
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}

.tree-row:hover {
    background: var(--list-hover);
}

.tree-row.is-active {
    border-color: var(--accent);
    background: var(--list-active);
    color: var(--fg-strong);
}

.tree-chevron {
    width: 16px;
    margin-right: 2px;
    color: var(--fg-muted);
    font-size: 14px;
    transition: transform 120ms ease;
}

.tree-folder.is-collapsed .tree-chevron {
    transform: rotate(-90deg);
}

.tree-row .seti {
    width: 16px;
    margin-right: 6px;
    font-size: 16px;
}

.tree-folder .tree-label {
    font-weight: 600;
}

.tree-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.outline-block {
    margin-top: 10px;
    border-top: 1px solid var(--border-soft);
}

.sidebar-empty {
    margin: 0;
    padding: 4px 20px 8px;
    color: var(--fg-muted);
    font-size: 12px;
    line-height: 1.45;
}

.search-box {
    display: flex;
    align-items: center;
    height: 26px;
    margin: 0 20px 7px;
    border: 1px solid var(--input-border);
    border-radius: 3px;
    background: var(--bg-input);
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-box > .codicon {
    width: 26px;
    color: var(--fg-muted);
    font-size: 15px;
    text-align: center;
}

.search-box input {
    flex: 1 1 auto;
    min-width: 0;
    height: 24px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--fg);
    font-size: 13px;
}

.search-box input::placeholder {
    color: var(--fg-muted);
}

.search-clear {
    display: none;
    width: 22px;
    height: 22px;
    margin-right: 2px;
}

.search-box.has-value .search-clear {
    display: inline-grid;
}

.search-detail {
    padding: 0 20px 8px;
    color: var(--fg-muted);
    font-size: 12px;
}

.search-note {
    margin: 0;
    padding: 8px 20px;
    border-top: 1px solid var(--border-soft);
    color: var(--fg-muted);
    font-size: 12px;
}

.search-results {
    display: flex;
    flex-direction: column;
}

.search-result {
    display: block;
    width: 100%;
    padding: 7px 20px;
    border-top: 1px solid var(--border-soft);
    color: var(--fg);
    text-align: left;
}

.search-result:hover {
    background: var(--list-hover);
}

.search-result-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
}

.search-result-top .seti {
    width: 14px;
    font-size: 14px;
}

.search-result-top strong {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-copy {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--fg-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-intro {
    margin: 0;
    padding: 2px 20px 12px;
    color: var(--fg-muted);
    font-size: 12px;
    line-height: 1.5;
}

.side-project {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 6px;
    padding: 8px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 5px;
    background: transparent;
    color: var(--fg);
    text-align: left;
}

.side-project:hover {
    border-color: var(--border);
    background: var(--bg-hover-soft);
}

.side-project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.side-project-top strong {
    font-size: 12px;
    font-weight: 600;
}

.side-project-badge {
    flex: none;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--bg-selected);
    color: var(--fg-muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.side-project-badge.is-public,
.side-project-badge.is-done {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.side-project-badge.is-progress {
    background: var(--bg-selected);
    color: var(--fg-muted);
}

.side-project-meta {
    display: block;
    margin-top: 4px;
    color: var(--fg-muted);
    font-size: 11px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 6px;
    width: calc(100% - 32px);
    margin: 10px 16px 0;
    padding: 6px 8px;
    border-radius: 4px;
    color: var(--link);
    font-size: 12px;
    text-align: left;
}

.side-link:hover {
    background: var(--bg-hover-soft);
    text-decoration: none;
}

.side-link .codicon {
    font-size: 14px;
}

.side-contact-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 20px 12px;
}

.side-contact-hero img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.side-contact-hero div {
    min-width: 0;
}

.side-contact-hero strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.side-contact-hero span {
    display: block;
    margin-top: 2px;
    color: var(--fg-muted);
    font-size: 11px;
}

.side-contact {
    display: grid;
    grid-template-columns: 18px 62px minmax(0, 1fr);
    gap: 4px;
    align-items: center;
    min-height: 28px;
    padding: 0 20px;
    color: var(--fg);
    font-size: 12px;
    text-align: left;
}

.side-contact:hover {
    background: var(--bg-hover-soft);
    text-decoration: none;
}

.side-contact .codicon {
    color: var(--fg-muted);
    font-size: 14px;
}

.side-contact span:nth-child(2) {
    color: var(--fg-muted);
}

.side-contact strong {
    overflow: hidden;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-secondary {
    display: block;
    margin: 12px 20px 0;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg-hover-soft);
    color: var(--fg);
    font-size: 12px;
}

.side-secondary:hover {
    border-color: var(--input-border);
    background: var(--bg-hover);
}

.skill-group {
    padding: 0 20px 14px;
}

.skill-label {
    display: block;
    margin-bottom: 6px;
    color: var(--fg-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.skill-chips span {
    padding: 2px 6px;
    border: 1px solid var(--border-soft);
    border-radius: 3px;
    background: var(--bg-hover-soft);
    color: var(--fg);
    font-size: 11px;
}

.sidebar-scrim {
    display: none;
}

.editor-area {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 0;
}

.editor-group {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 0.8px solid var(--border);
    border-radius: 8px;
    background: var(--bg-editor);
}

.tabbar {
    display: flex;
    flex: 0 0 35px;
    align-items: flex-end;
    height: 35px;
    min-width: 0;
    background: var(--bg-tabbar);
    user-select: none;
}

.tab-list {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-end;
    min-width: 0;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
    display: none;
}

.tab {
    position: relative;
    display: flex;
    flex: 0 1 180px;
    align-items: center;
    gap: 6px;
    min-width: 92px;
    max-width: 200px;
    height: 31px;
    padding: 0 8px;
    border-top: 1px solid transparent;
    border-right: 1px solid var(--border);
    background: var(--bg-tab-inactive);
    color: var(--fg-muted);
    font-size: 13px;
    white-space: nowrap;
}

.tab:hover {
    background: var(--bg-hover-soft);
    color: var(--fg);
}

.tab.is-active {
    border-top-color: var(--accent);
    background: var(--bg-tab-active);
    color: var(--fg);
}

.tab .codicon,
.tab .seti {
    flex: none;
    width: 16px;
    font-size: 16px;
}

.tab-title {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-modified {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fg-muted);
}

.tab-close {
    display: grid;
    flex: none;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 3px;
    color: var(--fg-muted);
    opacity: 0;
    pointer-events: none;
}

.tab:hover .tab-close,
.tab.is-active .tab-close,
.tab-close:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.tab-close:hover {
    background: var(--bg-hover);
    color: var(--fg);
}

.tab-close .codicon {
    width: auto;
    font-size: 14px;
}

.tab-actions {
    display: flex;
    flex: none;
    align-items: center;
    height: 100%;
    padding: 0 8px;
    transition: opacity 120ms ease;
}

.tab-actions .icon-button {
    width: 26px;
    height: 26px;
}

.editor-toolbar {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    height: 30px;
    min-width: 0;
    padding: 0 8px 0 14px;
    background: var(--bg-editor);
}

.breadcrumb {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    color: var(--fg-muted);
    font-size: 12px;
    white-space: nowrap;
}

.breadcrumb .codicon {
    font-size: 14px;
}

.breadcrumb .crumb,
.breadcrumb .crumb-file {
    overflow: hidden;
    padding: 0;
    color: var(--fg-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb button.crumb:hover,
.breadcrumb button.crumb-file:hover {
    color: var(--fg);
}

.breadcrumb .crumb-sep {
    color: var(--fg-faint);
    font-size: 11px;
}

.editor-actions {
    display: flex;
    flex: none;
    align-items: center;
    margin-left: 8px;
    transition: opacity 120ms ease;
}

.editor-actions .icon-button {
    width: 24px;
    height: 24px;
}

.editor-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: var(--bg-editor);
    container-type: inline-size;
}

.view {
    display: none;
    min-height: 100%;
    color: var(--fg);
}

.view.is-active {
    display: block;
}

.welcome-view.is-active {
    display: flex;
    justify-content: center;
}

.welcome-view {
    background: var(--bg-editor);
}

.welcome-inner {
    width: 100%;
    max-width: 960px;
    padding: 54px 48px 44px;
}

.welcome-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 42px;
}

.welcome-avatar {
    width: 66px;
    height: 66px;
    border: 1px solid var(--border);
    border-radius: 50%;
    object-fit: cover;
}

.welcome-kicker,
.view-kicker {
    margin: 0 0 5px;
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.welcome-head h1 {
    margin: 0;
    color: var(--fg-strong);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.welcome-head p:last-child {
    margin: 5px 0 0;
    color: var(--fg-muted);
    font-size: 18px;
    line-height: 1.35;
}

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

.welcome-column h2 {
    margin: 0 0 10px;
    color: var(--fg);
    font-size: 13px;
    font-weight: 600;
}

.welcome-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 6px 0;
    color: var(--fg);
    text-align: left;
}

.welcome-link:hover strong {
    color: var(--link);
    text-decoration: underline;
}

.welcome-link > .codicon {
    margin-top: 1px;
    color: var(--fg-muted);
    font-size: 16px;
}

.welcome-link > span:last-child {
    display: block;
    min-width: 0;
}

.welcome-link strong {
    display: block;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.welcome-link small {
    display: block;
    margin-top: 1px;
    overflow: hidden;
    color: var(--fg-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.welcome-recent {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    height: 25px;
    color: var(--fg);
    font-size: 13px;
    text-align: left;
}

.welcome-recent:hover {
    color: var(--link);
    text-decoration: underline;
}

.welcome-recent .seti {
    width: 16px;
    font-size: 16px;
}

.welcome-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 40px;
    padding-top: 17px;
    border-top: 1px solid var(--border-soft);
}

.welcome-command {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--link);
    font-size: 12px;
    text-align: left;
}

.welcome-command:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.welcome-command .codicon {
    font-size: 14px;
}

.welcome-command kbd {
    margin-left: 2px;
}

.code-view.is-active {
    display: block;
}

.code-lines {
    counter-reset: line;
    padding: 9px 0 32px;
    color: var(--fg-editor);
    font-family: var(--font-code);
    font-size: var(--code-size);
    line-height: var(--code-line-height);
    tab-size: 4;
}

.code-line {
    display: flex;
    min-height: var(--code-line-height);
}

.code-line:hover {
    background: var(--bg-hover-soft);
}

.line-no {
    flex: 0 0 57px;
    padding-right: 16px;
    color: var(--fg-faint);
    text-align: right;
    user-select: none;
}

.line-no::before {
    counter-increment: line;
    content: counter(line);
}

.line-code {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 28px;
    white-space: pre;
}

.tok-comment {
    color: var(--code-comment);
}

.tok-keyword {
    color: var(--code-keyword);
}

.tok-string {
    color: var(--code-string);
}

.tok-function {
    color: var(--code-function);
}

.tok-type {
    color: var(--code-type);
}

.tok-number {
    color: var(--code-number);
}

.tok-property {
    color: var(--code-property);
}

.tok-key {
    color: var(--code-keyword);
}

.tok-punct,
.tok-operator {
    color: var(--code-punctuation);
}

.tok-tag {
    color: var(--code-tag);
}

.tok-attr {
    color: var(--code-attr);
}

.code-link {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
}

.code-link:hover {
    color: var(--link-hover);
    text-decoration-color: currentColor;
}

.code-inline-button {
    margin-left: 8px;
    padding: 0 4px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg-hover-soft);
    color: var(--link);
    font-family: var(--font-ui);
    font-size: 11px;
    line-height: 16px;
}

.code-inline-button:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.markdown-view {
    background: var(--bg-editor);
}

.markdown-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(180px, 224px);
    gap: 52px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 46px 48px 68px;
}

.markdown-body {
    min-width: 0;
    color: var(--fg);
    font-size: 14px;
    line-height: 1.66;
    container-type: inline-size;
    container-name: markdown;
}

.markdown-body h1 {
    margin: 0 0 20px;
    color: var(--fg-strong);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.markdown-body h2 {
    margin: 30px 0 10px;
    color: var(--fg-strong);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.markdown-body p {
    margin: 0 0 14px;
}

.markdown-body ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.markdown-body li {
    margin: 4px 0;
}

.markdown-body code {
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--bg-hover-soft);
    color: var(--code-string);
    font-family: var(--font-code);
    font-size: 12px;
}

.markdown-body blockquote {
    margin: 24px 0;
    padding: 2px 0 2px 16px;
    border-left: 2px solid var(--accent);
    color: var(--fg-muted);
    font-size: 15px;
}

.markdown-body blockquote p {
    margin: 0;
}

.markdown-body h3 {
    margin: 22px 0 8px;
    color: var(--fg-strong);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.markdown-body a {
    color: var(--link);
    text-decoration: none;
}

.markdown-body a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.markdown-body .lede {
    max-width: 66ch;
    margin-bottom: 24px;
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.7;
}

.markdown-body .entry-meta {
    margin: -2px 0 12px;
    color: var(--fg-muted);
    font-size: 12px;
}

.markdown-body table {
    width: 100%;
    margin: 14px 0 22px;
    border: 1px solid var(--border-soft);
    border-collapse: collapse;
    font-size: 12.5px;
}

.markdown-body th,
.markdown-body td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
    vertical-align: top;
}

.markdown-body thead th {
    background: var(--bg-hover-soft);
    color: var(--fg-muted);
    font-size: 11px;
    font-weight: 600;
}

.markdown-body tbody th {
    width: 132px;
    color: var(--fg-muted);
    font-weight: 400;
}

.markdown-body tbody tr:last-child th,
.markdown-body tbody tr:last-child td {
    border-bottom: 0;
}

.markdown-body tbody tr:hover {
    background: var(--bg-hover-soft);
}

.markdown-body .project-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 12px 0 20px;
}

.markdown-body .project-links a {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    font-size: 12px;
    line-height: 20px;
}

.project-state {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin: 0;
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--fg-muted);
    font-size: 10.5px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.project-state.is-public {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
    color: var(--fg-muted);
    font-size: 10.5px;
    letter-spacing: 0.02em;
    line-height: 20px;
    white-space: nowrap;
}

.project-status::before {
    width: 5px;
    height: 5px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
    content: "";
    opacity: 0.7;
}

.project-status.is-done {
    color: var(--accent-strong);
}

.phase-chart {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 14px 0 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-hover-soft);
}

.phase {
    position: relative;
    min-height: 106px;
    padding: 14px 12px;
}

.phase span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-strong);
    font-family: var(--font-code);
    font-size: 10px;
}

.phase strong {
    display: block;
    color: var(--fg-strong);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
}

.phase small {
    display: block;
    margin-top: 5px;
    color: var(--fg-muted);
    font-size: 11px;
    line-height: 1.4;
}

.phase.is-current {
    background: var(--accent-soft);
    box-shadow: inset 0 3px 0 var(--accent);
}

.chart-panel {
    margin: 14px 0 24px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-hover-soft);
}

.chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 14px;
    margin-bottom: 14px;
}

.chart-head strong {
    color: var(--fg-strong);
    font-size: 13px;
    font-weight: 500;
}

.chart-head span {
    color: var(--fg-muted);
    font-size: 10.5px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 62px;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    font-size: 11.5px;
}

.bar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-track {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border-soft);
}

.bar-fill {
    display: block;
    width: var(--bar);
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.bar-value {
    color: var(--fg-muted);
    font-size: 10.5px;
    text-align: right;
}

.timeline {
    position: relative;
    margin: 14px 0 24px;
    padding-left: 22px;
}

.timeline::before {
    position: absolute;
    top: 6px;
    bottom: 8px;
    left: 5px;
    width: 1px;
    background: var(--border);
    content: "";
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 18px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    position: absolute;
    top: 5px;
    left: -21px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--fg-faint);
    border-radius: 50%;
    background: var(--bg-editor);
    content: "";
}

.timeline-item.is-current::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.timeline-year {
    padding-top: 2px;
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 10.5px;
    line-height: 1.4;
}

.timeline-card h3 {
    margin: 0 0 3px;
    font-size: 13.5px;
}

.timeline-card p {
    margin: 0;
    color: var(--fg-muted);
    font-size: 12px;
    line-height: 1.55;
}

.skill-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0 26px;
}

.skill-stats > div {
    padding: 12px 13px;
    border-radius: 7px;
    background: var(--bg-hover-soft);
}

.skill-stats strong {
    display: block;
    color: var(--fg-strong);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.skill-stats span {
    display: block;
    margin-top: 4px;
    color: var(--fg-muted);
    font-size: 10.5px;
}

.workflow-chain {
    counter-reset: workflow;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 24px;
}

.workflow-chain span {
    counter-increment: workflow;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 10px 11px;
    border-radius: 8px;
    background: var(--bg-hover-soft);
    color: var(--fg);
    font-family: var(--font-code);
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.workflow-chain span::before {
    color: var(--accent-strong);
    font-size: 9px;
    letter-spacing: 0.12em;
    content: "0" counter(workflow);
}

.workflow-chain span:last-child {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

@container markdown (min-width: 640px) {
    .workflow-chain {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@container markdown (max-width: 430px) {
    .workflow-chain {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-chain span:last-child {
        grid-column: span 2;
    }
}

.skill-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 26px;
}

.rule-card {
    padding: 14px;
    border-radius: 7px;
    background: var(--bg-hover-soft);
}

.rule-card > span {
    color: var(--accent-strong);
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rule-card strong {
    display: block;
    margin: 5px 0 6px;
    color: var(--fg-strong);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.rule-card p {
    margin: 0;
    color: var(--fg-muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.skill-table td:first-child {
    color: var(--fg-strong);
    font-family: var(--font-code);
    font-size: 11.5px;
}

.skill-table th:nth-child(2) {
    width: 82px;
}

.skill-source {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--bg-hover-soft);
    color: var(--fg-muted);
    font-size: 10px;
    white-space: nowrap;
}

.viz-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 24px;
}

.viz-card {
    min-width: 0;
    padding: 15px 16px 16px;
    border-radius: 9px;
    background: var(--bg-hover-soft);
}

.viz-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.viz-head > span {
    min-width: 0;
    overflow: hidden;
    color: var(--accent);
    font-family: var(--font-code);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.viz-state {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 5px;
    margin-left: auto;
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.viz-state::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    opacity: 0.7;
}

.viz-state.is-done {
    color: var(--accent-strong);
}

.viz-state.is-archive {
    color: var(--fg-faint);
}

.viz-head::before {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    content: "";
}

.viz-card h3 {
    margin: 0 0 5px;
    color: var(--fg-strong);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
}

.viz-card p {
    margin: 0;
    color: var(--fg-muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.viz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.viz-tags span {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--bg-editor);
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 9.5px;
}

.markdown-body .tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin: 14px 0 24px;
    padding-left: 0;
    list-style: none;
}

.markdown-body .tool-grid li {
    margin: 0;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--bg-hover-soft);
}

.tool-icon {
    display: inline-flex;
    flex: none;
    width: 24px;
    height: 24px;
    color: var(--fg-muted);
}

.tool-icon svg,
.tool-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-postman .tool-icon {
    color: #ff6c37;
}

.tool-docker .tool-icon {
    color: #2496ed;
}

.tool-git .tool-icon {
    color: #f03c2e;
}

.tool-claude .tool-icon {
    color: #d97757;
}

.tool-spotify .tool-icon {
    color: #1ed760;
}

.tool-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.tool-copy strong,
.tool-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-copy strong {
    color: var(--fg);
    font-size: 11.5px;
    font-weight: 500;
}

.tool-copy small {
    color: var(--fg-muted);
    font-size: 10px;
    line-height: 1.2;
}

@container markdown (min-width: 600px) {
    .markdown-body .tool-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@container markdown (min-width: 420px) and (max-width: 599.98px) {
    .markdown-body .tool-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .markdown-body .tool-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px;
    }
}

@container markdown (max-width: 419.98px) {
    .markdown-body .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container markdown (max-width: 287.98px) {
    .markdown-body .tool-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.project-preview {
    height: 108px;
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--bg-editor);
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 23px;
    padding: 0 8px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 8px;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.preview-bar > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-dots {
    display: flex;
    flex: none;
    gap: 3px;
}

.preview-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--fg-faint);
    opacity: 0.5;
}

.preview-stage {
    height: calc(100% - 23px);
    padding: 9px;
}

.preview-chat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    gap: 4px;
}

.preview-bubble {
    max-width: 92%;
    padding: 4px 7px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-hover-soft);
    color: var(--fg-muted);
    font-size: 8px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-bubble.is-user {
    align-self: flex-end;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.preview-source-row {
    display: flex;
    gap: 4px;
    margin-top: 1px;
}

.preview-source-row span {
    padding: 2px 5px;
    border: 1px solid var(--border-soft);
    border-radius: 3px;
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 7px;
    line-height: 1;
}

.preview-board {
    display: flex;
    height: 100%;
    gap: 5px;
}

.preview-column {
    flex: 1 1 0;
    min-width: 0;
    padding: 5px;
    border-radius: 4px;
    background: var(--bg-hover-soft);
}

.preview-column > span {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 7px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-column i {
    display: block;
    height: 8px;
    margin-bottom: 3px;
    border-radius: 2px;
    background: var(--bg-editor);
    box-shadow: inset 0 0 0 1px var(--border-soft);
}

.preview-column.is-active {
    background: var(--accent-soft);
}

.preview-column.is-active > span {
    color: var(--accent-strong);
}

.preview-ops {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 12px;
}

.preview-ops-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 8px;
    line-height: 1;
}

.preview-ops-head span:last-child {
    color: var(--fg-muted);
    font-size: 7px;
}

.preview-ops-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preview-ops-track::before {
    position: absolute;
    top: 3px;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    background: var(--border);
    content: "";
}

.preview-ops-track span {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 7px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-ops-track span::before {
    z-index: 1;
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bg-editor);
    box-shadow: inset 0 0 0 1px var(--border);
    content: "";
}

.preview-ops-track span.is-done {
    color: var(--accent-strong);
}

.preview-ops-track span.is-done::before {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.preview-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 100%;
    gap: 5px;
}

.preview-range span {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 0 7px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-hover-soft);
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 8px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-range span::before {
    flex: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
    opacity: 0.55;
}

.preview-range span:first-child {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.preview-range span:first-child::before {
    opacity: 1;
}

.flow {
    display: grid;
    grid-template-columns: repeat(var(--flow-cols, 4), minmax(0, 1fr));
    margin: 16px 0 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-hover-soft);
}

.flow-step {
    position: relative;
    min-width: 0;
    padding: 13px 12px 14px;
}

.flow-step > span {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-family: var(--font-code);
    font-size: 9.5px;
    letter-spacing: 0.08em;
}

.flow-step strong {
    display: block;
    color: var(--fg-strong);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.flow-step small {
    display: block;
    margin-top: 4px;
    color: var(--fg-muted);
    font-size: 10.5px;
    line-height: 1.45;
}

.flow-step + .flow-step::before {
    position: absolute;
    top: 50%;
    left: -5px;
    z-index: 1;
    width: 10px;
    color: var(--fg-faint);
    font-size: 13px;
    line-height: 1;
    text-align: center;
    transform: translateY(-50%);
    content: "›";
}

.layer-stack {
    display: grid;
    gap: 7px;
    margin: 16px 0 24px;
}

.layer-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-hover-soft);
}

.layer-row > span {
    color: var(--accent);
    font-family: var(--font-code);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.layer-row div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.layer-row b {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--bg-editor);
    color: var(--fg);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 400;
}

.code-window {
    margin: 16px 0 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--code-window-bg);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.code-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 11px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--code-window-bar);
}

.code-window-bar strong {
    color: var(--accent-strong);
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.code-window-bar span {
    color: var(--fg-faint);
    font-family: var(--font-code);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.code-window pre {
    margin: 0;
    padding: 14px 16px 16px;
    overflow-x: auto;
    color: var(--fg);
    font-family: var(--font-code);
    font-size: 12px;
    line-height: 1.7;
    tab-size: 2;
}

.code-window code {
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.json-key {
    color: var(--code-property);
}

.json-string {
    color: var(--code-string);
}

.json-number {
    color: var(--code-number);
}

.json-boolean {
    color: var(--code-keyword);
}

.json-punc {
    color: var(--fg-muted);
}

.contact-socials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 9px;
    margin: 16px 0 20px;
}

.markdown-body .social-card {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 0;
    border-radius: 9px;
    background: var(--bg-hover-soft);
    color: var(--fg);
    font: inherit;
    text-align: left;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.16s ease;
}

.markdown-body .social-card:hover {
    background: var(--accent-soft);
    color: var(--fg);
    text-decoration: none;
    transform: translateY(-1px);
}

.markdown-body .social-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.social-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.social-copy strong {
    color: var(--fg-strong);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.2;
}

.social-copy small {
    overflow: hidden;
    color: var(--fg-muted);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-icon {
    width: 21px;
    height: 21px;
    flex: none;
    background: currentColor;
    color: var(--fg-muted);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: color 0.16s ease;
}

.social-icon-gmail {
    -webkit-mask-image: url("../images/icons/gmail.svg");
    mask-image: url("../images/icons/gmail.svg");
    color: #ea4335;
}

.social-icon-github {
    -webkit-mask-image: url("../images/icons/github.svg");
    mask-image: url("../images/icons/github.svg");
    color: var(--fg-strong);
}

.social-icon-instagram {
    -webkit-mask-image: url("../images/icons/instagram.svg");
    mask-image: url("../images/icons/instagram.svg");
    color: #e1306c;
}

.social-icon-telegram {
    -webkit-mask-image: url("../images/icons/telegram.svg");
    mask-image: url("../images/icons/telegram.svg");
    color: #2aabee;
}

.social-icon-discord {
    -webkit-mask-image: url("../images/icons/discord.svg");
    mask-image: url("../images/icons/discord.svg");
    color: #5865f2;
}

.social-card:hover .social-icon {
    filter: brightness(1.12) saturate(1.08);
}

.social-arrow {
    margin-left: auto;
    color: var(--fg-faint);
    font-size: 12px;
}

.social-copy-action {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 4px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.social-copy-action .codicon {
    font-size: 11px;
}

.social-card.is-copy {
    cursor: pointer;
}

.social-card.is-copy:hover .social-copy-action {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.skill-stats {
    gap: 12px;
    margin: 22px 0 28px;
}

.skill-stats > div {
    padding: 16px 15px 14px;
    border-radius: 9px;
    background: var(--bg-hover-soft);
}

.skill-stats strong {
    color: var(--accent-strong);
    font-size: 30px;
    font-variant-numeric: tabular-nums;
}

.skill-stats span {
    margin-top: 6px;
    font-size: 11px;
}

.about-lead {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 26px;
}

.about-lead img {
    width: 64px;
    height: 64px;
    border: 1px solid var(--border);
    border-radius: 50%;
    object-fit: cover;
}

.markdown-body .about-lead h1 {
    margin: 0;
    font-size: clamp(32px, 5.2cqw, 48px);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.about-lead p {
    margin: 6px 0 0;
    color: var(--fg-muted);
    font-size: 13px;
}

.markdown-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--link);
    font-size: 12px;
    white-space: nowrap;
}

.text-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.text-link .codicon {
    font-size: 13px;
}

.inline-file {
    padding: 0;
    color: var(--link);
    font-family: var(--font-code);
    font-size: 12px;
}

.inline-file:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.meta-panel {
    align-self: start;
    padding-top: 3px;
}

.meta-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-soft);
}

.meta-row span {
    color: var(--fg-muted);
    font-size: 11px;
}

.meta-row strong {
    color: var(--fg);
    font-size: 12px;
    font-weight: 400;
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.status-dot.is-progress {
    background: var(--fg-muted);
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 18px;
    margin-top: 8px;
}

.shortcut-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--fg-muted);
    font-size: 12px;
}

.settings-page {
    max-width: 900px;
    padding: 34px 40px 60px;
}

.settings-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.settings-heading h1 {
    margin: 0;
    color: var(--fg-strong);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.settings-heading p:last-child {
    margin: 5px 0 0;
    color: var(--fg-muted);
    font-size: 13px;
}

.settings-search-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 29px;
    margin-bottom: 26px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background: var(--bg-input);
}

.settings-search-row:focus-within {
    border-color: var(--accent);
}

.settings-search-row > .codicon {
    width: 30px;
    color: var(--fg-muted);
    font-size: 15px;
    text-align: center;
}

.settings-search-row input {
    flex: 1 1 auto;
    height: 27px;
    min-width: 0;
    padding: 0 8px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--fg);
    font-size: 13px;
}

.settings-search-row input::placeholder {
    color: var(--fg-muted);
}

.settings-group {
    margin-bottom: 26px;
}

.settings-group h2 {
    margin: 0 0 4px;
    color: var(--fg);
    font-size: 13px;
    font-weight: 600;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.setting-copy {
    min-width: 0;
}

.setting-copy label {
    display: block;
    color: var(--fg);
    font-size: 13px;
    cursor: default;
}

.setting-copy p {
    max-width: 560px;
    margin: 3px 0 0;
    color: var(--fg-muted);
    font-size: 12px;
    line-height: 1.4;
}

.setting-control {
    flex: 0 0 180px;
}

.setting-control-wide {
    flex-basis: 300px;
}

.setting-control input[type="text"],
.setting-control input[type="number"],
.setting-control select {
    width: 100%;
    height: 26px;
    padding: 0 6px;
    border: 1px solid var(--input-border);
    border-radius: 2px;
    outline: 0;
    background: var(--bg-input);
    color: var(--fg);
    font-size: 12px;
}

.setting-control input:focus,
.setting-control select:focus {
    border-color: var(--accent);
}

.setting-control select {
    cursor: pointer;
}

.switch {
    display: inline-flex;
    cursor: pointer;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    position: relative;
    display: block;
    width: 32px;
    height: 18px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--bg-input);
    transition: background 120ms ease, border-color 120ms ease;
}

.switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--fg-muted);
    transition: transform 120ms ease, background 120ms ease;
}

.switch input:checked + .switch-track {
    border-color: var(--accent);
    background: var(--accent);
}

.switch input:checked + .switch-track .switch-thumb {
    background: #ffffff;
    transform: translateX(14px);
}

.switch input:focus-visible + .switch-track {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

.settings-empty {
    padding: 20px 0;
    color: var(--fg-muted);
    font-size: 13px;
}

.empty-view.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-inner {
    max-width: 440px;
    padding: 40px 24px;
    text-align: center;
}

.empty-inner > .codicon {
    margin-bottom: 14px;
    color: var(--fg-faint);
    font-size: 44px;
}

.empty-inner h1 {
    margin: 0 0 7px;
    color: var(--fg-strong);
    font-size: 22px;
    font-weight: 500;
}

.empty-inner p {
    margin: 0 0 20px;
    color: var(--fg-muted);
    font-size: 13px;
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.primary-button,
.secondary-button {
    height: 28px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 12px;
}

.primary-button {
    background: var(--button);
    color: #ffffff;
}

.primary-button:hover {
    background: var(--button-hover);
}

.secondary-button {
    border: 1px solid var(--border);
    background: var(--bg-hover-soft);
    color: var(--fg);
}

.secondary-button:hover {
    background: var(--bg-hover);
}

.panel {
    position: relative;
    display: none;
    flex: 0 0 264px;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 0.8px solid var(--border);
    border-radius: 8px;
    background: var(--bg-panel);
}

.panel.is-open {
    display: flex;
}

.panel-resizer {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 8;
    height: 10px;
    cursor: ns-resize;
    touch-action: none;
}

.panel-resizer::after {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--border);
    content: "";
    opacity: 0.9;
    transform: translateX(-50%);
    transition: background-color 120ms ease, opacity 120ms ease;
}

.panel-resizer:hover::after,
.panel-resizer:focus-visible::after,
.panel.is-resizing .panel-resizer::after {
    background: var(--link);
    opacity: 1;
}

.panel-resizer:focus-visible {
    outline: none;
}

body.is-panel-resizing {
    cursor: ns-resize;
    user-select: none;
}

.panel-tabs {
    display: flex;
    flex: 0 0 35px;
    align-items: center;
    height: 35px;
    min-width: 0;
    padding: 0 8px;
    user-select: none;
}

.panel-tab-list {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 2px;
    min-width: 0;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.panel-tab-list::-webkit-scrollbar {
    display: none;
}

.panel-tab {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border-radius: 5px;
    color: var(--fg-muted);
    font-size: 12px;
    white-space: nowrap;
}

.panel-tab:hover {
    background: var(--bg-hover-soft);
    color: var(--fg);
}

.panel-tab.is-active {
    background: var(--bg-selected);
    color: var(--fg);
}

.panel-count {
    color: var(--fg-muted);
    font-size: 10px;
}

.panel-actions {
    display: flex;
    flex: none;
    align-items: center;
    margin-left: auto;
    padding-left: 8px;
}

.panel-actions .icon-button {
    width: 24px;
    height: 24px;
}

.panel-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.panel-view {
    flex: 1 1 auto;
    min-height: 0;
}

.terminal-view {
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    container-type: inline-size;
    padding: 5px 14px 4px;
    color: var(--fg-editor);
    font-family: var(--font-code);
    font-size: var(--term-live-size, var(--term-size, 13px));
    line-height: var(--term-live-line-height, var(--term-line-height, 19px));
}

.terminal-output p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.gnurt-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    margin: 2px 0 4px;
}

.gnurt-logo {
    flex: none;
    margin: 0;
    color: var(--terminal-green);
    font-family: var(--font-code);
    font-size: min(1em, 3.8cqw);
    line-height: 1.05;
    white-space: pre;
}

.gnurt-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1px 14px;
    min-width: 0;
    color: var(--fg-editor);
}

.gnurt-key {
    color: var(--link);
}

.gnurt-value {
    overflow-wrap: anywhere;
}

.gnurt-mascot {
    flex: none;
    align-self: flex-start;
    width: 80px;
    height: 80px;
    margin-left: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 12px rgba(78, 201, 176, 0.13));
}

.gnurt-story {
    margin: 0;
}

.gnurt-story-line {
    position: relative;
    margin: 0;
    color: var(--fg-muted);
    line-height: 1.25;
    white-space: pre-wrap;
}

.gnurt-char {
    animation: gnurt-char-glow 1.05s ease-out both;
}

.gnurt-story-line.is-typing {
    background: linear-gradient(90deg, rgba(78, 201, 176, 0.08), transparent 45%);
}

.gnurt-story-line.is-typing::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    width: 2px;
    border-radius: 2px;
    background: var(--terminal-green);
    box-shadow: 0 0 8px rgba(78, 201, 176, 0.55);
}

.gnurt-story-line.is-typing::after {
    content: "_";
    margin-left: 1px;
    color: var(--terminal-green);
    font-weight: 700;
    text-shadow: 0 0 9px rgba(78, 201, 176, 0.65);
    animation: gnurt-caret 1.15s step-end infinite;
}

.gnurt-credit {
    margin: 0;
    color: var(--fg-muted);
    font-size: 0.76em;
    line-height: 1.4;
    opacity: 0.72;
}

.gnurt-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes gnurt-char-glow {
    0% {
        color: var(--terminal-green);
        text-shadow: 0 0 10px rgba(78, 201, 176, 0.8), 0 0 22px rgba(78, 201, 176, 0.3);
    }

    55% {
        color: var(--terminal-green);
        text-shadow: 0 0 7px rgba(78, 201, 176, 0.42);
    }

    100% {
        color: var(--fg-muted);
        text-shadow: 0 0 0 rgba(78, 201, 176, 0);
    }
}

@keyframes gnurt-caret {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 620px) {
    .gnurt-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    .gnurt-mascot {
        order: -1;
        align-self: flex-end;
        width: 64px;
        height: 64px;
        margin-left: 0;
    }

    .gnurt-credit::after {
        content: "";
        display: inline-block;
        width: 22px;
        height: 22px;
        margin-left: 6px;
        vertical-align: -6px;
        background: url("../images/gnurt-rooster.gif") center / contain no-repeat;
        image-rendering: pixelated;
    }
}

@media (max-width: 420px) {
    .terminal-prompt .term-path {
        display: none;
    }
}

.term-dim {
    color: var(--fg-muted);
}

.term-key {
    color: var(--link);
}

.term-user {
    color: var(--terminal-green);
}

.term-path {
    color: var(--link);
}

.term-error {
    color: #f48771;
}

.terminal-form {
    display: flex;
    align-items: baseline;
    padding: 0 14px 7px;
    color: var(--fg-editor);
    font-family: var(--font-code);
    font-size: var(--term-live-size, var(--term-size, 13px));
    line-height: var(--term-live-line-height, var(--term-line-height, 19px));
}

.terminal-form.is-hidden {
    display: none;
}

.terminal-prompt {
    display: inline-flex;
    flex: none;
    gap: 0;
    white-space: nowrap;
}

.terminal-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--term-live-line-height, var(--term-line-height, 19px));
    margin-left: 6px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--fg-editor);
    font-family: var(--font-code);
    font-size: var(--term-live-size, var(--term-size, 13px));
    line-height: var(--term-live-line-height, var(--term-line-height, 19px));
}

.panel-placeholder {
    padding: 14px 16px;
    color: var(--fg-muted);
    font-size: 13px;
}

.auxiliarybar {
    display: flex;
    flex: 0 0 292px;
    flex-direction: column;
    width: 292px;
    min-height: 0;
    overflow: hidden;
    border: 0.8px solid var(--border);
    border-radius: 8px;
    background: var(--bg-aux);
}

.auxiliarybar.is-hidden {
    display: none;
}

.aux-header {
    display: flex;
    flex: 0 0 35px;
    align-items: center;
    height: 35px;
    padding: 0 8px 0 12px;
}

.aux-title {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--fg);
    font-size: 13px;
    font-weight: 600;
}

.aux-title .codicon {
    font-size: 15px;
}

.aux-actions {
    display: flex;
    flex: none;
    align-items: center;
}

.aux-actions .icon-button {
    width: 24px;
    height: 24px;
}

.aux-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px;
}

.chat-welcome {
    padding: 20px 4px 8px;
    text-align: center;
}

.chat-welcome img {
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 50%;
    object-fit: cover;
}

.chat-welcome h2 {
    margin: 10px 0 5px;
    color: var(--fg-strong);
    font-size: 16px;
    font-weight: 500;
}

.chat-welcome p {
    margin: 0 auto;
    max-width: 220px;
    color: var(--fg-muted);
    font-size: 12px;
    line-height: 1.5;
}

.chat-welcome .chat-welcome-role {
    max-width: none;
    margin: 0 auto 12px;
    color: var(--accent-strong);
    font-size: 10.5px;
}

.chat-facts {
    margin: 12px 0 13px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    text-align: left;
}

.chat-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    background: var(--bg-input);
}

.chat-facts div + div {
    border-top: 1px solid var(--border-soft);
}

.chat-facts span {
    flex: none;
    color: var(--fg-muted);
    font-size: 10px;
}

.chat-facts strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--fg);
    font-size: 10.5px;
    font-weight: 400;
    text-align: right;
}

.chat-welcome-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 12px;
    text-align: left;
}

.chat-welcome-links button {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 6px 7px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    background: var(--bg-hover-soft);
    color: var(--link);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-welcome-links button:hover {
    border-color: var(--border);
    background: var(--bg-hover);
}

.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 18px;
    text-align: left;
}

.chat-suggestions button {
    padding: 7px 9px;
    border: 1px solid var(--border-soft);
    border-radius: 5px;
    background: var(--bg-hover-soft);
    color: var(--fg);
    font-size: 12px;
    text-align: left;
}

.chat-suggestions button:hover {
    border-color: var(--border);
    background: var(--bg-hover);
}

.chat-message {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
}

.chat-message.is-user {
    justify-content: flex-end;
}

.chat-message-avatar {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-bubble {
    max-width: 86%;
    padding: 7px 9px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--bg-hover-soft);
    color: var(--fg);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.chat-message.is-user .chat-bubble {
    border-color: transparent;
    background: var(--button);
    color: #ffffff;
}

.chat-bubble p {
    margin: 0 0 6px;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.chat-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 7px;
}

.chat-link {
    padding: 5px 7px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-input);
    color: var(--link);
    font-size: 11px;
    text-align: left;
}

.chat-link:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.chat-citation {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
}

.chat-citation > .seti,
.chat-citation > .codicon {
    flex: none;
    margin-top: 1px;
    font-size: 12px;
}

.chat-citation-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.chat-citation-copy strong {
    overflow: hidden;
    color: var(--link);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-citation-copy small {
    overflow: hidden;
    color: var(--fg-muted);
    font-family: var(--font-code);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-citation:hover .chat-citation-copy small {
    color: var(--fg);
}

.chat-composer {
    flex: none;
    margin: 0 10px 10px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--bg-input);
}

.chat-composer:focus-within {
    border-color: var(--accent);
}

.chat-composer textarea {
    display: block;
    width: 100%;
    min-height: 34px;
    max-height: 100px;
    padding: 7px 8px 2px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--fg);
    font-size: 12px;
    line-height: 1.45;
    resize: none;
}

.chat-composer textarea::placeholder {
    color: var(--fg-muted);
}

.chat-composer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px 6px;
}

.chat-mode {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--fg-muted);
    font-size: 11px;
}

.chat-mode .codicon {
    font-size: 12px;
}

.chat-send {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 4px;
    background: var(--button);
    color: #ffffff;
}

.chat-send:hover {
    background: var(--button-hover);
}

.chat-send:disabled {
    background: var(--bg-selected);
    color: var(--fg-muted);
    cursor: default;
}

.chat-send .codicon {
    font-size: 13px;
}

.statusbar {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    padding: 0 4px;
    background: var(--bg-status);
    color: var(--status-fg);
    font-size: 12px;
    user-select: none;
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 8px;
    border-radius: 3px;
    color: var(--status-fg);
    font-size: 12px;
    white-space: nowrap;
}

.status-item:hover {
    background: var(--bg-hover);
    color: var(--fg);
}

.status-item .codicon {
    font-size: 13px;
}

.status-icon-only {
    padding: 0 6px;
}

.status-optional {
    display: inline-flex;
}

.menu-popup {
    position: fixed;
    z-index: 600;
    min-width: 230px;
    max-width: 340px;
    padding: 4px;
    overflow: hidden;
    border: 0.8px solid var(--border);
    border-radius: 6px;
    background: var(--bg-menu);
    box-shadow: var(--shadow-menu);
    color: var(--fg);
    font-size: 13px;
}

.menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 22px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--fg);
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}

.menu-item:hover,
.menu-item.is-active {
    border-color: var(--accent);
    background: var(--menu-selection);
}

.menu-item:disabled {
    color: var(--fg-faint);
    cursor: default;
}

.menu-item:disabled:hover {
    border-color: transparent;
    background: transparent;
}

.menu-shortcut {
    margin-left: auto;
    padding-left: 28px;
    color: var(--fg-muted);
    font-size: 11px;
}

.menu-separator {
    height: 1px;
    margin: 4px 0;
    background: var(--border);
}

.palette-overlay {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 10px 10px;
    background: var(--overlay);
}

.palette {
    width: min(600px, calc(100vw - 20px));
    max-height: min(510px, calc(100vh - 90px));
    overflow: hidden;
    border: 0.8px solid var(--border);
    border-radius: 6px;
    background: var(--bg-quick);
    box-shadow: var(--shadow-menu);
}

.tab-palette {
    width: min(500px, calc(100vw - 20px));
}

.palette-input-row {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 8px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-input);
}

.palette-input-row > .codicon {
    width: 24px;
    color: var(--fg-muted);
    font-size: 15px;
    text-align: center;
}

.palette-input-row input {
    flex: 1 1 auto;
    min-width: 0;
    height: 28px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--fg);
    font-size: 13px;
}

.palette-input-row input::placeholder {
    color: var(--fg-muted);
}

.palette-input-row > kbd {
    flex: none;
}

.palette-list {
    max-height: 386px;
    overflow: auto;
    padding: 4px;
}

.palette-item {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 26px;
    padding: 3px 7px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--fg);
    font-size: 13px;
    text-align: left;
}

.palette-item .codicon,
.palette-item .seti {
    width: 16px;
    font-size: 16px;
}

.palette-item:hover,
.palette-item.is-active {
    background: var(--button);
    color: #ffffff;
}

.palette-item:hover .palette-meta,
.palette-item.is-active .palette-meta {
    color: rgba(255, 255, 255, 0.72);
}

.palette-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.palette-meta {
    flex: 0 0 auto;
    max-width: 44%;
    overflow: hidden;
    color: var(--fg-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.palette-key {
    flex: none;
    color: var(--fg-muted);
    font-size: 10px;
}

.palette-empty {
    padding: 14px 9px;
    color: var(--fg-muted);
    font-size: 12px;
}

.palette-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    min-height: 24px;
    padding: 4px 8px;
    border-top: 1px solid var(--border-soft);
    color: var(--fg-muted);
    font-size: 11px;
}

.palette-foot span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.palette-foot kbd {
    min-height: 14px;
    padding: 0 3px;
    font-size: 9px;
}

.toast {
    position: fixed;
    right: 14px;
    bottom: 42px;
    z-index: 800;
    max-width: min(360px, calc(100vw - 28px));
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-menu);
    box-shadow: var(--shadow-menu);
    color: var(--fg);
    font-size: 12px;
    line-height: 1.45;
}

@container (max-width: 820px) {
    .welcome-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-column:last-child {
        grid-column: 1 / -1;
    }

    .welcome-recent {
        max-width: 360px;
    }

    .markdown-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 760px;
        gap: 28px;
    }

    .meta-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
        padding-top: 0;
    }

    .phase-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .skill-rules {
        grid-template-columns: minmax(0, 1fr);
    }
}

@container (max-width: 560px) {
    .welcome-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .welcome-link small {
        overflow: visible;
        white-space: normal;
    }

    .phase-chart {
        grid-template-columns: minmax(0, 1fr);
    }

    .phase {
        min-height: 0;
    }

    .timeline-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .timeline-year {
        padding-top: 0;
    }

    .bar-row {
        grid-template-columns: 100px minmax(0, 1fr) 54px;
        gap: 7px;
    }

    .skill-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chart-panel {
        padding: 13px;
    }

    .markdown-body th,
    .markdown-body td {
        padding: 6px 7px;
    }

    .skill-table {
        font-size: 11px;
    }

    .skill-table td:first-child {
        white-space: normal;
    }

    .viz-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .flow-step + .flow-step::before {
        top: -7px;
        left: 50%;
        transform: translateX(-50%);
        content: "↓";
    }

    .layer-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .code-window pre {
        padding: 12px 13px 14px;
        overflow-wrap: anywhere;
        font-size: 11px;
        white-space: pre-wrap;
    }
}

.chat-donate {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 9px 10px;
    border: 1px solid var(--donate-border);
    border-radius: 6px;
    background: linear-gradient(135deg, var(--donate-soft), transparent 72%);
    color: var(--fg);
    text-align: left;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.chat-donate:hover {
    border-color: var(--donate);
    background: var(--donate-soft);
    transform: translateY(-1px);
}

.chat-donate-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--donate-soft);
    color: var(--donate);
}

.chat-donate-icon .heart-icon {
    width: 15px;
    height: 15px;
}

.chat-donate-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.chat-donate-copy strong {
    color: var(--fg-strong);
    font-size: 11.5px;
    font-weight: 500;
}

.chat-donate-copy small {
    color: var(--fg-muted);
    font-size: 10px;
}

.chat-donate-arrow {
    flex: none;
    color: var(--fg-faint);
    font-size: 12px;
}

.donate-overlay {
    z-index: 760;
    align-items: center;
    padding: 24px 10px;
}

.donate-dialog {
    display: flex;
    flex-direction: column;
    width: min(500px, calc(100vw - 20px));
    max-height: calc(100vh - 48px);
}

.donate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-input);
}

.donate-head-title {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.donate-head-title .heart-icon {
    width: 15px;
    height: 15px;
    color: var(--donate);
}

.donate-head h2 {
    margin: 0;
    overflow: hidden;
    color: var(--fg-strong);
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donate-body {
    overflow: auto;
    padding: 14px;
}

.donate-lede {
    margin: 0 0 12px;
    color: var(--fg-muted);
    font-size: 12px;
    line-height: 1.5;
}

.donate-paypal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--fg-muted);
    font-size: 10.5px;
}

.donate-paypal-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    border-bottom: 1px solid var(--border);
    color: var(--fg-strong);
    font-size: 10.5px;
    font-weight: 500;
    text-decoration: none;
}

.donate-paypal-link:hover {
    border-color: var(--fg-strong);
    color: var(--fg-strong);
}

.donate-paypal-icon {
    width: 17px;
    height: 17px;
    flex: none;
}

.donate-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.donate-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-input);
    overflow: hidden;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.donate-item[data-item="water"] {
    --item: #58b7ef;
    --item-soft: rgba(88, 183, 239, 0.14);
}

.donate-item[data-item="milk-tea"] {
    --item: #d9965b;
    --item-soft: rgba(217, 150, 91, 0.15);
}

.donate-item[data-item="rice"] {
    --item: #e09a4e;
    --item-soft: rgba(224, 154, 78, 0.15);
}

.donate-item[data-item="bun-bo"] {
    --item: #d96b5b;
    --item-soft: rgba(217, 107, 91, 0.15);
}

.donate-item:hover {
    border-color: var(--border);
    background: var(--bg-hover-soft);
    transform: translateY(-1px);
}

.donate-item.is-selected {
    border-color: var(--item);
    background: linear-gradient(160deg, var(--item-soft), var(--bg-input) 72%);
    box-shadow: inset 0 0 0 1px var(--item);
}

.donate-item-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 10px 8px;
    border: 0;
    background: transparent;
    color: var(--fg);
    text-align: left;
}

.donate-item-main:focus-visible,
.donate-qty-btn:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: -1px;
}

.donate-item-art {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 11px;
    background: var(--item-soft);
}

.donate-item-art svg {
    display: block;
    width: 46px;
    height: 46px;
}

.donate-item-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.donate-item-copy strong {
    color: var(--fg-strong);
    font-size: 12px;
    font-weight: 500;
}

.donate-item-copy small {
    color: var(--fg-muted);
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.donate-item-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--item);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.donate-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin: 0 8px 8px;
    padding: 3px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--bg-hover-soft);
}

.donate-qty-btn {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1;
}

.donate-qty-btn:hover:not(:disabled) {
    border-color: var(--border);
    background: var(--bg-hover);
    color: var(--fg-strong);
}

.donate-qty-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.donate-qty-value {
    min-width: 22px;
    color: var(--fg-strong);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.donate-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 9px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--bg-input);
}

.donate-total-copy,
.donate-total-value {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.donate-total-value {
    flex: none;
    text-align: right;
}

.donate-total span,
.donate-order span {
    color: var(--fg-muted);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.donate-total strong {
    color: var(--fg-strong);
    font-size: 11.5px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.donate-total-value strong {
    color: var(--donate);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.donate-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.donate-field span {
    color: var(--fg-muted);
    font-size: 10.5px;
}

.donate-field input {
    width: 100%;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    outline: 0;
    background: var(--bg-input);
    color: var(--fg);
    font: inherit;
    font-size: 12px;
}

.donate-field input:focus {
    border-color: var(--accent);
}

.donate-error {
    margin: 10px 0 0;
    padding: 7px 8px;
    border: 1px solid var(--donate-border);
    border-radius: 4px;
    background: var(--donate-soft);
    color: var(--donate);
    font-size: 11px;
    line-height: 1.4;
}

.donate-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 32px;
    margin-top: 12px;
    border: 1px solid var(--button);
    border-radius: 4px;
    background: var(--button);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.donate-submit .heart-icon {
    width: 13px;
    height: 13px;
}

.donate-submit:hover {
    background: var(--button-hover);
}

.donate-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

.donate-foot {
    display: flex;
    gap: 5px;
    margin: 10px 0 0;
    color: var(--fg-faint);
    font-size: 10px;
    line-height: 1.45;
}

.donate-foot .codicon {
    flex: none;
    margin-top: 1px;
}

.donate-qr-frame {
    position: relative;
    width: fit-content;
    margin: 0 auto 12px;
    padding: 8px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.donate-qr {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.donate-demo {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 5px;
    border-radius: 3px;
    background: var(--donate);
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.04em;
}

.donate-bank {
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border-soft);
    border-radius: 5px;
    background: var(--bg-input);
}

.donate-bank div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.donate-bank span {
    color: var(--fg-muted);
}

.donate-bank strong {
    overflow-wrap: anywhere;
    color: var(--fg);
    font-weight: 400;
    text-align: right;
}

.donate-order {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 5px;
    background: var(--donate-soft);
    font-size: 10.5px;
}

.donate-order strong {
    color: var(--fg-strong);
    font-weight: 500;
    text-align: right;
}

.donate-note-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 8px;
    border: 1px dashed var(--border);
    border-radius: 5px;
    background: var(--bg-hover-soft);
    font-size: 11px;
}

.donate-note-row > span {
    flex: none;
    color: var(--fg-muted);
}

.donate-note-row code {
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    color: var(--fg-strong);
    font-family: var(--font-code);
    font-size: 11px;
}

.donate-note-row .icon-button {
    flex: none;
    width: 22px;
    height: 22px;
}

.donate-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px;
    border-radius: 5px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 11.5px;
}

.donate-status.is-underpaid {
    background: var(--donate-soft);
    color: var(--donate);
}

.donate-status.is-expired {
    background: var(--bg-hover-soft);
    color: var(--fg-muted);
}

.donate-spinner {
    animation: donate-spin 1s linear infinite;
}

@keyframes donate-spin {
    to {
        transform: rotate(360deg);
    }
}

.donate-hint {
    margin: 8px 0 0;
    color: var(--fg-faint);
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

.donate-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.donate-actions .secondary-button {
    min-width: 100px;
    height: 28px;
    font-size: 11px;
}

.donate-done {
    padding: 12px 2px 4px;
    text-align: center;
}

.donate-check {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    color: var(--donate);
}

.donate-check::before {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--donate-soft);
    content: "";
    filter: blur(10px);
    opacity: 0.5;
}

.donate-seal {
    position: relative;
    display: block;
    width: 64px;
    height: 64px;
}

.donate-seal-ring {
    fill: var(--donate-soft);
    stroke: var(--donate-border);
    stroke-width: 1.4;
}

.donate-seal-dash {
    fill: none;
    stroke: var(--donate-border);
    stroke-dasharray: 2 5;
    stroke-width: 1;
    opacity: 0.75;
}

.donate-seal-heart {
    fill: currentColor;
}

.donate-seal-shine {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-linecap: round;
    stroke-width: 1.4;
}

.donate-done:not([hidden]) .donate-check {
    animation: donate-seal-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes donate-seal-in {
    from {
        opacity: 0;
        transform: scale(0.82);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.donate-done h3 {
    margin: 0 0 6px;
    color: var(--fg-strong);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.donate-thanks-copy {
    max-width: 320px;
    margin: 0 auto;
    color: var(--fg-muted);
    font-size: 12px;
    line-height: 1.55;
}

.donate-order-done {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    max-width: 340px;
    margin: 12px auto 0;
    padding: 9px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--fg-strong);
    font-size: 11.5px;
    line-height: 1.4;
    text-align: left;
}

.donate-order-done span {
    flex: none;
    color: var(--fg-muted);
    font-size: 10px;
}

.donate-order-done strong {
    overflow-wrap: anywhere;
    font-weight: 500;
    text-align: right;
}

.donate-quote {
    position: relative;
    max-width: 340px;
    margin: 10px auto 0;
    padding: 10px 12px 10px 34px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--fg);
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
}

.donate-quote::before {
    position: absolute;
    top: 2px;
    left: 11px;
    color: var(--donate);
    content: "“";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1;
}

.donate-done-close {
    width: auto;
    min-width: 132px;
    margin: 16px auto 0;
    padding: 0 18px;
    border-color: var(--donate-border);
    background: var(--donate-soft);
    color: var(--donate);
}

.donate-done-close:hover {
    background: var(--donate);
    color: #ffffff;
}

@media (max-width: 560px) {
    .donate-overlay {
        align-items: flex-end;
        padding: 10px;
    }

    .donate-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    .donate-menu {
        gap: 6px;
    }

    .donate-item-main {
        gap: 7px;
        padding: 8px 8px 6px;
    }

    .donate-item-art {
        width: 40px;
        height: 40px;
    }

    .donate-item-art svg {
        width: 36px;
        height: 36px;
    }

    .donate-item-copy strong {
        font-size: 11.5px;
    }

    .donate-qr {
        width: 170px;
        height: 170px;
    }

    .donate-done-close {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-donate,
    .donate-item {
        transition: none;
    }

    .donate-spinner {
        animation: none;
    }

    .donate-done:not([hidden]) .donate-check {
        animation: none;
    }
}

@media (max-width: 1366px) {
    .menu-trigger {
        padding-right: 4px;
        padding-left: 4px;
    }
}

@media (max-width: 1220px) {
    .menubar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .titlebar-right .contact-pill,
    .titlebar-right .donate-pill {
        display: none;
    }
}

@media (max-width: 1250px) {
    .welcome-inner {
        padding-right: 36px;
        padding-left: 36px;
    }

    .markdown-layout {
        gap: 36px;
        padding-right: 34px;
        padding-left: 34px;
    }
}

@media (max-width: 1120px) {
    .auxiliarybar {
        display: none;
    }

    .auxiliarybar.is-forced {
        position: fixed;
        top: 43px;
        right: 8px;
        bottom: 36px;
        z-index: 120;
        display: flex;
        width: min(340px, calc(100vw - 16px));
        height: auto;
        box-shadow: var(--shadow-panel);
    }

    .panel.is-open {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        height: 240px;
        box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.3);
    }

    .panel-tabs,
    .panel-body {
        background: var(--bg-panel);
    }

    .markdown-layout {
        grid-template-columns: minmax(0, 1fr) 190px;
    }
}

@media (max-width: 980px) {
    .menubar {
        display: none;
    }

    .welcome-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-column:last-child {
        grid-column: 1 / -1;
    }

    .welcome-recent {
        max-width: 360px;
    }

    .markdown-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 760px;
    }

    .meta-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
        padding-top: 0;
    }

    .settings-page {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 760px) {
    .titlebar {
        flex-basis: 44px;
        height: 44px;
    }

    .titlebar-logo {
        width: 36px;
        height: 36px;
    }

    .titlebar-logo img {
        width: 19px;
        height: 19px;
    }

    .tabbar {
        flex-basis: 40px;
        height: 40px;
    }

    .tab {
        height: 36px;
    }

    #toggleSidebar .sidebar-icon-desktop {
        display: none;
    }

    #toggleSidebar .sidebar-icon-mobile {
        display: block;
        font-size: 20px;
    }

    #toggleSidebar {
        width: 40px;
        height: 40px;
        margin-right: 4px;
    }

    .tab-close {
        width: 32px;
        height: 32px;
    }

    .tab-close .codicon {
        font-size: 16px;
    }

    .tab-actions {
        padding: 0 4px;
    }

    .tab-actions .icon-button {
        width: 32px;
        height: 32px;
    }

    .editor-toolbar {
        flex-basis: 36px;
        height: 36px;
    }

    .editor-actions .icon-button {
        width: 30px;
        height: 30px;
    }

    [data-action="split-editor"] {
        display: none;
    }

    body.mobile-sidebar-open .tab-actions,
    body.mobile-sidebar-open .editor-actions {
        opacity: 0;
        pointer-events: none;
    }

    #toggleSidebar.is-active {
        background: var(--accent-soft);
        color: var(--accent-strong);
    }

    body.mobile-sidebar-open {
        overflow: hidden;
    }

    .sidebar {
        position: fixed;
        top: 48px;
        bottom: 32px;
        left: 4px;
        z-index: 160;
        width: 44px;
        flex: none;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        transform: none;
        transition: none;
        box-shadow: none;
    }

    .sidebar > .activitybar {
        height: 100%;
        border: 0.8px solid var(--border);
        border-radius: 8px;
    }

    .sidebar-view {
        position: fixed;
        top: 48px;
        bottom: 32px;
        left: 52px;
        z-index: 1;
        width: min(320px, calc(100vw - 60px));
        overflow: hidden;
        border: 0.8px solid var(--border);
        border-radius: 8px;
        background: var(--bg-sidebar);
        box-shadow: var(--shadow-panel);
        visibility: hidden;
        transform: translateX(calc(-100% - 16px));
        transition: transform 160ms ease, visibility 0s linear 160ms;
    }

    .sidebar.is-mobile-open .sidebar-view {
        visibility: visible;
        transform: translateX(0);
        transition: transform 160ms ease, visibility 0s;
    }

    .sidebar.is-mobile-open {
        transform: none;
    }

    .sidebar-scrim.is-open {
        position: fixed;
        inset: 44px 0 32px 48px;
        z-index: 150;
        display: block;
        background: rgba(0, 0, 0, 0.25);
    }

    .sidebar-close {
        display: inline-grid;
        width: 32px;
        height: 32px;
    }

    .sidebar-actions [data-action="new-file"],
    .sidebar-actions [data-action="new-folder"] {
        display: none;
    }

    .main-area {
        padding-right: 4px;
        padding-left: 52px;
    }

    .editor-area {
        padding: 0;
    }

    .titlebar-right .contact-pill,
    .titlebar-right .donate-pill,
    .layout-controls .layout-button:not(#toggleSidebar),
    .window-controls {
        display: none;
    }

    .layout-controls {
        margin-left: 2px;
    }

    .command-center {
        width: min(360px, 42vw);
        padding-right: 9px;
        padding-left: 9px;
    }

    .command-center-hint {
        display: none;
    }

    .nav-controls {
        display: none;
    }

    .welcome-inner {
        padding: 32px 22px 34px;
    }

    .welcome-head {
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .welcome-avatar {
        width: 52px;
        height: 52px;
    }

    .welcome-head h1 {
        font-size: 22px;
    }

    .welcome-head p:last-child {
        font-size: 15px;
    }

    .welcome-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .welcome-column:last-child {
        grid-column: auto;
    }

    .welcome-footer {
        margin-top: 28px;
    }

    .markdown-layout {
        padding: 28px 22px 48px;
    }

    .markdown-body h1 {
        font-size: 24px;
    }

    .markdown-body h2 {
        font-size: 17px;
    }

    .settings-page {
        padding: 26px 20px 46px;
    }

    .settings-heading {
        flex-direction: column;
        gap: 10px;
    }

    .settings-heading h1 {
        font-size: 24px;
    }

    .setting-row {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .setting-control,
    .setting-control-wide {
        flex: none;
        width: 100%;
    }

    .shortcut-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .status-optional {
        display: none;
    }

    .statusbar {
        padding: 0 2px;
    }

    .status-item {
        padding: 0 6px;
    }

    .panel.is-open {
        height: clamp(330px, 38%, 360px);
        min-height: 190px;
    }

    .line-no {
        flex-basis: 43px;
        padding-right: 10px;
    }

    .line-code {
        padding-right: 16px;
    }
}

@media (max-width: 560px) {
    .titlebar-logo {
        width: 28px;
    }

    .command-center {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        margin: 0 6px;
    }

    .titlebar-right {
        flex: none;
    }

    .layout-button {
        width: 26px;
    }

    .welcome-head {
        flex-direction: column;
        gap: 14px;
    }

    .markdown-body h1 {
        font-size: 22px;
    }

    .about-lead {
        align-items: flex-start;
    }

    .meta-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-socials {
        grid-template-columns: minmax(0, 1fr);
    }

    .markdown-body table,
    .markdown-body tbody,
    .markdown-body tr,
    .markdown-body td {
        display: block;
        width: 100%;
    }

    .markdown-body thead {
        display: none;
    }

    .markdown-body table {
        margin: 14px 0 22px;
        border: 0;
        font-size: 12px;
    }

    .markdown-body tr {
        margin-bottom: 8px;
        padding: 11px 12px;
        border: 1px solid var(--border-soft);
        border-radius: 8px;
        background: var(--bg-hover-soft);
    }

    .markdown-body td {
        padding: 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .markdown-body td + td {
        margin-top: 7px;
    }

    .markdown-body td::before {
        display: block;
        margin-bottom: 2px;
        color: var(--fg-faint);
        font-size: 9px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .palette-overlay {
        padding-top: 36px;
    }

    .palette {
        max-height: calc(100vh - 60px);
    }

    .palette-meta {
        display: none;
    }

    .auxiliarybar.is-forced {
        top: 39px;
        right: 4px;
        bottom: 32px;
        width: calc(100vw - 8px);
    }

    .status-item:nth-child(2) {
        display: none;
    }
}

@media (max-height: 680px) {
    .welcome-inner {
        padding-top: 30px;
        padding-bottom: 28px;
    }

    .welcome-head {
        margin-bottom: 26px;
    }

    .welcome-footer {
        margin-top: 24px;
    }

    .panel {
        flex-basis: 210px;
    }

    .settings-page {
        padding-top: 24px;
    }
}

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