html, body {
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    height: 100%;
    width: 100%;
    margin: 0;
    background: #f3f5f7;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #f7edd6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    background:
        linear-gradient(165deg, rgba(8, 16, 24, 0.62) 0%, rgba(8, 16, 24, 0.78) 100%),
        url("/img/bg.jpg") center / cover no-repeat;
}

.auth-center {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-panel {
    width: min(640px, 100%);
    margin: 0;
    background: #fffcf6;
    border: 1px solid rgba(228, 221, 208, 0.9);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(8, 16, 24, 0.28);
    padding: 2rem 2rem 1.5rem;
}

.auth-panel h2 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: #1a2a37;
}

.auth-panel-lead {
    margin: 0 0 1.5rem;
    color: #5a6870;
    line-height: 1.5;
}

.engine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    margin: 0.35rem 0 1.25rem;
}

.engine-card {
    appearance: none;
    cursor: pointer;
    text-align: left;
    border: 1px solid #e4ddd0;
    background: #fffaf2;
    border-radius: 12px;
    padding: 0.85rem 0.8rem 0.75rem;
    color: #1a2a37;
    transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.engine-card:has(.engine-card-icon) {
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 1rem 0.7rem 0.85rem;
}

.engine-card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.4rem;
    display: block;
    object-fit: contain;
}

.engine-card:hover:not(:disabled) {
    border-color: #0f6e6a;
    transform: translateY(-1px);
}

.engine-card:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}


.engine-card.selected {
    border-color: #0f6e6a;
    background: #e7f3f1;
    box-shadow: inset 0 0 0 1px #0f6e6a;
}

.engine-card-name {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
}

.engine-card-meta {
    display: block;
    margin-top: 0.2rem;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.72rem;
    color: #5a6870;
}

.mud-dialog-container:has(.conn-modal-host) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem;
}

.conn-modal-host.mud-dialog {
    width: min(540px, calc(100vw - 32px));
    max-width: 540px;
    margin: auto;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(12, 20, 28, 0.28);
}

.conn-modal-host .mud-dialog-content {
    padding: 0;
    max-height: min(70vh, 620px);
    overflow-y: auto;
}

.conn-modal-host .mud-dialog-actions {
    padding: 0.85rem 1.25rem 1.05rem;
    margin: 0;
    border-top: 1px solid #eef2f4;
    background: #fff;
}

.mud-dialog-container:has(.pack-modal-host) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem;
}

.pack-modal-host.mud-dialog {
    width: min(460px, calc(100vw - 32px));
    max-width: 460px;
}

.pack-conn-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.9rem;
    padding: 0.35rem 0.7rem 0.35rem 0.45rem;
    border-radius: 999px;
    background: #f3fbf9;
    border: 1px solid #cfe8e4;
    color: #0f6e6a;
    font-size: 0.82rem;
    font-weight: 600;
}

.pack-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    padding: 0.95rem 1rem;
    border: 1px dashed #c9d4d1;
    border-radius: 16px;
    background: #f7faf9;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}

.pack-file:hover,
.pack-file:focus-within {
    border-color: #0f6e6a;
    background: #eef7f5;
}

.pack-file.is-on {
    border-style: solid;
    border-color: #0f6e6a;
    background: #e7f3f1;
}

.pack-file.is-busy {
    pointer-events: none;
    opacity: 0.7;
}

.pack-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.pack-file-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #0f6e6a;
    box-shadow: inset 0 0 0 1px #d7e6e3;
}

.pack-file.is-on .pack-file-icon {
    background: #0f6e6a;
    color: #fff;
    box-shadow: none;
}

.pack-file-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.pack-file-copy strong {
    font-size: 0.92rem;
    font-weight: 650;
    color: #1a2a37;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pack-file-copy small {
    color: #5a6870;
    font-size: 0.8rem;
    line-height: 1.35;
}

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

.conn-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.2rem 1.25rem 0.85rem;
}

.conn-modal-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f6e6a;
    font-weight: 700;
}

.conn-modal-title {
    margin: 0;
    font-size: 1.28rem;
    letter-spacing: -0.03em;
    color: #1a2a37;
    font-weight: 650;
}

.conn-modal-lead {
    margin: 0.35rem 0 0;
    color: #5a6870;
    line-height: 1.45;
    font-size: 0.9rem;
}

.conn-modal-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    padding: 0 1.25rem 1rem;
}

.conn-modal-progress span {
    height: 4px;
    border-radius: 99px;
    background: #e8edf1;
}

.conn-modal-progress span.is-on {
    background: #0f6e6a;
}

.conn-modal-progress span.is-done {
    background: #9ec9c5;
}

.conn-modal-body {
    padding: 0 1.25rem 1.15rem;
}

.engine-picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.engine-pick {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0;
    padding: 0.95rem 0.95rem 0.85rem;
    border: 1px solid #e4ddd0;
    border-radius: 16px;
    background: #fffaf2;
    color: #1a2a37;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.engine-pick:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--engine);
}

.engine-pick:disabled {
    cursor: default;
    opacity: 0.55;
}

.engine-pick.is-on {
    background: color-mix(in srgb, var(--engine) 9%, #fff);
    border-color: var(--engine);
    box-shadow: 0 0 0 1px var(--engine);
}

.engine-pick-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--engine);
    -webkit-mask: var(--icon) center / 24px no-repeat;
    mask: var(--icon) center / 24px no-repeat;
}

.engine-pick-name {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.engine-pick-port {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.72rem;
    color: #5a6870;
}

.conn-modal-test {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.conn-modal-ok {
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 650;
}

.conn-modal-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.conn-modal-logo img,
.conn-modal-logo .is-empty {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 1px dashed #d5ddd8;
    background: #f7faf9;
    object-fit: contain;
    padding: 8px;
}

.conn-modal-logo .is-empty {
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pack-offer {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    border: 1px solid #e4ddd0;
    background: #fffaf2;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    margin: 0 0 0.7rem;
}

.pack-offer.is-done {
    background: #f3fbf9;
    border-color: #cfe8e4;
}

.pack-offer.is-neutral {
    background: #f7f9fa;
    border-color: #e8edf1;
}

.pack-offer-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #0f6e6a;
}

.pack-offer-icon.is-ok {
    background: #0f6e6a;
    color: #fff;
}

.pack-offer h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.pack-offer p {
    margin: 0 0 0.55rem;
    color: #5a6870;
    line-height: 1.45;
    font-size: 0.88rem;
}

.pack-offer p:last-of-type {
    margin-bottom: 0.75rem;
}

.pack-offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pack-status {
    margin: 0;
    color: #0f6e6a;
    font-weight: 650;
}

.conn-preview {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.78rem;
    color: #3e4f5a;
    background: #f3eee4;
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    margin: 0.25rem 0 1rem;
    word-break: break-all;
}

.setup-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e4ddd0;
}

.step-pills {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #5a6870;
}

.step-pill b {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    background: #e4ddd0;
    color: #1a2a37;
}

.step-pill.active {
    color: #1a2a37;
    font-weight: 600;
}

.step-pill.active b {
    background: #0f6e6a;
    color: #fffcf6;
}

.step-pill.done b {
    background: #c45c26;
    color: #fffcf6;
}

.login-panel {
    width: min(420px, 100%);
    padding: 2.15rem 2rem 1.75rem;
}

.login-panel h2 {
    margin-bottom: 1.05rem;
}

.auth-brand-mini {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.05rem;
}

.auth-brand-mini strong {
    font-size: 1.12rem;
    letter-spacing: -0.03em;
    color: #1a2a37;
}

.auth-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: #12202e;
    background: #d8c4a3;
    flex-shrink: 0;
}

.auth-tagline {
    margin: 0 0 1.35rem;
    color: #5a6870;
    line-height: 1.5;
    font-size: 0.92rem;
}

.login-native label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #1a2a37;
}

.login-native input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid #d9d2c5;
    border-radius: 10px;
    background: #fffaf2;
    padding: 0 0.9rem;
    font: inherit;
    color: #1a2a37;
    margin-bottom: 1rem;
    appearance: none;
}

.login-native input:focus {
    outline: 2px solid #0f6e6a;
    outline-offset: 1px;
}

.login-native .remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.1rem;
    color: #3e4f5a;
}

.login-native button[type="submit"] {
    appearance: none;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #0f6e6a;
    color: #f7f4ee;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.login-native button[type="submit"]:hover {
    background: #0c5c59;
}

.login-native .validation-message {
    display: block;
    margin: -0.7rem 0 0.85rem;
    color: #9c2f2f;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .auth-shell {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 12vh;
    }

    .auth-panel {
        padding: 1.5rem 1.2rem 1.25rem;
    }
}

.metadata-layout {
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
    gap: 1rem;
    align-items: start;
}

.metadata-tree {
    max-height: calc(100vh - 220px);
    overflow: auto;
}

@media (max-width: 900px) {
    .metadata-layout {
        grid-template-columns: 1fr;
    }
}

