.sc-template-debug-boundary {
    --sc-tid-titlebar-height: 24px;
    position: relative;
    outline: 2px solid;
    outline-color: rgba(164, 239, 255, 0.95);
    outline-offset: 0;
    padding-top: calc(var(--sc-tid-titlebar-height) + 2px);
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sc-template-debug-boundary::before {
    content: attr(data-template-label);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--sc-tid-titlebar-height);
    line-height: var(--sc-tid-titlebar-height);
    padding: 0 8px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    z-index: 20;
    color: #effbff;
    text-shadow: 0 0 6px rgba(239, 251, 255, 0.22);
    background: linear-gradient(90deg, rgba(14, 25, 42, 0.99), rgba(10, 20, 34, 0.99));
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(164, 239, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(164, 239, 255, 0.18);
}

.sc-template-debug-boundary--frame {
    outline-color: rgba(88, 245, 133, 0.98);
    box-shadow: inset 0 0 0 1px rgba(88, 245, 133, 0.18);
}

.sc-template-debug-boundary--frame::before {
    color: #effbff;
    background: linear-gradient(90deg, rgba(15, 52, 30, 0.99), rgba(11, 39, 23, 0.99));
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(88, 245, 133, 0.98), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(88, 245, 133, 0.2);
}

.sc-template-debug-boundary--region {
    outline-color: rgba(78, 182, 255, 0.98);
    box-shadow: inset 0 0 0 1px rgba(78, 182, 255, 0.18);
}

.sc-template-debug-boundary--region::before {
    color: #effbff;
    background: linear-gradient(90deg, rgba(11, 35, 66, 0.99), rgba(8, 26, 51, 0.99));
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(78, 182, 255, 0.98), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(78, 182, 255, 0.2);
}

.sc-template-debug-boundary--page {
    outline-color: rgba(214, 118, 255, 0.98);
    box-shadow: inset 0 0 0 1px rgba(214, 118, 255, 0.18);
}

.sc-template-debug-boundary--page::before {
    color: #effbff;
    background: linear-gradient(90deg, rgba(48, 22, 82, 0.99), rgba(35, 16, 63, 0.99));
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(214, 118, 255, 0.98), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(214, 118, 255, 0.2);
}

.sc-template-debug-boundary--partial {
    outline-color: rgba(255, 184, 76, 0.99);
    box-shadow: inset 0 0 0 1px rgba(255, 184, 76, 0.2);
}

.sc-template-debug-boundary--partial::before {
    color: #effbff;
    background: linear-gradient(90deg, rgba(66, 38, 14, 0.99), rgba(49, 28, 10, 0.99));
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(255, 184, 76, 0.99), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(255, 184, 76, 0.2);
}

.sc-template-debug-boundary--fragment {
    outline-color: rgba(185, 196, 214, 0.95);
    box-shadow: inset 0 0 0 1px rgba(185, 196, 214, 0.16);
}

.sc-template-debug-boundary--fragment::before {
    color: #effbff;
    background: linear-gradient(90deg, rgba(42, 47, 59, 0.99), rgba(32, 37, 47, 0.99));
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(185, 196, 214, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(185, 196, 214, 0.16);
}
