:root {
    --bg: #07111f;
    --bg-soft: #0d1c31;
    --bg-deep: #030812;
    --text: #102033;
    --text-soft: #5b6878;
    --white: #ffffff;
    --surface: #f5f8fc;
    --surface-2: #eef4fb;
    --line-dark: rgba(16, 32, 51, 0.12);
    --line-light: rgba(255, 255, 255, 0.13);
    --shadow: 0 18px 60px rgba(7, 17, 31, 0.12);
    --sidebar: 320px;
    --topbar: 68px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #edf3fb;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

.is-hidden {
    display: none !important;
}

.eyebrow {
    margin: 0 0 10px;
    color: #536b87;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary-btn {
    color: #ffffff;
    background: #07111f;
    box-shadow: 0 12px 30px rgba(7, 17, 31, 0.16);
}

.ghost-btn {
    color: var(--text);
    border: 1px solid rgba(16, 32, 51, 0.14);
    background: #ffffff;
}

.text-btn {
    color: var(--text-soft);
    background: transparent;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    background:
        radial-gradient(circle at 78% 8%, rgba(7, 17, 31, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #edf3fb 100%);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 70% 16%, rgba(255, 255, 255, 0.10), transparent 28%),
        linear-gradient(145deg, #030812, #07111f 58%, #111f33);
    overflow: hidden;
}

.app-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
}

.app-sidebar > * {
    position: relative;
    z-index: 2;
}

.sidebar-brand img {
    width: 150px;
    display: block;
}

.sidebar-intro {
    margin-top: 42px;
}

.sidebar-intro span {
    display: inline-flex;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.sidebar-intro h1 {
    max-width: 260px;
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.sidebar-intro p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
}

.sidebar-steps {
    display: grid;
    gap: 8px;
    margin-top: 34px;
}

.sidebar-step {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.sidebar-step.is-active {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
}

.sidebar-step.is-done {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.075);
}

.sidebar-step span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-step.is-done span {
    color: #07111f;
    background: rgba(255, 255, 255, 0.82);
}

.sidebar-step strong {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
}

.sidebar-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.82rem;
}

.sidebar-footer a {
    display: inline-flex;
    margin-top: 14px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 850;
}

.app-main {
    min-width: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: var(--topbar) minmax(0, 1fr);
    overflow: hidden;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(16, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(16px);
}

.app-topbar span {
    display: block;
    color: #536b87;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.app-topbar strong {
    display: block;
    color: var(--text);
    font-size: 1.02rem;
}

.app-topbar nav {
    display: flex;
    gap: 18px;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 760;
}

.app-topbar nav a:hover {
    color: var(--text);
}

.app-workspace {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(390px, 500px) minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    overflow: hidden;
}

.wizard-panel,
.result-panel {
    min-height: 0;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.wizard-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 24px;
    overflow: hidden;
}

.result-panel {
    padding: 24px;
    overflow: auto;
}

.wizard-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    color: #536b87;
    font-size: 0.78rem;
    font-weight: 900;
}

.progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #07111f, #536b87);
    transition: width 0.25s ease;
}

.wizard-step {
    min-height: 0;
    overflow: auto;
    padding-right: 5px;
}

.wizard-step::-webkit-scrollbar,
.result-panel::-webkit-scrollbar {
    width: 8px;
}

.wizard-step::-webkit-scrollbar-track,
.result-panel::-webkit-scrollbar-track {
    background: transparent;
}

.wizard-step::-webkit-scrollbar-thumb,
.result-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(16, 32, 51, 0.16);
}

.wizard-step h2 {
    max-width: 430px;
    margin: 0;
    color: var(--text);
    font-size: clamp(1.28rem, 1.8vw, 1.7rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.wizard-step > p {
    max-width: 460px;
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.option-grid {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.option-button {
    width: 100%;
    min-height: 54px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 13px 15px;
    border: 1px solid rgba(16, 32, 51, 0.11);
    border-radius: 15px;
    color: var(--text);
    text-align: left;
    background: var(--surface);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.option-button:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 32, 51, 0.20);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(7, 17, 31, 0.06);
}

.option-button.is-selected {
    color: #ffffff;
    border-color: #07111f;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.option-button span {
    font-weight: 850;
    line-height: 1.22;
}

.option-button small {
    color: var(--text-soft);
    line-height: 1.32;
    font-size: 0.82rem;
}

.option-button.is-selected small {
    color: rgba(255, 255, 255, 0.68);
}

.form-field,
.guided-note {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.form-field label,
.guided-note strong {
    color: var(--text);
    font-weight: 850;
}

.guided-note {
    padding: 16px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.045), transparent 36%),
        #ffffff;
}

.guided-note p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.form-field textarea,
.form-field input,
.guided-note textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(16, 32, 51, 0.14);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface);
    outline: none;
    resize: vertical;
}

.form-field textarea,
.guided-note textarea {
    min-height: 100px;
}

.form-field textarea:focus,
.form-field input:focus,
.guided-note textarea:focus {
    border-color: rgba(16, 32, 51, 0.38);
    background: #ffffff;
}

.wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.wizard-actions button:disabled {
    opacity: 0.46;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-placeholder {
    min-height: 100%;
    display: grid;
    align-content: center;
    gap: 18px;
}

.preview-header span,
.sketch-header span,
.advisor-note span,
.preview-box span {
    display: block;
    color: #536b87;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.preview-header strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.live-intake-card,
.process-sketch-card {
    padding: 22px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.045), transparent 34%),
        #ffffff;
}

.live-intake-card {
    display: grid;
    gap: 16px;
}

.live-narrative {
    padding: 18px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid rgba(16, 32, 51, 0.08);
}

.live-narrative p {
    margin: 0;
    color: var(--text-soft);
}

.narrative-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.narrative-list li {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(16, 32, 51, 0.08);
}

.narrative-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.narrative-list span {
    color: #536b87;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.narrative-list strong {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.35;
}

.advisor-note {
    padding: 17px 18px;
    border-radius: 20px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.advisor-note span {
    color: rgba(255, 255, 255, 0.62);
}

.advisor-note p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.96rem;
}

.sketch-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.sketch-header strong {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.sketch-header em {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: #07111f;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 850;
}

.process-sketch {
    overflow: hidden;
}

.sketch-canvas {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.sketch-node {
    position: relative;
    min-height: 156px;
    padding: 17px;
    border: 1px dashed rgba(16, 32, 51, 0.18);
    border-radius: 22px;
    background: #f7f9fc;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.sketch-node::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(16, 32, 51, 0.07);
    border-radius: 999px;
    pointer-events: none;
}

.sketch-node.is-active {
    border-style: solid;
    border-color: rgba(7, 17, 31, 0.34);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(7, 17, 31, 0.07);
}

.sketch-node.is-filled {
    color: #ffffff;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
    box-shadow: 0 16px 40px rgba(7, 17, 31, 0.14);
}

.sketch-node.is-open {
    opacity: 0.72;
}

.sketch-node-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.sketch-node-top span {
    display: inline-flex;
    color: #536b87;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.sketch-node-top em {
    color: #536b87;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sketch-node strong {
    position: relative;
    z-index: 2;
    display: block;
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.sketch-node p {
    position: relative;
    z-index: 2;
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.sketch-node.is-filled .sketch-node-top span,
.sketch-node.is-filled .sketch-node-top em,
.sketch-node.is-filled p {
    color: rgba(255, 255, 255, 0.70);
}

.sketch-node.is-filled strong {
    color: #ffffff;
}

.sketch-chips {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.sketch-chips span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
}

.sketch-node.is-filled .sketch-chips span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.sketch-connector {
    position: relative;
    align-self: center;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(16, 32, 51, 0.08), rgba(16, 32, 51, 0.38), rgba(16, 32, 51, 0.08));
}

.sketch-connector::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    width: 9px;
    height: 9px;
    border-top: 2px solid rgba(16, 32, 51, 0.42);
    border-right: 2px solid rgba(16, 32, 51, 0.42);
    transform: translateY(-50%) rotate(45deg);
}

.sketch-connector-down {
    grid-column: 3;
    width: 2px;
    height: 34px;
    justify-self: center;
    align-self: center;
    background: linear-gradient(180deg, rgba(16, 32, 51, 0.08), rgba(16, 32, 51, 0.38), rgba(16, 32, 51, 0.08));
}

.sketch-connector-down::after {
    top: auto;
    right: 50%;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
}

.sketch-canvas .sketch-node:nth-child(7) {
    grid-column: 2 / span 2;
}

.sketch-canvas .sketch-connector:nth-child(8) {
    grid-column: 4;
}

.sketch-canvas .sketch-node:nth-child(9) {
    grid-column: 5;
}

.preview-box {
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.preview-box span {
    color: rgba(255, 255, 255, 0.62);
}

.preview-box p {
    max-width: 860px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.result-card {
    animation: resultIn 0.3s ease both;
}

@keyframes resultIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-topline {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

.result-topline .eyebrow {
    margin-bottom: 0;
}

.result-topline span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 850;
    background: #07111f;
}

.result-card h2 {
    max-width: 720px;
    margin: 0;
    color: var(--text);
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.score-box {
    margin: 22px 0;
    padding: 18px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid rgba(16, 32, 51, 0.10);
}

.score-box strong {
    display: block;
    margin-bottom: 11px;
    color: var(--text);
}

.score-meter {
    height: 9px;
    border-radius: 999px;
    background: #dfe8f4;
    overflow: hidden;
}

.score-meter div {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #07111f, #536b87);
    transition: width 0.4s ease;
}

.score-box small {
    display: block;
    margin-top: 9px;
    color: var(--text-soft);
    font-weight: 800;
}

.result-section {
    margin-top: 22px;
}

.result-section h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.02rem;
    letter-spacing: -0.025em;
}

.result-section p,
.result-section li {
    color: var(--text-soft);
}

.result-section ol,
.result-section ul {
    margin: 10px 0 0;
    padding-left: 21px;
}

.insight-section {
    padding: 20px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 20px;
    background: var(--surface);
}

.insight-section h3 {
    margin-bottom: 8px;
}

.insight-section p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.insight-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 22px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.055), transparent 34%),
        #ffffff;
    box-shadow: 0 10px 34px rgba(7, 17, 31, 0.045);
}

.insight-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 999px;
    pointer-events: none;
}

.insight-card span {
    display: inline-flex;
    margin-bottom: 22px;
    color: #536b87;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.insight-card strong {
    display: block;
    color: var(--text);
    font-size: 1.12rem;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.insight-card p {
    margin: 12px 0 0;
    color: var(--text-soft);
}

.insight-card-dark {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.insight-card-dark::after {
    border-color: rgba(255, 255, 255, 0.10);
}

.insight-card-dark span,
.insight-card-dark p {
    color: rgba(255, 255, 255, 0.70);
}

.insight-card-dark strong {
    color: #ffffff;
}

.result-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.result-section-head h3 {
    margin-bottom: 6px;
}

.result-section-head p {
    max-width: 680px;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.diagram-copy-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(16, 32, 51, 0.12);
    border-radius: 999px;
    color: var(--text);
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
}

.generated-diagram {
    margin-top: 14px;
}

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

.generated-node {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    padding: 18px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.055), transparent 34%),
        #ffffff;
    box-shadow: 0 10px 34px rgba(7, 17, 31, 0.045);
}

.generated-node::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -46px;
    width: 128px;
    height: 128px;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 999px;
    pointer-events: none;
}

