.ivr-surface {
    display: grid;
    gap: 1rem;
}

.ivr-stage {
    width: 100%;
    min-height: 42rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(2, 6, 23, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 28px 64px rgba(2, 6, 23, 0.44);
}

.ivr-stage.is-host {
    background:
        linear-gradient(135deg, rgba(255, 138, 101, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(18, 23, 38, 0.98) 0%, rgba(8, 10, 18, 1) 100%);
}

.ivr-stage.is-console {
    background:
        linear-gradient(135deg, rgba(96, 165, 250, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(11, 17, 31, 0.98) 0%, rgba(2, 6, 23, 1) 100%);
}

.ivr-sessionbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(8, 12, 22, 0.86);
}

.ivr-session-copy {
    min-width: 0;
}

.ivr-kicker {
    display: block;
    color: rgba(251, 146, 60, 0.95);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ivr-session-copy strong {
    display: block;
    margin-top: 0.3rem;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
}

.ivr-session-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.ivr-session-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
}

.ivr-window {
    margin: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(7, 10, 18, 0.94);
    min-height: calc(42rem - 5.8rem);
}

.ivr-window-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.9);
}

.ivr-controls {
    display: flex;
    gap: 0.42rem;
}

.ivr-control {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
}

.ivr-control.is-red {
    background: #f87171;
}

.ivr-control.is-amber {
    background: #fbbf24;
}

.ivr-control.is-green {
    background: #34d399;
}

.ivr-window-title {
    min-width: 0;
}

.ivr-window-title strong,
.ivr-window-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ivr-window-title strong {
    color: #f8fafc;
    font-size: 0.94rem;
    font-weight: 700;
}

.ivr-window-title span {
    margin-top: 0.16rem;
    color: #94a3b8;
    font-size: 0.74rem;
}

.ivr-window-status {
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
    text-align: right;
}

.ivr-window-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(10, 15, 26, 0.96);
}

.ivr-toolbar-primary,
.ivr-toolbar-secondary,
.ivr-querybar {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-size: 0.8rem;
    line-height: 1.45;
}

.ivr-querybar {
    flex: 1 1 26rem;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.ivr-window-canvas {
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.ivr-metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.ivr-metric-card {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.68);
}

.ivr-metric-card span {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
}

.ivr-metric-card strong {
    display: block;
    margin-top: 0.32rem;
    color: #f8fafc;
    font-size: 1.05rem;
}

.ivr-tabline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    padding-bottom: 0.2rem;
}

.ivr-tabline span {
    padding: 0.52rem 0.8rem;
    border-radius: 10px 10px 0 0;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
}

.ivr-tabline span.is-active {
    background: rgba(255, 138, 101, 0.12);
    color: #fdba74;
}

.ivr-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(8, 12, 20, 0.82);
}

