.cl-commercial-summary {
    background: linear-gradient(145deg, rgba(255, 107, 53, .1), rgba(15, 18, 28, .45));
    border: 1px solid rgba(255, 107, 53, .28);
}

.cl-commercial-summary__head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.cl-commercial-summary__head strong,
.cl-commercial-summary__head small {
    display: block;
}

.cl-commercial-summary__head strong { font-size: 12px; color: #fff; }
.cl-commercial-summary__head small { margin-top: 3px; color: #858a9b; font-size: 9px; line-height: 1.35; }

.cl-commercial-icon,
.cl-commercial-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cl-commercial-icon {
    width: 34px;
    height: 34px;
    color: #ff6b35;
    background: rgba(255, 107, 53, .13);
    border-radius: 9px;
}

.cl-commercial-icon svg,
.cl-commercial-icon-btn svg,
.cl-commercial-open svg,
.cl-commercial-empty svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cl-commercial-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cl-commercial-switch span {
    display: block;
    width: 34px;
    height: 19px;
    padding: 2px;
    border-radius: 999px;
    background: #303442;
    cursor: pointer;
    transition: background .2s ease;
}
.cl-commercial-switch span::after {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}
.cl-commercial-switch input:checked + span { background: #ff6b35; }
.cl-commercial-switch input:checked + span::after { transform: translateX(15px); }

.cl-commercial-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 12px 0;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    overflow: hidden;
}
.cl-commercial-metrics span { padding: 8px 4px; text-align: center; color: #7f8495; font-size: 8px; }
.cl-commercial-metrics span + span { border-left: 1px solid rgba(255,255,255,.07); }
.cl-commercial-metrics strong { display: block; margin-bottom: 2px; color: #fff; font-size: 13px; }
.cl-commercial-open { width: 100%; gap: 7px; justify-content: center; }

.cl-commercial-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 6, 12, .78);
    backdrop-filter: blur(8px);
}
.cl-commercial-modal.visible { display: flex; }
.cl-commercial-modal-open { overflow: hidden; }
.cl-commercial-dialog {
    width: min(980px, 96vw);
    height: min(720px, 90vh);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
    background: #12141d;
    border: 1px solid #303342;
    border-radius: 16px;
    box-shadow: 0 26px 90px rgba(0,0,0,.55);
}
.cl-commercial-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #282b37;
}
.cl-commercial-eyebrow { color: #ff6b35; font: 600 9px/1 'JetBrains Mono', monospace; letter-spacing: .16em; }
.cl-commercial-dialog h2 { margin: 5px 0 0; color: #fff; font-size: 20px; }
.cl-commercial-icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    color: #a5a9b6;
    background: #1c1f2a;
    border: 1px solid #323543;
    border-radius: 8px;
    cursor: pointer;
}
.cl-commercial-icon-btn:hover { color: #fff; border-color: #505464; }
.cl-commercial-icon-btn.is-primary { color: #fff; background: #ff6b35; border-color: #ff6b35; }
.cl-commercial-icon-btn.is-danger:hover { color: #ff5b69; border-color: rgba(255,91,105,.45); }
.cl-commercial-dialog__tabs { display: flex; gap: 4px; padding: 8px 20px 0; border-bottom: 1px solid #282b37; }
.cl-commercial-dialog__tabs button {
    padding: 10px 12px;
    color: #858a9b;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    font: 600 11px/1 'Inter', sans-serif;
    cursor: pointer;
}
.cl-commercial-dialog__tabs button.active { color: #fff; border-bottom-color: #ff6b35; }
.cl-commercial-dialog__tabs span { margin-left: 5px; color: #ff8c61; }
.cl-commercial-dialog__body { min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.cl-commercial-list-pane { min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); border-right: 1px solid #282b37; }
.cl-commercial-list-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid #282b37; }
.cl-commercial-list-head strong, .cl-commercial-list-head small { display: block; }
.cl-commercial-list-head strong { color: #fff; font-size: 12px; }
.cl-commercial-list-head small { margin-top: 3px; color: #727789; font-size: 9px; }
.cl-commercial-list { overflow: auto; padding: 8px; }
.cl-commercial-list-item {
    width: 100%;
    display: block;
    margin-bottom: 5px;
    padding: 11px 12px;
    text-align: left;
    color: #fff;
    background: #181b25;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
}
.cl-commercial-list-item:hover { background: #1d202b; }
.cl-commercial-list-item.active { background: rgba(255,107,53,.1); border-color: rgba(255,107,53,.5); }
.cl-commercial-list-item.is-disabled { opacity: .5; }
.cl-commercial-list-item strong, .cl-commercial-list-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-commercial-list-item strong { font-size: 11px; }
.cl-commercial-list-item span { margin-top: 4px; color: #777d90; font-size: 9px; }
.cl-commercial-list-empty { padding: 35px 14px; color: #6f7485; text-align: center; font-size: 10px; }
.cl-commercial-form-pane { min-width: 0; overflow: auto; padding: 22px; }
.cl-commercial-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #646979; text-align: center; }
.cl-commercial-empty svg { width: 42px; height: 42px; margin-bottom: 14px; }
.cl-commercial-empty strong { color: #aeb2bf; font-size: 13px; }
.cl-commercial-empty span { margin-top: 6px; font-size: 10px; }
.cl-commercial-form { max-width: 590px; margin: 0 auto; }
.cl-commercial-form-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cl-commercial-form-title small, .cl-commercial-form-title strong { display: block; }
.cl-commercial-form-title small { color: #ff6b35; font: 600 8px/1 'JetBrains Mono', monospace; letter-spacing: .15em; }
.cl-commercial-form-title strong { margin-top: 5px; color: #fff; font-size: 16px; }
.cl-commercial-form > label,
.cl-commercial-form fieldset { display: block; margin: 0 0 13px; color: #9297a8; font-size: 10px; }
.cl-commercial-form label small { float: right; color: #666b7a; font-size: 8px; }
.cl-commercial-form input[type="text"],
.cl-commercial-form textarea,
.cl-commercial-form select {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 10px 11px;
    color: #fff;
    background: #1b1e29;
    border: 1px solid #303442;
    border-radius: 8px;
    font: 400 11px/1.45 'Inter', sans-serif;
    outline: none;
}
.cl-commercial-form textarea { resize: vertical; }
.cl-commercial-form input:focus,
.cl-commercial-form textarea:focus,
.cl-commercial-form select:focus { border-color: #ff6b35; box-shadow: 0 0 0 2px rgba(255,107,53,.1); }
.cl-commercial-form fieldset { padding: 10px 11px; border: 1px solid #303442; border-radius: 8px; }
.cl-commercial-form legend { padding: 0 5px; color: #9297a8; }
.cl-commercial-check-list { display: grid; gap: 8px; }
.cl-commercial-check { display: flex !important; align-items: center; gap: 8px; cursor: pointer; }
.cl-commercial-check input { width: 15px; height: 15px; accent-color: #ff6b35; }
.cl-commercial-form-hint { color: #6f7485; font-size: 9px; }
.cl-commercial-form > .btn { min-width: 155px; }
.cl-commercial-placement-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 14px;
    padding: 10px;
    background: rgba(255,107,53,.06);
    border: 1px solid rgba(255,107,53,.2);
    border-radius: 9px;
}
.cl-commercial-placement-row .btn { flex: 1; }
.cl-commercial-placement-row span { color: #8d92a2; font-size: 9px; white-space: nowrap; }

.cl-commercial-hotspot-layer {
    position: absolute;
    inset: 0;
    z-index: 132;
    overflow: hidden;
    pointer-events: none;
}
.cl-commercial-hotspot {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 190px;
    padding: 5px 9px 5px 5px;
    color: #fff;
    background: rgba(15,18,28,.92);
    border: 1px solid rgba(255,107,53,.7);
    border-radius: 999px;
    box-shadow: 0 5px 18px rgba(0,0,0,.35), 0 0 0 3px rgba(255,107,53,.08);
    pointer-events: auto;
    cursor: pointer;
    will-change: transform;
}
.cl-commercial-hotspot:hover,
.cl-commercial-hotspot.is-selected { border-color: #ff8b61; box-shadow: 0 7px 24px rgba(0,0,0,.4), 0 0 0 4px rgba(255,107,53,.16); }
.cl-commercial-hotspot.is-disabled { opacity: .52; }
.cl-commercial-hotspot__icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #ff6b35;
    border-radius: 50%;
}
.cl-commercial-hotspot__icon svg,
.cl-commercial-hotspot-inspector svg,
.cl-commercial-hotspot-placement svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cl-commercial-hotspot__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.cl-commercial-hotspot-inspector {
    position: absolute;
    z-index: 136;
    box-sizing: border-box;
    padding: 13px;
    color: #fff;
    background: rgba(18,20,29,.97);
    border: 1px solid #343846;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.46);
}
.cl-commercial-hotspot-inspector[hidden] { display: none; }
.cl-commercial-hotspot-inspector > small,
.cl-commercial-hotspot-inspector > strong,
.cl-commercial-hotspot-inspector > span { display: block; padding-right: 22px; }
.cl-commercial-hotspot-inspector > small { color: #ff7c4d; font: 600 7px/1 'JetBrains Mono', monospace; letter-spacing: .12em; }
.cl-commercial-hotspot-inspector > strong { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.cl-commercial-hotspot-inspector > span { margin-top: 4px; color: #7f8495; font: 400 8px/1.3 'JetBrains Mono', monospace; }
.cl-commercial-hotspot-inspector > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 12px; }
.cl-commercial-hotspot-inspector > div button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 7px 3px;
    color: #aeb2bf;
    background: #1c1f2a;
    border: 1px solid #303442;
    border-radius: 7px;
    font-size: 8px;
    cursor: pointer;
}
.cl-commercial-hotspot-inspector > div button:hover { color: #fff; border-color: #ff6b35; }
.cl-commercial-hotspot-inspector > div button.is-confirming { color: #fff; background: #b42335; border-color: #ef4458; }
.cl-commercial-hotspot-inspector__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    padding: 4px;
    color: #777d8f;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.cl-commercial-hotspot-placement {
    position: absolute;
    z-index: 145;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 32px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(480px, calc(100% - 28px));
    box-sizing: border-box;
    padding: 9px 10px;
    color: #fff;
    background: rgba(18,20,29,.96);
    border: 1px solid rgba(255,107,53,.55);
    border-radius: 11px;
    box-shadow: 0 12px 35px rgba(0,0,0,.42);
}
.cl-commercial-hotspot-placement[hidden] { display: none; }
.cl-commercial-hotspot-placement__icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #ff6b35; border-radius: 9px; }
.cl-commercial-hotspot-placement strong,
.cl-commercial-hotspot-placement small { display: block; }
.cl-commercial-hotspot-placement strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.cl-commercial-hotspot-placement small { margin-top: 3px; color: #8a8f9f; font-size: 8px; }
.cl-commercial-hotspot-placement button { padding: 7px 9px; color: #c6c9d2; background: #252834; border: 1px solid #383c4a; border-radius: 7px; font-size: 9px; cursor: pointer; }
#container.cl-commercial-placing canvas { cursor: crosshair; }

.cl-commercial-journey-modal .cl-commercial-dialog { width: min(920px, calc(100vw - 36px)); }
.cl-commercial-journey-form { overflow: auto; padding: 22px; }
.cl-commercial-journey-form section { margin-bottom: 18px; padding: 18px; background: #171922; border: 1px solid #292d39; border-radius: 13px; }
.cl-commercial-journey-form label { display: grid; gap: 7px; margin-top: 13px; color: #aeb3c1; font-size: 10px; }
.cl-commercial-journey-form input:not([type=checkbox]),
.cl-commercial-journey-form textarea { width: 100%; box-sizing: border-box; padding: 10px 11px; color: #eef0f5; background: #101219; border: 1px solid #303442; border-radius: 8px; font: inherit; line-height: 1.45; resize: vertical; }
.cl-commercial-journey-form input:focus,
.cl-commercial-journey-form textarea:focus { outline: 2px solid rgba(255,107,53,.25); border-color: #ff6b35; }
.cl-commercial-journey-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cl-commercial-journey-heading strong,
.cl-commercial-journey-heading small { display: block; }
.cl-commercial-journey-heading strong { color: #f4f5f7; font-size: 13px; }
.cl-commercial-journey-heading small { margin-top: 4px; color: #747a8b; font-size: 9px; }
.cl-commercial-journey-heading .cl-commercial-check { display: flex; margin-top: 0; }
.cl-commercial-journey-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cl-commercial-privacy-note { margin: 13px 0 0; padding: 11px 12px; color: #9aa0af; background: rgba(45,212,191,.06); border: 1px solid rgba(45,212,191,.18); border-radius: 8px; font-size: 9px; line-height: 1.5; }
.cl-commercial-journey-form footer { display: flex; justify-content: flex-end; padding-bottom: 4px; }

@media (max-width: 700px) {
    .cl-commercial-modal { padding: 0; }
    .cl-commercial-dialog { width: 100%; height: 100%; border: 0; border-radius: 0; }
    .cl-commercial-dialog__body { grid-template-columns: 1fr; grid-template-rows: minmax(150px, 34vh) minmax(0,1fr); }
    .cl-commercial-list-pane { border-right: 0; border-bottom: 1px solid #282b37; }
    .cl-commercial-form-pane { padding: 16px; }
    .cl-commercial-hotspot__label { display: none; }
    .cl-commercial-hotspot { padding: 4px; }
    .cl-commercial-hotspot__icon { width: 30px; height: 30px; flex-basis: 30px; }
    .cl-commercial-hotspot-placement { top: 10px; }
    .cl-commercial-journey-modal .cl-commercial-dialog { width: 100%; }
    .cl-commercial-journey-form { padding: 13px; }
    .cl-commercial-journey-form section { padding: 14px; }
    .cl-commercial-journey-grid { grid-template-columns: 1fr; gap: 0; }
}
