.tr-login-panel,
.tr-contact-page,
.tr-portal {
    box-sizing: border-box;
    color: #0a192f;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    margin: 0 auto;
    max-width: 1080px;
    padding: 48px 22px 72px;
    width: min(1080px, calc(100vw - 56px));
}

.tr-login-panel {
    max-width: 460px;
}

.tr-contact-page {
    max-width: 920px;
}

.tr-contact-hero {
    margin-bottom: 26px;
}

.tr-contact-eyebrow {
    color: #5a30ec;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.tr-contact-hero h1 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.02;
    margin: 0 0 18px;
}

.tr-contact-hero p {
    color: #52627f;
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 720px;
}

.tr-contact-form {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(10, 25, 47, 0.08);
    padding: 28px;
}

.tr-contact-selected-plan {
    background: #e8fbff;
    border-left: 4px solid #00d2ff;
    border-radius: 7px;
    color: #0a192f;
    font-weight: 750;
    margin: 0 0 18px;
    padding: 14px 16px;
}

.tr-contact-selected-plan strong {
    color: #5a30ec;
}

.tr-contact-callout {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(0, 210, 255, 0.16), rgba(0, 210, 255, 0) 42%),
        #0a192f;
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 8px;
    box-shadow: 0 22px 52px rgba(10, 25, 47, 0.16);
    box-sizing: border-box;
    color: #ffffff;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 0 22px;
    overflow: hidden;
    padding: 26px 28px;
}

.tr-contact-callout-eyebrow {
    color: #00d2ff !important;
    font-size: 0.76rem !important;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin: 0 0 8px !important;
    text-transform: uppercase;
}

.tr-contact-callout h2 {
    color: #ffffff;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    line-height: 1.08;
    margin: 0 0 8px;
}

.tr-contact-callout p:not(.tr-contact-callout-eyebrow) {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
}

.tr-contact-phone-link {
    align-items: flex-start;
    background: #00d2ff;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(0, 210, 255, 0.22);
    color: #0a192f;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 230px;
    padding: 15px 18px;
    text-decoration: none !important;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tr-contact-phone-link span {
    color: rgba(10, 25, 47, 0.7);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tr-contact-phone-link strong {
    color: #0a192f;
    font-size: clamp(1.22rem, 2vw, 1.6rem);
    line-height: 1.1;
    white-space: nowrap;
}

.tr-contact-phone-link:hover,
.tr-contact-phone-link:focus {
    background: #29dcff;
    box-shadow: 0 20px 44px rgba(0, 210, 255, 0.3);
    color: #0a192f;
    transform: translateY(-1px);
}

.tr-contact-form label {
    display: block;
    font-weight: 800;
    margin-bottom: 16px;
}

.tr-contact-form input,
.tr-contact-form select,
.tr-contact-form textarea {
    border: 1px solid rgba(10, 25, 47, 0.18);
    border-radius: 7px;
    box-sizing: border-box;
    display: block;
    font: inherit;
    margin-top: 7px;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}

.tr-contact-form select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, #52627f 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
        linear-gradient(135deg, #52627f 50%, transparent 50%) calc(100% - 13px) 50% / 7px 7px no-repeat,
        #ffffff;
    padding-right: 34px;
}

.tr-contact-form textarea {
    min-height: 170px;
}

.tr-order-terms {
    align-items: center;
    display: flex !important;
    gap: 10px;
    line-height: 1.45;
    margin: 4px 0 22px !important;
}

.tr-order-terms input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
    min-height: 18px;
    width: 18px;
}

.tr-order-phone-field {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(170px, 0.36fr) minmax(0, 1fr);
    margin-top: 7px;
}

.tr-order-phone-field select,
.tr-order-phone-field input {
    margin-top: 0;
}

.tr-order-phone-row {
    grid-column: 1 / -1;
}

.tr-contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tr-contact-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 8px;
}

.tr-contact-actions p {
    color: #52627f;
    margin: 0;
}

