body {
    background: #f5f7fa;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #ffffff;
    background: #0f766e;
    font-size: 14px;
}

.btn-teal {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.btn-teal:hover,
.btn-teal:focus {
    background: #0b5f59;
    border-color: #0b5f59;
    color: #fff;
}

.btn-outline-teal {
    color: #0f766e;
    border-color: #0f766e;
}

.btn-outline-teal:hover,
.btn-outline-teal:focus {
    color: #fff;
    background: #0f766e;
    border-color: #0f766e;
}

.text-bg-teal-soft {
    color: #0f766e !important;
    background: #dff5f1 !important;
}

.hero-shell {
    padding: 56px 0 36px;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #eef8f6 100%);
    border-bottom: 1px solid #dce3ea;
}

.hero-copy,
.console-card,
.feature-card,
.auth-card {
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(21, 32, 43, 0.08);
}

.hero-copy {
    padding: clamp(28px, 5vw, 54px);
}

.console-card {
    padding: 24px;
}

.metric {
    min-height: 92px;
    padding: 16px;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    background: #f9fbfc;
}

.metric span {
    display: flex;
    color: #64748b;
    font-size: 14px;
}

.metric strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
}

.event-stream {
    min-height: 176px;
    max-height: 176px;
    overflow: auto;
    padding: 14px;
    color: #cfe9e5;
    background: #10201f;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.event-line {
    margin-bottom: 7px;
}

.feature-card {
    box-shadow: none;
}

.feature-icon {
    color: #0f766e;
    font-size: 32px;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 132px);
    padding: 48px 16px;
}

.auth-card {
    width: min(100%, 460px);
}

.dashboard-shell {
    min-height: calc(100vh - 132px);
}

.panel-card {
    padding: 24px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(21, 32, 43, 0.06);
}

.identity-list {
    display: grid;
    gap: 10px;
}

.identity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 14px 16px;
    color: #17212b;
    text-decoration: none;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    background: #f9fbfc;
}

.identity-item:hover,
.identity-item:focus {
    color: #0f766e;
    border-color: #0f766e;
    background: #f2fbf9;
}

.identity-item strong,
.identity-item small {
    display: block;
}

.identity-item small {
    margin-top: 4px;
    color: #64748b;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 140px;
    padding: 20px;
    color: #64748b;
    border: 1px dashed #cbd5df;
    border-radius: 8px;
    background: #f9fbfc;
}

.workspace-tabs {
    gap: 4px;
    border-bottom-color: #dce3ea;
}

.workspace-tabs .nav-link {
    color: #526173;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.workspace-tabs .nav-link.active {
    color: #0f766e;
    font-weight: 700;
}

.workspace-content {
    padding-top: 18px;
}

.branch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.branch-tabs .nav-link {
    color: #526173;
    background: #eef3f7;
    border-radius: 999px;
}

.branch-tabs .nav-link.active {
    color: #ffffff;
    background: #0f766e;
}

.workspace-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    min-height: 38px;
}

.workspace-checks label {
    white-space: nowrap;
    font-size: 13px;
    color: #526173;
}

.ivr-actions {
    display: grid;
    gap: 10px;
}

.ivr-action-row {
    display: grid;
    grid-template-columns: minmax(92px, 0.8fr) minmax(180px, 1fr) minmax(220px, 1.5fr) 40px;
    gap: 10px;
    align-items: end;
}

.ivr-remove-action {
    width: 40px;
    height: 38px;
    padding: 0;
}

.schedule-block {
    padding: 16px;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    background: #f9fbfc;
}

.weekday-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weekday-picker .btn {
    min-width: 44px;
}

.table code {
    color: #0f766e;
}

.extension-toolbar {
    padding-bottom: 12px;
    border-bottom: 1px solid #e6edf2;
}

.extension-table {
    margin-bottom: 0;
}

.extension-table thead th {
    padding-top: 14px;
    padding-bottom: 14px;
    color: #526173;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    background: #f8fafb;
    border-bottom-color: #dce5ec;
}

.extension-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom-color: #edf2f6;
}

.extension-table tbody tr:hover {
    background: #fbfefd;
}

.extension-number {
    display: inline-flex;
    min-width: 54px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    font-weight: 800;
    border: 1px solid #c9e5df;
    border-radius: 8px;
    background: #f0faf7;
}

.extension-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

#extensionModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

#extensionModal .modal-header,
#extensionModal .modal-footer {
    padding-right: 22px;
    padding-left: 22px;
    background: #f8fafb;
    border-color: #e3e9ef;
}

#extensionModal .modal-title {
    color: #1f2a37;
    font-weight: 800;
}

#extensionModal .modal-body {
    padding: 22px;
}

#extensionModal .form-label {
    color: #526173;
    font-weight: 700;
}

#extensionModal .form-control,
#extensionModal .form-select {
    min-height: 42px;
}

.extension-choice-panel {
    padding: 14px 16px;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    background: #fbfcfd;
}

#extensionModal .weekday-picker {
    gap: 10px;
}

#extensionModal .weekday-picker .btn {
    min-width: 0;
    padding: 8px 12px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    border-color: #d8e2ea;
    border-radius: 8px;
    background: #ffffff;
}

#extensionModal .weekday-picker .btn:hover {
    color: #0f766e;
    border-color: #9ccfc5;
    background: #f2fbf9;
}

#extensionModal .btn-check:checked + .btn {
    color: #ffffff;
    border-color: #0f766e;
    background: #0f766e;
}

.form-control:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.16);
}

@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2.35rem;
    }

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

    .ivr-remove-action {
        width: 100%;
    }
}