.generated-node span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin-bottom: 22px;
    color: #536b87;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.generated-node strong {
    position: relative;
    z-index: 2;
    display: block;
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.generated-node p {
    position: relative;
    z-index: 2;
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.generated-node-source,
.generated-node-target,
.generated-node-ai {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.generated-node-ai {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, #16243a, #314763);
}

.generated-node-source::after,
.generated-node-target::after,
.generated-node-ai::after {
    border-color: rgba(255, 255, 255, 0.10);
}

.generated-node-source span,
.generated-node-target span,
.generated-node-ai span,
.generated-node-source p,
.generated-node-target p,
.generated-node-ai p {
    color: rgba(255, 255, 255, 0.68);
}

.generated-node-source strong,
.generated-node-target strong,
.generated-node-ai strong {
    color: #ffffff;
}

.generated-node-check {
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.075), transparent 34%),
        #f7f9fc;
}

.generated-node-monitoring {
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.055), transparent 34%),
        #eef4fb;
}

.diagram-empty {
    padding: 18px;
    border-radius: 18px;
    color: var(--text-soft);
    background: var(--surface);

}

.block-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-top: 13px;
}

.block-card {
    padding: 16px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 17px;
    background: #ffffff;
}

.block-card strong {
    display: block;
    color: var(--text);
    line-height: 1.25;
}

