.wdyuh-voice-portal,
.wdyuh-voice-admin-wrap {
    --voice-bg: #f5f7fa;
    --voice-card: #ffffff;
    --voice-border: #dce2e8;
    --voice-text: #1f2933;
    --voice-muted: #657381;
    --voice-primary: #174f78;
    --voice-primary-dark: #103b5b;
    --voice-danger: #a72c2c;
    --voice-success: #176c3a;
    color: var(--voice-text);
    font-size: 15px;
    line-height: 1.5;
}

.wdyuh-voice-portal {
    max-width: 1320px;
    margin: 24px auto;
    padding: 0 18px 40px;
}

.wdyuh-voice-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 26px 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #172d3f;
    color: #fff;
}

.wdyuh-voice-hero h1 {
    color: #fff;
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.wdyuh-voice-hero p { margin: 0; }
.wdyuh-voice-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 8px !important; }
.wdyuh-voice-user-panel { min-width: 190px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.08); }
.wdyuh-voice-user-panel span, .wdyuh-voice-user-panel strong, .wdyuh-voice-user-panel a { display: block; }
.wdyuh-voice-user-panel span { font-size: 12px; opacity: .72; }
.wdyuh-voice-user-panel strong { margin: 2px 0 7px; }
.wdyuh-voice-user-panel a { color: #fff; }

.wdyuh-voice-card {
    background: var(--voice-card);
    border: 1px solid var(--voice-border);
    border-radius: 9px;
    padding: 22px;
    margin: 0 0 20px;
    box-shadow: 0 2px 8px rgba(29, 44, 57, .05);
}

.wdyuh-voice-card h2 { margin: 0 0 6px; font-size: 23px; }
.wdyuh-voice-card h3 { margin: 0 0 8px; font-size: 17px; }
.wdyuh-voice-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.wdyuh-voice-card-header p { margin: 3px 0 0; color: var(--voice-muted); }

.wdyuh-voice-field {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 15px 0;
    border-top: 1px solid #edf0f2;
}
.wdyuh-voice-form > .wdyuh-voice-field:first-of-type { border-top: 0; }
.wdyuh-voice-label { font-weight: 700; padding-top: 7px; }
.wdyuh-voice-help { color: var(--voice-muted); font-size: 13px; margin: 0 0 7px; }
.wdyuh-voice-control { min-width: 0; }
.wdyuh-voice-input { width: 100%; max-width: 820px; min-height: 40px; padding: 8px 10px; border: 1px solid #aeb8c2; border-radius: 5px; background: #fff; color: var(--voice-text); box-sizing: border-box; }
textarea.wdyuh-voice-input { min-height: 100px; resize: vertical; }
.wdyuh-voice-input:focus { border-color: var(--voice-primary); box-shadow: 0 0 0 2px rgba(23,79,120,.15); outline: none; }
.wdyuh-voice-input-suffix { display: flex; gap: 8px; align-items: center; max-width: 250px; }
.wdyuh-voice-check { display: inline-flex; gap: 8px; align-items: flex-start; }
.wdyuh-voice-check input { margin-top: 4px; }
.wdyuh-voice-consent { font-weight: 600; }
.wdyuh-voice-preview-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
#wdyuh-voice-preview-status { color: var(--voice-muted); font-size: 13px; }

.wdyuh-voice-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wdyuh-voice-columns-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wdyuh-voice-columns .wdyuh-voice-field { display: block; }
.wdyuh-voice-columns .wdyuh-voice-label { display: block; margin-bottom: 5px; }

.wdyuh-voice-actions { display: flex; justify-content: flex-end; padding-top: 20px; }
.wdyuh-voice-actions-cell { white-space: nowrap; }
.wdyuh-voice-inline-form { display: inline-block; margin-left: 5px; }
.wdyuh-voice-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 15px; border: 1px solid transparent; border-radius: 5px; text-decoration: none !important; font-weight: 700; cursor: pointer; box-sizing: border-box; }
.wdyuh-voice-button:disabled { opacity: .55; cursor: not-allowed; }
.wdyuh-voice-button-primary { background: var(--voice-primary); color: #fff !important; }
.wdyuh-voice-button-primary:hover { background: var(--voice-primary-dark); }
.wdyuh-voice-button-secondary { background: #fff; color: var(--voice-primary) !important; border-color: #9eb0bf; }
.wdyuh-voice-button-danger { background: #fff; color: var(--voice-danger) !important; border-color: #d6aaaa; }
.wdyuh-voice-button-small { min-height: 30px; padding: 4px 9px; font-size: 12px; }

.wdyuh-voice-alert { border-radius: 6px; padding: 12px 14px; margin: 0 0 18px; border: 1px solid; }
.wdyuh-voice-alert-error { background: #fff2f2; border-color: #e1aaaa; color: #781f1f; }
.wdyuh-voice-alert-success { background: #eef9f1; border-color: #9ec8aa; color: #145a30; }

.wdyuh-voice-table-card { overflow: hidden; }
.wdyuh-voice-table-wrap { overflow-x: auto; }
.wdyuh-voice-table { width: 100%; border-collapse: collapse; }
.wdyuh-voice-table th, .wdyuh-voice-table td { padding: 11px 10px; border-bottom: 1px solid #e5e9ed; vertical-align: top; text-align: left; }
.wdyuh-voice-table th { background: #f6f8fa; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #485662; }
.wdyuh-voice-table small { color: var(--voice-muted); }
.wdyuh-voice-table code { white-space: normal; overflow-wrap: anywhere; }

.wdyuh-voice-status { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #e8edf1; color: #374651; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.wdyuh-voice-status-active, .wdyuh-voice-status-queued, .wdyuh-voice-status-ringing, .wdyuh-voice-status-in-progress { background: #e5f0fb; color: #174f78; }
.wdyuh-voice-status-completed, .wdyuh-voice-status-acknowledged { background: #e4f4e9; color: var(--voice-success); }
.wdyuh-voice-status-failed, .wdyuh-voice-status-busy, .wdyuh-voice-status-no-answer, .wdyuh-voice-status-exhausted { background: #fdeaea; color: #8b2727; }
.wdyuh-voice-status-canceled { background: #f0ece7; color: #6d5948; }

.wdyuh-voice-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.wdyuh-voice-summary-grid > div { padding: 13px; background: #f6f8fa; border-radius: 6px; }
.wdyuh-voice-summary-grid span, .wdyuh-voice-summary-grid strong { display: block; }
.wdyuh-voice-summary-grid span { color: var(--voice-muted); font-size: 12px; margin-bottom: 4px; }
.wdyuh-voice-message-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.wdyuh-voice-message-box { min-height: 90px; padding: 14px; background: #f8f9fa; border: 1px solid #e2e6e9; border-radius: 6px; white-space: normal; }
.wdyuh-voice-events summary { cursor: pointer; }
.wdyuh-voice-login { max-width: 520px; margin: 60px auto; text-align: center; }
.wdyuh-voice-mini-list { display: grid; grid-template-columns: 130px 1fr; gap: 7px 10px; }
.wdyuh-voice-mini-list dt { font-weight: 700; }
.wdyuh-voice-mini-list dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 980px) {
    .wdyuh-voice-columns-three, .wdyuh-voice-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .wdyuh-voice-field { grid-template-columns: 170px minmax(0,1fr); }
}

@media (max-width: 700px) {
    .wdyuh-voice-hero, .wdyuh-voice-card-header { display: block; }
    .wdyuh-voice-user-panel { margin-top: 18px; }
    .wdyuh-voice-field, .wdyuh-voice-columns, .wdyuh-voice-columns-three, .wdyuh-voice-summary-grid, .wdyuh-voice-message-grid { grid-template-columns: 1fr; }
    .wdyuh-voice-field { gap: 5px; }
    .wdyuh-voice-actions { justify-content: stretch; }
    .wdyuh-voice-actions .wdyuh-voice-button { width: 100%; }
}

.wdyuh-voice-custom-wrap {
    margin-top: 12px;
    max-width: 820px;
    padding: 12px;
    border: 1px solid #d8dee4;
    border-radius: 5px;
    background: #f8fafb;
}
.wdyuh-voice-custom-wrap label { display: block; margin-bottom: 6px; }
#wdyuh-voice-description { margin-top: 7px; overflow-wrap: anywhere; }
.wdyuh-voice-status-sent,
.wdyuh-voice-status-delivered { background: #e4f4e9; color: var(--voice-success); }
.wdyuh-voice-status-undelivered { background: #fdeaea; color: #8b2727; }