.tr-call-log-page .tr-portal-call-filters,
.tr-customer-call-log .tr-portal-call-filters {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 20px;
}

.tr-call-log-page .tr-portal-call-filters label,
.tr-customer-call-log .tr-portal-call-filters label {
    display: block;
    flex: 0 1 150px;
    font-weight: 800;
    margin: 0;
    min-width: 132px;
}

.tr-call-log-page .tr-portal-call-filters input,
.tr-call-log-page .tr-portal-call-filters select,
.tr-customer-call-log .tr-portal-call-filters input,
.tr-customer-call-log .tr-portal-call-filters select {
    border: 1px solid rgba(10, 25, 47, 0.18);
    border-radius: 7px;
    box-sizing: border-box;
    display: block;
    font: inherit;
    margin-top: 7px;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.tr-call-log-page .tr-portal-call-filters label:nth-of-type(3),
.tr-call-log-page .tr-portal-call-filters label:nth-of-type(4),
.tr-customer-call-log .tr-portal-call-filters label:nth-of-type(3),
.tr-customer-call-log .tr-portal-call-filters label:nth-of-type(4) {
    flex-basis: 135px;
}

.tr-call-log-page .tr-portal-call-filters label:last-of-type,
.tr-customer-call-log .tr-portal-call-filters label:last-of-type {
    flex: 1 1 240px;
}

.tr-call-log-page .tr-portal-call-filters .tr-portal-button,
.tr-call-log-page .tr-portal-call-filters .tr-portal-link,
.tr-customer-call-log .tr-portal-call-filters .tr-portal-button,
.tr-customer-call-log .tr-portal-call-filters .tr-portal-link {
    align-self: end;
    margin-bottom: 0;
    white-space: nowrap;
}

.tr-employee-call-head .tr-status {
    margin-left: 8px;
}

.tr-contact-hp {
    left: -9999px;
    position: absolute;
}

.tr-login-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tr-login-notice,
.tr-login-error {
    border-radius: 7px;
    font-weight: 700;
    margin: 16px 0;
    padding: 12px 14px;
}

.tr-login-notice {
    background: rgba(0, 210, 255, 0.12);
    border-left: 4px solid #00d2ff;
    color: #0a192f;
}

.tr-login-error {
    background: #fff1f2;
    border-left: 4px solid #e11d48;
    color: #7f1d1d;
}

.wp-block-post-content > .tr-portal {
    margin-left: auto !important;
    margin-right: auto !important;
    position: static;
    transform: none;
}

body:has(.tr-portal) .wp-block-post-title {
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1080px;
    text-align: left;
    width: min(1080px, calc(100vw - 56px));
}

.tr-login-panel h1,
.tr-portal h1,
.tr-portal h2 {
    letter-spacing: 0;
}

.tr-login-panel form,
.tr-portal-panel {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(10, 25, 47, 0.08);
}

.tr-login-panel form {
    margin-top: 22px;
    padding: 22px;
}

.tr-login-panel label,
.tr-portal .tr-field {
    display: block;
    font-weight: 700;
    margin-bottom: 14px;
}

.tr-login-panel .tr-login-remember {
    align-items: center;
    display: flex;
    gap: 8px;
}

.tr-login-panel .tr-login-remember input {
    min-height: 0;
    width: auto;
}

.tr-current-owner {
    background: #f8fafc;
    border: 1px solid rgba(10, 25, 47, 0.12);
    border-radius: 7px;
    margin: 0 0 16px;
    padding: 12px 14px;
}

.tr-current-owner strong,
.tr-current-owner span,
.tr-current-owner small {
    display: block;
}

.tr-current-owner strong {
    color: #5a30ec;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tr-current-owner span {
    font-weight: 800;
    margin-top: 4px;
}

.tr-current-owner small {
    color: #8892b0;
    font-weight: 600;
    margin-top: 2px;
}

.tr-login-panel input[type="text"],
.tr-login-panel input[type="password"],
.tr-portal input,
.tr-portal select,
.tr-portal textarea {
    border: 1px solid rgba(10, 25, 47, 0.18);
    border-radius: 7px;
    box-sizing: border-box;
    font: inherit;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    resize: vertical;
    width: 100%;
}

.tr-login-panel .button,
.tr-portal-button {
    background: #00d2ff;
    border: 0;
    border-radius: 7px;
    color: #0a192f;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    min-height: 42px;
    padding: 11px 16px;
    text-decoration: none;
}

.tr-portal-panel .tr-portal-button {
    margin: 10px 0 8px;
}

.tr-support-back {
    box-sizing: border-box;
    margin: 0 auto 18px;
    max-width: 1080px;
    padding: 28px 22px 0;
    width: min(1080px, calc(100vw - 56px));
}

.wpsc-shortcode-container,
.wpsc-auth-container,
.wpsc-body,
.wpsc-tickets-container,
.wpsc-it-container {
    color: #0a192f;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.wpsc-shortcode-container,
.wpsc-auth-container {
    box-sizing: border-box;
    margin: 0 auto 72px;
    max-width: 1080px;
    width: min(1080px, calc(100vw - 56px));
}

.wpsc-header,
.wpsc-section-header,
.wpsc-widget-header,
.wpsc-it-subject-container {
    background: #0a192f !important;
    border-color: rgba(10, 25, 47, 0.14) !important;
    color: #ffffff !important;
}

.wpsc-button,
.wpsc-filter-submit,
.wpsc-it-editor-submit,
.wpsc-back-button,
.wpsc-shortcode-container button,
.wpsc-auth-container button {
    background: #00d2ff !important;
    border: 1px solid #00d2ff !important;
    border-radius: 7px !important;
    color: #0a192f !important;
    font-weight: 800 !important;
}

.wpsc-button:hover,
.wpsc-filter-submit:hover,
.wpsc-it-editor-submit:hover,
.wpsc-back-button:hover {
    filter: brightness(0.96);
}

.wpsc-link,
.wpsc-shortcode-container a {
    color: #5a30ec !important;
}

.wpsc-tickets-nav .active,
.wpsc-header-nav .active,
.wpsc-ap-nav .active,
.wpsc-tag,
.wpsc-ticket-tag {
    background: rgba(0, 210, 255, 0.14) !important;
    border-color: rgba(0, 210, 255, 0.34) !important;
    color: #0a192f !important;
}

.wpsc-section-container,
.wpsc-widget,
.wpsc-thread,
.wpsc-ticket-list-tbl,
.wpsc-filter-container,
.wpsc-it-widget {
    border: 1px solid rgba(10, 25, 47, 0.12) !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 46px rgba(10, 25, 47, 0.06);
}

.tr-audio-upload audio {
    display: block;
    margin: 8px 0 10px;
    max-width: 420px;
    width: 100%;
}

.tr-subscription-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tr-subscription-metric {
    background: #f8fafc;
    border: 1px solid rgba(10, 25, 47, 0.1);
    border-radius: 8px;
    padding: 14px;
}

.tr-subscription-metric span,
.tr-subscription-metric small {
    color: #64708b;
    display: block;
    font-size: 0.86rem;
    font-weight: 650;
}

.tr-subscription-metric strong {
    display: block;
    font-size: 1.08rem;
    margin: 5px 0;
}

.tr-usage-meter {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(170px, 260px) 1fr;
    margin: 18px 0;
}

.tr-usage-meter strong {
    display: block;
    font-size: 1.1rem;
}

.tr-usage-meter span {
    color: #64708b;
}

.tr-usage-bar {
    background: #e5e7eb;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.tr-usage-bar span {
    background: #00d2ff;
    display: block;
    height: 100%;
}

.tr-usage-warning .tr-usage-bar span {
    background: #f59e0b;
}

.tr-usage-over .tr-usage-bar span {
    background: #ef4444;
}

.tr-usage-note {
    border-left: 4px solid #00d2ff;
}

.tr-usage-note-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #78350f;
}

.tr-usage-note-danger {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #7f1d1d;
}

.tr-portal-hero {
    background: #0a192f;
    border-radius: 8px;
    color: #ffffff;
    margin-bottom: 22px;
    padding: 28px;
}

.tr-portal-hero p,
.tr-portal-panel-head p {
    color: #5a30ec;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.tr-portal-hero h1 {
    color: #ffffff;
    margin: 0 0 8px;
}

.tr-portal-hero span {
    color: rgba(255, 255, 255, 0.78);
}

.tr-customer-view-nav {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 0 22px;
}

.tr-customer-view-nav a {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(10, 25, 47, 0.05);
    color: #0a192f;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 74px;
    padding: 13px 14px;
    text-decoration: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tr-customer-view-nav a:hover,
.tr-customer-view-nav a:focus,
.tr-customer-view-nav a.is-active {
    border-color: rgba(0, 210, 255, 0.7);
    box-shadow: 0 14px 34px rgba(0, 210, 255, 0.12);
    transform: translateY(-1px);
}

.tr-customer-view-nav a.is-active {
    background: #0a192f;
    color: #ffffff;
}

.tr-customer-view-nav strong {
    color: inherit;
    font-size: 0.95rem;
    font-weight: 900;
}

.tr-customer-view-nav span {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.tr-customer-view-nav a.is-active span {
    color: rgba(255, 255, 255, 0.72);
}

.tr-customer-view-content {
    transition: opacity 0.16s ease;
}

.tr-portal.is-loading-view .tr-customer-view-content {
    opacity: 0.55;
    pointer-events: none;
}

.tr-customer-overview-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tr-customer-overview-card {
    background: #f8fafc;
    border: 1px solid rgba(10, 25, 47, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 176px;
    padding: 17px;
}

.tr-customer-overview-card > span {
    color: #5a30ec;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tr-customer-overview-card strong {
    color: #0a192f;
    font-size: 1.05rem;
    line-height: 1.25;
}

.tr-customer-overview-card p {
    color: #52627f;
    line-height: 1.55;
    margin: 0;
}

.tr-customer-overview-card .tr-portal-link {
    margin-top: auto;
}

.tr-speak-view-intro {
    margin-bottom: -4px;
}

.tr-portal-panel {
    margin: 22px 0;
    padding: 22px;
}

.tr-portal-panel-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tr-portal-panel-head h2 {
    margin: 0;
}

.tr-portal-panel-head > span {
    background: rgba(0, 210, 255, 0.12);
    border-radius: 999px;
    font-weight: 800;
    padding: 6px 11px;
}

.tr-portal-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tr-portal .tr-field span {
    display: block;
    margin-bottom: 6px;
}

.tr-portal .tr-static-field {
    background: #f8fafc;
    border: 1px solid rgba(10, 25, 47, 0.12);
    border-radius: 7px;
    box-sizing: border-box;
    color: #0a192f;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 11px;
    width: 100%;
}

.tr-portal .tr-field em {
    color: #8892b0;
    display: block;
    font-size: 0.92rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.45;
    margin: -2px 0 8px;
}

.tr-portal-note {
    background: rgba(0, 210, 255, 0.1);
    border-left: 4px solid #00d2ff;
    border-radius: 7px;
    color: #0a192f;
    margin: 0 0 16px;
    padding: 12px 14px;
}

.tr-guide-panel {
    background: #f8fbff;
}

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

.tr-guide-item {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.tr-guide-item summary {
    cursor: pointer;
    font-weight: 850;
    list-style-position: inside;
    padding: 13px 15px;
}

.tr-guide-item summary:hover,
.tr-guide-item[open] summary {
    background: rgba(0, 210, 255, 0.09);
}

.tr-guide-item p {
    border-top: 1px solid rgba(10, 25, 47, 0.08);
    color: #52627f;
    line-height: 1.55;
    margin: 0;
    padding: 13px 15px 15px;
}

.tr-recipient-department-row td {
    background: #f0fbff;
}

.tr-recipient-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    margin: 0 0 5px;
    padding: 5px 8px;
    vertical-align: middle;
}

.tr-recipient-badge-person {
    background: #eef2ff;
    color: #3730a3;
}

.tr-recipient-badge-department {
    background: #cffafe;
    color: #155e75;
}

.tr-recipient-type {
    background: #f8fafc;
    border: 1px solid rgba(10, 25, 47, 0.1);
    border-radius: 8px;
    margin: 0 0 18px;
    padding: 14px 16px;
}

.tr-recipient-type legend {
    font-weight: 900;
    padding: 0 4px;
}

.tr-recipient-type label {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    margin: 8px 18px 6px 0;
}

.tr-recipient-type input[type="radio"] {
    appearance: auto;
    flex: 0 0 auto;
    height: 16px;
    margin: 0;
    min-height: 0;
    padding: 0;
    width: 16px;
}

.tr-recipient-type .description {
    color: #64708b;
    margin: 8px 0 0;
}

.tr-portal-form .tr-recipient-person-fields.is-disabled {
    opacity: 0.48;
}

.tr-portal-form .tr-recipient-person-fields.is-disabled input {
    background: #eef2f6;
    cursor: not-allowed;
}

.tr-notice-warning {
    background: #fff7ed;
    border-left-color: #f97316;
}

.tr-plan-change-form {
    border-top: 1px solid rgba(10, 25, 47, 0.1);
    margin-top: 16px;
    padding-top: 16px;
}

.tr-stripe-checkout-form {
    border-top: 1px solid rgba(10, 25, 47, 0.1);
    margin-top: 16px;
    padding-top: 16px;
}

.tr-support-panel {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), #ffffff 62%);
}

.tr-my-calls-panel {
    background: linear-gradient(135deg, rgba(90, 48, 236, 0.08), #ffffff 62%);
}

.tr-employee-picker {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 1fr) auto;
    margin-bottom: 18px;
}

.tr-employee-picker label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.tr-employee-call-list {
    display: grid;
    gap: 14px;
}

.tr-employee-call {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.12);
    border-radius: 8px;
    padding: 16px;
}

.tr-employee-call-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tr-employee-call-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 0 0 14px;
}

.tr-employee-call-meta div {
    background: #f8fafc;
    border: 1px solid rgba(10, 25, 47, 0.08);
    border-radius: 7px;
    padding: 10px;
}

.tr-employee-call-meta dt {
    color: #8892b0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tr-employee-call-meta dd {
    color: #0a192f;
    font-weight: 800;
    margin: 2px 0 0;
}

.tr-employee-call h3 {
    font-size: 1rem;
    margin: 14px 0 6px;
}

.tr-employee-call p {
    line-height: 1.6;
}

.tr-welcome-editor {
    display: grid;
    gap: 12px;
}

.tr-template-select {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.16);
    border-radius: 7px;
    color: #0a192f;
    font: inherit;
    font-weight: 700;
    margin: 0 0 10px;
    min-height: 42px;
    padding: 8px 10px;
    width: min(100%, 420px);
}