.block-card p {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 26px;
}

.copy-note {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-weight: 800;
}

.loading-card,
.error-card {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    text-align: center;
}

.loading-card strong {
    display: block;
    color: var(--text);
    font-size: 1.15rem;
}

.loading-card p,
.error-card {
    color: var(--text-soft);
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #dfe8f4;
    border-top-color: #07111f;
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

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

.error-card {
    min-height: 180px;
    padding: 22px;
    border: 1px solid rgba(132, 32, 41, 0.15);
    border-radius: 22px;
    color: #842029;
    background: #f8d7da;
}

.refine-panel {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.045), transparent 34%),
        var(--surface);
}

.refine-head span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #536b87;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.refine-head strong {
    display: block;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.refine-head p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--text-soft);
}

.refine-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-top: 18px;
}

.refine-options button {
    min-height: 106px;
    padding: 15px;
    border: 1px solid rgba(16, 32, 51, 0.11);
    border-radius: 17px;
    color: var(--text);
    text-align: left;
    background: #ffffff;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.refine-options button:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 32, 51, 0.22);
    box-shadow: 0 10px 30px rgba(7, 17, 31, 0.055);
}

.refine-options button.is-selected {
    color: #ffffff;
    border-color: #07111f;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.refine-options strong {
    display: block;
    line-height: 1.2;
}