.join-example {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 0.85rem;
}

.join-example-card {
    min-width: 148px;
    background: #fffaf2;
    border: 1px solid #e4ddd0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.82rem;
}

.join-example-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    font-weight: 600;
    background: #12202e;
    color: #e8eef2;
}

.join-example-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-top: 1px solid #efebe3;
    color: #3e4f5a;
}

.join-example-row.key {
    background: #e7f3f1;
    color: #0c5c59;
    font-weight: 600;
}

.join-example-title span,
.join-example-row.key span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    background: #0f6e6a;
    color: #fffcf6;
}

.join-example-title span {
    background: #c45c26;
}

.join-example-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #0f6e6a;
}

.join-example-arrow {
    font-size: 1.4rem;
    line-height: 1;
}

.join-example-caption {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a6870;
}

.join-sql textarea,
.join-sql input {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.82rem;
}

.rel-pick-list {
    max-height: 280px;
    overflow: auto;
    border: 1px solid #e4ddd0;
    border-radius: 10px;
    background: #fffcf6;
}

.rel-pick-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #efebe3;
    background: transparent;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font: inherit;
    color: #3e4f5a;
}

.rel-pick-item:last-child {
    border-bottom: 0;
}

.rel-pick-item:hover {
    background: #f3eee6;
}

.rel-pick-item.is-active {
    background: #e7f3f1;
    color: #0c5c59;
    font-weight: 600;
}

.rel-pick-item.is-linked {
    color: #0f6e6a;
}

.rel-pick-meta {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: #5a6870;
}

.builder-list {
    max-height: 420px;
    overflow: auto;
}

.field-table-group {
    margin-bottom: 0.75rem;
}

.field-table-group:last-child {
    margin-bottom: 0.15rem;
}

.field-table-group-title {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef4f3;
    color: #0f6e6a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
}

.field-table-group.is-anchor .field-table-group-title {
    background: #0f6e6a;
    color: #fff;
}

.field-table-group-title.is-in-list {
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #d7e6e4;
}

.builder-preview {
    max-height: 420px;
    overflow: auto;
}

.builder-preview table {
    font-size: 0.82rem;
    font-family: "IBM Plex Mono", Consolas, monospace;
}

.sql-editor textarea {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .engine-grid {
        grid-template-columns: 1fr 1fr;
    }

    .setup-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .ds-dates-presets {
        margin-left: 0;
    }

    .app-page {
        padding: 1rem 0.85rem 2rem;
    }

    .page-title {
        font-size: 1.25rem;
    }
}

.dash-canvas {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 280px;
}

.ds-export-root {
    min-width: 0;
}

.ds-export-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.85rem;
    margin: 0 0 0.85rem;
    padding: 0.15rem 0 0.35rem;
}

.ds-export-banner strong {
    font-size: 1.15rem;
    color: #12202e;
}

.ds-export-banner span {
    font-size: 0.82rem;
    color: #64748b;
}

.dash-widget {
    position: absolute;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    padding-right: 16px;
    padding-bottom: 16px;
}

.dash-widget > .dash-widget-head,
.dash-widget-body {
    background: #fff;
    border: 1px solid #e8edf1;
}

.dash-widget-body {
    height: calc(100% - 40px);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 0;
    border-radius: 0 0 14px 14px;
}

.dash-widget.is-compact .dash-widget-body {
    height: 100%;
    border-radius: 14px;
    border-top: 3px solid var(--accent, #3b82f6);
}

.dash-widget.is-table .dash-widget-body {
    overflow: auto;
}

.dash-widget-body > * {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
}

.dash-widget-body .viz-chart {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.dash-widget-body .viz-chart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.dash-widget-body .viz-chart.is-echart {
    min-height: 0;
}

.dash-widget-body .viz-chart.is-echart canvas {
    cursor: pointer;
}

.dash-widget-head {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.45rem 0.35rem 0.85rem;
    border-radius: 14px 14px 0 0;
    cursor: default;
    min-height: 36px;
}

.dash-widget-drag {
    font-weight: 600;
    font-size: 0.8rem;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.dash-canvas .dash-widget-drag {
    cursor: default;
}

.dash-canvas.is-editing .dash-widget-drag {
    cursor: grab;
}

.dash-widget.is-dragging .dash-widget-drag {
    cursor: grabbing;
}

.dash-widget-resize {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 14px;
    height: 14px;
    border-right: 2px solid #0f6e6a;
    border-bottom: 2px solid #0f6e6a;
    cursor: nwse-resize;
}

.dash-kpi,
.dash-info {
    padding: 0.85rem 1rem;
}

.dash-kpi .mud-typography-h3 {
    color: #0f6e6a;
    font-weight: 600;
}

.dash-table {
    overflow: auto;
    height: 100%;
    max-height: 100%;
    width: 100%;
    padding: 0.35rem 0.65rem 0.55rem;
    box-sizing: border-box;
}

.dash-table table {
    font-size: 0.8rem;
}

.ws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.ws-card {
    background: #fffcf6;
    border: 1px solid #e4ddd0;
    border-radius: 14px;
    padding: 1.1rem 1.2rem 1rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-card:hover {
    border-color: #0f6e6a;
    box-shadow: 0 10px 24px rgba(18, 32, 46, 0.08);
}

.ws-card.is-active {
    border-color: #0f6e6a;
    background: #e7f3f1;
}

.ws-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.ws-card p {
    margin: 0;
    color: #5a6870;
    font-size: 0.85rem;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.purpose-card {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    min-height: 118px;
    width: 100%;
    margin: 0;
    padding: 0.95rem 1rem 0.9rem;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.purpose-card:hover {
    border-color: #0f6e6a;
    box-shadow: 0 10px 24px rgba(18, 32, 46, 0.08);
}

.purpose-card.is-selected {
    border-color: #0f6e6a;
    background: #e7f3f1;
    box-shadow: 0 0 0 1px #0f6e6a;
}

.purpose-card-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.3;
    color: #1a2a37;
}

.purpose-card-desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}

.app-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 1.25rem 1.5rem 2.5rem;
}

.app-page > .mud-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.mud-layout {
    width: 100%;
    max-width: 100%;
}

.mud-main-content.app-main {
    box-sizing: border-box;
    min-width: 0;
    width: auto;
    max-width: none;
}

.mud-drawer.app-rail,
.mud-drawer.app-rail .mud-drawer-content {
    background: #0b141c;
    color: #d5dee5;
}

.mud-drawer.app-rail .mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
    min-width: 0;
}

.rail-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.15rem 0.95rem 0.95rem;
}

.rail-brand strong {
    color: #f4f7f8;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    font-weight: 650;
}

.rail-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rail-brand-text em {
    color: #9aa8b0;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rail-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-weight: 600;
    font-size: 0.78rem;
    color: #12202e;
    background: #d8c4a3;
    flex-shrink: 0;
}

img.rail-mark.rail-logo {
    object-fit: contain;
    background: #f4f7f8;
    padding: 4px;
}

.rail-menu {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.55rem 0;
    overflow-x: hidden;
}

.app-rail .mud-nav-link {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 0.15rem;
    border-radius: 8px;
    color: #c5d0d6 !important;
}

.app-rail .mud-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.app-rail .mud-nav-link.active {
    background: rgba(15, 110, 106, 0.24);
    color: #fff !important;
}

.app-rail .mud-nav-link .mud-nav-link-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-rail .mud-nav-group {
    margin: 0.35rem 0 0.15rem;
    max-width: 100%;
    min-width: 0;
}

.app-rail .mud-nav-group .mud-nav-link {
    margin-left: 0;
}

.app-rail .mud-nav-group-title,
.app-rail .mud-nav-group .mud-nav-group-title {
    color: #c5d0d6 !important;
    margin: 0 0 0.15rem;
    border-radius: 8px;
    min-height: 36px;
    align-items: center;
}

.app-rail .mud-nav-group-title .mud-nav-link-text {
    width: auto;
    flex: 1 1 auto;
}

.app-rail .mud-nav-link-expand-icon {
    flex-shrink: 0;
    margin-inline-start: auto;
}

.app-rail .mud-nav-group-title:hover {
    background: rgba(255, 255, 255, 0.06);
}

.rail-session {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.7rem 0.95rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-block,
.rail-conn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    text-align: left;
}

.rail-label {
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7d8d96;
}

.rail-org {
    display: block;
    color: #f4f7f8;
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
    word-break: break-word;
}

.rail-conn {
    appearance: none;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    background: #1a242e;
}

.rail-conn strong {
    display: block;
    color: #f4f7f8;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.3;
}

.rail-conn.is-on {
    background: #0f6e6a;
}

.rail-conn.is-on .rail-label {
    color: rgba(255, 255, 255, 0.72);
}

.rail-conn:hover {
    filter: brightness(1.08);
}

.rail-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0.45rem 0.2rem;
    min-width: 0;
}

