.tvwf-admin-page {
    --tvwf-ink: #1d2a35;
    --tvwf-muted: #64748b;
    --tvwf-line: #dce3e9;
    --tvwf-mint: #eaf2f8;
    --tvwf-green: #2271b1;
    --tvwf-deep-green: #1e3a4c;
    max-width: none;
    margin: 28px 20px 0 2px;
    color: var(--tvwf-ink);
}

.tvwf-admin-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
    min-height: 150px;
    padding: 28px 32px;
    color: #fff;
    background: radial-gradient(circle at 84% 15%, rgba(255,255,255,.13) 0 2px, transparent 3px), radial-gradient(circle at 75% 70%, rgba(255,255,255,.08) 0 8px, transparent 9px), linear-gradient(125deg, #1e3a4c, #285a73 62%, #347491);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(30, 58, 76, 0.16);
}

.tvwf-admin-hero > .dashicons { font-size: 42px; width: 42px; height: 42px; color: #cfe9f7; }
.tvwf-admin-hero h1 { margin: 2px 0 5px; color: #fff; font-size: 28px; line-height: 1.15; }
.tvwf-admin-hero p { margin: 0; color: #d6e6ef; font-size: 14px; }
.tvwf-eyebrow { color: #9fd4ec !important; font-size: 11px !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tvwf-customer-avatar { display: grid; flex: 0 0 auto; width: 56px; height: 56px; place-items: center; border: 2px solid rgba(255,255,255,.45); border-radius: 50%; color: #1e526d; background: #f3f9fc; font-size: 24px; font-weight: 700; }
.tvwf-customer-heading { min-width: 0; }
.tvwf-site-badge { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 9px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; }
.tvwf-site-badge .dashicons { color: #cfe9f7; }

.tvwf-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.tvwf-summary-card { display: flex; gap: 14px; align-items: center; min-height: 72px; padding: 15px 18px; border: 1px solid var(--tvwf-line); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(30, 58, 76, .05); }
.tvwf-summary-card > .dashicons { width: 36px; height: 36px; padding: 9px; box-sizing: border-box; border-radius: 10px; color: var(--tvwf-green); background: var(--tvwf-mint); font-size: 18px; }
.tvwf-summary-card strong, .tvwf-summary-card span { display: block; }
.tvwf-summary-card strong { overflow: hidden; color: var(--tvwf-ink); font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.tvwf-summary-card span { margin-top: 3px; color: var(--tvwf-muted); font-size: 12px; }

.tvwf-admin-grid { display: grid; grid-template-columns: minmax(360px, .72fr) minmax(520px, 1.28fr); gap: 20px; align-items: stretch; }
.tvwf-panel { overflow: hidden; border: 1px solid var(--tvwf-line); border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(30, 58, 76, .06); }
.tvwf-panel-heading { display: flex; gap: 12px; padding: 20px 21px 17px; border-bottom: 1px solid #edf1f4; }
.tvwf-panel-heading > .dashicons { width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 50%; color: #fff; background: var(--tvwf-green); font-size: 18px; }
.tvwf-panel h2 { margin: 0; color: var(--tvwf-ink); font-size: 16px; }
.tvwf-panel-heading p { margin: 5px 0 0; color: var(--tvwf-muted); font-size: 13px; }
.tvwf-add-panel { display: flex; flex-direction: column; }
.add-product-form { display: flex; flex: 1; flex-direction: column; padding: 20px 21px 22px; }
.add-product-form label { display: block; margin-bottom: 8px; color: var(--tvwf-ink); font-weight: 600; }
.add-product-form #product_select { width: 100%; max-width: 100%; min-height: 170px; border-color: #b8c9bf; border-radius: 8px; box-shadow: none; }
.add-product-form #product_select:focus { border-color: var(--tvwf-green); box-shadow: 0 0 0 1px var(--tvwf-green); }
.add-product-form .description { margin: 9px 0 18px; color: var(--tvwf-muted); font-size: 12px; }
.add-product-form > p:last-child { margin: auto 0 0; padding-top: 16px; border-top: 1px solid #edf1f4; }
.add-product-form .button-primary { display: inline-flex; width: 100%; min-height: 42px; gap: 8px; align-items: center; justify-content: center; padding: 0 18px; border: 0; border-radius: 8px; background: #2271b1; box-shadow: 0 4px 10px rgba(34, 113, 177, .2); font-size: 13px; font-weight: 700; text-shadow: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.add-product-form .button-primary:hover, .add-product-form .button-primary:focus { background: #135e96; box-shadow: 0 6px 14px rgba(34, 113, 177, .26); transform: translateY(-1px); }
.add-product-form .button-primary:focus { outline: 2px solid #fff; outline-offset: 1px; }
.add-product-form .button-primary .dashicons { width: 16px; height: 16px; font-size: 16px; }
.tvwf-favourites-table { margin: 0; border: 0; box-shadow: none; }
.tvwf-favourites-table thead th { padding: 12px 20px; color: var(--tvwf-muted); background: #f6f8fa; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.tvwf-favourites-table td { padding: 14px 20px; vertical-align: middle; }
.tvwf-favourites-table td:last-child { width: 100px; text-align: right; }
.tvwf-favourites-table a:not(.button) { color: #2271b1; font-weight: 600; text-decoration: none; }
.tvwf-favourites-table .button-link-delete { color: #b42318; }
.tvwf-empty-state { padding: 42px 24px; color: var(--tvwf-muted); text-align: center; }
.tvwf-empty-state .dashicons { width: 44px; height: 44px; padding: 12px; box-sizing: border-box; border-radius: 50%; color: var(--tvwf-green); background: var(--tvwf-mint); font-size: 20px; }
.tvwf-empty-state h3 { margin: 13px 0 6px; color: var(--tvwf-ink); font-size: 15px; }
.tvwf-empty-state p { margin: 0; font-size: 13px; }
.tvwf-site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 20px; }
.tvwf-site-card { display: flex; gap: 13px; align-items: center; padding: 18px; border: 1px solid var(--tvwf-line); border-radius: 12px; color: var(--tvwf-ink); background: #fff; box-shadow: 0 3px 12px rgba(30, 58, 76, .05); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.tvwf-site-card:hover, .tvwf-site-card:focus { border-color: #8abbd7; box-shadow: 0 8px 18px rgba(30, 58, 76, .12); color: var(--tvwf-ink); transform: translateY(-2px); }
.tvwf-site-card > .dashicons:first-child { color: var(--tvwf-green); }
.tvwf-site-card > .dashicons:last-child { margin-left: auto; color: var(--tvwf-muted); }
.tvwf-site-card-content { display: grid; min-width: 0; gap: 3px; }
.tvwf-site-card-content strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvwf-site-card-content small { overflow: hidden; color: var(--tvwf-muted); text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 782px) {
    .tvwf-admin-page { margin: 20px 10px 0 0; }
    .tvwf-admin-hero { min-height: 0; padding: 22px; }
    .tvwf-site-badge { display: none; }
    .tvwf-summary-grid, .tvwf-admin-grid { grid-template-columns: 1fr; }
    .tvwf-summary-note { display: none; }
}

@media (max-width: 480px) {
    .tvwf-admin-hero h1 { font-size: 23px; }
    .tvwf-customer-avatar { width: 46px; height: 46px; font-size: 20px; }
    .tvwf-panel-heading, .add-product-form { padding-right: 16px; padding-left: 16px; }
}
}