.ivr-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ivr-table th,
.ivr-table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.ivr-table th {
    background: rgba(15, 23, 42, 0.88);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ivr-table td {
    color: #e2e8f0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.ivr-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.ivr-split {
    display: grid;
    grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
    gap: 1rem;
}

.ivr-tree {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(8, 12, 20, 0.82);
    padding: 1rem;
}

.ivr-tree-title {
    color: #fdba74;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ivr-tree ul,
.ivr-bullet-list {
    margin: 0.9rem 0 0;
    padding-left: 1rem;
}

.ivr-tree li,
.ivr-bullet-list li {
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 0.48rem;
}

.ivr-tree li.is-active {
    color: #f8fafc;
    font-weight: 700;
}

.ivr-mainpane,
.ivr-preview-pane {
    display: grid;
    gap: 1rem;
}

.ivr-detail-card {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(12, 17, 29, 0.88);
    padding: 1rem;
}

.ivr-detail-card h4 {
    margin: 0 0 0.7rem;
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 700;
}

.ivr-detail-card p {
    margin: 0 0 0.55rem;
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.6;
}

.ivr-panel-copy p + p {
    margin-top: 0.7rem;
}

.ivr-panel-code {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(8, 12, 20, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 0.79rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.ivr-kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem;
}

.ivr-kv-item {
    padding: 0.82rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(8, 12, 20, 0.72);
}

.ivr-kv-item span {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ivr-kv-item strong {
    display: block;
    margin-top: 0.34rem;
    color: #f8fafc;
    font-size: 0.84rem;
    line-height: 1.55;
    word-break: break-word;
}

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

.ivr-property-grid div {
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.ivr-property-grid span {
    display: block;
    color: #94a3b8;
    font-size: 0.7rem;
}

.ivr-property-grid strong {
    display: block;
    margin-top: 0.28rem;
    color: #f8fafc;
    font-size: 0.84rem;
}

.ivr-message-list {
    display: grid;
    gap: 0.65rem;
}

.ivr-message-item {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(8, 12, 20, 0.82);
}

.ivr-message-item.is-active {
    border-color: rgba(251, 146, 60, 0.34);
    background: rgba(255, 138, 101, 0.08);
}

.ivr-message-item strong,
.ivr-message-item span,
.ivr-message-item em {
    display: block;
}

.ivr-message-item strong {
    color: #f8fafc;
    font-size: 0.84rem;
}

.ivr-message-item span,
.ivr-message-item em {
    margin-top: 0.24rem;
    color: #94a3b8;
    font-size: 0.74rem;
}

.ivr-terminal {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: #04070d;
    padding: 1rem;
    min-height: 26rem;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    color: #dbeafe;
    font-size: 0.82rem;
    line-height: 1.65;
}

.ivr-terminal-line + .ivr-terminal-line {
    margin-top: 0.18rem;
}

.ivr-prompt {
    color: #fdba74;
    font-weight: 700;
    margin-right: 0.35rem;
}

.ivr-empty {
    min-height: 26rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2rem;
    text-align: center;
}

.ivr-empty strong {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
}

.ivr-empty span {
    max-width: 34rem;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.65;
}

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

.ivr-supplement-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(7, 11, 19, 0.92);
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ivr-supplement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.ivr-supplement-header span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ivr-supplement-header strong {
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
}

.ivr-panel-stack {
    display: grid;
    gap: 0.85rem;
}

.ivr-timeline {
    display: grid;
    gap: 0.95rem;
}

.ivr-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: flex-start;
}

.ivr-timeline-dot {
    width: 0.88rem;
    height: 0.88rem;
    margin-top: 0.3rem;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.32);
    background: rgba(148, 163, 184, 0.18);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.08);
}

.ivr-timeline-item.is-alert .ivr-timeline-dot {
    border-color: rgba(248, 113, 113, 0.7);
    background: rgba(248, 113, 113, 0.8);
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.ivr-timeline-item.is-benign .ivr-timeline-dot {
    border-color: rgba(74, 222, 128, 0.7);
    background: rgba(74, 222, 128, 0.78);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.ivr-timeline-copy span {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
}

.ivr-timeline-copy strong {
    display: block;
    margin-top: 0.2rem;
    color: #f8fafc;
    font-size: 0.88rem;
    line-height: 1.45;
}

.ivr-timeline-copy p {
    margin: 0.38rem 0 0;
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.6;
}

.ivr-pivot-strip {
    display: grid;
    gap: 0.95rem;
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 138, 101, 0.08), transparent 48%),
        rgba(9, 13, 24, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 34px rgba(2, 6, 23, 0.24);
}

.ivr-pivot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
}

.ivr-pivot-kicker {
    display: block;
    color: rgba(251, 146, 60, 0.95);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ivr-pivot-header strong {
    display: block;
    margin-top: 0.28rem;
    color: #f8fafc;
    font-size: 0.96rem;
    font-weight: 700;
}

.ivr-pivot-context {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.68);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
}

.ivr-pivot-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ivr-pivot-btn {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(15, 23, 42, 0.82);
    color: #e2e8f0;
    border-radius: 14px;
    padding: 0.78rem 0.95rem;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.ivr-pivot-btn:hover,
.ivr-pivot-btn:focus-visible {
    outline: none;
    border-color: rgba(251, 146, 60, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 138, 101, 0.16), rgba(255, 255, 255, 0.03)),
        rgba(15, 23, 42, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
    transform: translateY(-1px);
}

.ivr-loader {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.16);
    border-top-color: rgba(251, 146, 60, 0.95);
    animation: ivrSpin 0.9s linear infinite;
}

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

@media (max-width: 1024px) {
    .ivr-metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ivr-split {
        grid-template-columns: 1fr;
    }

    .ivr-supplement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ivr-stage {
        min-height: 34rem;
    }

    .ivr-pivot-header,
    .ivr-sessionbar,
    .ivr-window-bar,
    .ivr-window-toolbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .ivr-session-meta {
        justify-content: flex-start;
    }

    .ivr-window {
        min-height: calc(34rem - 5.4rem);
        margin: 0.85rem;
    }

    .ivr-property-grid,
    .ivr-metric-strip {
        grid-template-columns: 1fr;
    }
}

.ivr-stage {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 247, 251, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 30px 64px rgba(148, 163, 184, 0.18);
}

.ivr-stage.is-host {
    background:
        linear-gradient(140deg, rgba(255, 239, 231, 0.94) 0%, rgba(241, 245, 249, 0.98) 56%, rgba(255, 248, 243, 0.98) 100%);
}

.ivr-stage.is-console {
    background:
        linear-gradient(140deg, rgba(239, 246, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 55%, rgba(255, 247, 237, 0.96) 100%);
}

.ivr-sessionbar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.76);
}

.ivr-kicker {
    color: #d97706;
}

.ivr-session-copy strong,
.ivr-window-title strong,
.ivr-detail-card h4,
.ivr-empty strong,
.ivr-pivot-header strong,
.ivr-message-item strong {
    color: #0f172a;
}

.ivr-session-meta span,
.ivr-pivot-context {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
}

.ivr-window {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.94);
}