.tr-compliance-box {
    background: #f8fafc;
    border: 1px solid rgba(10, 25, 47, 0.1);
    border-left: 4px solid #5a30ec;
    border-radius: 7px;
    color: #0a192f;
    padding: 13px 14px;
}

.tr-compliance-box strong {
    display: block;
    margin-bottom: 5px;
}

.tr-compliance-box p,
.tr-compliance-warning {
    line-height: 1.5;
    margin: 0;
}

.tr-compliance-warning {
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-left: 4px solid #f59e0b;
    border-radius: 7px;
    color: #78350f;
    padding: 11px 13px;
}

.tr-professional-voice {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.11), #ffffff 62%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-left: 4px solid #5a30ec;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    margin: 16px 0 4px;
    padding: 18px;
}

.tr-professional-voice span {
    color: #5a30ec;
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.tr-professional-voice h3 {
    color: #0a192f;
    font-size: 1.15rem;
    margin: 0 0 6px;
}

.tr-professional-voice p {
    color: #64708b;
    line-height: 1.55;
    margin: 0;
}

.tr-professional-voice audio {
    max-width: 520px;
    width: 100%;
}

.tr-voice-receipt {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.16), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(0, 210, 255, 0.45);
    border-left: 5px solid #00d2ff;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 210, 255, 0.12);
    padding: 16px 18px;
}

