html, body {
    min-height: 100%;
    background: #f5f7f0;
    color: #1f271b;
    font-size: 16px !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scrollbar-gutter: stable;
}

a, .btn-link {
    color: #4f642f;
}

.btn-primary,
.primary-action {
    color: #fff;
    background: #4f642f;
    border: 1px solid #4f642f;
}

.primary-action,
.secondary-action,
.icon-button {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 650;
    gap: .45rem;
    justify-content: center;
    min-height: 2.55rem;
    padding: .55rem .9rem;
    text-decoration: none;
}

.primary-action:disabled,
.secondary-action:disabled {
    cursor: default;
    opacity: .62;
}

.secondary-action {
    background: #fff;
    border: 1px solid #cdd8bf;
    color: #1f271b;
}

.icon-button {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #cdd8bf;
    color: #1f271b;
    font-size: 1.25rem;
    padding: 0;
    width: 2.5rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #8fa85d;
}

.app-content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #6f853d;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.home-hero {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 7rem);
    max-width: 820px;
}

.home-hero h1 {
    font-size: 3rem;
    line-height: 1.05;
    margin: .35rem 0 1rem;
}

.home-hero p {
    color: #5a6570;
    font-size: 1.1rem;
    max-width: 640px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem;
}

.eyebrow {
    color: #5f7042;
    display: block;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.help-shell {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1180px;
}

.help-hero {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 22rem;
    padding: 2rem 0;
}

.help-hero h1 {
    font-size: 3rem;
    line-height: 1.05;
    margin: .35rem 0 1rem;
    max-width: 780px;
}

.help-hero p {
    color: #5a6570;
    font-size: 1.1rem;
    max-width: 760px;
}

.help-band {
    background: #fff;
    border: 1px solid #dce5d1;
    border-radius: 8px;
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
}

.help-band h2,
.help-panel h2 {
    font-size: 1.35rem;
    margin: .15rem 0 .35rem;
}

.help-steps,
.sample-doc-list {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.help-steps article,
.sample-doc-list article,
.help-panel {
    background: #f8faf4;
    border: 1px solid #e1ead7;
    border-radius: 8px;
    padding: 1rem;
}

.help-steps strong,
.sample-doc-list strong {
    color: #405525;
    display: block;
    margin-bottom: .4rem;
}

.help-steps p,
.sample-doc-list p,
.help-panel p {
    color: #5a6570;
    line-height: 1.5;
    margin: 0;
}

.help-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-shell {
    display: grid;
    font-size: .875rem;
    gap: 1rem;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    height: calc(100vh - 5.25rem);
    min-height: 0;
    width: 100%;
}

.project-list,
.editor-panel {
    background: #fff;
    border: 1px solid #dce5d1;
    border-radius: 8px;
}

.project-list {
    overflow: hidden;
}

.panel-heading,
.editor-toolbar {
    align-items: center;
    border-bottom: 1px solid #e7eddf;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.editor-toolbar {
    gap: 1rem;
}

.toolbar-help {
    color: #65725d;
    font-size: .85rem;
    margin: .25rem 0 0;
    max-width: 720px;
}

.toolbar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.autosave-indicator {
    align-items: center;
    border: 1px solid #d6e1ca;
    border-radius: 999px;
    color: #4a5f2f;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    gap: .45rem;
    min-height: 2.35rem;
    padding: .35rem .65rem;
    white-space: nowrap;
}

.autosave-indicator::before {
    background: #6d8f3d;
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: .55rem;
    width: .55rem;
}

.autosave-indicator.is-saving::before {
    animation: autosavePulse 1s ease-in-out infinite;
    background: #d0922d;
}

.autosave-indicator.has-error {
    border-color: #e4b9b1;
    color: #9b3025;
    max-width: min(28rem, 100%);
    white-space: normal;
}

.autosave-indicator.has-error::before {
    background: #c94737;
}

@keyframes autosavePulse {
    0%, 100% {
        opacity: .45;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sample-action {
    align-items: center;
    display: inline-flex;
    gap: .45rem;
}

.sample-select {
    background: #fff;
    border: 1px solid #cdd8bf;
    border-radius: 6px;
    color: #1f271b;
    font: inherit;
    min-height: 2.55rem;
    min-width: 13rem;
    padding: .45rem .7rem;
}

.import-action {
    cursor: pointer;
    margin: 0;
    position: relative;
}

.import-file-input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
}

.panel-heading h1,
.editor-toolbar h2 {
    font-size: 1.2rem;
    margin: .15rem 0 0;
}

.project-nav {
    display: flex;
    flex-direction: column;
}

.project-row {
    background: transparent;
    border-bottom: 1px solid #e7eddf;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    color: #1f271b;
    display: grid;
    gap: .2rem;
    font: inherit;
    padding: .85rem 1rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.project-row small,
.empty-state {
    color: #6b7785;
}

.project-row.active,
.project-row:hover {
    background: #edf4e3;
}

.project-row.draft {
    border-left: 3px solid #5d773c;
}

.project-row.draft small {
    color: #4a5f2f;
}

.empty-state {
    padding: 1rem;
}

.project-empty-state {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.project-empty-state strong {
    color: #1f271b;
    font-size: .95rem;
}

.editor-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.editor-panel.is-fullscreen {
    border: 0;
    border-radius: 0;
    bottom: 0;
    box-shadow: none;
    height: 100dvh;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100vw;
    z-index: 2000;
}

.fullscreen-action-bar {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #dce5d1;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 39, 27, .16);
    display: flex;
    gap: .75rem;
    max-width: min(42rem, calc(100vw - 2rem));
    padding: .55rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 12;
}

.fullscreen-action-bar span {
    color: #1f271b;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fullscreen-action-bar .autosave-indicator {
    color: #4a5f2f;
    overflow: visible;
}

.editor-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.editor-form label {
    color: #44505c;
    display: grid;
    font-weight: 650;
    gap: .4rem;
}

.xml-box {
    font-family: "Cascadia Code", Consolas, monospace;
    min-height: 360px;
}

.logic-box {
    font-family: "Cascadia Code", Consolas, monospace;
    min-height: 140px;
}

.status-line {
    background: #edf4e3;
    border-bottom: 1px solid #d2dfc1;
    color: #3f4f2b;
    padding: .75rem 1rem;
}

.project-meta-form {
    border-bottom: 1px solid #e7eddf;
    padding-bottom: .75rem;
}

.workflow-hint {
    background: #f8faf4;
    border-bottom: 1px solid #dce5d1;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-hint > div {
    display: grid;
    gap: .2rem;
    min-width: 0;
    padding: .65rem 1rem;
}

.workflow-hint > div + div {
    border-left: 1px solid #dce5d1;
}

.workflow-hint strong {
    color: #405525;
    font-size: .78rem;
    text-transform: uppercase;
}

.workflow-hint span {
    color: #65725d;
    font-size: .82rem;
    line-height: 1.35;
}

.modeler-warning {
    align-items: center;
    background: #fff7e5;
    border-bottom: 1px solid #ecd29d;
    color: #604615;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .75rem 1rem;
}

.modeler-warning div {
    display: grid;
    gap: .15rem;
}

.modeler-warning span {
    font-size: .85rem;
}

.confirmation-backdrop {
    background: rgba(31, 39, 27, .48);
    display: grid;
    inset: 0;
    padding: 1rem;
    place-items: center;
    position: fixed;
    z-index: 3000;
}

.confirmation-dialog {
    background: #fff;
    border: 1px solid #dce5d1;
    border-radius: 8px;
    box-shadow: 0 22px 48px rgba(31, 39, 27, .22);
    display: grid;
    gap: .8rem;
    max-width: 34rem;
    padding: 1.25rem;
    width: min(100%, 34rem);
}

.confirmation-dialog h2 {
    font-size: 1.2rem;
    margin: 0;
}

.confirmation-dialog p {
    color: #53614a;
    line-height: 1.45;
    margin: 0;
}

.confirmation-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
}

.simplexflow-editor-host {
    --tabSwitchSize: 1rem;
    flex: 1;
    font-size: 12px;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.editor-panel.is-fullscreen .simplexflow-editor-host {
    height: 100%;
}

.simplexflow-editor-host:empty::before {
    content: "Loading simpleXflow editor...";
    color: #65725d;
    display: grid;
    min-height: 20rem;
    place-items: center;
}

.simplexflow-editor-host #content.simplexflow-content {
    display: flex;
    height: 100%;
    min-height: 0;
    width: 100%;
}

.simplexflow-editor-host .simplexflow-sidebar,
.simplexflow-editor-host .simplexflow-content > #horizontalResizer {
    display: none;
}

.simplexflow-editor-host #js-drop-zone.simplexflow-diagram-zone {
    display: grid !important;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) minmax(280px, min(32%, 400px));
    height: 100%;
    min-width: 0;
    padding-top: 0;
    position: relative;
    width: 100%;
}

.simplexflow-editor-host .simplexflow-diagram-zone > .message.intro {
    display: none;
}

.simplexflow-editor-host .simplexflow-middle {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
}

.simplexflow-editor-host .simplexflow-bpmn-content {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    height: auto !important;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.simplexflow-editor-host #js-canvas,
.simplexflow-editor-host #js-simbpmncanvas {
    background: #fff;
    height: 100%;
    min-height: 0;
    width: 100%;
}

.simplexflow-editor-host #verticalResizer {
    background: #d8e2c9;
    cursor: row-resize;
    height: 6px;
}