.ivr-window-bar,
.ivr-window-toolbar {
    border-bottom-color: rgba(148, 163, 184, 0.16);
}

.ivr-window-bar {
    background: rgba(255, 255, 255, 0.88);
}

.ivr-window-title span,
.ivr-empty span,
.ivr-detail-card p,
.ivr-tree li,
.ivr-bullet-list li,
.ivr-message-item span,
.ivr-message-item em,
.ivr-table td {
    color: #475569;
}

.ivr-window-status,
.ivr-tree-title,
.ivr-metric-card span,
.ivr-property-grid span {
    color: #64748b;
}

.ivr-window-toolbar {
    background: rgba(248, 250, 252, 0.96);
}

.ivr-toolbar-primary,
.ivr-toolbar-secondary,
.ivr-querybar {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
}

.ivr-window-canvas {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.96));
}

.ivr-metric-card,
.ivr-tree,
.ivr-detail-card,
.ivr-message-item,
.ivr-table-wrap {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.86);
}

.ivr-table th {
    background: rgba(241, 245, 249, 0.92);
    color: #475569;
}

.ivr-table tbody tr:hover td {
    background: rgba(255, 247, 237, 0.42);
}

.ivr-tabline span {
    color: #64748b;
}

.ivr-tabline span.is-active {
    background: rgba(255, 237, 213, 0.9);
    color: #c2410c;
}

.ivr-property-grid div {
    background: rgba(248, 250, 252, 0.94);
    border-color: rgba(148, 163, 184, 0.16);
}

.ivr-message-item.is-active {
    border-color: rgba(251, 146, 60, 0.28);
    background: rgba(255, 237, 213, 0.7);
}

.ivr-terminal {
    border-color: rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #0f172a;
}

.ivr-prompt {
    color: #c2410c;
}

.ivr-pivot-strip {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 237, 213, 0.74), rgba(255, 255, 255, 0.92)),
        rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        0 18px 34px rgba(148, 163, 184, 0.12);
}

.ivr-pivot-kicker {
    color: #c2410c;
}

.ivr-pivot-btn {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92)),
        rgba(255, 255, 255, 0.88);
    color: #1e293b;
}

.ivr-pivot-btn:hover,
.ivr-pivot-btn:focus-visible {
    border-color: rgba(249, 115, 22, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.94)),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.18);
}

.ivr-desktop-surface {
    position: relative;
    min-height: 33rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    flex-direction: column;
}

.ivr-desktop-windows {
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.9), transparent 30%),
        linear-gradient(180deg, #eff6ff 0%, #dbeafe 52%, #e0f2fe 100%);
}

.ivr-desktop-macos {
    background:
        radial-gradient(circle at top left, rgba(254, 205, 211, 0.72), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #e2e8f0 48%, #fde68a 100%);
}

.ivr-desktop-linux {
    background:
        radial-gradient(circle at top right, rgba(196, 181, 253, 0.56), transparent 32%),
        linear-gradient(180deg, #eef2ff 0%, #e2e8f0 46%, #ffe4e6 100%);
}

.ivr-desktop-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 1rem;
    background: rgba(255, 255, 255, 0.46);
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.ivr-desktop-grid {
    flex: 1;
    display: grid;
    align-content: flex-start;
    grid-template-columns: repeat(4, minmax(92px, 110px));
    gap: 1rem;
    padding: 1.35rem;
}

.ivr-desktop-icon {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
}

.ivr-icon-tile {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.94));
    box-shadow: 0 12px 24px rgba(148, 163, 184, 0.16);
    position: relative;
}