.tr-voice-receipt strong {
    color: #5a30ec;
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.tr-voice-receipt h4 {
    color: #0a192f;
    font-size: 1.1rem;
    margin: 0 0 6px;
}

.tr-voice-receipt p {
    color: #44516b;
    margin: 0;
}

.tr-professional-voice .tr-login-actions span {
    color: #64708b;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0;
    margin: 0;
    text-transform: none;
}

.tr-voice-order-box {
    border-top: 1px solid rgba(10, 25, 47, 0.1);
    display: grid;
    gap: 10px;
    margin-top: 4px;
    padding-top: 14px;
}

.tr-voice-order-box .tr-field,
.tr-voice-order-box .tr-portal-check {
    margin-bottom: 0;
}

.tr-voice-order-box > span {
    color: #64708b;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.tr-voice-order-intro {
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.18);
    border-radius: 8px;
    padding: 16px 18px;
}

.tr-voice-order-intro strong {
    color: #0a192f;
    display: block;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.tr-voice-order-intro p {
    color: #52627f;
    line-height: 1.55;
    margin: 0;
}

.tr-voice-profiles {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.tr-voice-profile {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.12);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-rows: auto auto auto auto auto;
    justify-items: stretch;
    min-width: 0;
    padding: 12px;
    position: relative;
}

.tr-voice-profile-special {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.97), rgba(28, 37, 58, 0.96));
    border-color: rgba(0, 210, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.16), 0 18px 42px rgba(10, 25, 47, 0.18);
    color: #ffffff;
    grid-column: 1 / -1;
    align-items: center;
    grid-template-columns: 156px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto auto;
    min-height: 196px;
    padding: 18px;
}