.refine-options span {
    display: block;
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.35;
}

.refine-options button.is-selected span {
    color: rgba(255, 255, 255, 0.70);
}

.refine-field {
    margin-top: 18px;
}

.refine-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 16px;
}

.refine-status {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 16px;
    color: #0f5132;
    background: #d1e7dd;
    font-weight: 750;
}

.refine-status.is-error {
    color: #842029;
    background: #f8d7da;
}

.export-panel {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.045), transparent 34%),
        #ffffff;
}

.export-actions {
    margin-top: 18px;
}

[data-send-blueprint]:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

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

.mail-contact-hint {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.copy-note.is-error,
[data-send-note].is-error {
    display: block;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(185, 28, 28, 0.28);
    border-radius: 16px;
    color: #991b1b;
    background: #fef2f2;
    font-weight: 800;
}

.copy-note.is-success,
[data-send-note].is-success {
    display: block;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(22, 101, 52, 0.24);
    border-radius: 16px;
    color: #166534;
    background: #f0fdf4;
    font-weight: 800;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14) !important;
    background: #fff7f7;
}

.form-field input.is-invalid:focus,
.form-field textarea.is-invalid:focus {
    outline: none;
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.22) !important;
}

@media (max-width: 1320px) {
    .sketch-canvas {
        grid-template-columns: 1fr;
    }

    .sketch-connector,
    .sketch-connector-down {
        width: 2px;
        height: 24px;
        justify-self: center;
        align-self: center;
        grid-column: auto;
        background: linear-gradient(180deg, rgba(16, 32, 51, 0.08), rgba(16, 32, 51, 0.38), rgba(16, 32, 51, 0.08));
    }

    .sketch-connector::after,
    .sketch-connector-down::after {
        top: auto;
        right: 50%;
        bottom: -1px;
        transform: translateX(50%) rotate(135deg);
    }

    .sketch-canvas .sketch-node:nth-child(7),
    .sketch-canvas .sketch-connector:nth-child(8),
    .sketch-canvas .sketch-node:nth-child(9) {
        grid-column: auto;
    }
}