.rail-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #d8c4a3;
    color: #12202e;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.rail-user strong {
    display: block;
    color: #f4f7f8;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail-user em {
    display: block;
    font-style: normal;
    font-size: 0.72rem;
    color: #9eb0b8;
    line-height: 1.3;
}

.rail-user span:last-child {
    min-width: 0;
}

.rail-logout {
    display: block;
    margin-top: 0.1rem;
    padding: 0.52rem 0.7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #c5d0d6;
    text-align: center;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.rail-logout:hover {
    background: rgba(196, 92, 38, 0.22);
    color: #fff;
}

.app-topbar.mud-appbar {
    min-height: 52px;
    height: auto;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    margin-left: 0.15rem;
}

.topbar-logo,
.topbar-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
}

.topbar-logo {
    object-fit: contain;
    background: #f4f7f8;
    padding: 2px;
}

.topbar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.topbar-brand-text strong {
    color: #f4f7f8;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-brand-text em {
    color: #9aa8b0;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.15rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
}

.page-head-main {
    min-width: 0;
    flex: 1 1 220px;
}

.page-head .mud-button-root,
.page-head .mud-input-control {
    flex-shrink: 0;
}

.page-back {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5a6870;
    text-decoration: none;
}

.page-back:hover {
    color: #0f6e6a;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.page-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0 0 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8ea;
}

.page-toolbar .page-actions {
    margin-left: auto;
}

.ds-tab {
    appearance: none;
    height: 34px;
    padding: 0 0.95rem;
    border-radius: 999px;
    border: 1px solid #d4ddd9;
    background: #fff;
    color: #2a3c48;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
}

.ds-tab:hover {
    border-color: #0f6e6a;
    color: #0f6e6a;
}

.ds-tab.is-on {
    background: #0f6e6a;
    border-color: #0f6e6a;
    color: #fff;
}

.ds-tab .count {
    margin-left: 0.35rem;
    font-weight: 600;
    opacity: 0.72;
}

.ds-tab.is-on .count {
    opacity: 0.9;
}

.ds-tab.is-sub {
    height: 30px;
    padding: 0 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.dataset-shelf {
    margin: 0 0 1.05rem;
}

.dataset-shelf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.55rem;
}

.dataset-search {
    appearance: none;
    height: 36px;
    min-width: 220px;
    max-width: 280px;
    padding: 0 0.85rem;
    border: 1px solid #d4ddd9;
    border-radius: 10px;
    background: #fff;
    color: #1a2a37;
    font: inherit;
    font-size: 0.85rem;
}

.dataset-search:focus {
    outline: none;
    border-color: #0f6e6a;
    box-shadow: 0 0 0 3px rgba(15, 110, 106, 0.12);
}