.tr-voice-profile:has(input:checked) {
    border-color: #00d2ff;
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.18);
}

.tr-voice-profile input {
    position: absolute;
    right: 10px;
    top: 10px;
    width: auto;
}

.tr-voice-profile img,
.tr-voice-special-icon {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: block;
    height: 156px !important;
    justify-self: center;
    max-height: 156px !important;
    max-width: 156px !important;
    object-fit: cover;
    width: 156px !important;
}

.tr-voice-special-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(90, 48, 236, 0.16), rgba(0, 210, 255, 0.18));
    color: #5a30ec;
    display: flex;
    font-size: 2rem;
    font-weight: 850;
    justify-content: center;
}

.tr-voice-profile strong {
    color: #0a192f;
    font-size: 0.95rem;
}

.tr-voice-profile span,
.tr-voice-profile small,
.tr-voice-profile em,
.tr-voice-profile p,
.tr-voice-profile li {
    color: #64708b;
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.35;
    margin: 0;
}

.tr-voice-profile small {
    color: #5a30ec;
    font-weight: 800;
}

.tr-voice-profile audio {
    height: 34px;
    max-width: 100%;
    width: 100%;
}

.tr-voice-order-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tr-voice-order-actions .tr-portal-button,
.tr-voice-order-actions .tr-speaks-link {
    flex: 0 0 auto;
    width: auto !important;
}