.simplexflow-editor-host .simplexflow-bottom-menu {
    align-items: center;
    background: #1d2a17;
    display: flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: space-between;
    min-height: 42px;
    overflow: hidden;
    padding: 0 .75rem;
}

.simplexflow-editor-host .simplexflow-bottom-menu nav {
    margin-left: 0;
    overflow: visible;
}

.simplexflow-editor-host .simplexflow-bottom-menu nav ul {
    align-items: center;
    display: flex;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.simplexflow-editor-host .simplexflow-bottom-menu li {
    align-items: center;
    border-radius: 6px;
    color: #dbe4ec;
    cursor: pointer;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: .45rem .7rem;
    width: auto;
}

.simplexflow-editor-host .simplexflow-bottom-menu li.active,
.simplexflow-editor-host .simplexflow-bottom-menu li:hover {
    background: #2d3a45;
    color: #fff;
}

.editor-panel.is-fullscreen .simplexflow-bottom-menu li {
    opacity: 1 !important;
}

.editor-panel.is-fullscreen .simplexflow-bottom-menu #splitViewMenuItem,
.editor-panel.is-fullscreen .simplexflow-bottom-menu #logicViewMenuItem {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.simplexflow-editor-host .properties-panel-parent {
    border-left: 1px solid #dce5d1;
    height: 100%;
    min-height: 0;
    overflow: auto;
    min-width: 0;
    width: auto;
}