.dataset-count {
    margin-left: auto;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

.dataset-group {
    margin: 0 0 1.45rem;
}

.dataset-group-title {
    margin: 0 0 0.7rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2a37;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.dataset-group-title span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.page-toolbar.is-inset {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.form-actions {
    margin-top: 1.25rem;
}

.ds-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.75rem;
    margin: 0 0 1.1rem;
}

.ds-date {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.ds-date span {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6870;
}

.ds-date input[type="date"] {
    box-sizing: border-box;
    height: 42px;
    min-width: 168px;
    margin: 0;
    padding: 0 0.7rem;
    border: 1px solid #dde6e4;
    border-radius: 12px;
    background: #fff;
    color: #1a2a37;
    font: inherit;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
    color-scheme: light;
}

.ds-date input[type="date"]:focus {
    outline: none;
    border-color: #0f6e6a;
    box-shadow: 0 0 0 3px rgba(15, 110, 106, 0.12);
}

.ds-date input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.55;
}

.ds-date input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.ds-dates-presets {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 2px;
    margin-left: auto;
}

.ds-dates-chip {
    appearance: none;
    border: 1px solid #dde6e4;
    background: #fff;
    color: #3e4f5a;
    border-radius: 999px;
    height: 42px;
    padding: 0 0.9rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
}

.ds-dates-chip:hover {
    border-color: #0f6e6a;
    color: #0f6e6a;
}

.ds-dates-chip.is-on {
    border-color: #0f6e6a;
    background: #0f6e6a;
    color: #f7f4ee;
}

.ds-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: -0.35rem 0 1rem;
}

.ds-filter-label {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6870;
    margin-right: 0.15rem;
}

.ds-filter-bar .ds-dates-chip span {
    margin-left: 0.35rem;
    font-weight: 700;
}

.ds-params input {
    min-width: 9rem;
    border: 1px solid #d7dee3;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    font: inherit;
    color: #1e293b;
    background: #fff;
}

.ds-params input:focus {
    outline: 2px solid #0f6e6a55;
    border-color: #0f6e6a;
}

.dash-fetch-meta {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.72rem;
    color: #64748b;
}

.dash-info .ds-dates {
    margin: 0;
}

.chart-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.chart-style-card {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    margin: 0;
    padding: 0.65rem 0.7rem 0.7rem;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 12px;
}

.chart-style-card:hover {
    border-color: #0f6e6a;
}

.chart-style-card.is-selected {
    border-color: #0f6e6a;
    background: #e7f3f1;
    box-shadow: 0 0 0 1px #0f6e6a;
}

.chart-style-card strong {
    font-size: 0.82rem;
    font-weight: 650;
    color: #1a2a37;
}

.chart-style-card > span:last-child {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
}

.chart-style-preview {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 36px;
    margin-bottom: 0.15rem;
}

.chart-style-preview i {
    display: block;
    flex: 1;
    background: #0f6e6a;
    border-radius: 2px 2px 0 0;
}

.chart-style-preview i:nth-child(1) { height: 46%; }
.chart-style-preview i:nth-child(2) { height: 78%; }
.chart-style-preview i:nth-child(3) { height: 60%; }
.chart-style-preview i:nth-child(4) { height: 92%; }

.chart-style-preview.is-round i { border-radius: 6px 6px 0 0; }
.chart-style-preview.is-thin { gap: 8px; }
.chart-style-preview.is-thin i { max-width: 8px; margin: 0 auto; }
.chart-style-preview.is-multi i:nth-child(1) { background: #0f6e6a; }
.chart-style-preview.is-multi i:nth-child(2) { background: #c45c26; }
.chart-style-preview.is-multi i:nth-child(3) { background: #3b82f6; }
.chart-style-preview.is-multi i:nth-child(4) { background: #f59e0b; }
.chart-style-preview.is-grad i {
    background: linear-gradient(180deg, #1d9a93, #0f6e6a 70%);
}
.chart-style-preview.is-tracks {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
}
.chart-style-preview.is-tracks i {
    flex: none;
    height: 5px;
    width: 100%;
    border-radius: 999px;
    background: #dbe7e6;
    position: relative;
}
.chart-style-preview.is-tracks i::after {
    content: "";
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0f6e6a;
}
.chart-style-preview.is-tracks i:nth-child(1)::after { width: 80%; }
.chart-style-preview.is-tracks i:nth-child(2)::after { width: 55%; }
.chart-style-preview.is-tracks i:nth-child(3)::after { width: 70%; }
.chart-style-preview.is-tracks i:nth-child(4) { display: none; }
.chart-style-preview.is-stack i { height: 100%; border-radius: 0; }
.chart-style-preview.is-stack i:nth-child(1) { height: 40%; background: #0f6e6a; }
.chart-style-preview.is-stack i:nth-child(2) { height: 28%; background: #1d9a93; }
.chart-style-preview.is-stack i:nth-child(3) { height: 20%; background: #c45c26; }
.chart-style-preview.is-stack i:nth-child(4) { height: 12%; background: #f59e0b; }
.chart-style-preview.is-line,
.chart-style-preview.is-smooth,
.chart-style-preview.is-markers,
.chart-style-preview.is-area {
    align-items: center;
}
.chart-style-preview.is-line i,
.chart-style-preview.is-smooth i,
.chart-style-preview.is-markers i,
.chart-style-preview.is-area i {
    height: 3px;
    border-radius: 999px;
    flex: 1;
}
.chart-style-preview.is-line i:nth-child(1) { transform: translateY(8px); }
.chart-style-preview.is-line i:nth-child(2) { transform: translateY(-4px); }
.chart-style-preview.is-line i:nth-child(3) { transform: translateY(2px); }
.chart-style-preview.is-line i:nth-child(4) { transform: translateY(-8px); }
.chart-style-preview.is-pie,
.chart-style-preview.is-labels,
.chart-style-preview.is-minimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 36px;
    gap: 3px;
}
.chart-style-preview.is-pie i,
.chart-style-preview.is-labels i,
.chart-style-preview.is-minimal i {
    height: 100%;
    border-radius: 4px;
}
.chart-style-preview.is-pie i:nth-child(1),
.chart-style-preview.is-labels i:nth-child(1),
.chart-style-preview.is-minimal i:nth-child(1) { background: #0f6e6a; }
.chart-style-preview.is-pie i:nth-child(2),
.chart-style-preview.is-labels i:nth-child(2),
.chart-style-preview.is-minimal i:nth-child(2) { background: #c45c26; }
.chart-style-preview.is-pie i:nth-child(3),
.chart-style-preview.is-labels i:nth-child(3),
.chart-style-preview.is-minimal i:nth-child(3) { background: #3b82f6; }
.chart-style-preview.is-pie i:nth-child(4),
.chart-style-preview.is-labels i:nth-child(4),
.chart-style-preview.is-minimal i:nth-child(4) { background: #f59e0b; }

.chart-style-preview.is-combo { align-items: flex-end; }
.chart-style-preview.is-combo i:nth-child(1) { height: 50%; }
.chart-style-preview.is-combo i:nth-child(2) { height: 78%; background: #c45c26; }
.chart-style-preview.is-combo i:nth-child(3) { height: 42%; }
.chart-style-preview.is-combo i:nth-child(4) { height: 88%; background: #c45c26; }

.chart-style-preview.is-scatter,
.chart-style-preview.is-hist { align-items: flex-end; }
.chart-style-preview.is-scatter i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    align-self: center;
}
.chart-style-preview.is-scatter i:nth-child(1) { transform: translate(2px, 6px); }
.chart-style-preview.is-scatter i:nth-child(2) { transform: translate(-4px, -8px); }
.chart-style-preview.is-scatter i:nth-child(3) { transform: translate(6px, 2px); }
.chart-style-preview.is-scatter i:nth-child(4) { transform: translate(-2px, -10px); }
.chart-style-preview.is-hist i { border-radius: 0; margin: 0; }
.chart-style-preview.is-hist { gap: 1px; }

.chart-style-preview.is-funnel { align-items: center; flex-direction: column; gap: 3px; }
.chart-style-preview.is-funnel i { height: 6px; width: 100%; border-radius: 2px; }
.chart-style-preview.is-funnel i:nth-child(1) { width: 100%; }
.chart-style-preview.is-funnel i:nth-child(2) { width: 78%; }
.chart-style-preview.is-funnel i:nth-child(3) { width: 56%; }
.chart-style-preview.is-funnel i:nth-child(4) { width: 34%; }

.chart-style-preview.is-heat {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
    align-items: stretch;
}
.chart-style-preview.is-heat i { height: 100%; border-radius: 2px; flex: none; }
.chart-style-preview.is-heat i:nth-child(1) { background: #d7ecea; }
.chart-style-preview.is-heat i:nth-child(2) { background: #0f6e6a; }
.chart-style-preview.is-heat i:nth-child(3) { background: #7eb8b5; }
.chart-style-preview.is-heat i:nth-child(4) { background: #c45c26; }

.chart-style-preview.is-radar { align-items: center; justify-content: center; }
.chart-style-preview.is-radar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
}
.chart-style-preview.is-radar i:nth-child(1) { transform: translate(0, -10px); }
.chart-style-preview.is-radar i:nth-child(2) { transform: translate(10px, 6px); }
.chart-style-preview.is-radar i:nth-child(3) { transform: translate(-10px, 6px); }
.chart-style-preview.is-radar i:nth-child(4) { display: none; }

.chart-style-preview.is-waterfall i:nth-child(1) { height: 30%; }
.chart-style-preview.is-waterfall i:nth-child(2) { height: 55%; }
.chart-style-preview.is-waterfall i:nth-child(3) { height: 40%; background: #c45c26; }
.chart-style-preview.is-waterfall i:nth-child(4) { height: 80%; }

.chart-style-preview.is-tree { gap: 3px; align-items: stretch; }
.chart-style-preview.is-tree i { border-radius: 2px; }
.chart-style-preview.is-tree i:nth-child(1) { height: 100%; flex: 2; }
.chart-style-preview.is-tree i:nth-child(2) { height: 70%; flex: 1; }
.chart-style-preview.is-tree i:nth-child(3) { height: 50%; flex: 1; }
.chart-style-preview.is-tree i:nth-child(4) { height: 85%; flex: 1.4; background: #c45c26; }

.chart-style-preview.is-sankey { align-items: center; gap: 2px; }
.chart-style-preview.is-sankey i { height: 8px; border-radius: 99px; }
.chart-style-preview.is-sankey i:nth-child(2),
.chart-style-preview.is-sankey i:nth-child(4) { background: #c45c26; opacity: 0.55; height: 4px; }

.chart-style-preview.is-gauge { align-items: flex-end; justify-content: center; }
.chart-style-preview.is-gauge i:nth-child(1),
.chart-style-preview.is-gauge i:nth-child(4) { display: none; }
.chart-style-preview.is-gauge i:nth-child(2),
.chart-style-preview.is-gauge i:nth-child(3) {
    height: 18px;
    width: 18px;
    border-radius: 18px 18px 0 0;
    align-self: flex-end;
}
.chart-style-preview.is-kpi i { height: 70%; width: 10px; }
.chart-style-preview.is-delta i:nth-child(4) { background: #10b981; }
.chart-style-preview.is-spark i { height: 4px; align-self: center; }
.chart-style-preview.is-spark i:nth-child(1) { transform: translateY(4px); }
.chart-style-preview.is-spark i:nth-child(2) { transform: translateY(-4px); }
.chart-style-preview.is-sema { gap: 4px; align-items: center; }
.chart-style-preview.is-sema i { width: 8px; height: 8px; border-radius: 50%; }
.chart-style-preview.is-sema i:nth-child(1) { background: #ef4444; }
.chart-style-preview.is-sema i:nth-child(2) { background: #f59e0b; }
.chart-style-preview.is-sema i:nth-child(3) { background: #10b981; }
.chart-style-preview.is-sema i:nth-child(4) { display: none; }
.chart-style-preview.is-goal { align-items: center; }
.chart-style-preview.is-goal i { height: 6px; border-radius: 99px; }
.chart-style-preview.is-rank,
.chart-style-preview.is-table,
.chart-style-preview.is-matrix { flex-direction: column; gap: 3px; }
.chart-style-preview.is-rank i,
.chart-style-preview.is-table i,
.chart-style-preview.is-matrix i { height: 5px; width: 100%; border-radius: 2px; }

.page-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f6e6a;
    font-weight: 600;
}

.page-title {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: #1a2a37;
    font-weight: 600;
}

.page-title.dash-board-title {
    font-size: 1.25rem;
}

.page-lead {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.9rem;
}

.soft-card {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.conn-card,
.list-card {
    padding: 1rem 1.05rem 0.9rem;
    display: flex;
    flex-direction: column;
    min-height: 168px;
}

.conn-card.is-active,
.list-card.is-active {
    border-color: #0f6e6a;
    box-shadow: 0 0 0 1px #0f6e6a;
}

.list-card {
    cursor: pointer;
}

.conn-card-top,
.list-card .pill {
    margin-bottom: 0.65rem;
}

.list-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.list-card-pills .pill {
    margin-bottom: 0;
}

.conn-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.conn-card h2,
.list-card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.conn-card p,
.list-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
    flex: 1;
}

.conn-card-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.85rem;
}

.dash-entry {
    text-decoration: none;
    color: inherit;
}

.pill {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: #eef4f3;
    color: #0f6e6a;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-dot {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.status-ok { color: #15803d; }
.status-error { color: #b91c1c; }

.form-card {
    padding: 1.25rem 1.3rem 1.15rem;
    max-width: none;
}

.form-label {
    margin: 1.1rem 0 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

.form-hint {
    margin: -0.25rem 0 0.7rem;
    color: #64748b;
    font-size: 0.85rem;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.logo-preview {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 1px solid #e8edf1;
    border-radius: 10px;
    background: #f8fafb;
    padding: 4px;
}

.logo-preview.is-empty {
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.empty-panel {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    padding: 1.6rem;
    max-width: 480px;
}

.empty-panel h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.empty-panel p {
    margin: 0 0 1rem;
    color: #64748b;
}

.empty-panel .page-actions {
    justify-content: flex-start;
}

.viz-kpi {
    --accent: #3b82f6;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
}

.viz-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--accent) 16%, white);
    color: var(--accent);
    flex-shrink: 0;
}

.viz-kpi-value {
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
}

.viz-kpi-label {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.viz-kpi-delta {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.viz-kpi-delta.is-up { color: #15803d; }
.viz-kpi-delta.is-down { color: #b91c1c; }

.viz-rank {
    list-style: none;
    margin: 0;
    padding: 0.55rem 1rem 0.75rem 0.9rem;
    overflow: auto;
    height: 100%;
    box-sizing: border-box;
}

.viz-rank li {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.48rem 0.15rem;
    border-bottom: 1px solid #f1f5f9;
}

.viz-rank li.is-live {
    cursor: pointer;
}

.viz-rank li.is-live:hover {
    background: #f8fafc;
}

.viz-kpi.is-live,
.dash-info.is-live {
    cursor: pointer;
}

.dash-table tr.is-live {
    cursor: pointer;
}

.viz-bar-row {
    appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    color: inherit;
}

.viz-bar-row.is-live {
    cursor: pointer;
}

.viz-bar-row:disabled {
    cursor: default;
}

.viz-rank em {
    font-style: normal;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

.viz-rank strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.viz-rank small {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
}

.viz-rank b {
    font-size: 0.8rem;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-weight: 650;
    margin-left: 0.15rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.viz-bars {
    padding: 0.65rem 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
    overflow: hidden;
}

.viz-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #475569;
    margin-bottom: 0.25rem;
    min-width: 0;
}

.viz-bar-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.viz-bar-track {
    height: 6px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.viz-bar-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.viz-pair {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    padding: 0.2rem 0;
    color: #64748b;
}

.viz-pair strong { color: #1e293b; }
.viz-note { margin: 0 0 0.5rem; color: #64748b; font-size: 0.82rem; }

.series-color-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.45rem;
    min-width: 0;
}

.series-color-row input[type="color"] {
    width: 36px;
    height: 28px;
    padding: 0;
    border: 1px solid #dde6e4;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.viz-kpi.is-grande .viz-kpi-value {
    font-size: 1.7rem;
}

.viz-kpi.is-spark {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: center;
    gap: 0.6rem;
}

.viz-spark {
    width: 100%;
    height: 32px;
    overflow: visible;
}

.viz-kpi.is-goal,
.viz-kpi.is-semaforo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
}

.viz-kpi-hint {
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

.viz-goal-track {
    width: 100%;
    height: 7px;
    border-radius: 99px;
    background: #eef2f7;
    overflow: hidden;
    margin-top: 0.35rem;
}

.viz-goal-track i {
    display: block;
    height: 100%;
    background: var(--accent, #0f6e6a);
    border-radius: inherit;
}

.viz-semaforo {
    display: flex;
    gap: 0.28rem;
    margin-bottom: 0.2rem;
}

.viz-semaforo i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.22;
}

.viz-semaforo i.is-bad { background: #ef4444; }
.viz-semaforo i.is-warn { background: #f59e0b; }
.viz-semaforo i.is-ok { background: #16a34a; }
.viz-kpi.is-bad .viz-semaforo i.is-bad,
.viz-kpi.is-warn .viz-semaforo i.is-warn,
.viz-kpi.is-ok .viz-semaforo i.is-ok { opacity: 1; }

.viz-gauge {
    --accent: #0f6e6a;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.7rem 0.55rem;
    box-sizing: border-box;
}

.viz-gauge-dial {
    position: relative;
    width: min(100%, 180px);
}

.viz-gauge-dial svg {
    display: block;
    width: 100%;
    height: auto;
}

.viz-gauge-readout {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    text-align: center;
}

.viz-gauge-readout strong {
    display: block;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.1;
}

.viz-gauge-readout span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent, #0f6e6a);
}

.viz-gauge-meta {
    margin-top: 0.15rem;
    text-align: center;
}

.viz-funnel {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.6rem;
    box-sizing: border-box;
    overflow: auto;
}

.viz-funnel-step {
    appearance: none;
    border: 0;
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font: inherit;
    min-width: 28%;
    max-width: 100%;
}

.viz-funnel-step.is-live { cursor: pointer; }
.viz-funnel-step:disabled { cursor: default; }
.viz-funnel-step span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
}
.viz-funnel-step strong { font-size: 0.75rem; }

.viz-matrix {
    height: 100%;
    overflow: auto;
    padding: 0.15rem 0;
}

.viz-matrix table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.viz-matrix th,
.viz-matrix td {
    padding: 0.4rem 0.55rem;
    text-align: right;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

.viz-matrix thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    color: #64748b;
    font-weight: 650;
    text-align: right;
}

.viz-matrix tbody th {
    text-align: left;
    color: #334155;
    font-weight: 600;
    position: sticky;
    left: 0;
    background: #fff;
}

.viz-matrix tr.is-live { cursor: pointer; }
.viz-matrix tr.is-live:hover td,
.viz-matrix tr.is-live:hover th { background: #f8fafc; }

.viz-gauge.is-live { cursor: pointer; }

.dash-widget.is-map .dash-widget-body,
.dash-widget.is-gantt .dash-widget-body {
    overflow: hidden;
}

.dash-widget-body .viz-chart.is-map {
    display: flex;
    flex-direction: column;
    position: relative;
}

.viz-map-host,
.viz-map-host.leaflet-container {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #e8eef2;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.viz-map-host.is-empty {
    display: none;
}

.viz-map-note {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 28px;
    z-index: 1000;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e8edf1;
    color: #475569;
    font-size: 0.72rem;
    line-height: 1.35;
    pointer-events: none;
}

.viz-gantt {
    height: 100%;
    overflow: auto;
    padding: 0.45rem 0.65rem 0.6rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.viz-gantt-axis {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    padding-bottom: 0.2rem;
}

.viz-gantt-axis-pad {
    flex: 0 0 28%;
    max-width: 9.5rem;
}

.viz-gantt-axis-track {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
    min-width: 0;
}

.viz-gantt-row {
    appearance: none;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: minmax(4.5rem, 28%) 1fr auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.12rem 0;
    font: inherit;
    text-align: left;
    color: inherit;
}

.viz-gantt-row.is-live { cursor: pointer; }
.viz-gantt-row:disabled { cursor: default; }
.viz-gantt-row.is-live:hover .viz-gantt-track { background: #eef2f6; }

.viz-gantt-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.viz-gantt-track {
    position: relative;
    height: 16px;
    border-radius: 999px;
    background: #f1f5f9;
    min-width: 0;
}

.viz-gantt-track i {
    position: absolute;
    top: 2px;
    bottom: 2px;
    border-radius: 999px;
    min-width: 8px;
}

.viz-gantt-row small {
    font-size: 0.65rem;
    color: #64748b;
    white-space: nowrap;
}

.chart-style-preview.is-map,
.chart-style-preview.is-choro {
    align-items: stretch;
    justify-content: center;
}

.chart-style-preview.is-map i,
.chart-style-preview.is-choro i {
    border-radius: 50%;
    flex: 0 0 auto;
    width: 8px;
    height: 8px !important;
    margin: auto 2px;
}

.chart-style-preview.is-choro i:nth-child(1) { background: #dbeae8; }
.chart-style-preview.is-choro i:nth-child(2) { background: #7fb6b2; }
.chart-style-preview.is-choro i:nth-child(3) { background: #0f6e6a; }
.chart-style-preview.is-choro i:nth-child(4) { background: #0a4f4c; }

.chart-style-preview.is-gantt {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.chart-style-preview.is-gantt i {
    height: 6px !important;
    border-radius: 999px;
    width: 70%;
}

.chart-style-preview.is-gantt i:nth-child(1) { width: 55%; margin-left: 10%; }
.chart-style-preview.is-gantt i:nth-child(2) { width: 40%; margin-left: 30%; }
.chart-style-preview.is-gantt i:nth-child(3) { width: 48%; margin-left: 18%; }
.chart-style-preview.is-gantt i:nth-child(4) { display: none; }

.share-brand {
    font-weight: 650;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.share-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background: #f4f7f8;
}

.share-badge {
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a6870;
}

.dash-identity-toggle {
    margin: -0.35rem 0 0.75rem;
}

.dash-identity {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.15rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e8edf1;
    color: #7b8790;
}

.dash-identity img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.dash-identity strong {
    font-size: 0.78rem;
    font-weight: 600;
    color: #5a6870;
    letter-spacing: 0.01em;
}

.dash-identity em {
    display: block;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 450;
    color: #94a3b8;
    margin-top: 0.08rem;
}

.viz-kpi.is-alert {
    outline: 2px solid #b91c1c;
    outline-offset: -2px;
}

.log-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.log-toolbar .mud-input-control {
    min-width: 200px;
    flex: 1 1 200px;
    max-width: 280px;
}

.log-row {
    display: grid;
    grid-template-columns: 9.6rem minmax(0, 1fr) auto 4.2rem;
    gap: 0.55rem 1rem;
    align-items: start;
    padding: 0.75rem 1rem;
}

.log-row time {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: #5a6870;
    padding-top: 0.18rem;
}

.log-row h2 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.log-row p {
    margin: 0.18rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.log-ms {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: #5a6870;
    text-align: right;
    padding-top: 0.2rem;
}

.log-footnote {
    margin: 0.85rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

@media (max-width: 720px) {
    .log-row {
        grid-template-columns: 1fr auto 4.2rem;
    }

    .log-row time {
        grid-column: 1 / -1;
        padding-top: 0;
    }
}

.report-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
}

.report-param-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.report-table-wrap {
    overflow: auto;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.report-table th {
    text-align: left;
    padding: 0.55rem 0.7rem;
    background: #0f6e6a;
    color: #fff;
    font-weight: 650;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.report-table td {
    padding: 0.4rem 0.7rem;
    border-bottom: 1px solid #eef2f4;
    vertical-align: top;
}

.report-table tr.is-group td {
    font-weight: 650;
    background: #f8fafc;
}

.report-table tr.is-sub td {
    font-weight: 650;
    background: #eef4f3;
}

.report-table tr.is-grand td {
    font-weight: 650;
    background: #e8edf1;
}

.report-key-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.report-band {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.report-band-detail {
    padding-left: 1rem;
}

.report-table tr.is-head td {
    font-weight: 650;
    background: #f1f8f7;
}

.report-table-detail th {
    background: #1a8a84;
}

.report-table td.is-num,
.report-table th.is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.report-format-wrap {
    overflow: auto;
    margin-top: 0.5rem;
}

.report-format {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.report-format th,
.report-format td {
    text-align: left;
    padding: 0.35rem 0.4rem;
    border-bottom: 1px solid #eef2f4;
    vertical-align: middle;
}

.report-notes {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
}

.report-notes-body {
    margin: 0.35rem 0 0;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #334155;
}

@media (max-width: 720px) {
    .report-key-row {
        grid-template-columns: 1fr;
    }

    .report-band-detail {
        padding-left: 0;
    }
}

.cr-designer {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 260px;
    gap: 0.55rem;
    align-items: stretch;
    background: #d8dee4;
    border: 1px solid #b8c2cc;
    border-radius: 10px;
    padding: 0.45rem;
}

.cr-explorer {
    background: #f7f8fa;
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    max-height: calc(100vh - 150px);
    overflow: auto;
    font-size: 0.78rem;
}

.cr-explorer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(#4a6073, #3a4e60);
    color: #fff;
    padding: 0.55rem 0.7rem 0.45rem;
}

.cr-explorer-head span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cr-explorer-head small {
    display: block;
    opacity: 0.78;
    font-size: 0.68rem;
}

.cr-explorer-links {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.cr-explorer-links button {
    border: 0;
    background: transparent;
    color: #d7e8e6;
    padding: 0;
    font-size: 0.68rem;
    cursor: pointer;
    text-decoration: underline;
}

.cr-explorer-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid #c5d0d6;
    background: #eceff2;
    position: sticky;
    top: 62px;
    z-index: 1;
}

.cr-explorer-tabs button {
    border: 0;
    border-right: 1px solid #c5d0d6;
    background: transparent;
    color: #334155;
    padding: 0.4rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 650;
    cursor: pointer;
}

.cr-explorer-tabs button:last-child {
    border-right: 0;
}

.cr-explorer-tabs button.is-on {
    background: #fff;
    color: #0f6e6a;
    box-shadow: inset 0 -2px 0 #0f6e6a;
}

.cr-search {
    display: block;
    width: calc(100% - 1.1rem);
    margin: 0.5rem 0.55rem;
    box-sizing: border-box;
    height: 30px;
    border: 1px solid #c5d0d6;
    border-radius: 4px;
    padding: 0 0.5rem;
    font: inherit;
    font-size: 0.75rem;
    background: #fff;
}

.cr-search:focus {
    outline: none;
    border-color: #0f6e6a;
}

.cr-tree-hint,
.cr-tree-label {
    margin: 0.35rem 0.7rem;
    font-size: 0.72rem;
    color: #475569;
}

.cr-tree-hint code {
    font-size: 0.68rem;
    background: #e8edf1;
    padding: 0.05rem 0.25rem;
    border-radius: 3px;
}

.cr-tree-section {
    padding-bottom: 0.2rem;
}

.cr-tree-section-btn,
.cr-tree-table-btn,
.cr-tree-field {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    color: #12202e;
    cursor: pointer;
    font: inherit;
}

.cr-tree-section-btn {
    padding: 0.35rem 0.55rem;
    font-weight: 700;
    font-size: 0.74rem;
    background: #e8edf1;
}

.cr-tree-section-btn em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.cr-tree-table {
    padding-left: 0.35rem;
}

.cr-tree-table-btn {
    padding: 0.28rem 0.45rem 0.28rem 0.3rem;
}

.cr-tree-table-btn:hover,
.cr-tree-field:hover:not(:disabled) {
    background: #e8f4f3;
}

.cr-caret {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #64748b;
    flex-shrink: 0;
}

.cr-caret.is-open {
    transform: rotate(90deg);
}

.cr-table-mark {
    width: 12px;
    height: 10px;
    border-radius: 1px;
    background: linear-gradient(#f5d76e, #d4a017);
    border: 1px solid #b8860b;
    flex-shrink: 0;
}

.cr-table-name {
    font-weight: 650;
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cr-table-role {
    font-size: 0.62rem;
    color: #0f6e6a;
    background: #e8f4f3;
    border-radius: 3px;
    padding: 0.05rem 0.28rem;
    white-space: nowrap;
}

.cr-table-count {
    margin-left: auto;
    font-size: 0.62rem;
    color: #94a3b8;
}

.cr-tree-field {
    padding: 0.18rem 0.5rem 0.18rem 1.55rem;
    font-size: 0.74rem;
}

.cr-tree-field.is-on,
.cr-tree-field.is-key {
    background: #f1f8f7;
}

.cr-tree-field:disabled {
    opacity: 0.55;
    cursor: default;
}

.cr-field-dot {
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: #3b82f6;
    flex-shrink: 0;
}

.cr-tree-field.is-key .cr-field-dot {
    background: #ca8a04;
}

.cr-field-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cr-field-type {
    margin-left: auto;
    font-size: 0.6rem;
    color: #94a3b8;
    font-family: Consolas, "Courier New", monospace;
}

.cr-field-fx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 14px;
    border-radius: 2px;
    background: #7e22ce;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    flex-shrink: 0;
}

.cr-fx-row {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.cr-fx-row .cr-tree-field {
    padding-left: 0.55rem;
    flex: 1;
}

.cr-fx-del {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    width: 22px;
    flex-shrink: 0;
}

.cr-fx-del:hover:not(:disabled) {
    color: #b91c1c;
}

.cr-chip.is-formula {
    width: calc(100% - 1.1rem);
    margin: 0.35rem 0.55rem;
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
    border-radius: 6px;
}

.cr-formula-box {
    margin: 0.4rem 0.55rem 0.7rem;
    padding: 0.55rem;
    border: 1px solid #c4b5fd;
    border-radius: 6px;
    background: #faf8ff;
}

.cr-formula-insert {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.cr-mini {
    border: 1px solid #d7e3e1;
    background: #fff;
    color: #12202e;
    border-radius: 4px;
    padding: 0.12rem 0.35rem;
    font-size: 0.68rem;
    cursor: pointer;
}

.cr-mini:hover {
    border-color: #0f6e6a;
    background: #f1f8f7;
}

.cr-ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(#f7f8fa, #e7ebef);
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    min-height: 64px;
}

.cr-ribbon-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.2rem;
    padding: 0.35rem 0.7rem 0.28rem;
    border-right: 1px solid #c5d0d6;
}

.cr-ribbon-group > span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    order: 2;
    text-align: center;
}

.cr-ribbon-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem;
    order: 1;
}

.cr-u {
    text-decoration: underline;
    font-weight: 700;
}

.cr-prop-head {
    background: linear-gradient(#4a6073, #3a4e60);
    color: #fff;
    margin: -0.85rem -0.9rem 0.7rem;
    padding: 0.5rem 0.8rem;
}

.cr-prop-head span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cr-prop-head small {
    display: block;
    opacity: 0.78;
    font-size: 0.68rem;
}

.cr-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    background: #eceff2;
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    color: #334155;
}

.cr-status-bind {
    font-family: Consolas, "Courier New", monospace;
    color: #0f6e6a;
}

.cr-ruler-x {
    height: 16px;
    background:
        repeating-linear-gradient(90deg, #8b949e 0, #8b949e 1px, transparent 1px, transparent 5mm),
        #eceff2;
    border-bottom: 1px solid #b8c2cc;
    flex-shrink: 0;
}

.cr-design-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: max-content;
    margin: 0 auto;
}

.cr-rails {
    width: 118px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #c5ced6;
}

.cr-rail {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0.2rem 0.4rem;
    border: 0;
    border-bottom: 1px solid #9aa3ad;
    border-right: 1px solid #9aa3ad;
    background: linear-gradient(#dfe4e8, #cdd3d9);
    color: #1e293b;
    font-size: 0.68rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    line-height: 1.15;
}

.cr-rail.is-detail {
    background: linear-gradient(#e8f4f3, #d2e6e4);
}

.cr-rail.is-on {
    background: #0f6e6a;
    color: #fff;
}

.cr-workspace {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.cr-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    padding: 0.5rem 0.7rem;
}

.cr-toolbar-label {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f6e6a;
    margin-right: 0.25rem;
}

.cr-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #c5d0d6;
    background: #fff;
    color: #12202e;
    border-radius: 3px;
    padding: 0.28rem 0.45rem;
    font-size: 0.75rem;
    cursor: pointer;
    min-height: 28px;
}

.cr-tool:hover:not(:disabled) {
    border-color: #0f6e6a;
    background: #f1f8f7;
}

.cr-tool.is-on {
    border-color: #0f6e6a;
    background: #f1f8f7;
}

.cr-toolbar-gap {
    width: 0.4rem;
}

.cr-page-index {
    font-size: 0.78rem;
    color: #475569;
}

.cr-folio-box {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.72rem;
}

.cr-folio-box > span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cr-folio-box small {
    display: block;
    width: 100%;
    color: #0f6e6a;
    font-size: 0.68rem;
}

.cr-folio-field {
    height: 34px;
    max-width: 11rem;
    border: 1px solid #c5d0d6;
    border-radius: 3px;
    background: #fff;
    color: #12202e;
    font: inherit;
    font-size: 0.75rem;
    padding: 0 0.35rem;
}

.cr-folio-hint {
    font-size: 0.68rem;
    color: #0f6e6a;
    max-width: 16rem;
    line-height: 1.2;
}

.cr-folio {
    box-sizing: border-box;
    height: 34px;
    width: 8.2rem;
    margin: 0;
    padding: 0 0.55rem;
    border: 1px solid #d7e3e1;
    border-radius: 9px;
    background: #fff;
    color: #12202e;
    font: inherit;
    font-size: 0.82rem;
}

.cr-folio:focus {
    outline: none;
    border-color: #0f6e6a;
    box-shadow: 0 0 0 3px rgba(15, 110, 106, 0.12);
}

.cr-paper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    font-size: 0.78rem;
}

.cr-paper span {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f6e6a;
}

.cr-paper select {
    height: 34px;
    border: 1px solid #d7e3e1;
    border-radius: 9px;
    background: #fff;
    color: #12202e;
    font: inherit;
    font-size: 0.82rem;
    padding: 0 0.45rem;
}

.cr-template-save {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    padding: 0.55rem 0.7rem;
}

.cr-template-name {
    min-width: 16rem;
    flex: 1 1 16rem;
}

.ds-date .cr-folio {
    height: 42px;
    min-width: 140px;
    width: 10rem;
    border-radius: 12px;
    border-color: #dde6e4;
    font-size: 0.92rem;
}

.cr-guide {
    position: absolute;
    background: #e11d48;
    pointer-events: none;
    z-index: 50;
}

.cr-guide.is-x {
    top: 0;
    bottom: 0;
    width: 1px;
}

.cr-guide.is-y {
    left: 0;
    right: 0;
    height: 1px;
}

.cr-tool-mark {
    display: inline-block;
    width: 14px;
    height: 12px;
    border: 1.5px solid #0f6e6a;
    background: #fff;
    flex-shrink: 0;
}

.cr-tool-mark.is-card {
    width: 16px;
    height: 13px;
    border-radius: 3px;
    box-shadow: 2px 2px 0 #c5d0d6;
}

.cr-tool-mark.is-box {
    border-radius: 2px;
    background: #f1f8f7;
}

.cr-tool-mark.is-ellipse {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.cr-tool-mark.is-line {
    height: 0;
    width: 16px;
    border: 0;
    border-top: 2px solid #0f6e6a;
    background: none;
}

.cr-tool-mark.is-vline {
    width: 0;
    height: 14px;
    border: 0;
    border-left: 2px solid #0f6e6a;
    background: none;
}

.cr-tool-mark.is-text {
    border: 0;
    background: none;
    width: auto;
    height: auto;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f6e6a;
    line-height: 1;
}

.cr-tool-mark.is-logo {
    border-radius: 2px;
    background: linear-gradient(135deg, #e8edf1, #fff);
}

.cr-host-hint {
    margin: 0;
    font-size: 0.78rem;
    color: #475569;
}

.cr-palette,
.cr-props,
.cr-explorer {
    background: #fff;
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    padding: 0.85rem 0.9rem;
    max-height: calc(100vh - 150px);
    overflow: auto;
}

.cr-explorer {
    padding: 0;
    background: #f7f8fa;
}

.cr-chip {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #e8edf1;
    background: #f8fafb;
    border-radius: 8px;
    padding: 0.28rem 0.5rem;
    margin: 0 0 0.28rem;
    font-size: 0.75rem;
    color: #12202e;
    cursor: pointer;
}

.cr-chip:hover:not(:disabled) {
    border-color: #0f6e6a;
    background: #f1f8f7;
}

.cr-chip:disabled {
    opacity: 0.55;
    cursor: default;
}

.cr-stage {
    background: #8b949e;
    border: 1px solid #6f7882;
    border-radius: 4px;
    padding: 0;
    overflow: auto;
    max-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
}

.cr-design-wrap .cr-page {
    margin: 0.8rem 0.8rem 1.1rem 0;
}

.cr-sheet {
    display: grid;
    gap: 1.2rem;
    justify-items: center;
}

.cr-page {
    position: relative;
    box-sizing: border-box;
    background: #fff;
    color: #12202e;
    font-family: "Segoe UI", Calibri, Arial, sans-serif;
    box-shadow: 0 10px 36px rgba(18, 32, 46, 0.14);
    overflow: visible;
}

.cr-page.is-design {
    overflow: visible;
}

.cr-band {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.cr-page.is-design .cr-band {
    outline: 1px dashed #c5d0d6;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4.9mm,
        rgba(15, 110, 106, 0.04) 5mm
    );
}

.cr-page.is-design .cr-band.is-selected {
    outline: 1px solid #0f6e6a;
    background-color: rgba(15, 110, 106, 0.05);
}

.cr-band-label {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 4;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f6e6a;
    background: rgba(255, 255, 255, 0.92);
    padding: 0 0.35rem;
    pointer-events: none;
}

.cr-item {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 1px;
    user-select: none;
}

.cr-page.is-design .cr-item {
    cursor: grab;
    outline: 1px solid transparent;
}

.cr-page.is-design .cr-item.is-selected:not(.is-shape) {
    outline: 1px solid #0f6e6a;
    background: rgba(15, 110, 106, 0.06);
    z-index: 30 !important;
}

.cr-page.is-design .cr-item.is-selected.is-shape {
    outline: 2px solid #0f6e6a;
}

.cr-page.is-design .cr-item.is-drag {
    outline: 1px solid #0f6e6a;
    z-index: 40 !important;
}

.cr-item.is-line {
    padding: 0;
    min-height: 1px;
    overflow: visible;
}

.cr-item.is-line.is-vert {
    min-width: 1px;
    min-height: 0;
}

.cr-item.is-box,
.cr-item.is-ellipse,
.cr-item.is-shape {
    padding: 0;
}

.cr-item.is-ghost {
    outline: 1px dashed #94a3b8;
    background: transparent;
}

.cr-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin: 0.2rem 0 0.7rem;
}

.cr-swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #c5d0d6;
    padding: 0;
    cursor: pointer;
}

.cr-swatch:disabled {
    cursor: default;
    opacity: 0.6;
}

.cr-swatch.is-on {
    outline: 2px solid #0f6e6a;
    outline-offset: 1px;
}

.cr-swatch.is-none {
    background: repeating-linear-gradient(45deg, #fff, #fff 3px, #e8edf1 3px, #e8edf1 6px);
}

.cr-z-row {
    display: flex;
    gap: 0.4rem;
}

.cr-item.is-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: normal;
}

.cr-item.is-wrap {
    white-space: pre-wrap;
    overflow: hidden;
}

.cr-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cr-logo-ph {
    font-size: 0.7rem;
    color: #64748b;
    border: 1px dashed #94a3b8;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 8px;
    height: 8px;
    background: #0f6e6a;
    cursor: nwse-resize;
}

.cr-detail {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8pt;
}

.cr-detail th {
    background: #0f6e6a;
    color: #fff;
    font-weight: 650;
    text-align: left;
    padding: 0.2rem 0.28rem;
}

.cr-detail td {
    border-bottom: 1px solid #e8edf1;
    padding: 0.18rem 0.28rem;
    vertical-align: top;
}

.cr-detail .is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cr-detail .is-empty {
    color: #64748b;
    font-style: italic;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin: 1.55rem 0 0.9rem;
}

.section-head h2 {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

.pill.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.pill.is-ok {
    background: #ecfdf3;
    color: #15803d;
}

@media (max-width: 1100px) {
    .cr-designer {
        grid-template-columns: 1fr;
    }

    .cr-palette,
    .cr-props,
    .cr-explorer {
        max-height: none;
    }

    .cr-stage {
        max-height: none;
    }

    .cr-explorer-tabs {
        top: 0;
    }
}

.app-page:has(.tut-shell) {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 3.5rem);
    padding-bottom: 1rem;
}

.app-page:has(.tut-shell) .tut-head {
    margin-bottom: 0.7rem;
}

.tut-shell {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tut-chapters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.tut-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.tut-progress {
    flex-shrink: 0;
    height: 4px;
    background: #e8edf1;
}

.tut-progress span {
    display: block;
    height: 100%;
    background: #0f6e6a;
    transition: width 0.25s ease;
}

.tut-stage {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: min(62vh, 640px);
    background: #eef2f4;
    outline: none;
}

.tut-fake-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1.15rem 1.4rem 1.3rem;
}

.tut-fake-app.is-dim {
    filter: grayscale(0.15);
    opacity: 0.38;
}

.tut-fake-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a2a37;
}

.tut-fake-actions {
    display: flex;
    gap: 0.4rem;
}

.tut-board-grid {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tut-btn,
.tut-cta,
.tut-btn-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 0.95rem;
    border-radius: 999px;
    border: 1px solid #d4ddd9;
    background: #fff;
    color: #2a3c48;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
}

.tut-cta {
    height: 40px;
    padding: 0 1.15rem;
    background: #0f6e6a;
    border-color: #0f6e6a;
    color: #fff;
}

.tut-btn-primary {
    background: #0f6e6a;
    border-color: #0f6e6a;
    color: #fff;
}

.tut-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.tut-canvas {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    min-height: 280px;
}

.tut-canvas-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border: 1px dashed #c5d0d6;
    border-radius: 14px;
    color: #64748b;
    font-size: 0.95rem;
}

.tut-wid {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    min-height: 180px;
}

.tut-wid span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.tut-kpi strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 2.6rem;
    letter-spacing: -0.03em;
    color: #1a2a37;
}

.tut-line svg,
.tut-spark {
    display: block;
    width: 100%;
    height: 120px;
    margin-top: 0.65rem;
}

.tut-wid-lg {
    max-width: 360px;
    margin: 0.75rem 0 1.1rem;
}

.tut-modal {
    position: absolute;
    inset: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 16px;
    padding: 1.25rem 1.5rem 1.35rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.tut-modal header {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.tut-modal-lead,
.tut-group {
    margin: 0 0 0.75rem;
    color: #64748b;
    font-size: 0.88rem;
}

.tut-group {
    margin: 0 0 0.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #5a6870;
}

.tut-kind-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    flex: 1;
    min-height: 0;
    align-content: start;
}

.tut-kinds {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0;
}

.tut-kinds .purpose-card {
    min-height: 108px;
}

.tut-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.25rem;
    align-content: start;
    flex: 1;
    min-height: 0;
}

.tut-form-grid .tut-cta {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.15rem;
}

.tut-field {
    border: 1px solid #d4ddd9;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    background: #fff;
    min-height: 4.6rem;
}

.tut-field span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.tut-field strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.02rem;
    color: #1a2a37;
}

.tut-scene {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tut-scene-start {
    padding: 1.75rem 2rem 1.8rem;
    justify-content: center;
}

.tut-scene-start h2 {
    margin: 0.25rem 0 0.55rem;
    font-size: 1.7rem;
}

.tut-scene-start p {
    max-width: 52rem;
    font-size: 1rem;
    color: #5a6870;
}

.tut-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f6e6a;
}

.tut-start-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.35rem;
}

.tut-done-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.tut-dim {
    opacity: 0.55;
    pointer-events: none;
}

.tut-hot {
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 2px #0f6e6a, 0 0 0 8px rgba(15, 110, 106, 0.22);
    animation: tut-pulse 1.35s ease-out infinite;
}

.tut-hot::after {
    content: "Pulsa";
    position: absolute;
    top: -0.7rem;
    right: 0.65rem;
    height: 18px;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #0f6e6a;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 18px;
}

@keyframes tut-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #0f6e6a, 0 0 0 8px rgba(15, 110, 106, 0.18); }
    50% { box-shadow: 0 0 0 2px #0f6e6a, 0 0 0 12px rgba(15, 110, 106, 0.08); }
}

.tut-nudge {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    background: #fff4e5;
    border: 1px solid #f3d19e;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 650;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    z-index: 3;
}

.tut-dock {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 0.95rem 1.4rem 1.05rem;
    border-top: 1px solid #e8edf1;
    background: #fff;
}

.tut-caption {
    min-width: 0;
    flex: 1;
}

.tut-caption strong {
    display: block;
    font-size: 1.02rem;
    color: #1a2a37;
}

.tut-caption p {
    margin: 0.2rem 0 0;
    color: #5a6870;
    font-size: 0.9rem;
    line-height: 1.45;
}

.tut-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .tut-kind-board,
    .tut-form-grid {
        grid-template-columns: 1fr;
    }

    .tut-dock {
        flex-direction: column;
        align-items: stretch;
    }

    .tut-controls {
        justify-content: flex-start;
    }

    .tut-stage {
        min-height: 420px;
    }

    .tut-modal {
        inset: 0.75rem;
        overflow: hidden;
    }
}

.tut-hub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.tut-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 1.15rem 1.2rem 1.1rem;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
}

.tut-hub-card:hover {
    border-color: #0f6e6a;
}

.tut-hub-card.is-doc {
    background: #f4fbfa;
}

.tut-hub-time {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.tut-hub-card h2 {
    margin: 0.7rem 0 0.4rem;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

.tut-hub-card p {
    margin: 0;
    flex: 1;
    color: #5a6870;
    font-size: 0.88rem;
    line-height: 1.45;
}

.tut-hub-go {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f6e6a;
}

.doc-hero {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 16px;
    padding: 1.5rem 1.7rem 1.4rem;
    margin-bottom: 1.15rem;
}

.doc-hero-sub {
    margin: 0.25rem 0 0.55rem;
    color: #0f6e6a;
    font-size: 1.05rem;
    font-weight: 650;
}

.doc-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.9rem 0 1rem;
}

.doc-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.doc-toc {
    position: sticky;
    top: 0.75rem;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    padding: 0.95rem 0.9rem 1rem;
}

.doc-toc-title {
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.doc-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-toc li + li {
    margin-top: 0.2rem;
}

.doc-toc-link {
    appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: #2a3c48;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.doc-toc-link:hover {
    background: #eef4f3;
    color: #0f6e6a;
}

.doc-article {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 16px;
    padding: 1.5rem 1.7rem 2.2rem;
}

.doc-article h1 {
    margin: 1.6rem 0 0.7rem;
    padding-top: 0.35rem;
    border-top: 1px solid #e8edf1;
    color: #1a2a37;
    font-size: 1.35rem;
    page-break-before: auto;
    scroll-margin-top: 0.75rem;
}

.doc-article h1:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.doc-article h2 {
    margin: 1.2rem 0 0.45rem;
    color: #1f4e79;
    font-size: 1.08rem;
}

.doc-article h3 {
    margin: 1rem 0 0.35rem;
    color: #2e5a88;
    font-size: 0.98rem;
}

.doc-article p,
.doc-article li {
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.55;
}

.doc-article table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.65rem 0 1.1rem;
    font-size: 0.82rem;
}

.doc-article th {
    background: #1a2a37;
    color: #fff;
    text-align: left;
    padding: 0.45rem 0.6rem;
    font-weight: 650;
}

.doc-article td {
    border: 1px solid #e2e8ea;
    padding: 0.45rem 0.6rem;
    vertical-align: top;
}

.doc-article tr:nth-child(even) td {
    background: #f7fafc;
}

.doc-article pre {
    background: #eef3f8;
    border: 1px solid #d0d7e2;
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.doc-article .note,
.doc-article .tip,
.doc-article .see {
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin: 0.7rem 0 1rem;
    font-size: 0.88rem;
}

.doc-article .note {
    background: #fff4e5;
    border-left: 4px solid #d97706;
}

.doc-article .tip {
    background: #ecfdf3;
    border-left: 4px solid #059669;
}

.doc-article .see {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
}

.doc-article .screen {
    font-weight: 700;
    color: #0f2c59;
}

.doc-article .muted {
    color: #5b6775;
    font-size: 0.85rem;
}

button.page-back {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.tut-bars {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.tut-bar-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
}

.tut-bar-row b {
    flex: 0 0 5.5rem;
    font-weight: 650;
    color: #1a2a37;
}

.tut-bar-track {
    flex: 1;
    height: 11px;
    background: #e8edf1;
    border-radius: 999px;
    overflow: hidden;
}

.tut-bar-track span {
    display: block;
    height: 100%;
    background: #0f6e6a;
}

.tut-pie {
    display: block;
    width: 132px;
    height: 132px;
    margin-top: 0.7rem;
}

.tut-gauge {
    display: block;
    width: min(220px, 100%);
    height: 78px;
    margin-top: 0.45rem;
}

.tut-gauge-n {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    color: #1a2a37;
}

.tut-drop {
    margin-top: 0.85rem;
    border: 1px solid #d4ddd9;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 650;
    color: #1a2a37;
    background: #fff;
}

.tut-mini-table {
    width: 100%;
    margin-top: 0.75rem;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.tut-mini-table th,
.tut-mini-table td {
    text-align: left;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #e8edf1;
}

.tut-mini-table th {
    color: #64748b;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-toc {
        position: static;
    }
}