.ivr-icon-folder::before,
.ivr-icon-document::before,
.ivr-icon-device::before,
.ivr-icon-profile::before,
.ivr-icon-trash::before {
    content: '';
    position: absolute;
    inset: 0.75rem;
    border-radius: 10px;
}

.ivr-icon-folder::before {
    background: linear-gradient(180deg, #fcd34d, #f59e0b);
}

.ivr-icon-document::before {
    background: linear-gradient(180deg, #ffffff, #dbeafe);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.ivr-icon-device::before {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

.ivr-icon-profile::before {
    background: linear-gradient(180deg, #fde68a, #fb7185);
}

.ivr-icon-trash::before {
    background: linear-gradient(180deg, #e2e8f0, #94a3b8);
}

.ivr-desktop-icon strong {
    color: #0f172a;
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 600;
}

.ivr-desktop-widget {
    position: absolute;
    right: 1rem;
    top: 1rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    color: #334155;
}

.ivr-desktop-widget strong {
    color: #0f172a;
    font-size: 0.92rem;
}

.ivr-desktop-widget em {
    color: #64748b;
    font-size: 0.72rem;
    font-style: normal;
}

.ivr-taskbar,
.ivr-dock {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 1rem;
    background: rgba(255, 255, 255, 0.52);
    border-top: 1px solid rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(12px);
}

.ivr-start-pill,
.ivr-task-app,
.ivr-task-clock,
.ivr-dock span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #0f172a;
    font-size: 0.74rem;
    font-weight: 600;
}

.ivr-task-clock {
    margin-left: auto;
}

.ivr-dock {
    justify-content: center;
}

.ivr-dialog-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.ivr-dialog-window {
    width: min(100%, 58rem);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 26px 48px rgba(148, 163, 184, 0.18);
}

.ivr-dialog-titlebar,
.ivr-editor-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    color: #334155;
    font-size: 0.78rem;
}

.ivr-dialog-titlebar strong {
    color: #0f172a;
}

.ivr-dialog-body {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    min-height: 22rem;
}

.ivr-dialog-nav {
    display: grid;
    align-content: flex-start;
    gap: 0.35rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.92);
    border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.ivr-dialog-nav span {
    padding: 0.55rem 0.72rem;
    border-radius: 12px;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 600;
}

.ivr-dialog-nav span.is-active {
    background: rgba(255, 237, 213, 0.86);
    color: #c2410c;
}

.ivr-dialog-main {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.ivr-path-bar,
.ivr-dialog-field {
    min-height: 2.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    font-size: 0.78rem;
}

.ivr-file-list {
    display: grid;
    gap: 0.4rem;
}

.ivr-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(248, 250, 252, 0.9);
    color: #475569;
    font-size: 0.76rem;
}

.ivr-file-row.is-active {
    border-color: rgba(249, 115, 22, 0.28);
    background: rgba(255, 237, 213, 0.74);
}

.ivr-file-name {
    color: #0f172a;
    font-weight: 600;
}

.ivr-dialog-footer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.96);
}

.ivr-dialog-field {
    flex: 1;
}

.ivr-dialog-action {
    min-width: 6rem;
    min-height: 2.5rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fb923c, #fdba74);
    color: #431407;
    font-weight: 700;
    cursor: pointer;
}

.ivr-editor-shell {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.94);
}

.ivr-editor-buffer {
    padding: 0.9rem 0;
}

.ivr-editor-line {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.32rem 1rem;
    color: #334155;
    font-size: 0.78rem;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.ivr-editor-line span {
    color: #94a3b8;
    text-align: right;
}

.ivr-editor-line code {
    color: #0f172a;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .ivr-desktop-grid {
        grid-template-columns: repeat(3, minmax(88px, 1fr));
    }

    .ivr-dialog-body {
        grid-template-columns: 1fr;
    }

    .ivr-dialog-nav {
        grid-auto-flow: column;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }
}

@media (max-width: 640px) {
    .ivr-desktop-grid {
        grid-template-columns: repeat(2, minmax(88px, 1fr));
    }

    .ivr-file-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .ivr-dialog-footer {
        flex-direction: column;
        align-items: stretch;
    }
}
