:root{
    --csp-blue:#0b4ea2;
    --csp-blue-soft:#eff6ff;
    --csp-green:#15803d;
    --csp-green-soft:#ecfdf3;
    --csp-orange:#d97706;
    --csp-orange-soft:#fff7ed;
    --csp-red:#b91c1c;
    --csp-red-soft:#fef2f2;
    --csp-slate:#0f172a;
    --csp-muted:#64748b;
    --csp-border:#e2e8f0;
    --csp-bg:#f8fafc;
    --csp-white:#fff;
}

#adminmenu .toplevel_page_cspv3f-dashboard > a{background:var(--csp-slate)!important;color:#fff!important}
.cspv3f-page{max-width:1460px;padding-top:8px}
.cspv3f-page *{box-sizing:border-box}
.cspv3f-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:8px 0 22px}
.cspv3f-page-title{margin:0 0 6px;font-size:30px;line-height:1.2;color:var(--csp-slate)}
.cspv3f-page-desc{margin:0;color:var(--csp-muted);max-width:900px;font-size:14px}
.cspv3f-page-actions{display:flex;flex-wrap:wrap;gap:10px}

.cspv3f-grid{display:grid;gap:20px}
.cspv3f-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cspv3f-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cspv3f-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cspv3f-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.cspv3f-grid-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.cspv3f-card-span-2{grid-column:span 2}

.cspv3f-card,.cspv3f-card-mini,.cspv3f-frontend-card{background:var(--csp-white);border:1px solid var(--csp-border);border-radius:18px;padding:20px;box-shadow:0 8px 28px rgba(15,23,42,.05)}
.cspv3f-card{border-top:4px solid var(--csp-blue)}
.cspv3f-card-mini{background:var(--csp-bg)}
.cspv3f-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}
.cspv3f-section-head h2{margin:0;font-size:20px;color:var(--csp-slate)}
.cspv3f-section-head p{margin:4px 0 0;color:var(--csp-muted);font-size:13px;max-width:860px}