.djs-palette {
    border-radius: 6px;
}

.bpp-properties-panel {
    border: 0;
}

@media (max-width: 860px) {
    .home-hero h1 {
        font-size: 2.2rem;
    }

    .help-hero h1 {
        font-size: 2.2rem;
    }

    .help-grid,
    .help-steps,
    .sample-doc-list {
        grid-template-columns: 1fr;
    }

    .workspace-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100vh - 5.25rem);
    }

    .workflow-hint {
        grid-template-columns: 1fr;
    }

    .workflow-hint > div + div {
        border-left: 0;
        border-top: 1px solid #dce5d1;
    }

    .confirmation-actions {
        flex-direction: column-reverse;
    }

    .fullscreen-action-bar {
        left: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 1200px) {
    .workspace-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100vh - 5.25rem);
    }

    .project-list {
        max-height: 18rem;
        overflow: auto;
    }

    .editor-panel {
        min-height: 48rem;
    }
}

@media (max-width: 1100px) {
    .simplexflow-editor-host #js-drop-zone.simplexflow-diagram-zone {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(34rem, 1fr) 18rem;
    }

    .simplexflow-editor-host .properties-panel-parent {
        border-left: 0;
        border-top: 1px solid #dce5d1;
        height: 18rem;
        width: 100%;
    }
}