.tr-speaks-link {
    border: 1px solid rgba(10, 25, 47, 0.16);
    border-radius: 7px;
    color: #0a192f;
    display: inline-flex;
    font-weight: 800;
    min-height: 42px;
    padding: 11px 16px;
    text-decoration: none;
}

.tr-voice-profile em {
    color: #8892b0;
}

.tr-voice-profile-special input {
    top: 12px;
}

.tr-voice-profile-special strong,
.tr-voice-profile-special span,
.tr-voice-profile-special small,
.tr-voice-profile-special em,
.tr-voice-profile-special p,
.tr-voice-profile-special .tr-voice-profile-bullets,
.tr-voice-profile-special audio {
    grid-column: 2;
}

.tr-voice-profile-special strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.tr-voice-profile-special span,
.tr-voice-profile-special p,
.tr-voice-profile-special li {
    color: rgba(255, 255, 255, 0.8);
}

.tr-voice-profile-bullets {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tr-voice-profile-bullets li {
    padding-left: 16px;
    position: relative;
}

.tr-voice-profile-bullets li::before {
    background: #00d2ff;
    border-radius: 999px;
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    top: 0.48em;
    width: 6px;
}

.tr-voice-profile-special small {
    color: #00d2ff;
}

.tr-voice-profile-special .tr-voice-special-icon {
    grid-column: 1;
    grid-row: 1 / span 5;
}

.tr-voice-profile-special img {
    grid-column: 1;
    grid-row: 1 / span 5;
}

.tr-voice-profile-special img,
.tr-voice-profile-special .tr-voice-special-icon {
    height: 156px !important;
    justify-self: center;
    max-height: 156px !important;
    max-width: 156px !important;
    width: 156px !important;
}

.tr-special-note {
    margin-top: 2px;
}

.tr-portal-masked,
.tr-portal-muted {
    color: #8892b0;
    font-weight: 700;
}

.tr-portal .tr-phone {
    display: grid;
    gap: 8px;
    grid-template-columns: 158px minmax(140px, 260px);
}

.tr-portal .tr-phone select {
    min-width: 158px;
}

.tr-portal-check {
    display: block;
    font-weight: 700;
    margin: 10px 0 18px;
}

.tr-portal-check input {
    min-height: 0;
    width: auto;
}

.tr-portal-table-wrap {
    overflow-x: auto;
}

.tr-portal-table {
    border-collapse: collapse;
    min-width: 860px;
    width: 100%;
}

.tr-portal-table th,
.tr-portal-table td {
    border-bottom: 1px solid rgba(10, 25, 47, 0.09);
    padding: 11px 9px;
    text-align: left;
    vertical-align: middle;
}

.tr-portal-table th {
    color: #8892b0;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.tr-portal-table td span {
    color: #8892b0;
    font-size: 0.9rem;
}

.tr-portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tr-portal-actions form {
    margin: 0;
}

.tr-portal-actions button,
.tr-portal-link {
    background: transparent;
    border: 1px solid rgba(10, 25, 47, 0.18);
    border-radius: 7px;
    color: #0a192f;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 6px 9px;
    text-decoration: none;
}

.tr-portal-actions .tr-portal-danger {
    border-color: rgba(220, 38, 38, 0.34);
    color: #991b1b;
}

.tr-partner-portal .tr-selected-row {
    background: rgba(0, 210, 255, 0.08);
}

.tr-partner-nav {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.tr-partner-nav a {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.14);
    border-radius: 8px;
    color: #0a192f;
    font-weight: 800;
    padding: 11px 16px;
    text-decoration: none;
}

.tr-partner-nav a.is-active {
    background: #0a192f;
    border-color: #0a192f;
    color: #ffffff;
}

.tr-partner-picker {
    align-items: flex-end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 1fr) auto;
}