.cspv3f-dashboard-cards .cspv3f-card{padding:18px}
.cspv3f-stat-card{text-align:left;min-height:120px;display:flex;flex-direction:column;justify-content:flex-start;gap:8px}
.cspv3f-stat-label{display:block;color:var(--csp-muted);font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.cspv3f-stat-value{display:block;font-size:32px;line-height:1.1;font-weight:800;color:var(--csp-blue)}
.cspv3f-stat-helper{display:block;color:var(--csp-muted);font-size:12px}
.cspv3f-stat-card-success{border-top-color:var(--csp-green)}
.cspv3f-stat-card-warning{border-top-color:var(--csp-orange)}
.cspv3f-stat-card-danger{border-top-color:var(--csp-red)}
.cspv3f-stat-card-info{border-top-color:var(--csp-blue)}

.cspv3f-inline-alerts{margin-bottom:18px;display:flex;flex-wrap:wrap;gap:8px}
.cspv3f-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:6px 10px;border-radius:999px;background:#eef2ff;color:var(--csp-blue);font-size:12px;font-weight:700}
.cspv3f-badge-default{background:#f1f5f9;color:var(--csp-slate)}
.cspv3f-badge-success{background:var(--csp-green-soft);color:var(--csp-green)}
.cspv3f-badge-warning{background:var(--csp-orange-soft);color:var(--csp-orange)}
.cspv3f-badge-danger{background:var(--csp-red-soft);color:var(--csp-red)}
.cspv3f-badge-info{background:var(--csp-blue-soft);color:var(--csp-blue)}

.cspv3f-filter-bar,.cspv3f-search-form{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.cspv3f-filter-bar input,.cspv3f-filter-bar select,.cspv3f-search-form input,.cspv3f-search-form select,
.cspv3f-form-stack input[type=text],.cspv3f-form-stack input[type=email],.cspv3f-form-stack input[type=number],.cspv3f-form-stack input[type=url],.cspv3f-form-stack input[type=date],.cspv3f-form-stack input[type=time],.cspv3f-form-stack input[type=search],.cspv3f-form-stack textarea,.cspv3f-form-stack select{
    width:100%;max-width:none;border:1px solid var(--csp-border);border-radius:12px;padding:10px 12px;background:#fff;min-height:42px
}
.cspv3f-form-stack p{margin:0 0 14px}
.cspv3f-form-stack label{display:block;font-weight:600;color:var(--csp-slate);margin-bottom:6px}
.cspv3f-required{color:var(--csp-red)}
.cspv3f-help{display:block;margin-top:5px;color:var(--csp-muted);font-size:12px}
.cspv3f-inline-options{display:flex;flex-wrap:wrap;gap:16px;margin-top:8px}
.cspv3f-inline-options label{margin:0;font-weight:500}
.cspv3f-inline-summary{padding:12px 14px;border-radius:12px;background:var(--csp-blue-soft);color:var(--csp-slate);font-size:13px;margin:8px 0 14px}
.cspv3f-conditional-panel{margin-top:14px;padding:16px;border:1px dashed #cbd5e1;border-radius:14px;background:#fcfdff}
.cspv3f-conditional-panel h3{margin:0 0 6px;font-size:16px}

.cspv3f-table-wrap{overflow:auto;border:1px solid var(--csp-border);border-radius:16px;background:#fff}
.cspv3f-table{border-collapse:separate;border-spacing:0;width:100%}
.cspv3f-table thead th{background:#f8fafc;border-bottom:1px solid var(--csp-border);padding:13px 12px;font-weight:700;color:var(--csp-slate);white-space:nowrap}
.cspv3f-table tbody td{padding:13px 12px;vertical-align:top;border-bottom:1px solid #eef2f7}
.cspv3f-table tbody tr:last-child td{border-bottom:none}
.cspv3f-row-actions{white-space:nowrap}
.cspv3f-row-actions .button{margin:0 6px 6px 0}
.cspv3f-muted{color:var(--csp-muted)}
.cspv3f-search-result{margin:0 0 16px;padding:12px;background:var(--csp-green-soft);border-left:4px solid var(--csp-green);border-radius:10px}
.cspv3f-empty-state{padding:18px;border:1px dashed #cbd5e1;border-radius:14px;background:#fafcff;color:var(--csp-muted)}
.cspv3f-empty-state strong{display:block;color:var(--csp-slate);margin-bottom:4px}

.cspv3f-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cspv3f-action-tile{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--csp-border);border-radius:14px;background:#fff;text-decoration:none;color:var(--csp-slate);transition:.2s ease}
.cspv3f-action-tile:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,23,42,.06)}
.cspv3f-action-tile span{font-size:12px;color:var(--csp-muted)}

.cspv3f-check-list{margin:0;padding-left:18px;color:var(--csp-slate)}
.cspv3f-check-list li{margin-bottom:10px}
.cspv3f-activity-feed{display:flex;flex-direction:column;gap:10px}
.cspv3f-activity-item{padding:14px;border-radius:14px;background:#f8fafc;border:1px solid #eef2f7}
.cspv3f-activity-item strong{display:block;margin-bottom:4px}
.cspv3f-activity-item span,.cspv3f-activity-item small{display:block;color:var(--csp-muted)}
.cspv3f-activity-item p{margin:6px 0 0}
.cspv3f-info-list{display:grid;gap:10px;margin-top:10px}
.cspv3f-info-list div{display:flex;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px dashed #dbe5f0}
.cspv3f-info-list div:last-child{border-bottom:none;padding-bottom:0}
.cspv3f-info-list span{color:var(--csp-muted)}
.cspv3f-info-list b{color:var(--csp-slate);text-align:right}
.cspv3f-compact-list{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:10px}
.cspv3f-compact-list li{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;background:#fff;border-radius:12px;border:1px solid #e5edf5}
.cspv3f-compact-list span{color:var(--csp-muted)}
.cspv3f-mini-stats .cspv3f-card{padding:16px}

.cspv3f-scroll-box{max-height:320px;overflow:auto;border:1px solid #eef2f7;border-radius:14px}
.cspv3f-history-box{padding:8px;background:#f8fafc}
.cspv3f-history-item{padding:12px;border-bottom:1px solid #e5e7eb}
.cspv3f-history-item:last-child{border-bottom:0}
.cspv3f-patient-strip{background:#f8fafc;border-radius:14px;padding:14px;margin-bottom:14px}
.cspv3f-patient-strip div strong{display:block;color:#64748b;font-size:12px;text-transform:uppercase}
.cspv3f-patient-strip div span{display:block;font-weight:600;margin-top:5px}
.cspv3f-list{list-style:disc;padding-left:18px}
.cspv3f-dispense-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #eef2f7}
.cspv3f-dispense-row:first-of-type{border-top:none}
.cspv3f-print-wrap{margin-top:20px}
.cspv3f-print-card,.cspv3f-label-card{background:#fff;border:1px solid #dbeafe;border-radius:16px;padding:20px;max-width:920px}
.cspv3f-label-card{max-width:360px;border:2px solid #0f172a}
.cspv3f-label-title{font-size:20px;font-weight:700;text-align:center;margin-bottom:10px}

.button-primary,.wp-core-ui .button-primary{background:var(--csp-blue)!important;border-color:var(--csp-blue)!important}
.cspv3f-logout-link{display:inline-block;padding:8px 14px;border-radius:10px;background:var(--csp-slate);color:#fff;text-decoration:none}
.cspv3f-portal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.cspv3f-patient-frontend{max-width:1100px;margin:0 auto}
.cspv3f-frontend-card{border-top:4px solid var(--csp-blue);margin:0 auto 20px;max-width:1100px}
.cspv3f-frontend-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.cspv3f-frontend-grid div{background:#f8fafc;padding:14px;border-radius:12px}
.cspv3f-frontend-grid strong{display:block;margin-bottom:6px;color:var(--csp-slate)}
.cspv3f-frontend-table{width:100%;border-collapse:collapse}
.cspv3f-frontend-table th,.cspv3f-frontend-table td{padding:10px;border-bottom:1px solid #e5e7eb;text-align:left}
.cspv3f-auth-card input{width:100%;max-width:420px}
.cspv3f-pass-wrap{position:relative;max-width:420px;margin-bottom:12px}
.cspv3f-pass-wrap input{width:100%;padding-right:50px}
.cspv3f-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer}
.cspv3f-live-notice{padding:12px 14px;margin-bottom:14px;background:linear-gradient(90deg,var(--csp-blue),#35a853);color:#fff;border-radius:12px;animation:cspPulse 2s infinite}
@keyframes cspPulse{0%{transform:scale(1)}50%{transform:scale(1.02)}100%{transform:scale(1)}}

@media (max-width: 1280px){
    .cspv3f-grid-6,.cspv3f-grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 1100px){
    .cspv3f-grid-6,.cspv3f-grid-5,.cspv3f-grid-4,.cspv3f-grid-3,.cspv3f-grid-2,.cspv3f-action-grid,.cspv3f-frontend-grid{grid-template-columns:1fr}
    .cspv3f-card-span-2{grid-column:auto}
    .cspv3f-dispense-row,.cspv3f-page-head,.cspv3f-section-head,.cspv3f-portal-head{flex-direction:column;align-items:flex-start}
}
@media (max-width: 782px){
    .cspv3f-page-title{font-size:24px}
    .cspv3f-page-actions,.cspv3f-inline-options,.cspv3f-filter-bar,.cspv3f-search-form{width:100%}
    .cspv3f-page-actions .button,.cspv3f-filter-bar .button,.cspv3f-search-form .button{width:100%;text-align:center}
    .cspv3f-table-wrap{overflow-x:auto}
}

.cspv3f-info-stack{display:grid;gap:4px}.cspv3f-info-stack span{display:block;color:var(--csp-muted);font-size:12px}.cspv3f-form-table-tight th,.cspv3f-form-table-tight td{padding-top:8px;padding-bottom:8px}.cspv3f-card .form-table th{padding-left:0}.cspv3f-card .form-table td{padding-right:0}.cspv3f-card code{word-break:break-all}.cspv3f-page .notice{margin:12px 0 0}

.cspv3f-stat-card-link{text-decoration:none}
.cspv3f-stat-card-link:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(15,23,42,.08)}
.cspv3f-tab-nav{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 22px}
.cspv3f-tab-link{display:inline-flex;align-items:center;padding:10px 16px;border-radius:999px;background:#fff;border:1px solid var(--csp-border);text-decoration:none;color:var(--csp-slate);font-weight:600}
.cspv3f-tab-active{background:var(--csp-blue);border-color:var(--csp-blue);color:#fff}

.cspv3f-portal-shell{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;max-width:1400px;margin:0 auto 30px;padding:8px 0}
.cspv3f-portal-sidebar{background:linear-gradient(180deg,#081a36,#102c59);border-radius:24px;padding:24px;color:#fff;display:flex;flex-direction:column;gap:18px;min-height:780px;box-shadow:0 18px 45px rgba(8,26,54,.18)}
.cspv3f-portal-brand strong{display:block;font-size:22px;line-height:1.2}
.cspv3f-portal-brand span{display:block;margin-top:6px;color:rgba(255,255,255,.72);font-size:13px}
.cspv3f-portal-user{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.08);font-weight:600}
.cspv3f-portal-nav{display:grid;gap:10px}
.cspv3f-portal-nav-link{display:block;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.06);text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.08);transition:.2s ease}
.cspv3f-portal-nav-link:hover,.cspv3f-portal-nav-link.is-active{background:rgba(255,255,255,.14);transform:translateX(2px)}
.cspv3f-portal-nav-link strong{display:block;font-size:14px}
.cspv3f-portal-nav-link span{display:block;margin-top:4px;font-size:12px;color:rgba(255,255,255,.72)}
.cspv3f-portal-sidebar .cspv3f-logout-link{background:#fff;color:#081a36;text-align:center;font-weight:700}
.cspv3f-portal-main{display:grid;gap:20px}
.cspv3f-portal-hero{padding:24px;border-radius:22px;background:linear-gradient(135deg,#ffffff,#edf5ff);border:1px solid #d9e7ff;box-shadow:0 10px 28px rgba(15,23,42,.05)}
.cspv3f-portal-hero h2{margin:0 0 8px;color:var(--csp-slate);font-size:34px}
.cspv3f-portal-hero p{margin:0;color:var(--csp-muted);max-width:850px}

.cspv3f-card .button,.cspv3f-frontend-card .button{border-radius:10px}
.cspv3f-card .button-primary,.cspv3f-frontend-card .button-primary{padding-left:16px;padding-right:16px}
.cspv3f-card-mini strong{display:block;margin-bottom:4px;color:var(--csp-slate)}
.cspv3f-card-mini p{margin:0 0 12px}

@media (max-width: 1100px){
    .cspv3f-portal-shell{grid-template-columns:1fr}
    .cspv3f-portal-sidebar{min-height:auto}
}


.cspv3f-page,.cspv3f-portal-shell{--csp-surface:rgba(255,255,255,.78)}
.cspv3f-card,.cspv3f-card-mini,.cspv3f-frontend-card,.cspv3f-portal-hero{backdrop-filter:blur(10px)}
.cspv3f-portal-shell{align-items:start}
.cspv3f-portal-sidebar{position:sticky;top:24px;background:linear-gradient(180deg,#06152d 0%,#0e2c5a 45%,#112a46 100%)}
.cspv3f-portal-main>.cspv3f-card,.cspv3f-portal-main>.cspv3f-ai-card{overflow:hidden}
.cspv3f-portal-main>.cspv3f-card:before,.cspv3f-portal-main>.cspv3f-ai-card:before,.cspv3f-portal-hero:before{content:"";display:block;position:absolute}
.cspv3f-portal-main>.cspv3f-card,.cspv3f-portal-main>.cspv3f-ai-card,.cspv3f-portal-hero{position:relative}
.cspv3f-portal-main>.cspv3f-card:before,.cspv3f-portal-main>.cspv3f-ai-card:before{inset:auto -30px -30px auto;width:140px;height:140px;border-radius:999px;background:radial-gradient(circle,rgba(11,78,162,.08),transparent 70%)}
.cspv3f-portal-hero{border-radius:28px;padding:28px 30px;background:linear-gradient(135deg,#ffffff 0%,#eef4ff 45%,#f7fbff 100%)}
.cspv3f-portal-hero h2{font-size:42px;letter-spacing:-.02em}
.cspv3f-stat-card{border-radius:22px;box-shadow:0 14px 40px rgba(15,23,42,.06)}
.cspv3f-stat-value{letter-spacing:-.03em}
.cspv3f-portal-nav-link{box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.cspv3f-portal-nav-link strong{font-size:15px}
.cspv3f-table tbody tr:hover td{background:#fbfdff}
.cspv3f-table thead th{font-size:13px;text-transform:uppercase;letter-spacing:.03em}
.cspv3f-card-mini{border-radius:20px}
.cspv3f-frontend-grid div{border:1px solid #eaf0f7;background:linear-gradient(180deg,#ffffff,#f8fbff)}
.cspv3f-ai-card{border-top-color:#7c3aed}
.cspv3f-ai-chat{display:grid;gap:12px;margin-bottom:16px}
.cspv3f-ai-bubble{max-width:86%;padding:14px 16px;border-radius:18px;border:1px solid var(--csp-border);box-shadow:0 10px 24px rgba(15,23,42,.04)}
.cspv3f-ai-bubble strong{display:block;margin-bottom:6px;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.cspv3f-ai-bubble p{margin:0;color:var(--csp-slate);line-height:1.6}
.cspv3f-ai-bubble-system{background:#f8fafc;color:var(--csp-muted)}
.cspv3f-ai-bubble-user{justify-self:end;background:linear-gradient(135deg,#0b4ea2,#0e67d0);border-color:#0b4ea2}
.cspv3f-ai-bubble-user strong,.cspv3f-ai-bubble-user p{color:#fff}
.cspv3f-ai-bubble-assistant{background:linear-gradient(135deg,#faf5ff,#eef4ff);border-color:#ddd6fe}
.cspv3f-ai-form textarea{min-height:120px}
.cspv3f-portal-user{font-size:20px;letter-spacing:-.02em}
.cspv3f-logout-link{font-weight:700}
.cspv3f-page .notice{border-radius:16px;padding:8px 14px}
@media (max-width:782px){.cspv3f-portal-hero h2{font-size:32px}.cspv3f-ai-bubble{max-width:100%}}


.cspv3f-portal-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:-6px 0 2px}
.cspv3f-portal-tab{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:999px;text-decoration:none;background:#fff;border:1px solid #dbe7ff;color:var(--csp-slate);font-weight:700;box-shadow:0 8px 20px rgba(15,23,42,.05)}
.cspv3f-portal-tab.is-active,.cspv3f-portal-tab:hover{background:linear-gradient(135deg,#0b4ea2,#0e67d0);border-color:#0b4ea2;color:#fff}
.cspv3f-portal-main{padding-bottom:24px}
.cspv3f-portal-main>.cspv3f-card,.cspv3f-portal-main>.cspv3f-ai-card{border-radius:24px;box-shadow:0 20px 50px rgba(15,23,42,.07)}
.cspv3f-portal-sidebar:before{content:"";display:block;height:110px;border-radius:20px;background:radial-gradient(circle at top left,rgba(255,255,255,.20),transparent 60%),linear-gradient(135deg,rgba(14,103,208,.40),rgba(255,255,255,.04));margin-bottom:6px}
.cspv3f-portal-brand{position:relative;z-index:1}
.cspv3f-portal-user{border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.cspv3f-card-mini{box-shadow:0 12px 28px rgba(15,23,42,.04)}
.cspv3f-mini-stats .cspv3f-card{min-height:150px}
.cspv3f-mini-stats .cspv3f-stat-card{background:linear-gradient(180deg,#ffffff,#f7fbff)}
.cspv3f-table tbody tr:hover td{background:linear-gradient(180deg,#fbfdff,#f5faff)}
.cspv3f-tab-nav{padding:10px 12px;border-radius:18px;background:linear-gradient(180deg,#f8fbff,#eef4ff);border:1px solid #dbe7ff}
.cspv3f-tab-link{box-shadow:0 8px 18px rgba(15,23,42,.04)}
.cspv3f-ai-suggestions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.cspv3f-ai-chip{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#f6f0ff;color:#6d28d9;border:1px solid #e9ddff;font-size:12px;font-weight:700}
.cspv3f-ai-form .button-primary{min-width:190px}
.cspv3f-action-grid .cspv3f-action-tile{background:linear-gradient(180deg,#ffffff,#f8fbff);border-color:#dbe7ff}
.cspv3f-frontend-grid div{min-height:94px}
.cspv3f-form-stack input:focus,.cspv3f-form-stack select:focus,.cspv3f-form-stack textarea:focus,.cspv3f-filter-bar input:focus,.cspv3f-filter-bar select:focus,.cspv3f-search-form input:focus,.cspv3f-search-form select:focus{border-color:#0b4ea2;outline:none;box-shadow:0 0 0 3px rgba(11,78,162,.12)}
@media (max-width:782px){.cspv3f-portal-tabs{gap:8px}.cspv3f-portal-tab{width:100%}}


.cspv3f-portal-shell-front{width:min(100%,1680px);max-width:none}
.cspv3f-portal-shell-front .cspv3f-portal-main{min-width:0}
.cspv3f-portal-shell-front .cspv3f-card,.cspv3f-portal-shell-front .cspv3f-card-mini,.cspv3f-portal-shell-front .cspv3f-portal-hero{width:100%}
.cspv3f-portal-shell-front .cspv3f-table-wrap{max-width:100%}
.cspv3f-portal-shell-front .cspv3f-portal-sidebar{min-height:calc(100vh - 48px)}
.cspv3f-video-inline-frame{margin-top:16px;border:1px solid #dbe7ff;border-radius:22px;overflow:hidden;background:linear-gradient(180deg,#06152d,#112a46);box-shadow:0 18px 36px rgba(8,26,54,.16)}
.cspv3f-video-inline-frame-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:rgba(255,255,255,.06);color:#fff}
.cspv3f-video-inline-frame-head strong{font-size:14px;letter-spacing:.02em;text-transform:uppercase}
.cspv3f-video-inline-frame iframe{display:block;width:100%;min-height:560px;border:0;background:#0f172a}
.cspv3f-video-cta-note{padding:14px 16px;border-radius:16px;border:1px solid #dbe7ff;background:linear-gradient(180deg,#ffffff,#f8fbff);margin-top:14px}
.cspv3f-video-cta-note strong{display:block;margin-bottom:4px;color:var(--csp-slate)}
.cspv3f-video-disabled{opacity:.7;pointer-events:none}
@media (min-width:1200px){
    .cspv3f-portal-shell-front{max-width:none;width:calc(100vw - 32px);margin-left:calc(50% - 50vw + 16px);margin-right:calc(50% - 50vw + 16px)}
}
@media (max-width:1100px){
    .cspv3f-portal-shell-front{width:calc(100vw - 24px);margin-left:calc(50% - 50vw + 12px);margin-right:calc(50% - 50vw + 12px)}
    .cspv3f-portal-sidebar{position:relative;top:auto}
}
@media (max-width:782px){
    .cspv3f-portal-shell-front{width:calc(100vw - 16px);margin-left:calc(50% - 50vw + 8px);margin-right:calc(50% - 50vw + 8px);gap:14px}
    .cspv3f-portal-main{gap:14px}
    .cspv3f-portal-hero{padding:22px 18px}
    .cspv3f-card,.cspv3f-card-mini,.cspv3f-frontend-card{padding:16px}
    .cspv3f-video-inline-frame iframe{min-height:420px}
}
@media (max-width:640px){
    .cspv3f-portal-shell-front{width:100%;margin-left:0;margin-right:0}
    .cspv3f-portal-sidebar{border-radius:20px;padding:18px;min-height:auto}
    .cspv3f-portal-hero h2{font-size:28px}
    .cspv3f-video-inline-frame iframe{min-height:320px}
    .cspv3f-video-inline-frame-head{flex-direction:column;align-items:flex-start}
}

.cspv3f-gateway-table input,
.cspv3f-gateway-table select,
.cspv3f-gateway-table textarea{min-width:140px;width:100%}
.cspv3f-gateway-table textarea{min-height:88px;resize:vertical}
.cspv3f-switch-stack{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.cspv3f-switch-stack input{margin:0}

.cspv3f-portal-shell-front{
    width:100vw;
    max-width:none;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    margin-top:0;
    margin-bottom:36px;
    padding:0 clamp(14px,2vw,28px) 28px;
}
.cspv3f-portal-shell-front .cspv3f-portal-sidebar,
.cspv3f-portal-shell-front .cspv3f-portal-hero,
.cspv3f-portal-shell-front .cspv3f-card,
.cspv3f-portal-shell-front .cspv3f-card-mini,
.cspv3f-portal-shell-front .cspv3f-frontend-card{
    border-radius:24px;
}
.cspv3f-portal-shell-front .cspv3f-portal-main{gap:22px}
.cspv3f-portal-shell-front .cspv3f-portal-sidebar{top:18px}
.cspv3f-portal-tabs{display:flex;flex-wrap:wrap;gap:10px}
.cspv3f-portal-tab{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:999px;background:#fff;border:1px solid var(--csp-border);text-decoration:none;color:var(--csp-slate);font-weight:700}
.cspv3f-portal-tab.is-active{background:var(--csp-blue);border-color:var(--csp-blue);color:#fff}

.cspv3f-video-panel-patient .cspv3f-video-join-card{margin-top:16px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#f7fbff,#eef5ff);border:1px solid #d9e7ff}
.cspv3f-video-panel-patient .cspv3f-video-join-card h4{margin:0 0 6px;color:var(--csp-slate)}
.cspv3f-video-panel-patient iframe{width:100%;min-height:560px;border:0;border-radius:18px;background:#081a36}

@media (max-width: 1100px){
    .cspv3f-portal-shell-front{padding:0 14px 22px}
    .cspv3f-portal-shell-front .cspv3f-portal-sidebar{position:relative;top:auto}
}
@media (max-width: 782px){
    .cspv3f-portal-shell-front{width:100%;margin-left:0;margin-right:0;padding:0 10px 18px}
    .cspv3f-portal-shell-front .cspv3f-portal-sidebar{position:relative;top:auto;min-height:auto;padding:18px}
    .cspv3f-portal-shell-front .cspv3f-portal-hero{padding:20px}
    .cspv3f-video-panel-patient iframe{min-height:420px}
}

.cspv3f-auth-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:22px;max-width:1120px;margin:20px auto}
.cspv3f-auth-card{border-radius:28px;padding:28px 28px 24px;background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid #dbe7ff;box-shadow:0 20px 50px rgba(15,23,42,.08)}
.cspv3f-auth-card h3,.cspv3f-auth-card h4{margin-top:0;color:var(--csp-slate)}
.cspv3f-auth-kicker{display:inline-flex;margin-bottom:10px;padding:6px 12px;border-radius:999px;background:#eef4ff;color:#0b4ea2;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.cspv3f-auth-card .login-username,.cspv3f-auth-card .login-password,.cspv3f-auth-card .login-remember,.cspv3f-auth-card p{margin-bottom:14px}
.cspv3f-auth-card input[type=text],.cspv3f-auth-card input[type=password],.cspv3f-auth-card input[type=email],.cspv3f-auth-card input[type=url]{width:100%;min-height:48px;border-radius:14px;border:1px solid #dbe7ff;padding:12px 14px}
.cspv3f-auth-card .button,.cspv3f-auth-card button{border-radius:14px;min-height:46px;padding:0 18px}
.cspv3f-auth-list{margin:0;padding-left:18px;display:grid;gap:10px;color:var(--csp-muted)}
.cspv3f-portal-shell-front{width:calc(100vw - 12px);max-width:none;margin-left:calc(50% - 50vw + 6px);margin-right:calc(50% - 50vw + 6px);padding:0 6px 18px}
.cspv3f-portal-shell{gap:14px;padding:0}
.cspv3f-portal-sidebar{top:8px;border-radius:18px;padding:18px}
.cspv3f-portal-sidebar:before{height:80px;margin-bottom:0}
.cspv3f-portal-main{gap:14px}
.cspv3f-portal-hero{padding:18px 22px;margin-top:0}
.cspv3f-portal-hero h2{font-size:30px;margin-bottom:4px}
.cspv3f-portal-tabs{margin:0}
.cspv3f-portal-tab{padding:11px 14px}
.cspv3f-portal-nav{gap:8px}
.cspv3f-portal-nav-link{padding:12px 14px}
.cspv3f-portal-nav-link span{display:none}
.cspv3f-frontend-grid,.cspv3f-mini-stats{gap:14px}
.cspv3f-card,.cspv3f-card-mini,.cspv3f-frontend-card{border-radius:20px}
@media (max-width: 1200px){.cspv3f-portal-shell-front{width:100%;margin:0;padding:0}.cspv3f-portal-shell{grid-template-columns:1fr;gap:12px}.cspv3f-portal-sidebar{position:relative;top:0;min-height:auto}}
@media (max-width: 782px){.cspv3f-auth-layout{grid-template-columns:1fr}.cspv3f-portal-shell-front{width:100%;margin:0;padding:0}.cspv3f-portal-hero{padding:16px 18px}.cspv3f-portal-hero h2{font-size:24px}.cspv3f-portal-sidebar{padding:14px;border-radius:16px}.cspv3f-portal-shell{gap:10px}.cspv3f-portal-main{gap:10px}}

.cspv3f-video-preview-shell{display:flex;flex-direction:column;justify-content:space-between;min-height:420px;padding:20px;background:radial-gradient(circle at top left,#133766,#06152d 35%,#091a33 70%);color:#fff}
.cspv3f-video-preview-camera{flex:1;border-radius:22px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.cspv3f-video-preview-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.08)}
.cspv3f-portal-toggle{display:none;position:sticky;top:12px;z-index:30;margin:10px 0 0 10px;padding:10px 14px;border-radius:999px;border:1px solid #dbe7ff;background:#0b4ea2;color:#fff;font-weight:700;box-shadow:0 10px 22px rgba(11,78,162,.22)}
body.cspv3f-portal-menu-open{overflow:hidden}
@media (max-width: 782px){
  .cspv3f-portal-toggle{display:inline-flex;align-items:center;gap:8px}
  .cspv3f-portal-shell-front{position:relative;padding-top:6px}
  .cspv3f-portal-shell-front .cspv3f-portal-sidebar{position:fixed!important;left:8px;top:58px;bottom:8px;width:min(86vw,320px);max-width:320px;overflow:auto;transform:translateX(-120%);transition:transform .24s ease, box-shadow .24s ease;z-index:40}
  .cspv3f-portal-shell-front .cspv3f-portal-sidebar.is-open{transform:translateX(0);box-shadow:0 30px 60px rgba(15,23,42,.28)}
  .cspv3f-portal-shell-front .cspv3f-portal-main{width:100%}
  .cspv3f-video-preview-shell{min-height:260px}
}

.cspv3f-workflow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cspv3f-workflow-step{padding:8px 10px;border-radius:999px;background:#eef2f7;color:#64748b;font-size:12px;font-weight:700;border:1px solid #d7e0ea}
.cspv3f-workflow-step.is-done{background:#e8f7ee;border-color:#b6e3c3;color:#166534}
.cspv3f-video-inline-frame iframe,.cspv3f-video-join-card iframe{width:100%;min-height:430px;border:0;border-radius:22px;background:#0b1730}
.cspv3f-video-inline-frame,.cspv3f-video-join-card{margin-top:16px;border:1px solid #dbe7ff;border-radius:22px;padding:18px;background:#fff}
.cspv3f-video-inline-frame-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}
@media (max-width: 782px){.cspv3f-video-inline-frame iframe,.cspv3f-video-join-card iframe{min-height:260px}.cspv3f-video-inline-frame-head{flex-direction:column;align-items:flex-start}.cspv3f-workflow-step{font-size:11px;padding:7px 9px}}

.cspv3f-booking-highlight{border:1px solid #dbe7ff;border-radius:16px;padding:14px;background:linear-gradient(135deg,rgba(11,78,162,.06),rgba(53,168,83,.05));}
.cspv3f-video-panel .cspv3f-table-wrap{margin-bottom:16px}
.cspv3f-portal-shell-front .cspv3f-card-span-2{grid-column:span 2}
@media (max-width: 960px){.cspv3f-portal-shell-front .cspv3f-card-span-2{grid-column:auto}}
.cspv3f-auth-card-main p,.cspv3f-auth-card-side li{line-height:1.6}
.cspv3f-video-join-card iframe,.cspv3f-video-inline-frame iframe{min-height:380px;width:100%;border:0;border-radius:18px;background:#0f172a}
@media (max-width: 782px){.cspv3f-video-join-card iframe,.cspv3f-video-inline-frame iframe{min-height:260px}}


.cspv3f-auth-layout-single{grid-template-columns:minmax(0,680px);justify-content:center}
.cspv3f-notice-feed{display:grid;gap:12px}
.cspv3f-notice-item{display:grid;gap:4px;padding:14px 16px;border:1px solid #dbe7ff;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff)}
.cspv3f-notice-item span,.cspv3f-notice-item small{color:var(--csp-muted)}
.cspv3f-portal-overlay{display:none}
@media (max-width: 782px){
  .cspv3f-portal-shell-front{padding:0 8px 16px}
  .cspv3f-portal-shell-front .cspv3f-portal-main{padding-bottom:10px}
  .cspv3f-portal-shell-front .cspv3f-portal-sidebar{left:0;top:0;bottom:0;width:min(88vw,340px);max-width:340px;border-radius:0 22px 22px 0;padding:18px 14px 20px}
  .cspv3f-portal-toggle{position:sticky;top:6px;margin:4px 0 8px 0;width:100%;justify-content:flex-start}
  .cspv3f-portal-tabs{display:none}
  .cspv3f-portal-brand span,.cspv3f-portal-nav-link span{display:block}
  .cspv3f-portal-nav-link{padding:14px 16px;border-radius:18px}
  .cspv3f-portal-hero{padding:18px 16px;border-radius:20px}
  .cspv3f-portal-hero h2{font-size:22px;line-height:1.15}
  .cspv3f-card,.cspv3f-card-mini,.cspv3f-frontend-card{padding:18px 16px}
  .cspv3f-auth-card{padding:22px 18px}
  .cspv3f-portal-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.35);opacity:0;pointer-events:none;transition:opacity .22s ease;z-index:39}
  .cspv3f-portal-overlay.is-open{opacity:1;pointer-events:auto}
}

.cspv3f-auth-alert{margin:0 0 16px;padding:14px 16px;border-radius:16px;border:1px solid #dbe7ff;font-weight:600}
.cspv3f-auth-alert-error{background:linear-gradient(180deg,#fff5f5,#fff);border-color:#fecaca;color:#991b1b}
.cspv3f-auth-alert-success{background:linear-gradient(180deg,#effcf3,#fff);border-color:#bbf7d0;color:#166534}
.cspv3f-auth-form label{display:block;font-weight:700;color:var(--csp-slate);margin-bottom:6px}
.cspv3f-auth-form .login-remember label{display:flex;align-items:center;gap:10px;font-weight:600}
.cspv3f-auth-form button,.cspv3f-auth-form .button{width:100%;justify-content:center}

.cspv3f-portal-shell-front .cspv3f-portal-main > *{min-width:0}
.cspv3f-portal-shell-front .cspv3f-card,.cspv3f-portal-shell-front .cspv3f-card-mini{overflow:hidden}
.cspv3f-portal-shell-front .cspv3f-table-wrap{overflow:auto hidden}

@media (max-width: 782px){
  .cspv3f-portal-shell-front{padding:0 10px 22px!important}
  .cspv3f-portal-shell-front .cspv3f-portal-main{gap:14px}
  .cspv3f-portal-shell-front .cspv3f-portal-sidebar{width:min(84vw,320px);padding:18px 14px 24px;box-shadow:none}
  .cspv3f-portal-shell-front .cspv3f-portal-sidebar.is-open{box-shadow:0 24px 48px rgba(15,23,42,.24)}
  .cspv3f-portal-shell-front .cspv3f-portal-nav{display:grid;gap:10px}
  .cspv3f-portal-shell-front .cspv3f-portal-nav-link{display:block}
  .cspv3f-portal-shell-front .cspv3f-portal-nav-link strong{display:block;font-size:17px}
  .cspv3f-portal-shell-front .cspv3f-portal-nav-link span{display:block;margin-top:4px;color:#cbd5e1}
  .cspv3f-portal-shell-front .cspv3f-portal-user{margin:14px 0 8px}
  .cspv3f-portal-shell-front .cspv3f-portal-hero{margin-top:0}
  .cspv3f-portal-shell-front .cspv3f-grid,.cspv3f-portal-shell-front .cspv3f-frontend-grid{grid-template-columns:1fr!important}
  .cspv3f-portal-shell-front .cspv3f-mini-stats{grid-template-columns:1fr 1fr!important}
  .cspv3f-portal-shell-front .cspv3f-card-span-2{grid-column:auto!important}
  .cspv3f-portal-shell-front .cspv3f-table{min-width:680px}
}


.cspv3f-auth-kicker{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:linear-gradient(180deg,#eef4ff,#f7fbff);color:var(--csp-blue);font-weight:700;font-size:12px;margin-bottom:14px}
.cspv3f-auth-card h3{font-size:36px;letter-spacing:-.02em;margin:0 0 10px}
.cspv3f-auth-form input[type=password],.cspv3f-auth-form input[type=text],.cspv3f-auth-form input[type=email]{background:#fff!important}
.cspv3f-auth-form input::selection{background:rgba(11,78,162,.18);color:#0f172a}
.cspv3f-pass-wrap{max-width:none}
.cspv3f-eye{right:12px;border-radius:999px;padding:4px 6px}
.cspv3f-auth-inline{margin-top:4px}
.cspv3f-portal-shell-front{margin-top:0!important;padding-top:0!important}
.cspv3f-portal-shell{margin-top:0!important;padding-top:0!important}
.cspv3f-portal-shell-front .cspv3f-portal-sidebar,.cspv3f-portal-shell-front .cspv3f-portal-main{margin-top:0!important}
.site-header,.ast-container,.entry-content .cspv3f-portal-shell-front{margin-top:0!important}
.cspv3f-table td,.cspv3f-table th,.cspv3f-frontend-grid div,.cspv3f-card,.cspv3f-card-mini,.cspv3f-frontend-card,.cspv3f-portal-nav-link,strong,span,p,h2,h3{user-select:text}
.cspv3f-patient-frontend,.cspv3f-auth-layout,.cspv3f-portal-shell-front{max-width:none}
@media (max-width:782px){
  .cspv3f-portal-shell-front{padding-top:0!important}
  .cspv3f-auth-card h3{font-size:28px}
}


/* Batch 22 - commercial video player polish */
.cspv3f-video-panel-portal{grid-template-columns:minmax(0,1fr)}
.cspv3f-video-panel-portal>.cspv3f-video-box-main{order:1}
.cspv3f-video-panel-portal>:not(.cspv3f-video-box-main){order:2}
.cspv3f-video-inline-frame,.cspv3f-video-join-card{margin-top:16px;border:1px solid #dbe7ff;border-radius:24px;overflow:hidden;background:linear-gradient(180deg,#06152d,#112a46);box-shadow:0 22px 44px rgba(8,26,54,.18)}
.cspv3f-video-player{position:relative}
.cspv3f-video-inline-frame-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 18px;background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.04));color:#fff}
.cspv3f-video-inline-frame-head>div:first-child{display:grid;gap:4px}
.cspv3f-video-screen-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cspv3f-video-screen-btn{min-width:136px;text-align:center}
.cspv3f-video-canvas-shell{padding:16px;background:linear-gradient(180deg,#07152d,#0b1f3c)}
.cspv3f-video-canvas-shell iframe,.cspv3f-video-inline-frame iframe,.cspv3f-video-panel-patient iframe{display:block;width:100%;min-height:74vh;border:0;border-radius:20px;background:#07152d}
.cspv3f-video-control-dock{display:flex;flex-wrap:wrap;gap:10px;padding:14px 16px;border-top:1px solid rgba(255,255,255,.08);background:rgba(6,21,45,.92);position:sticky;bottom:0;z-index:3}
.cspv3f-video-dock-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border-radius:999px;font-weight:700}
.cspv3f-video-dock-btn-end{background:#7f1d1d!important;border-color:#7f1d1d!important;color:#fff!important}
.cspv3f-video-preview-shell{display:grid;grid-template-rows:1fr auto auto;gap:16px;min-height:62vh;padding:24px;background:radial-gradient(circle at top left,#173f75,#06152d 35%,#091a33 70%);color:#fff}
.cspv3f-video-preview-grid{display:grid;gap:14px;align-content:end}
.cspv3f-video-preview-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cspv3f-video-preview-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cspv3f-video-preview-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.cspv3f-video-preview-tile{display:flex;align-items:end;justify-content:flex-start;min-height:120px;padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.16);background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);font-weight:700}
.cspv3f-video-preview-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.08)}
.cspv3f-video-field .regular-text.code{width:100%;max-width:100%}
@media (max-width:1100px){.cspv3f-video-canvas-shell iframe,.cspv3f-video-inline-frame iframe,.cspv3f-video-panel-patient iframe,.cspv3f-video-preview-shell{min-height:60vh}}
@media (max-width:782px){.cspv3f-video-inline-frame-head{flex-direction:column;align-items:flex-start}.cspv3f-video-screen-tools,.cspv3f-video-control-dock{width:100%}.cspv3f-video-screen-btn,.cspv3f-video-dock-btn{width:100%}.cspv3f-video-preview-grid-2,.cspv3f-video-preview-grid-3,.cspv3f-video-preview-grid-4{grid-template-columns:1fr}.cspv3f-video-canvas-shell iframe,.cspv3f-video-inline-frame iframe,.cspv3f-video-panel-patient iframe,.cspv3f-video-preview-shell{min-height:48vh}}

/* Batch 23A quick stabilization */
.cspv3f-portal-tabs{display:none!important}
.cspv3f-card-video-priority{margin-top:0!important}
.cspv3f-profile-summary{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;align-items:center;padding:0 0 18px;border-bottom:1px solid #e7eefb;margin-bottom:18px}
.cspv3f-profile-summary-media img{width:112px;height:112px;object-fit:cover;border-radius:24px;display:block;border:1px solid #d7e4fb;box-shadow:0 10px 24px rgba(15,23,42,.08)}
.cspv3f-profile-avatar-placeholder{width:112px;height:112px;border-radius:24px;background:linear-gradient(135deg,#0b2f63,#123f7d);color:#fff;display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:700;box-shadow:0 10px 24px rgba(15,23,42,.12)}
.cspv3f-profile-summary-body h3{margin:0 0 8px;font-size:30px;line-height:1.1}
.cspv3f-profile-summary-body p{margin:0 0 12px;color:#526277}
.cspv3f-profile-doc-links{display:flex;flex-wrap:wrap;gap:10px}
.cspv3f-video-panel-portal .cspv3f-video-box-main{grid-column:1 / span 2}
.cspv3f-video-panel-portal{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px;align-items:start}
.cspv3f-video-inline-frame-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.cspv3f-video-screen-tools{display:flex;flex-wrap:wrap;gap:10px}
.cspv3f-video-canvas-shell{min-height:420px}
.cspv3f-video-canvas-shell iframe{width:100%;min-height:420px;border:0;border-radius:24px;background:#0b1730}
.cspv3f-video-preview-shell{min-height:420px;display:flex;flex-direction:column;justify-content:space-between}
.cspv3f-video-preview-grid{display:grid;gap:14px;height:100%;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.cspv3f-video-preview-grid-2 .cspv3f-video-preview-tile{min-height:210px}
.cspv3f-video-preview-tile{display:flex;align-items:center;justify-content:center;border-radius:18px;background:linear-gradient(135deg,rgba(16,42,92,.95),rgba(12,26,56,.98));color:#fff;font-weight:700;letter-spacing:.02em}
.cspv3f-video-control-dock{display:flex;flex-wrap:wrap;gap:10px;position:sticky;bottom:10px;padding-top:14px;margin-top:14px;border-top:1px solid #dbe7ff;background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.96))}
.cspv3f-video-dock-btn{min-width:132px;text-align:center;border-radius:14px!important}
@media (max-width: 960px){
  .cspv3f-profile-summary{grid-template-columns:1fr}
  .cspv3f-video-panel-portal{grid-template-columns:1fr}
  .cspv3f-video-panel-portal .cspv3f-video-box-main{grid-column:auto}
}
@media (max-width: 782px){
  .cspv3f-portal-shell-front .cspv3f-portal-sidebar{width:min(78vw,290px)!important}
  .cspv3f-video-canvas-shell,.cspv3f-video-canvas-shell iframe,.cspv3f-video-preview-shell{min-height:300px}
  .cspv3f-video-preview-grid{grid-template-columns:1fr 1fr}
  .cspv3f-video-preview-grid-2 .cspv3f-video-preview-tile{min-height:140px}
  .cspv3f-video-control-dock{position:sticky;bottom:0;padding-bottom:8px}
}

.cspv3f-chat-thread{display:flex;flex-direction:column;gap:12px;max-height:420px;overflow:auto;padding:10px 0}
.cspv3f-chat-message{background:#f7f9fc;border:1px solid #d8e1ef;border-radius:16px;padding:12px 14px;max-width:88%}
.cspv3f-chat-message.is-mine{margin-left:auto;background:#eef5ff;border-color:#b9d1ff}
.cspv3f-chat-meta{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#5d6b82;margin-bottom:6px}
.cspv3f-chat-text p{margin:0}
.cspv3f-chat-form{margin-top:12px}
.cspv3f-workflow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cspv3f-workflow-step{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#eef2f7;border:1px solid #d5deea;font-size:12px;font-weight:700;color:#56657d}
.cspv3f-workflow-step.is-done{background:#e7f7ed;border-color:#9fd2ad;color:#19663b}
.cspv3f-workflow-dot{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:#cbd5e1;color:#0f172a;font-size:11px}
.cspv3f-workflow-step.is-done .cspv3f-workflow-dot{background:#23a55a;color:#fff}

.cspv3f-profile-inline-preview img{max-width:120px;max-height:120px;border-radius:18px;display:block;border:1px solid #d9dee8;margin-top:8px;}
.cspv3f-notice-feed-compact .cspv3f-notice-item{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.cspv3f-notice-feed-compact .cspv3f-notice-item strong{display:block;margin-bottom:4px;}
.cspv3f-video-panel-portal .cspv3f-video-box-main{position:sticky;top:16px;}


.cspv3f-section-head-tight{margin-bottom:10px}.cspv3f-section-head-tight p{display:none}
.cspv3f-notice-card{position:relative}.cspv3f-notice-feed{display:grid;gap:10px}.cspv3f-notice-item{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid #e5edf7;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbff)}
.cspv3f-notice-item strong{display:block;margin-bottom:4px;color:var(--csp-slate)}.cspv3f-notice-item span,.cspv3f-notice-item small{display:block;color:var(--csp-muted)}
.cspv3f-chat-card{padding:18px}.cspv3f-chat-thread{display:grid;gap:10px;max-height:440px;overflow:auto;padding:8px;border:1px solid #e6eef8;border-radius:18px;background:linear-gradient(180deg,#fbfdff,#f6f9fc)}
.cspv3f-chat-row{display:flex}.cspv3f-chat-row.is-mine{justify-content:flex-end}.cspv3f-chat-message{background:#fff;border:1px solid #d8e1ef;border-radius:18px;padding:12px 14px;max-width:min(86%,640px);box-shadow:0 8px 20px rgba(15,23,42,.04)}
.cspv3f-chat-message.is-mine{background:linear-gradient(135deg,#0b4ea2,#0f67d0);border-color:#0b4ea2}.cspv3f-chat-message.is-mine .cspv3f-chat-meta strong,.cspv3f-chat-message.is-mine .cspv3f-chat-meta span,.cspv3f-chat-message.is-mine .cspv3f-chat-text,.cspv3f-chat-message.is-mine .cspv3f-chat-text p{color:#fff}
.cspv3f-chat-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}.cspv3f-chat-meta span{font-size:11px;color:var(--csp-muted)}.cspv3f-chat-text p{margin:0;line-height:1.6}
.cspv3f-chat-form{margin-top:14px;padding:14px;border:1px solid #e6eef8;border-radius:18px;background:#fff}
.cspv3f-profile-summary{display:grid;grid-template-columns:92px minmax(0,1fr);gap:16px;align-items:center;padding:16px;border:1px solid #e7eef8;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbff);margin-bottom:16px}
.cspv3f-profile-avatar img{width:92px;height:92px;object-fit:cover;border-radius:22px;border:3px solid #fff;box-shadow:0 10px 24px rgba(15,23,42,.1)}.cspv3f-profile-avatar-placeholder{width:92px;height:92px;border-radius:22px;background:#0b4ea2;color:#fff;display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:800}
.cspv3f-profile-summary-body h3{margin:0 0 6px;font-size:24px}.cspv3f-profile-summary-body p{margin:0 0 10px;color:var(--csp-muted)}.cspv3f-profile-doc-links{display:flex;flex-wrap:wrap;gap:8px}
.cspv3f-video-panel-portal .cspv3f-video-box-main,.cspv3f-video-panel-patient .cspv3f-video-box-main{position:sticky;top:24px}.cspv3f-video-box-head p,.cspv3f-video-cta-note,.cspv3f-video-field{display:none}
.cspv3f-video-inline-frame,.cspv3f-video-join-card{border:1px solid #dbe6f3;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff);padding:14px;box-shadow:0 16px 36px rgba(15,23,42,.06)}
.cspv3f-video-inline-frame-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.cspv3f-video-inline-frame-head strong{font-size:18px;color:var(--csp-slate)}
.cspv3f-video-canvas-shell iframe{width:100%;min-height:62vh;border:0;border-radius:18px;background:#0b1220}.cspv3f-video-preview-shell{min-height:58vh;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#dbeafe,#eff6ff)}
.cspv3f-video-control-dock{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start;padding-top:12px}.cspv3f-video-dock-btn{border-radius:999px;min-height:42px;padding:0 16px;display:inline-flex;align-items:center}.cspv3f-video-dock-btn-end{background:#fff1f2!important;border-color:#fecdd3!important;color:#b91c1c!important}
.cspv3f-video-player{overflow:hidden}.cspv3f-workflow{display:flex;flex-wrap:wrap;gap:10px}.cspv3f-workflow-step{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0}.cspv3f-workflow-step.is-done{background:#ecfdf3;border-color:#bbf7d0}.cspv3f-workflow-dot{width:24px;height:24px;border-radius:999px;background:#dbeafe;color:#0b4ea2;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.cspv3f-workflow-step.is-done .cspv3f-workflow-dot{background:#16a34a;color:#fff}
@media (max-width:1100px){.cspv3f-video-panel{grid-template-columns:1fr}.cspv3f-video-panel-portal .cspv3f-video-box-main,.cspv3f-video-panel-patient .cspv3f-video-box-main{position:relative;top:0}.cspv3f-profile-summary{grid-template-columns:1fr}}
@media (max-width:782px){.cspv3f-chat-message{max-width:100%}.cspv3f-video-canvas-shell iframe,.cspv3f-video-preview-shell{min-height:44vh}.cspv3f-video-inline-frame-head{flex-direction:column;align-items:flex-start}}

.cspv3f-chat-day{display:flex;justify-content:center;margin:6px 0 4px}
.cspv3f-chat-day span{display:inline-block;padding:4px 10px;border-radius:999px;background:#eaf1fb;color:#46607d;font-size:11px;font-weight:700}
.cspv3f-chat-form textarea{min-height:96px}
.cspv3f-video-player{position:sticky;top:24px;z-index:5}
.cspv3f-video-subtle{font-size:12px;color:#dbeafe}
.cspv3f-video-box-head h3{margin-bottom:0}
.cspv3f-video-box-head{align-items:flex-start}

.cspv3f-history-folders{display:grid;grid-template-columns:1fr;gap:16px}.cspv3f-history-folder{border:1px solid #d9e2ec;border-radius:18px;background:#fff;padding:18px}.cspv3f-history-folder-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;font-weight:700}.cspv3f-history-folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cspv3f-history-file-list .button{margin:0 8px 8px 0}.cspv3f-chat-actions{margin-top:8px}.cspv3f-chat-delete-form{display:none}.cspv3f-chat-form textarea{min-height:120px}.cspv3f-video-pill-ringing{background:#fff3cd;color:#946200}.cspv3f-video-pill-rejected{background:#fee2e2;color:#991b1b}.cspv3f-wallet-balance{font-size:28px;font-weight:800}.cspv3f-video-control-dock .button{margin-right:8px;margin-bottom:8px}.cspv3f-card .cspv3f-history-folder .cspv3f-workflow{margin-top:8px}@media (max-width:900px){.cspv3f-history-folder-grid{grid-template-columns:1fr}}


.cspv3f-chat-attachment-preview{margin-top:10px}
.cspv3f-chat-attachment-preview img{display:block;max-width:260px;border-radius:14px;border:1px solid #dbe6f3}
.cspv3f-chat-attachment-preview audio,.cspv3f-chat-attachment-preview video{display:block;max-width:320px;width:100%;border-radius:14px;background:#0f172a}
.cspv3f-history-folder{overflow:hidden}
.cspv3f-history-folder > summary{cursor:pointer;list-style:none}
.cspv3f-history-folder > summary::-webkit-details-marker{display:none}
.cspv3f-history-subfolder{border:1px solid #e5edf7;border-radius:16px;padding:14px;background:#fbfdff}
.cspv3f-history-nested-list{margin:10px 0 0 18px}
.cspv3f-history-nested-list li{margin:0 0 8px}
.cspv3f-video-local-tools{padding-top:10px;color:#64748b;font-size:12px}
.cspv3f-video-ui-toggle.is-active{background:#0f766e!important;border-color:#0f766e!important;color:#fff!important}
.cspv3f-action-tile,.cspv3f-card-mini{transition:all .2s ease}
.cspv3f-action-tile:hover,.cspv3f-card-mini:hover{transform:translateY(-1px);box-shadow:0 12px 30px rgba(15,23,42,.08)}


/* Batch 30 - rebuild compact commercial video + messenger */
.cspv3f-table td,.cspv3f-table th,.cspv3f-frontend-grid div,.cspv3f-card,.cspv3f-card-mini,.cspv3f-frontend-card,.cspv3f-portal-nav-link,strong,span,p,h2,h3{user-select:auto}
a,.button,button,[role="button"],.cspv3f-portal-nav-link{cursor:pointer!important}
.cspv3f-video-compact-ui .cspv3f-video-box-main{padding:14px 14px 12px;border-radius:20px}
.cspv3f-video-box-head-compact{margin-bottom:10px;align-items:center}
.cspv3f-video-box-title-row{display:flex;flex-direction:column;gap:2px}
.cspv3f-video-box-title-row h3{margin:0;font-size:18px;line-height:1.2}
.cspv3f-video-box-subtitle{font-size:12px;color:#64748b}
.cspv3f-video-stage{position:sticky;top:12px;border-radius:20px;overflow:hidden;background:#07152d;box-shadow:0 18px 40px rgba(2,6,23,.18)}
.cspv3f-video-stage-canvas iframe{display:block;width:100%;min-height:44vh;max-height:64vh;border:0;background:#07152d}
.cspv3f-video-placeholder{min-height:40vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at top left,#163f7b,#07152d 38%,#091a33 72%);padding:28px}
.cspv3f-video-placeholder-main{display:grid;gap:10px;justify-items:center;text-align:center;color:#fff;max-width:420px}
.cspv3f-video-placeholder-main .dashicons{font-size:34px;width:34px;height:34px}
.cspv3f-video-placeholder-main strong{font-size:22px;color:#fff}
.cspv3f-video-placeholder-main small{font-size:13px;line-height:1.6;color:rgba(255,255,255,.82)}
.cspv3f-video-stage-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:min(100%,420px);margin-top:8px}
.cspv3f-video-thumb{display:flex;align-items:flex-end;justify-content:flex-start;min-height:90px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#fff;font-weight:600}
.cspv3f-video-overlay-controls{position:absolute;left:12px;right:12px;bottom:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;z-index:4}
.cspv3f-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:none;border-radius:999px;background:rgba(15,23,42,.86);color:#fff;text-decoration:none;box-shadow:0 8px 18px rgba(2,6,23,.22)}
.cspv3f-icon-btn .dashicons{font-size:18px;width:18px;height:18px}
.cspv3f-icon-btn:hover{background:rgba(15,23,42,.95);color:#fff}
.cspv3f-icon-btn-primary{background:#0b5ed7}
.cspv3f-icon-btn-success{background:#15803d}
.cspv3f-icon-btn-danger{background:#b91c1c}
.cspv3f-video-under-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding-top:12px}
.cspv3f-video-under-meta>div{display:grid;gap:3px;padding:10px 12px;border:1px solid #e6eef8;border-radius:14px;background:#fff}
.cspv3f-video-under-meta strong{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
.cspv3f-video-under-meta span{font-size:13px;color:#0f172a}
.cspv3f-video-local-tools,.cspv3f-video-room-meta,.cspv3f-local-preview-card,.cspv3f-video-preview-shell,.cspv3f-video-screen-tools,.cspv3f-video-field,.cspv3f-video-cta-note{display:none!important}
.cspv3f-chat-card-compact{padding:0;overflow:hidden}
.cspv3f-chat-shell{display:grid;grid-template-rows:auto minmax(260px,1fr) auto;background:#fff;border:1px solid #e5edf7;border-radius:18px;overflow:hidden}
.cspv3f-chat-shell-head{padding:12px 14px;border-bottom:1px solid #e8eef7;background:#fbfdff}
.cspv3f-chat-shell-head h2{margin:0;font-size:16px}
.cspv3f-chat-shell-head p{margin:2px 0 0;font-size:12px;color:#64748b}
.cspv3f-chat-shell-body{padding:12px}
.cspv3f-chat-thread{max-height:360px;min-height:240px;padding:4px;border:none;background:transparent}
.cspv3f-chat-row{display:flex}.cspv3f-chat-row.is-mine{justify-content:flex-end}
.cspv3f-chat-message{max-width:min(82%,420px);padding:10px 12px;border-radius:18px;background:#f4f7fb;border:1px solid #e1e8f2;box-shadow:none}
.cspv3f-chat-message.is-mine{background:#0b5ed7;border-color:#0b5ed7}
.cspv3f-chat-message.is-mine .cspv3f-chat-meta strong,.cspv3f-chat-message.is-mine .cspv3f-chat-meta span,.cspv3f-chat-message.is-mine .cspv3f-chat-text,.cspv3f-chat-message.is-mine .cspv3f-chat-text p{color:#fff}
.cspv3f-chat-meta{margin-bottom:6px}.cspv3f-chat-meta strong{font-size:12px}.cspv3f-chat-meta span{font-size:10px}
.cspv3f-chat-text p{line-height:1.45}
.cspv3f-chat-composer{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;padding:10px 12px;border-top:1px solid #e8eef7;background:#fff}
.cspv3f-chat-composer textarea{resize:none;min-height:42px;max-height:96px;border:1px solid #dbe4f0;border-radius:14px;padding:10px 12px;line-height:1.4;box-shadow:none;margin:0}
.cspv3f-chat-attachment-input{display:none}
.cspv3f-chat-delete-btn{width:28px;height:28px;background:#fff;color:#475569;box-shadow:none;border:1px solid #e2e8f0}
.cspv3f-chat-actions{margin-top:6px}
.cspv3f-chat-attachment-preview img{max-width:180px}.cspv3f-chat-attachment-preview audio,.cspv3f-chat-attachment-preview video{max-width:220px}
@media (max-width:900px){.cspv3f-video-under-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:782px){.cspv3f-video-stage{top:0}.cspv3f-video-stage-canvas iframe,.cspv3f-video-placeholder{min-height:34vh}.cspv3f-video-stage-thumbs{grid-template-columns:1fr 1fr}.cspv3f-video-overlay-controls{left:10px;right:10px;bottom:10px}.cspv3f-chat-composer{grid-template-columns:auto 1fr auto auto;padding:8px}.cspv3f-video-under-meta{grid-template-columns:1fr 1fr}.cspv3f-icon-btn{width:40px;height:40px}}


/* Batch 33 polish */
.cspv3f-profile-hero{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid #e7edf5;border-radius:22px;background:linear-gradient(180deg,#ffffff,#f8fbff);box-shadow:0 14px 28px rgba(15,23,42,.04)}
.cspv3f-profile-avatar{width:92px;height:92px;border-radius:24px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0b4ea2,#1d4ed8);color:#fff;font-size:42px;font-weight:800;flex:0 0 92px}
.cspv3f-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.cspv3f-profile-hero h3{margin:0;font-size:22px;letter-spacing:-.02em}
.cspv3f-profile-hero p{margin:6px 0 0;color:var(--csp-muted)}
.cspv3f-portal-hero{padding:22px 24px;border-radius:24px}
.cspv3f-portal-hero h2{font-size:28px;margin:0 0 6px}
.cspv3f-portal-hero p{margin:0;font-size:14px}
.cspv3f-mini-stats .cspv3f-card{min-height:132px}
.cspv3f-mini-stats .cspv3f-stat-card{padding:16px}
.cspv3f-tab-nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.cspv3f-tab-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:999px;background:#fff;border:1px solid #dbe7ff;text-decoration:none;font-weight:700;color:var(--csp-slate)}
.cspv3f-tab-active,.cspv3f-tab-link:hover{background:linear-gradient(135deg,#0b4ea2,#0e67d0);border-color:#0b4ea2;color:#fff}
.cspv3f-form-stack input[type=url],.cspv3f-form-stack input[type=email],.cspv3f-form-stack input[type=text]{font-size:16px}
@media (max-width:820px){.cspv3f-profile-hero{padding:14px;border-radius:18px}.cspv3f-profile-avatar{width:72px;height:72px;border-radius:18px;font-size:32px}.cspv3f-portal-hero{padding:18px}.cspv3f-portal-hero h2{font-size:24px}}

.cspv3f-chat-voice-meter{display:none;align-items:flex-end;gap:3px;height:34px;padding:0 12px 10px;border-top:1px dashed #e6edf6;background:#fbfdff}.cspv3f-chat-voice-meter.is-active{display:flex}.cspv3f-chat-voice-meter span{display:block;width:4px;height:8px;border-radius:99px;background:#0b5ed7;opacity:.7;transition:height .08s ease}

.cspv3f-ai-launcher{position:fixed;right:18px;bottom:92px;z-index:9998}
.cspv3f-ai-fab{width:54px;height:54px;border:none;border-radius:999px;background:#0b5fd7;color:#fff;box-shadow:0 12px 30px rgba(11,95,215,.28);display:flex;align-items:center;justify-content:center;cursor:pointer}
.cspv3f-ai-fab .dashicons{font-size:24px;width:24px;height:24px}
.cspv3f-ai-panel{position:fixed;right:82px;bottom:92px;width:min(420px,calc(100vw - 120px));height:min(640px,70vh);background:#fff;border:1px solid #d7e3f4;border-radius:22px;box-shadow:0 28px 70px rgba(15,23,42,.18);overflow:hidden;display:flex;flex-direction:column;z-index:9999}
.cspv3f-ai-panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e7eef7}
.cspv3f-ai-close{border:none;background:transparent;cursor:pointer;color:#3a4b66}
.cspv3f-ai-panel-helper{margin:0;padding:10px 16px;color:#63748b;font-size:13px;border-bottom:1px solid #eef3f9}
.cspv3f-ai-panel-frame{width:100%;height:100%;border:0;flex:1;background:#fff}
.cspv3f-ai-panel-empty{padding:18px;color:#63748b}
.cspv3f-chat-card-compact{max-width:760px}
.cspv3f-chat-card-compact .cspv3f-chat-thread{min-height:260px;max-height:420px}
.cspv3f-chat-card-compact .cspv3f-chat-composer{position:sticky;bottom:0;background:#fff}
@media (max-width: 900px){.cspv3f-ai-panel{right:14px;left:14px;width:auto;height:62vh;bottom:84px}.cspv3f-ai-launcher{right:14px;bottom:84px}.cspv3f-chat-card-compact{max-width:none}}

.cspv3f-ai-close{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;transition:background .18s ease,color .18s ease}
.cspv3f-ai-close:hover,.cspv3f-ai-close:focus{background:rgba(220,38,38,.10);color:#dc2626}
.cspv3f-ai-close .dashicons{font-size:20px;width:20px;height:20px}
.cspv3f-ai-panel{right:18px;bottom:92px;width:min(380px,calc(100vw - 48px));height:min(520px,66vh)}
.cspv3f-chat-card-compact{max-width:560px!important;margin-left:auto}
.cspv3f-chat-card-compact .cspv3f-chat-thread{min-height:180px;max-height:300px}
.cspv3f-chat-card-compact .cspv3f-chat-shell-head{padding:12px 14px}
.cspv3f-chat-card-compact .cspv3f-chat-shell-head p{display:none}
.cspv3f-chat-card-compact .cspv3f-chat-shell-body{padding:12px}
.cspv3f-chat-card-compact .cspv3f-chat-composer{padding:10px 12px;gap:8px}
.cspv3f-chat-card-compact textarea[name="chat_message"]{min-height:42px;max-height:84px}
.cspv3f-chat-card-compact .cspv3f-empty-state{padding:22px 14px}
.cspv3f-profile-doc-links .button,.cspv3f-history-subfolder .button{white-space:normal;line-height:1.2;height:auto;padding:8px 12px}
@media (max-width:900px){.cspv3f-chat-card-compact{max-width:none!important;margin-left:0}.cspv3f-ai-panel{left:14px;right:14px;width:auto;height:58vh}}


.cspv3f-portal-hero{display:flex;align-items:center;justify-content:space-between;gap:14px}
.cspv3f-portal-hero-copy{min-width:0;flex:1 1 auto}
.cspv3f-portal-hero-tools{display:none}
.cspv3f-ai-linker{position:fixed;right:18px;top:110px;z-index:9999;display:flex;flex-direction:column;gap:8px}
.cspv3f-ai-linker a{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#0f172a;color:#fff;text-decoration:none;box-shadow:0 10px 26px rgba(15,23,42,.18);border:1px solid rgba(255,255,255,.16);cursor:pointer}
.cspv3f-ai-linker a:hover{transform:translateY(-1px);background:#0b4ea2}
.cspv3f-ai-linker .cspv3f-ai-link-new{background:#111827}
.cspv3f-ai-linker img{width:22px;height:22px;object-fit:contain}
.cspv3f-chat-card-compact{max-width:420px;margin-left:auto}
.cspv3f-chat-shell{min-height:420px}
.cspv3f-chat-shell-head{display:none}
.cspv3f-chat-thread{max-height:360px;overflow:auto;padding:12px;border:1px solid #e5e7eb;border-radius:18px;background:#fff}
.cspv3f-chat-composer{position:sticky;bottom:0;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:8px;display:flex;gap:8px;align-items:flex-end;margin-top:10px}
.cspv3f-chat-composer textarea{min-height:42px;max-height:110px;border:none;box-shadow:none;resize:none;flex:1}
.cspv3f-icon-btn{width:40px;height:40px;border-radius:12px;border:none;background:#eff6ff;color:#0b4ea2;display:flex;align-items:center;justify-content:center;cursor:pointer}
.cspv3f-icon-btn:hover{background:#dbeafe}
.cspv3f-icon-btn-primary{background:#0b4ea2;color:#fff}
@media (max-width:782px){.cspv3f-ai-linker{right:12px;top:92px}.cspv3f-chat-card-compact{max-width:none}}

/* Batch 40 toolbar polish */
.cspv3f-portal-hero-tools{display:flex!important;align-items:center;gap:10px;flex:0 0 auto}
.cspv3f-toolbar-icons{display:flex;align-items:center;gap:10px}
.cspv3f-toolbar-group{display:flex;align-items:center}
.cspv3f-toolbar-icon{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#0f172a,#1e293b);color:#fff!important;text-decoration:none;box-shadow:0 10px 22px rgba(15,23,42,.16);border:1px solid rgba(255,255,255,.12);transition:transform .18s ease, background .18s ease, box-shadow .18s ease;cursor:pointer}
.cspv3f-toolbar-icon:hover{transform:translateY(-1px);background:linear-gradient(180deg,#0b1220,#0f172a);box-shadow:0 14px 26px rgba(15,23,42,.22)}
.cspv3f-toolbar-icon .dashicons{font-size:20px;width:20px;height:20px}
.cspv3f-toolbar-icon img{width:22px;height:22px;object-fit:contain;border-radius:6px}
.cspv3f-ai-linker,.cspv3f-ai-link-new{position:static!important;top:auto!important;right:auto!important}
.cspv3f-chat-card-compact{max-width:460px!important;margin-left:auto;border-radius:20px}
.cspv3f-chat-shell{min-height:360px;border-radius:20px}
.cspv3f-chat-shell-head{display:flex!important}
.cspv3f-chat-thread{max-height:260px;overflow:auto}
@media (max-width:782px){
  .cspv3f-portal-hero{position:sticky;top:0;z-index:20;background:linear-gradient(135deg,#ffffff 0%,#eef4ff 45%,#f7fbff 100%)}
  .cspv3f-portal-hero-tools{gap:8px}
  .cspv3f-toolbar-icon{width:42px;height:42px;border-radius:12px}
  .cspv3f-chat-card-compact{max-width:none!important;margin-left:0}
  .cspv3f-chat-shell{min-height:300px}
}


/* Batch 41 mobile and toolbar recovery */
.cspv3f-portal-hero{position:sticky;top:0;z-index:25;background:linear-gradient(135deg,#ffffff 0%,#eef4ff 45%,#f7fbff 100%);backdrop-filter:blur(10px)}
.cspv3f-portal-hero-tools,.cspv3f-toolbar-icons{display:flex!important;align-items:center;gap:10px}
.cspv3f-portal-hero-tools:empty{display:none!important}
.cspv3f-toolbar-icon{opacity:1;visibility:visible}
@media (max-width:782px){
  .cspv3f-portal-toggle{display:none!important}
  .cspv3f-portal-shell{grid-template-columns:1fr!important;gap:12px!important}
  .cspv3f-portal-shell-front{padding:0 8px 18px!important;width:100%!important;margin:0!important}
  .cspv3f-portal-shell-front .cspv3f-portal-sidebar{position:relative!important;left:auto!important;top:auto!important;bottom:auto!important;transform:none!important;width:100%!important;max-width:none!important;min-height:auto!important;border-radius:22px!important;padding:14px!important;overflow:visible!important;box-shadow:0 14px 28px rgba(15,23,42,.10)!important}
  .cspv3f-portal-brand{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .cspv3f-portal-brand:after{content:'App Menu';display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.10);font-size:12px;font-weight:700}
  .cspv3f-portal-nav{display:flex!important;flex-wrap:nowrap!important;overflow:auto!important;gap:10px!important;padding-bottom:4px;scrollbar-width:none}
  .cspv3f-portal-nav::-webkit-scrollbar{display:none}
  .cspv3f-portal-nav-link{min-width:146px;flex:0 0 auto;padding:12px 14px!important;border-radius:16px!important}
  .cspv3f-portal-nav-link span{display:block!important;font-size:11px!important;margin-top:3px!important}
  .cspv3f-portal-main{gap:12px!important}
  .cspv3f-portal-hero{padding:14px 14px!important;border-radius:18px!important;align-items:flex-start!important}
  .cspv3f-portal-hero h2{font-size:20px!important;line-height:1.15!important;margin:0 0 4px!important}
  .cspv3f-portal-hero p{font-size:12px!important;line-height:1.45!important}
  .cspv3f-portal-hero-tools{margin-left:auto}
  .cspv3f-toolbar-icon{width:42px!important;height:42px!important;border-radius:14px!important}
  .cspv3f-mini-stats{grid-template-columns:1fr 1fr!important}
  .cspv3f-card,.cspv3f-card-mini,.cspv3f-frontend-card{border-radius:20px!important}
  .cspv3f-card{padding:16px!important}
  .cspv3f-frontend-grid{grid-template-columns:1fr!important}
  .cspv3f-chat-card-compact{max-width:none!important;margin-left:0!important}
  .cspv3f-chat-shell{min-height:340px!important}
  .cspv3f-chat-thread{max-height:240px!important}
}

/* Batch 42 icon restore + mobile app-feel */
.cspv3f-portal-hero{display:flex!important;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.cspv3f-portal-hero-copy{flex:1 1 320px;min-width:220px}
.cspv3f-portal-hero-tools{display:flex!important;align-items:center;gap:10px;flex:0 0 auto;min-width:max-content}
.cspv3f-toolbar-icons{display:flex!important;align-items:center;gap:10px}
.cspv3f-toolbar-icon{display:inline-flex!important}
@media (max-width: 782px){
  .cspv3f-portal-shell-front{padding:0 10px 20px!important}
  .cspv3f-portal-hero{padding:14px!important;border-radius:18px!important;position:sticky;top:0;z-index:30}
  .cspv3f-portal-hero-copy{flex:1 1 100%;order:1}
  .cspv3f-portal-hero-tools{order:2;width:100%;justify-content:flex-end;gap:8px;margin-top:4px}
  .cspv3f-toolbar-icon{width:40px!important;height:40px!important;border-radius:12px!important}
  .cspv3f-portal-sidebar{padding:14px!important;border-radius:18px!important}
  .cspv3f-portal-brand{font-size:14px!important}
  .cspv3f-portal-brand span{font-size:12px!important}
  .cspv3f-portal-nav{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:10px!important;padding-bottom:6px}
  .cspv3f-portal-nav-link{min-width:132px;flex:0 0 auto;padding:12px 14px!important;border-radius:16px!important}
  .cspv3f-portal-nav-link strong{font-size:14px!important}
  .cspv3f-mini-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .cspv3f-card,.cspv3f-card-mini{padding:14px!important;border-radius:18px!important}
}


/* Batch43 mobile + toolbar hard fixes */
.cspv3f-portal-shell,.cspv3f-portal-main,.cspv3f-portal-hero,.cspv3f-card,.cspv3f-notice-card,.cspv3f-chat-card{box-sizing:border-box;max-width:100%;}
.cspv3f-portal-main{min-width:0;overflow-x:hidden;}
.cspv3f-portal-shell{overflow-x:hidden;}
.cspv3f-portal-hero-tools{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:132px;}
.cspv3f-toolbar-icons{display:flex!important;align-items:center;gap:10px;flex-wrap:nowrap;}
.cspv3f-toolbar-icon{display:inline-flex!important;flex:0 0 44px;}
.cspv3f-toolbar-icon[data-cspv3f-empty-ai="1"]{opacity:.85;}
html,body{overflow-x:hidden;}
@media (max-width: 768px){
  .cspv3f-portal-shell{display:block!important;overflow-x:hidden!important;}
  .cspv3f-portal-sidebar{position:static!important;width:100%!important;min-width:0!important;max-width:100%!important;border-radius:0 0 18px 18px!important;padding:14px!important;}
  .cspv3f-portal-brand{display:none!important;}
  .cspv3f-portal-nav{display:flex!important;overflow-x:auto!important;gap:10px!important;padding-bottom:4px!important;scrollbar-width:none;}
  .cspv3f-portal-nav::-webkit-scrollbar{display:none;}
  .cspv3f-portal-nav-link{flex:0 0 auto!important;min-width:132px!important;padding:12px 14px!important;border-radius:14px!important;}
  .cspv3f-portal-main{width:100%!important;max-width:100%!important;padding:12px!important;overflow-x:hidden!important;}
  .cspv3f-portal-hero{display:block!important;padding:16px!important;border-radius:18px!important;}
  .cspv3f-portal-hero-copy h2{font-size:32px!important;line-height:1.05!important;margin:0 0 6px!important;}
  .cspv3f-portal-hero-copy p{font-size:14px!important;line-height:1.45!important;}
  .cspv3f-portal-hero-tools{margin-top:12px!important;justify-content:flex-start!important;min-width:0!important;}
  .cspv3f-toolbar-icon{width:42px!important;height:42px!important;border-radius:14px!important;}
  .cspv3f-grid,.cspv3f-grid-2,.cspv3f-grid-3,.cspv3f-grid-4{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;}
  .cspv3f-mini-stats .cspv3f-stat-card,.cspv3f-stat-card,.cspv3f-card{min-width:0!important;width:100%!important;max-width:100%!important;}
  .cspv3f-card,.cspv3f-notice-card,.cspv3f-chat-card{padding:14px!important;border-radius:18px!important;}
  .cspv3f-section-head{display:block!important;}
  .cspv3f-section-head .cspv3f-actions{margin-top:10px!important;}
  .cspv3f-portal-toggle{display:none!important;}
}


/* Phase 2 payment + mobile polish */
.cspv3f-wallet-qr-preview{margin:12px 0}
.cspv3f-wallet-qr-preview img{display:block;max-width:220px;width:100%;border-radius:20px;border:1px solid #dbe7ff;background:#fff;padding:10px;box-shadow:0 12px 30px rgba(15,23,42,.08)}
@media (max-width:782px){
  .cspv3f-portal-shell-front .cspv3f-mini-stats{grid-template-columns:1fr!important}
  .cspv3f-portal-shell-front .cspv3f-section-head{gap:8px}
  .cspv3f-portal-shell-front .cspv3f-section-head h2{font-size:20px}
  .cspv3f-portal-shell-front .cspv3f-inline-summary{padding:12px 14px;border-radius:14px}
  .cspv3f-portal-shell-front input[type=text],.cspv3f-portal-shell-front input[type=email],.cspv3f-portal-shell-front input[type=url],.cspv3f-portal-shell-front input[type=number],.cspv3f-portal-shell-front input[type=date],.cspv3f-portal-shell-front input[type=time],.cspv3f-portal-shell-front select,.cspv3f-portal-shell-front textarea{min-height:46px;border-radius:14px}
  .cspv3f-portal-shell-front textarea{min-height:110px}
  .cspv3f-portal-shell-front .button,.cspv3f-portal-shell-front button{min-height:46px;border-radius:14px}
}


/* Pass 5 chat reliability + mobile luxury polish */
.cspv3f-chat-composer{grid-template-columns:auto 1fr auto auto;grid-template-areas:'attach text voice send' 'meta meta meta meta';}
.cspv3f-chat-composer > label{grid-area:attach}
.cspv3f-chat-composer > textarea{grid-area:text}
.cspv3f-chat-composer > .cspv3f-voice-record-btn{grid-area:voice}
.cspv3f-chat-composer > .cspv3f-icon-btn-primary{grid-area:send}
.cspv3f-chat-composer-meta{grid-area:meta;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 0 2px}
.cspv3f-chat-selected-file{display:inline-flex;align-items:center;min-height:28px;padding:6px 10px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:12px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cspv3f-chat-selected-file[data-tone="ready"]{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.cspv3f-chat-selected-file[data-tone="sending"]{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.cspv3f-chat-selected-file[data-tone="error"]{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.cspv3f-chat-clear-file{border:none;background:transparent;color:#64748b;font-size:12px;font-weight:700;padding:4px 6px;cursor:pointer}
.cspv3f-chat-clear-file:hover{color:#0f172a}
.cspv3f-voice-record-btn.is-recording{background:#dc2626!important;border-color:#dc2626!important;color:#fff!important;box-shadow:0 10px 22px rgba(220,38,38,.24)}
.cspv3f-chat-shell{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)}
.cspv3f-chat-thread{scroll-behavior:smooth}
.cspv3f-chat-message{backdrop-filter:saturate(1.1)}
@media (max-width:782px){
  .cspv3f-chat-card-compact,.cspv3f-chat-shell{border-radius:22px!important}
  .cspv3f-chat-shell-head{display:flex!important;padding:14px 16px!important;background:linear-gradient(135deg,#ffffff,#f3f8ff)!important}
  .cspv3f-chat-shell-head h2{font-size:15px!important}
  .cspv3f-chat-shell-head p{display:block!important;font-size:11px!important}
  .cspv3f-chat-shell{min-height:calc(100vh - 220px)}
  .cspv3f-chat-thread{max-height:none!important;min-height:220px!important;padding:8px!important;background:linear-gradient(180deg,#fbfdff,#f6f9fc)!important}
  .cspv3f-chat-message{max-width:88%!important;border-radius:20px!important}
  .cspv3f-chat-composer{position:sticky;bottom:0;grid-template-columns:auto minmax(0,1fr) auto auto;gap:8px;padding:10px!important;border-top:1px solid #e6edf6!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px)}
  .cspv3f-chat-composer textarea{min-height:42px!important;max-height:88px!important;border-radius:16px!important;background:#f8fafc!important;border:1px solid #dbe4f0!important}
  .cspv3f-chat-composer-meta{flex-direction:column;align-items:flex-start;gap:6px}
  .cspv3f-chat-selected-file{max-width:100%}
}


/* Phase 6 mobile luxury polish */
.cspv3f-mobile-quickbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
.cspv3f-mobile-quickbar-item{display:flex;flex-direction:column;gap:3px;padding:14px 12px;border-radius:18px;background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #dbe7f6;box-shadow:0 12px 24px rgba(15,23,42,.06);text-decoration:none;color:#0f172a}
.cspv3f-mobile-quickbar-item strong{font-size:14px;line-height:1.1}
.cspv3f-mobile-quickbar-item span{font-size:11px;color:#64748b}
.cspv3f-mobile-quickbar-item.is-active{background:linear-gradient(135deg,#0f172a 0%,#243b6b 100%);border-color:#0f172a;color:#fff}
.cspv3f-mobile-quickbar-item.is-active span{color:#dbeafe}
.cspv3f-luxury-summary-card{padding:18px 18px 16px;border-radius:24px;background:linear-gradient(135deg,#081225 0%,#12335f 45%,#dbeafe 180%);color:#fff;border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 40px rgba(15,23,42,.18)}
.cspv3f-luxury-summary-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.cspv3f-chip-label{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.cspv3f-luxury-summary-card h3{margin:10px 0 6px;font-size:24px;color:#fff}
.cspv3f-luxury-summary-card p{margin:0;color:rgba(255,255,255,.82)}
.cspv3f-luxury-balance{min-width:108px;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.12);text-align:right}
.cspv3f-luxury-balance span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#dbeafe}
.cspv3f-luxury-balance strong{display:block;margin-top:4px;font-size:24px;line-height:1.05}
.cspv3f-luxury-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.cspv3f-luxury-metrics div,.cspv3f-mobile-payment-hint>div{padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.10);backdrop-filter:blur(8px)}
.cspv3f-luxury-metrics strong,.cspv3f-mobile-payment-hint strong{display:block;font-size:18px;line-height:1.1;color:#fff}
.cspv3f-luxury-metrics span,.cspv3f-mobile-payment-hint span{display:block;margin-top:4px;font-size:12px;color:#dbeafe}
.cspv3f-luxury-next{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.14)}
.cspv3f-luxury-next strong{font-size:13px;color:#fff}.cspv3f-luxury-next span{font-size:13px;color:#e2e8f0;text-align:right}
.cspv3f-booking-mobile-form{gap:14px}
.cspv3f-booking-mobile-form .cspv3f-grid{gap:12px}
.cspv3f-booking-flow-card{padding:14px 16px;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #dbe7f6}
.cspv3f-mobile-payment-hint{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0 8px}
.cspv3f-mobile-payment-hint>div{background:linear-gradient(180deg,#0f172a,#1d4e89)}
.cspv3f-identity-grid div{padding:14px 14px 12px;border-radius:18px;background:#f8fbff;border:1px solid #e2e8f0}
.cspv3f-booking-mobile-grid>.cspv3f-card:first-child{position:sticky;top:72px;align-self:start}
@media (max-width:820px){
  .cspv3f-mobile-quickbar{grid-template-columns:repeat(4,minmax(120px,1fr));overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .cspv3f-mobile-quickbar::-webkit-scrollbar{display:none}
  .cspv3f-mobile-quickbar-item{min-width:120px}
  .cspv3f-luxury-summary-top{flex-direction:column}
  .cspv3f-luxury-balance{width:100%;text-align:left}
  .cspv3f-luxury-metrics{grid-template-columns:1fr 1fr 1fr}
  .cspv3f-luxury-next{flex-direction:column;align-items:flex-start}
  .cspv3f-luxury-next span{text-align:left}
  .cspv3f-mobile-payment-hint{grid-template-columns:1fr}
  .cspv3f-booking-mobile-grid{grid-template-columns:1fr!important}
  .cspv3f-booking-mobile-grid>.cspv3f-card:first-child{position:relative;top:auto}
}
@media (max-width:640px){
  .cspv3f-luxury-summary-card{padding:16px;border-radius:22px}
  .cspv3f-luxury-summary-card h3{font-size:21px}
  .cspv3f-luxury-metrics{grid-template-columns:1fr}
  .cspv3f-portal-hero{padding:12px!important}
  .cspv3f-card,.cspv3f-card-mini{border-radius:18px!important}
}


/* Seventh pass: admin console + reception/pharmacy mobile polish */
.cspv3f-admin-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:12px 0 18px;}
.cspv3f-admin-kpi{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid rgba(11,78,162,.12);border-radius:18px;padding:14px 16px;box-shadow:0 10px 24px rgba(15,23,42,.06);}
.cspv3f-admin-kpi-label{display:block;font-size:12px;color:#64748b;margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em;}
.cspv3f-admin-kpi strong{font-size:20px;color:#0f172a;}
.cspv3f-sticky-short-tabs{position:sticky;top:32px;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);padding:8px;border-radius:16px;border:1px solid rgba(11,78,162,.08);}
.cspv3f-sticky-savebar{position:sticky;bottom:12px;display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 14px;background:rgba(15,23,42,.92);color:#fff;border-radius:16px;box-shadow:0 18px 40px rgba(15,23,42,.22);margin-top:20px;}
.cspv3f-mobile-console-strip{display:flex;gap:10px;overflow:auto;margin:18px 0 8px;padding-bottom:4px;}
.cspv3f-mobile-console-strip a{flex:0 0 auto;text-decoration:none;padding:10px 14px;border-radius:999px;background:#fff;border:1px solid rgba(11,78,162,.1);box-shadow:0 8px 18px rgba(15,23,42,.05);color:#0f172a;font-weight:600;}
.cspv3f-mini-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:0 0 14px;}
.cspv3f-mini-summary-card{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid rgba(11,78,162,.1);border-radius:16px;padding:12px 14px;box-shadow:0 8px 20px rgba(15,23,42,.05);}
.cspv3f-mini-summary-card strong{display:block;margin-bottom:5px;color:#0f172a;}
.cspv3f-mini-summary-card span{display:block;color:#64748b;line-height:1.45;}
@media (max-width:782px){.cspv3f-sticky-short-tabs{top:46px}.cspv3f-sticky-savebar{flex-direction:column;align-items:stretch}.cspv3f-sticky-savebar .button{width:100%;text-align:center}}

/* v0.28.0 luxury mobile app and chat refinement pass */
.cspv3f-portal-shell{background:linear-gradient(180deg,#f7fbff 0%,#ffffff 54%,#f8fafc 100%)}
.cspv3f-portal-sidebar{box-shadow:0 24px 60px rgba(2,8,23,.18);border-right:1px solid rgba(255,255,255,.12)}
.cspv3f-portal-sidebar a,.cspv3f-mobile-quickbar a,.cspv3f-portal-tabs a{transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cspv3f-portal-sidebar a:hover,.cspv3f-mobile-quickbar a:hover,.cspv3f-portal-tabs a:hover{transform:translateY(-1px)}
.cspv3f-card,.cspv3f-portal-hero,.cspv3f-notice-card{box-shadow:0 18px 45px rgba(15,23,42,.07);border:1px solid #e2e8f0;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.cspv3f-icon-btn,.cspv3f-mobile-quickbar a,.button.button-primary,.cspv3f-video-overlay-controls-labeled .cspv3f-icon-btn{box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 14px 30px rgba(15,23,42,.16)!important}
.cspv3f-icon-btn:active,.button:active{transform:translateY(1px) scale(.99)}
.cspv3f-chat-card-compact{max-width:520px!important;margin-left:auto!important;padding:0!important;border-radius:28px!important;overflow:hidden;border:1px solid #dbeafe!important;background:#fff!important;box-shadow:0 28px 70px rgba(15,23,42,.12)!important}
.cspv3f-chat-shell-luxury{min-height:430px!important;grid-template-rows:auto auto minmax(220px,1fr) auto!important;border:0!important;border-radius:28px!important;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important}
.cspv3f-chat-shell-luxury .cspv3f-chat-shell-head{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px!important;background:linear-gradient(135deg,#061936,#0b4ea2)!important;color:#fff!important;border:0!important}
.cspv3f-chat-shell-luxury .cspv3f-chat-shell-head h2{color:#fff!important;font-size:17px!important}.cspv3f-chat-shell-luxury .cspv3f-chat-shell-head p{display:block!important;color:rgba(255,255,255,.75)!important;margin-top:2px!important}
.cspv3f-chat-online-dot{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;background:rgba(255,255,255,.14);color:#fff;font-size:11px;font-weight:800}.cspv3f-chat-online-dot:before{content:'';width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}
.cspv3f-chat-searchbar{display:flex;align-items:center;gap:8px;margin:12px 14px 0;padding:9px 12px;border-radius:999px;background:#eef6ff;border:1px solid #dbeafe;color:#2563eb}.cspv3f-chat-searchbar input{width:100%;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;min-height:28px;padding:0!important;font-size:13px;color:#0f172a}.cspv3f-chat-searchbar .dashicons{font-size:18px;width:18px;height:18px}
.cspv3f-chat-shell-luxury .cspv3f-chat-shell-body{padding:12px 14px!important}.cspv3f-chat-shell-luxury .cspv3f-chat-thread{min-height:230px!important;max-height:330px!important;padding:12px!important;border:1px solid #e5edf7!important;border-radius:24px!important;background:linear-gradient(180deg,#ffffff,#f8fbff)!important;overflow:auto!important}.cspv3f-chat-message{border-radius:20px!important;box-shadow:0 10px 26px rgba(15,23,42,.07)!important}.cspv3f-chat-message.is-mine{background:linear-gradient(135deg,#0b4ea2,#2563eb)!important;border-color:#2563eb!important}.cspv3f-chat-day span{background:#eaf3ff!important;border:1px solid #dbeafe!important;color:#1e3a8a!important;border-radius:999px!important;padding:6px 10px!important;font-size:11px!important;font-weight:800!important}
.cspv3f-chat-shell-luxury .cspv3f-chat-composer{position:sticky!important;bottom:0!important;display:grid!important;grid-template-columns:44px 1fr 44px 48px!important;grid-template-areas:'attach text voice send' 'meta meta meta meta'!important;gap:8px!important;align-items:end!important;padding:12px 14px!important;border:0!important;border-top:1px solid #e8eef7!important;border-radius:0!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(16px)!important;margin:0!important}.cspv3f-chat-shell-luxury .cspv3f-chat-composer textarea{border:1px solid #dbeafe!important;background:#f8fbff!important;border-radius:20px!important;min-height:44px!important;max-height:112px!important;padding:12px 14px!important;line-height:1.35!important;overflow:auto!important}.cspv3f-chat-attach-btn,.cspv3f-voice-record-btn,.cspv3f-chat-send-btn{border-radius:18px!important;width:44px!important;height:44px!important}.cspv3f-chat-send-btn{width:48px!important;background:linear-gradient(135deg,#0b4ea2,#2563eb)!important}.cspv3f-chat-composer-meta{font-size:11px!important}.cspv3f-chat-selected-file{max-width:100%!important}.cspv3f-chat-clear-file{border:0;background:transparent;color:#0b4ea2;font-weight:800;cursor:pointer}
@media(max-width:900px){body .cspv3f-portal-shell{display:block!important;padding:10px!important;background:linear-gradient(180deg,#eaf3ff 0,#fff 46%)!important}body .cspv3f-portal-sidebar{position:relative!important;width:auto!important;border-radius:26px!important;margin:0 0 12px!important;padding:12px!important;box-shadow:0 24px 55px rgba(2,8,23,.18)!important}body .cspv3f-portal-sidebar nav,body .cspv3f-portal-menu{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}body .cspv3f-portal-sidebar a{min-height:44px!important;border-radius:16px!important;padding:10px 12px!important;font-size:13px!important}body .cspv3f-portal-main{padding:0!important;width:100%!important;max-width:100%!important}body .cspv3f-portal-hero{border-radius:26px!important;padding:16px!important;margin-bottom:12px!important}body .cspv3f-mobile-quickbar,body .cspv3f-portal-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:10px 0 12px!important}body .cspv3f-mobile-quickbar a,body .cspv3f-portal-tabs a{border-radius:18px!important;min-height:56px!important;padding:12px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;border:1px solid #dbeafe!important;box-shadow:0 12px 28px rgba(15,23,42,.08)!important}body .cspv3f-mobile-quickbar a.is-active,body .cspv3f-portal-tabs a.is-active{background:linear-gradient(135deg,#07152d,#0b4ea2)!important;color:#fff!important}body .cspv3f-card{border-radius:24px!important;padding:14px!important;margin-bottom:12px!important}body .cspv3f-chat-card-compact{max-width:none!important;margin-left:0!important;border-radius:26px!important}body .cspv3f-chat-shell-luxury{min-height:72vh!important;border-radius:26px!important}body .cspv3f-chat-shell-luxury .cspv3f-chat-thread{max-height:calc(72vh - 210px)!important;min-height:280px!important}}
@media(max-width:520px){body .cspv3f-portal-shell{padding:8px!important}body .cspv3f-chat-shell-luxury{min-height:74vh!important}body .cspv3f-chat-shell-luxury .cspv3f-chat-composer{grid-template-columns:42px 1fr 42px 46px!important;padding:10px!important}.cspv3f-chat-shell-luxury .cspv3f-chat-composer textarea{font-size:14px!important}.cspv3f-chat-message{max-width:88%!important}}

/* v0.29 clean professional portal recovery */
.cspv3f-portal-hero-copy p,.cspv3f-portal-nav-link span,.cspv3f-mobile-quickbar-item span,.cspv3f-stat-helper{display:none!important}
.cspv3f-portal-hero{position:sticky;top:32px;z-index:20;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);box-shadow:0 16px 42px rgba(15,23,42,.08);border:1px solid rgba(226,232,240,.9)}
.cspv3f-portal-hero-copy h2{margin:0;font-size:clamp(22px,3vw,30px);letter-spacing:-.04em}
.cspv3f-mobile-quickbar{gap:12px!important;margin:14px 0 22px!important}
.cspv3f-mobile-quickbar-item{min-height:58px!important;border-radius:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(145deg,#fff,#edf4ff)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 16px 30px rgba(15,23,42,.09)!important;text-decoration:none!important}
.cspv3f-mobile-quickbar-item strong{font-size:15px!important;text-decoration:none!important}
.cspv3f-mobile-quickbar-item.is-active{background:linear-gradient(145deg,#061b3b,#0f3e82)!important;color:#fff!important;box-shadow:0 18px 36px rgba(13,58,128,.28)!important}
.cspv3f-clean-overview-card{padding:22px!important;overflow:hidden}
.cspv3f-clean-stats .cspv3f-stat-card{min-height:112px!important;align-items:flex-start!important;justify-content:center!important;border-radius:22px!important;background:linear-gradient(145deg,#ffffff,#f4f8ff)!important;box-shadow:0 18px 42px rgba(15,23,42,.07)!important}
.cspv3f-clean-stats .cspv3f-stat-label{font-size:12px!important;text-transform:uppercase;letter-spacing:.08em;color:#64748b!important}
.cspv3f-current-flow-card{display:grid;grid-template-columns:minmax(200px,.9fr) 1.7fr;gap:16px;align-items:center;margin:6px 0 18px;padding:16px;border-radius:22px;background:linear-gradient(135deg,#f8fbff,#eef6ff);border:1px solid #dbeafe;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.cspv3f-current-flow-card strong{display:block;font-size:16px;color:#0f172a}.cspv3f-current-flow-card span{display:block;color:#64748b;margin-top:4px}
.cspv3f-notice-card{display:none!important}
.cspv3f-popover-panel{position:fixed;right:24px;top:92px;width:min(420px,calc(100vw - 28px));max-height:70vh;overflow:auto;z-index:99999;background:rgba(255,255,255,.96);backdrop-filter:blur(22px);border:1px solid rgba(226,232,240,.95);border-radius:24px;box-shadow:0 28px 70px rgba(15,23,42,.22);padding:14px}
.cspv3f-popover-panel[hidden]{display:none!important}.cspv3f-popover-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 8px 12px}.cspv3f-popover-head strong{font-size:17px}.cspv3f-popover-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;background:#0f172a;color:#fff!important;text-decoration:none!important;font-size:22px;line-height:1;box-shadow:0 12px 24px rgba(15,23,42,.22)}
.cspv3f-popover-feed{display:grid;gap:10px}.cspv3f-popover-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbff);border:1px solid #e2e8f0}.cspv3f-popover-item strong{display:block;font-size:14px}.cspv3f-popover-item small{display:block;color:#64748b;margin-top:4px}.cspv3f-popover-item a{font-weight:800;text-decoration:none;color:#1559b7}.cspv3f-popover-clear{width:100%;margin-top:12px;text-align:center;border-radius:16px!important}.cspv3f-popover-empty{padding:24px;text-align:center;color:#64748b}
.cspv3f-ai-popover{width:min(480px,calc(100vw - 28px));padding:16px}.cspv3f-ai-mini-status{display:flex;gap:8px;flex-wrap:wrap;margin:0 8px 12px}.cspv3f-ai-mini-status span{display:inline-flex;padding:7px 10px;border-radius:999px;background:#ecfdf5;color:#166534;font-weight:800;font-size:12px}.cspv3f-ai-chat-compact{max-height:300px;overflow:auto;padding:4px 6px 10px}.cspv3f-ai-chat-compact .cspv3f-ai-bubble{margin:8px 0;padding:12px 14px;border-radius:18px}.cspv3f-ai-suggestions-compact{display:flex;gap:8px;flex-wrap:wrap;margin:8px 4px 12px}.cspv3f-ai-compose{display:grid!important;grid-template-columns:1fr auto;gap:10px;align-items:end;margin:0!important}.cspv3f-ai-compose textarea{min-height:54px!important;max-height:120px;border-radius:18px!important;resize:vertical}.cspv3f-ai-compose .button{height:54px;border-radius:18px!important;margin:0!important;padding:0 22px!important}
.cspv3f-card .cspv3f-section-head p,.cspv3f-card-mini span.cspv3f-muted + p{display:none!important}
.cspv3f-chat-card{max-width:560px;margin-inline:auto}.cspv3f-chat-shell-head p{display:none!important}.cspv3f-chat-shell-body{min-height:260px!important}.cspv3f-chat-composer{border-radius:22px!important;box-shadow:0 -10px 30px rgba(15,23,42,.08)!important}.cspv3f-chat-composer textarea{min-height:48px!important;border-radius:16px!important;background:#fff!important}
@media (max-width:782px){.cspv3f-portal-main{padding:12px!important}.cspv3f-portal-hero{top:0;margin:0 0 12px!important;border-radius:24px!important}.cspv3f-portal-hero-tools{gap:8px}.cspv3f-toolbar-icon{width:46px!important;height:46px!important;border-radius:16px!important}.cspv3f-mobile-quickbar{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important}.cspv3f-mobile-quickbar-item{min-width:0!important;min-height:52px!important;padding:8px!important}.cspv3f-current-flow-card{grid-template-columns:1fr}.cspv3f-clean-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cspv3f-popover-panel{right:10px;top:72px;width:calc(100vw - 20px);border-radius:22px}.cspv3f-ai-compose{grid-template-columns:1fr!important}.cspv3f-ai-compose .button{width:100%}}