/* Compact organization hub and model workspace. */
html, body { background: #f6f8f4; }
.primary-action, .secondary-action { min-height: 2.2rem; padding: .4rem .75rem; font-size: .83rem; font-weight: 600; }
.icon-button { min-height: 2rem; height: 2rem; width: 2rem; }
.hub-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100dvh - 3.5rem); }
.hub-sidebar { background: #f2f5ee; border-right: 1px solid #dce3da; padding: 1.25rem .65rem; }
.organization-heading { display: block; text-decoration: none; color: #293625; padding: .25rem .65rem 1.3rem; overflow-wrap: anywhere; }
.organization-heading strong { display: block; font-size: .95rem; margin-top: .25rem; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: .4rem .65rem; font-size: .75rem; color: #67725f; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.sidebar-heading .icon-button { background: transparent; border: 0; }
.workspace-link { display: flex; align-items: center; gap: .7rem; color: #34412e; padding: .7rem; margin: .2rem 0; text-decoration: none; border-radius: 5px; font-size: .84rem; }
.workspace-link.active, .workspace-link:hover { background: #e3ebd9; color: #273a19; }
.workspace-link > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.workspace-link small { display: block; color: #74806b; font-size: .7rem; margin-top: .15rem; }
.workspace-icon { flex-shrink: 0; display: inline-grid; place-items: center; background: #e7eddf; border: 1px solid #d1ddc4; border-radius: 7px; width: 32px; height: 32px; color: #546a3a; font-size: .8rem; font-weight: 700; }
.sidebar-note { display: block; font-size: .75rem; line-height: 1.5; padding: 1rem .7rem; color: #75806c; }
.hub-main { min-width: 0; padding: 0 2rem 2rem; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; min-height: 46px; font-size: .76rem; color: #818a7b; }
.breadcrumbs a { text-decoration: none; color: #647057; }
.breadcrumbs > span:last-child { color: #3b4931; }
.hub-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0 1.25rem; }
.hub-heading h1 { font-size: 1.8rem; letter-spacing: -.035em; font-weight: 650; margin: .2rem 0 .4rem; }
.hub-heading p { margin: 0; font-size: .86rem; color: #7b8672; }
.role-badge { display: inline-block; margin-left: .4rem; padding: .15rem .45rem; border-radius: 4px; font-size: .7rem; background: #e9efdf; color: #54693c; }
.workspace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; max-width: 1200px; }
.workspace-card { background: #fff; border: 1px solid #dce3da; padding: 1.4rem; border-radius: 7px; text-decoration: none; color: #293625; }
.workspace-card:hover { border-color: #8da776; box-shadow: 0 4px 16px #3545200a; }
.workspace-card h2 { font-size: 1.05rem; margin: 1.1rem 0 .5rem; }
.workspace-card p, .workspace-card small { font-size: .8rem; color: #77836d; }
.hub-empty { text-align: center; padding: 5rem 1rem; color: #79846f; }
.hub-empty h1, .hub-empty h2 { color: #35452b; font-size: 1.3rem; margin: 1rem 0 .7rem; }
.hub-empty p { font-size: .88rem; max-width: 440px; margin: 0 auto 1.5rem; }
.empty-icon { display: inline-grid; place-items: center; font-size: 1.5rem; background: #e8efdf; border: 1px solid #d5dfcb; width: 62px; height: 62px; border-radius: 14px; color: #667e47; }
.hub-tabs { display: flex; border-bottom: 1px solid #dce3da; gap: 1.5rem; }
.hub-tabs button { background: none; border: none; border-bottom: 2px solid transparent; padding: .75rem 0; font-size: .83rem; color: #6f7a64; }
.hub-tabs button.active { border-bottom-color: #526d33; color: #344d21; font-weight: 650; }
.hub-tabs button span { font-size: .7rem; margin-left: .3rem; background: #e6ecdf; padding: .1rem .35rem; border-radius: 3px; }
.file-list-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; font-size: .78rem; color: #818b78; }
.search-box { display: flex; gap: .5rem; align-items: center; border: 1px solid #dce3da; border-radius: 4px; background: #fff; padding: .35rem .6rem; width: min(320px, 65%); }
.search-box input { width: 100%; border: 0; background: transparent; outline: none; font-size: .82rem; color: #37452e; }
.search-box:focus-within { outline: 2px solid #839b67; }
.file-table { background: #fff; border: 1px solid #dce3da; border-radius: 6px; overflow: hidden; }
.file-table-head, .file-table-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px 120px; gap: 1rem; align-items: center; padding: .8rem 1rem; }
.file-table-head { background: #f9faf7; font-size: .73rem; color: #7a846f; border-bottom: 1px solid #e2e7dc; }
.file-table-row { text-decoration: none; color: #33442a; font-size: .84rem; min-height: 57px; border-bottom: 1px solid #edf0e8; }
.file-table-row:last-child { border-bottom: 0; }
.file-table-row:hover { background: #f5f8f0; color: #253d17; }
.file-table-row > span:first-child { display: flex; gap: .8rem; align-items: center; overflow-wrap: anywhere; min-width: 0; }
.file-table-row > span:not(:first-child) { color: #7d8774; font-size: .76rem; }
.file-icon { color: #687e4c; font-size: 1.3rem; width: 24px; flex-shrink: 0; }
.folder-icon { color: #af9855; }
.field-label { display: grid; gap: .45rem; font-size: .85rem; font-weight: 600; margin: .75rem 0 1rem; }
.muted { color: #7c8773; font-size: .8rem; }
.hub-message { background: #fff4da; border: 1px solid #ead9b6; border-radius: 4px; padding: .7rem 1rem; font-size: .85rem; margin-top: .5rem; }
.model-page { height: calc(100dvh - 3.5rem); display: flex; flex-direction: column; min-height: 450px; }
.workspace-shell.model-workspace { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1; height: auto; min-height: 0; gap: 0; }
.workspace-shell.model-workspace.with-files { grid-template-columns: 210px minmax(0, 1fr); }
.model-workspace .project-list { border: 0; border-right: 1px solid #dce3da; border-radius: 0; overflow: auto; background: #f8faf5; }
.model-workspace .project-row { font-size: .8rem; padding: .65rem 1rem; }
.model-workspace .panel-heading { padding: .75rem; }
.model-workspace .editor-panel { border: 0; border-radius: 0; min-height: 0; }
.compact-toolbar { padding: .45rem .7rem; gap: .65rem; flex-wrap: wrap; flex-shrink: 0; min-height: 52px; }
.model-name { flex: 1; min-width: 120px; max-width: 460px; padding: 0; border: 0; }
.model-name input { border: 1px solid transparent; background: transparent; width: 100%; font-size: .95rem; font-weight: 650; color: #2b3d21; padding: .35rem .4rem; border-radius: 4px; }
.model-name input:hover:not(:disabled), .model-name input:focus { border-color: #d1ddc5; outline-color: #839d62; }
.model-name input:disabled { color: #617154; }
.compact-toolbar .autosave-indicator { min-height: 0; border: none; padding: .2rem; font-size: .72rem; }
.compact-toolbar .autosave-indicator.has-error { max-width: 140px; max-height: 35px; overflow: hidden; font-size: .65rem; }
.compact-toolbar .toolbar-actions { gap: .4rem; }
.presence-badge { font-size: .7rem; border-radius: 10px; padding: .3rem .5rem; background: #e7eee0; color: #546a3b; }
.model-actions { position: relative; }
.model-actions summary { list-style: none; cursor: pointer; }
.model-menu { z-index: 50; position: absolute; top: calc(100% + .4rem); right: 0; width: 290px; padding: .45rem; background: #fff; border: 1px solid #dce3da; border-radius: 5px; box-shadow: 0 10px 30px #26351b24; }
.model-menu > button, .model-menu > label { display: block; background: transparent; border: 0; padding: .6rem .7rem; width: 100%; text-align: left; font-size: .8rem; border-radius: 4px; }
.model-menu > button:hover, .model-menu > label:hover { background: #f1f5e9; }
.model-menu .sample-action { display: grid; gap: .4rem; margin: .4rem 0; padding: .75rem; border-top: 1px solid #e2e8da; border-bottom: 1px solid #e2e8da; }
.model-menu .sample-action label { font-size: .76rem; font-weight: 650; }
.model-menu .sample-action small { color: #7f8975; line-height: 1.45; font-size: .7rem; }
.model-menu .sample-select { min-width: 0; width: 100%; font-size: .75rem; }
.model-body { display: flex; flex: 1; min-height: 0; min-width: 0; overflow: hidden; }
.model-canvas { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.collaboration-drawer { flex: 0 0 355px; max-width: 45vw; border-left: 1px solid #dce3da; overflow: auto; background: #fafbf8; }
.collaboration-drawer .panel-heading { font-size: .84rem; }
.danger-text { color: #a33b30; }
.danger-action { background: #aa3d30; color: #fff; border: 1px solid #aa3d30; border-radius: 5px; padding: .45rem .8rem; font-size: .85rem; }
.conflict-banner { background: #fff1de; color: #83511e; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding: .6rem 1rem; font-size: .76rem; }
.status-line { font-size: .78rem; padding: .45rem .8rem; }
.local-save-status { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: #263a1e; color: white; padding: .8rem 1.1rem; border-radius: 6px; font-size: .8rem; max-width: min(600px, 90vw); z-index: 5000; box-shadow: 0 5px 20px #0002; pointer-events: none; animation: fadeNotice 12s forwards; }
@keyframes fadeNotice { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.home-hero, .help-shell { margin: 0 auto; padding: 2rem; }
@media(max-width: 900px) {
    .hub-shell { grid-template-columns: 180px minmax(0, 1fr); }
    .hub-main { padding: 0 1rem 1rem; }
    .file-table-head, .file-table-row { grid-template-columns: minmax(0, 1fr) 130px; }
    .file-table-head > span:last-child, .file-table-row > span:last-child { display: none; }
    .workspace-shell.model-workspace.with-files { grid-template-columns: 170px minmax(0, 1fr); }
    .compact-toolbar .toolbar-actions { flex-wrap: wrap; }
    .collaboration-drawer { max-width: 80vw; position: absolute; z-index: 20; top: 125px; right: 0; bottom: 0; width: 355px; box-shadow: -5px 0 20px #0002; }
}
@media(max-width: 620px) {
    .hub-shell { grid-template-columns: 1fr; }
    .hub-sidebar { display: none; }
    .hub-heading h1 { font-size: 1.5rem; }
    .hub-tabs { gap: 1rem; }
    .hub-tabs button { font-size: .76rem; }
    .file-table-head, .file-table-row { grid-template-columns: minmax(0, 1fr) 95px; padding: .7rem; }
    .workspace-shell.model-workspace.with-files { grid-template-columns: 130px minmax(0, 1fr); }
    .compact-toolbar .toolbar-actions { justify-content: flex-end; width: 100%; }
    .model-name { max-width: unset; }
}