@media (max-width: 1180px) {
    :root {
        --sidebar: 280px;
    }

    .app-workspace {
        grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
    }

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

    .result-section-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .diagram-copy-button {
        justify-self: start;
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }

    .insight-card {
        min-height: auto;
    }

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

@media (max-width: 960px) {
    .app-shell {
        display: block;
    }

    .app-sidebar {
        position: relative;
        height: auto;
        padding: 18px;
    }

    .sidebar-intro {
        margin-top: 24px;
    }

    .sidebar-intro h1 {
        max-width: none;
        font-size: 1.8rem;
    }

    .sidebar-steps {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .app-main {
        height: auto;
        min-height: 100vh;
        display: block;
        overflow: visible;
    }

    .app-topbar {
        display: none;
    }

    .app-workspace {
        display: grid;
        grid-template-columns: 1fr;
        padding: 14px;
        overflow: visible;
    }

    .wizard-panel,
    .result-panel {
        min-height: auto;
    }

    .wizard-panel {
        display: block;
    }

    .wizard-step,
    .result-panel {
        overflow: visible;
    }

    .block-grid,
    .diagram-canvas {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .mail-contact-grid {
        grid-template-columns: 1fr;
    }

    .sketch-header {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sketch-header em {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .app-sidebar {
        padding: 16px;
    }

    .sidebar-brand img {
        width: 136px;
    }

    .sidebar-intro h1 {
        font-size: 1.55rem;
    }

    .sidebar-intro p {
        font-size: 0.9rem;
    }

    .wizard-panel,
    .result-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .wizard-actions,
    .result-actions,
    .refine-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wizard-actions .btn,
    .result-actions .btn,
    .refine-actions .btn {
        width: 100%;
    }

    .generated-node,
    .sketch-node {
        min-height: auto;
    }

    .refine-options {
        grid-template-columns: 1fr;
    }
}

/* Visual result preview after generation */

.result-kicker {
    display: block;
    margin-bottom: 10px;
    color: #536b87;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.preview-map-section {
    padding: 22px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.045), transparent 34%),
        #ffffff;
}

.preview-map-dark {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.preview-map-dark .result-kicker,
.preview-map-dark p,
.preview-map-dark li {
    color: rgba(255, 255, 255, 0.72);
}

.preview-map-dark h3 {
    color: #ffffff;
}

.preview-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    margin-top: 18px;
}

.preview-flow-node {
    position: relative;
    min-height: 154px;
    padding: 18px;
    border: 1px solid rgba(16, 32, 51, 0.11);
    border-radius: 22px;
    background: #f5f8fc;
    overflow: hidden;
}

.preview-flow-node::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    border: 1px solid rgba(16, 32, 51, 0.08);
    pointer-events: none;
}

.preview-map-dark .preview-flow-node,
.preview-flow-node.is-target {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.preview-flow-node span {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 18px;
    color: #536b87;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.preview-flow-node strong {
    position: relative;
    z-index: 2;
    display: block;
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.preview-flow-node p {
    position: relative;
    z-index: 2;
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.preview-map-dark .preview-flow-node span,
.preview-map-dark .preview-flow-node p,
.preview-flow-node.is-target span,
.preview-flow-node.is-target p {
    color: rgba(255, 255, 255, 0.70);
}

.preview-map-dark .preview-flow-node strong,
.preview-flow-node.is-target strong {
    color: #ffffff;
}

.preview-flow-arrow {
    display: none;
}

.preview-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preview-mini-card {
    min-height: 142px;
    padding: 17px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 18px;
    background: #ffffff;
}

.preview-pain-grid .preview-mini-card {
    border-color: rgba(185, 28, 28, 0.16);
    background: #fff7f7;
}

.preview-mini-card span,
.block-card span {
    display: block;
    margin-bottom: 14px;
    color: #536b87;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.preview-pain-grid .preview-mini-card span {
    color: #991b1b;
}

.preview-mini-card strong {
    display: block;
    color: var(--text);
    line-height: 1.2;
}

.preview-mini-card p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.preview-system-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.preview-system-card {
    padding: 15px;
    border-radius: 18px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.preview-system-card strong {
    display: block;
    line-height: 1.2;
}

.preview-system-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.preview-timeline {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: preview-step;
}

.preview-timeline li {
    position: relative;
    min-height: 48px;
    margin: 0;
    padding: 0 0 18px 48px;
    color: var(--text-soft);
    counter-increment: preview-step;
}

.preview-timeline li::before {
    content: counter(preview-step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #ffffff;
    background: #07111f;
    font-size: 0.72rem;
    font-weight: 900;
}

.preview-timeline li::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 34px;
    width: 2px;
    height: calc(100% - 30px);
    background: rgba(16, 32, 51, 0.12);
}

.preview-timeline li:last-child::after {
    display: none;
}

.preview-warning-section {
    border-color: rgba(194, 65, 12, 0.18);
    background:
        radial-gradient(circle at top right, rgba(194, 65, 12, 0.05), transparent 34%),
        #fff7ed;
}

.preview-warning-section .result-kicker {
    color: #9a3412;
}

.preview-warning-section h3 {
    color: #7c2d12;
}

.preview-empty {
    margin: 0;
    color: var(--text-soft);
}

@media (max-width: 1320px) {
    .preview-flow,
    .preview-card-grid,
    .preview-system-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .preview-flow,
    .preview-card-grid,
    .preview-system-grid {
        grid-template-columns: 1fr;
    }
}

/* Robust loading overlay while process description is generated */

.working-overlay {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-bottom: 18px;
    animation: workingIn 0.2s ease both;
}

.working-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
    box-shadow: 0 18px 50px rgba(7, 17, 31, 0.18);
    overflow: hidden;
}

.working-card strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.2;
}

.working-card p {
    max-width: 680px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.94rem;
}

.working-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.working-loader span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ffffff;
    animation: workingPulse 0.9s ease-in-out infinite;
}

.working-loader span:nth-child(2) {
    animation-delay: 0.12s;
}

.working-loader span:nth-child(3) {
    animation-delay: 0.24s;
}

.working-progress {
    grid-column: 1 / -1;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.working-progress i {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.86);
    animation: workingBar 1.35s ease-in-out infinite;
}

@keyframes workingIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes workingPulse {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes workingBar {
    0% {
        transform: translateX(-110%);
    }

    55% {
        transform: translateX(105%);
    }

    100% {
        transform: translateX(250%);
    }
}

@media (max-width: 640px) {
    .working-card {
        grid-template-columns: 1fr;
    }

    .working-loader {
        width: 42px;
        height: 42px;
    }
}

/* Prozesslandkarte */

.process-map-section {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(7, 17, 31, 0.055), transparent 34%),
        #ffffff;
    box-shadow: 0 14px 42px rgba(7, 17, 31, 0.055);
}

.process-map-section::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(16, 32, 51, 0.07);
    border-radius: 999px;
    pointer-events: none;
}

.process-map {
    position: relative;
    z-index: 2;
    margin-top: 18px;
}

.process-map-grid {
    display: grid;
    grid-template-columns: repeat(var(--lane-count), minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.process-map-lane {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(245, 248, 252, 0.98), rgba(238, 244, 251, 0.98));
}

.process-map-lane-title {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.process-map-lane-steps {
    display: grid;
    gap: 10px;
    align-content: start;
}

.process-map-step {
    position: relative;
    min-height: 138px;
    padding: 16px;
    border: 1px solid rgba(16, 32, 51, 0.10);
    border-radius: 19px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(7, 17, 31, 0.045);
}

.process-map-step::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -38px;
    width: 104px;
    height: 104px;
    border: 1px solid rgba(16, 32, 51, 0.075);
    border-radius: 999px;
    pointer-events: none;
}

.process-map-step::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #536b87;
}

.process-map-step strong {
    position: relative;
    z-index: 2;
    display: block;
    padding-left: 18px;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.process-map-step p {
    position: relative;
    z-index: 2;
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.42;
}

.process-map-step.has-outgoing {
    margin-bottom: 14px;
}

.process-map-step.has-outgoing::after {
    right: 16px;
    bottom: -10px;
    width: 22px;
    height: 22px;
    border: 0;
    border-right: 2px solid rgba(16, 32, 51, 0.34);
    border-bottom: 2px solid rgba(16, 32, 51, 0.34);
    border-radius: 0;
    transform: rotate(45deg);
}

.process-map-step.has-cross-lane::after {
    right: -8px;
    bottom: 50%;
    width: 18px;
    height: 18px;
    border: 0;
    border-top: 2px solid rgba(16, 32, 51, 0.34);
    border-right: 2px solid rgba(16, 32, 51, 0.34);
    transform: translateY(50%) rotate(45deg);
}

.process-map-step-source {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, #07111f, #20334d);
}

.process-map-step-source strong,
.process-map-step-source p {
    color: #ffffff;
}

.process-map-step-source p {
    color: rgba(255, 255, 255, 0.72);
}

.process-map-step-source::before {
    background: #ffffff;
}

.process-map-step-check {
    background: #fff7ed;
    border-color: rgba(194, 65, 12, 0.18);
}

.process-map-step-check::before {
    background: #c2410c;
}

.process-map-step-approval {
    background: #fefce8;
    border-color: rgba(161, 98, 7, 0.18);
}

.process-map-step-approval::before {
    background: #a16207;
}

.process-map-step-mapping {
    background: #f5f3ff;
    border-color: rgba(109, 40, 217, 0.16);
}

.process-map-step-mapping::before {
    background: #6d28d9;
}

.process-map-step-target {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.16);
}

.process-map-step-target::before {
    background: #2563eb;
}

.process-map-step-monitoring {
    background: #eefdf6;
    border-color: rgba(22, 101, 52, 0.16);
}

.process-map-step-monitoring::before {
    background: #166534;
}

.process-map-step-ai {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #20334d, #40546f);
    border-color: rgba(255, 255, 255, 0.16);
}

.process-map-step-ai strong {
    color: #ffffff;
}

.process-map-step-ai p {
    color: rgba(255, 255, 255, 0.72);
}

.process-map-step-ai::before {
    background: #ffffff;
}

@media (max-width: 1320px) {
    .process-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-map-step.has-cross-lane::after {
        right: 16px;
        bottom: -10px;
        width: 22px;
        height: 22px;
        border: 0;
        border-right: 2px solid rgba(16, 32, 51, 0.34);
        border-bottom: 2px solid rgba(16, 32, 51, 0.34);
        transform: rotate(45deg);
    }
}

@media (max-width: 760px) {
    .process-map-section {
        padding: 18px;
        border-radius: 22px;
    }

    .process-map-grid {
        grid-template-columns: 1fr;
    }

    .process-map-lane {
        border-radius: 18px;
    }

    .process-map-step {
        min-height: auto;
    }
}