.tr-partner-picker label span {
    color: #8892b0;
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.tr-partner-picker select {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.18);
    border-radius: 7px;
    color: #0a192f;
    font: inherit;
    min-height: 44px;
    padding: 9px 11px;
    width: 100%;
}

.tr-partner-company-table th:nth-child(1),
.tr-partner-company-table td:nth-child(1) {
    min-width: 190px;
}

.tr-partner-company-table th:nth-child(2),
.tr-partner-company-table td:nth-child(2) {
    min-width: 220px;
}

.tr-partner-metrics .tr-subscription-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tr-usp-share {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.12);
    border-radius: 10px;
    box-shadow: 0 16px 42px rgba(10, 25, 47, 0.08);
    color: #0a192f;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
    margin: 0 auto;
    padding: 30px;
}

.tr-usp-share-copy {
    align-self: center;
}

.tr-usp-share-copy .tr-section-kicker {
    color: #254deb;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.tr-usp-share-copy h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.25rem);
    line-height: 1.08;
    margin: 0 0 14px;
}

.tr-usp-share-copy p:last-child {
    color: #52627f;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.tr-usp-share-form {
    background: #f8fbff;
    border: 1px solid rgba(10, 25, 47, 0.10);
    border-radius: 9px;
    display: grid;
    gap: 14px;
    padding: 22px;
}

.tr-usp-share-form label {
    color: #0a192f;
    display: grid;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 800;
}

.tr-usp-share-form input,
.tr-usp-share-form textarea {
    background: #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.18);
    border-radius: 8px;
    color: #0a192f;
    font: inherit;
    min-height: 46px;
    padding: 11px 13px;
    width: 100%;
}

.tr-usp-share-form textarea {
    line-height: 1.5;
    min-height: 92px;
    resize: vertical;
}

.tr-usp-share-form .tr-contact-actions {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 2px;
}

.tr-usp-share-form .tr-contact-actions p {
    color: #64748b;
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 720px) {
    .tr-login-panel,
    .tr-contact-page,
    .tr-portal {
        padding: 32px 22px 54px;
        width: 100%;
    }

    .tr-contact-form {
        padding: 20px;
    }

    .tr-contact-callout {
        align-items: stretch;
        gap: 18px;
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .tr-contact-callout h2 {
        max-width: 12ch;
    }

    .tr-contact-callout p:not(.tr-contact-callout-eyebrow) {
        max-width: none;
    }

    .tr-contact-phone-link {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
    }

    .tr-contact-phone-link strong {
        font-size: 1.42rem;
        white-space: normal;
    }

    .tr-contact-grid {
        grid-template-columns: 1fr;
    }

    .tr-order-phone-field {
        grid-template-columns: 1fr;
    }

    .wp-block-post-content > .tr-portal {
        margin-left: auto;
        margin-right: auto;
        transform: none;
    }

    body:has(.tr-portal) .wp-block-post-title {
        width: calc(100vw - 44px);
    }

    .tr-portal-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tr-portal-grid,
    .tr-customer-view-nav,
    .tr-customer-overview-grid,
    .tr-usp-share,
    .tr-portal .tr-phone,
    .tr-voice-profiles,
    .tr-partner-picker,
    .tr-employee-picker,
    .tr-subscription-grid,
    .tr-usage-meter {
        grid-template-columns: 1fr;
    }

    .tr-partner-nav {
        flex-direction: column;
    }

    .tr-voice-profile-special {
        grid-template-columns: 1fr;
    }

    .tr-voice-profile-special strong,
    .tr-voice-profile-special span,
    .tr-voice-profile-special small,
    .tr-voice-profile-special em,
    .tr-voice-profile-special p,
    .tr-voice-profile-special .tr-voice-profile-bullets,
    .tr-voice-profile-special audio,
    .tr-voice-profile-special img,
    .tr-voice-profile-special .tr-voice-special-icon {
        grid-column: auto;
        grid-row: auto;
    }

    .tr-usp-share {
        padding: 22px;
    }

    .tr-usp-share-form {
        padding: 18px;
    }

    .tr-usp-share-form .tr-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tr-call-log-page .tr-portal-call-filters,
    .tr-customer-call-log .tr-portal-call-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .tr-call-log-page .tr-portal-call-filters label,
    .tr-customer-call-log .tr-portal-call-filters label {
        flex-basis: auto;
        min-width: 0;
    }
}
