:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#e9edf2;background:#0d1117}body{margin:0}header{height:64px;display:flex;gap:12px;align-items:center;padding:0 28px;border-bottom:1px solid #28313d;background:#111821}header strong{font-size:20px}header span{color:#9aa8b7}main{width:80%;max-width:none;margin:40px auto;padding:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{background:#151d27;border:1px solid #2b3847;border-radius:12px;padding:22px}.card strong{font-size:34px}.narrow{max-width:420px;margin:80px auto}label{display:block;margin:14px 0 6px;color:#b8c3cf}input{box-sizing:border-box;width:100%;padding:11px;border-radius:8px;border:1px solid #39485a;background:#0e141c;color:white}.check{display:flex;gap:8px;align-items:center}.check input{width:auto}button{margin-top:18px;padding:10px 18px;border:0;border-radius:8px;background:#e4c582;color:#101418;font-weight:700;cursor:pointer}.secondary{background:#2a3543;color:#fff}.error{color:#ff9a9a}@media(max-width:720px){.grid{grid-template-columns:1fr}}

header nav{margin-left:auto;display:flex;gap:18px}header nav a,.link-button{color:#e4c582;text-decoration:none}.toolbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.stack{display:grid;gap:14px}.plan-card{padding:18px 22px}.plan-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.plan-head h2{margin:0 0 4px}.muted{color:#9aa8b7;font-size:13px}.inline-form{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.inline-form button{margin:0}.notice,.error-box{padding:12px 14px;border-radius:8px;margin:12px 0}.notice{background:#163321;color:#b9f3c9}.error-box{background:#3b1d1d;color:#ffb5b5}.form-card{max-width:720px}.result-card{margin-top:18px}.actions{display:flex;gap:12px;margin:18px 0}.link-button{display:inline-block;background:#263242;padding:10px 14px;border-radius:8px}select{box-sizing:border-box;width:100%;padding:11px;border-radius:8px;border:1px solid #39485a;background:#0e141c;color:white}@media(max-width:720px){header nav{display:none}.inline-form{grid-template-columns:1fr}.toolbar{display:block}}

.policy-grid{margin:18px 0}.policy-grid .card strong{font-size:inherit}.policy-grid code{overflow-wrap:anywhere}

.entitlement-matrix-card{margin:18px 0}.table-scroll{overflow-x:auto}.entitlement-matrix{width:100%;border-collapse:collapse;min-width:840px}.entitlement-matrix th,.entitlement-matrix td{padding:10px 12px;border-bottom:1px solid #2b3847;text-align:center}.entitlement-matrix th:first-child,.entitlement-matrix td:first-child{text-align:left;position:sticky;left:0;background:#151d27}.entitlement-matrix thead th{color:#e4c582;font-size:13px}.matrix-value{font-size:18px;font-weight:700}.architecture-notice{margin-top:18px}

.application-table-card{margin-top:18px}.application-table{width:100%;border-collapse:collapse;min-width:980px}.application-table th,.application-table td{padding:11px 12px;border-bottom:1px solid #2b3847;text-align:left;vertical-align:top}.application-table th{color:#e4c582;font-size:13px}.application-table code{overflow-wrap:anywhere}.status-pending{display:inline-block;padding:5px 8px;border-radius:999px;background:#4a3a17;color:#f6d98f;font-size:11px;font-weight:800;letter-spacing:.06em}

.review-cell{min-width:220px}.review-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.review-form label{grid-column:1/-1;margin:0;color:#b8c3cf;font-size:12px}.review-form select{min-width:150px;padding:8px}.review-form button,.reject-form button{margin:0}.approve-button{background:#e4c582;color:#101418}.reject-form{margin-top:8px}.reject-button{width:100%;background:#4a2525;color:#ffd1d1}.review-cell form{white-space:normal}

/* STEP 4B - Admin-selected level + manual YouTube membership verification */
.verification-note{margin:16px 0;padding:14px 16px;border:1px solid #34485c;border-radius:10px;background:#101923;color:#c9d3de;font-size:13px;line-height:1.6}.verification-note a,.customer-link,.verify-link{color:#e4c582;text-decoration:none}.verification-note a:hover,.customer-link:hover,.verify-link:hover{text-decoration:underline}.membership-check-cell{min-width:180px}.verify-link{display:block;margin:0 0 8px;font-weight:700}.secondary-verify{color:#9fc4ec}.review-cell{min-width:250px}.review-form{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:8px;align-items:end}.review-form label{grid-column:1/-1;margin:0;color:#b8c3cf;font-size:12px}.review-form select{min-width:170px;padding:8px}.review-form button,.reject-form button{margin:0}.reject-form{margin-top:8px}.reject-button{width:100%}

/* STEP 4C - Existing license lifecycle management */
.license-management-card{margin-top:18px}.license-management-card .table-scroll{overflow-x:visible}.license-management-table{width:100%;border-collapse:collapse;min-width:0;table-layout:fixed}.license-management-table th,.license-management-table td{padding:11px 12px;border-bottom:1px solid #2b3847;text-align:left;vertical-align:top;overflow-wrap:anywhere}.license-management-table th{color:#e4c582;font-size:13px}.license-management-table code{overflow-wrap:anywhere;word-break:break-word}.license-management-table th:nth-child(1){width:22%}.license-management-table th:nth-child(2){width:14%}.license-management-table th:nth-child(3){width:15%}.license-management-table th:nth-child(4){width:19%}.license-management-table th:nth-child(5){width:8%}.license-management-table th:nth-child(6){width:22%}.license-actions-cell{min-width:0}.license-plan-form{display:grid;grid-template-columns:1fr;gap:8px}.license-plan-form label{margin:0;color:#b8c3cf;font-size:12px}.license-plan-form select{padding:8px;min-width:0}.license-plan-form button,.cancel-license-form button,.reactivate-license-form button{margin:0;width:100%}.cancel-license-form{margin-top:8px}.cancel-license-form .reject-button{width:100%}.reactivate-license-form{margin-top:10px}.reactivate-button{width:100%;background:#2f6f48;color:#e9fff1}.lifecycle-note{margin:0 0 8px;line-height:1.45}.license-status{display:inline-block;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.05em}.license-status-active{background:#173d29;color:#b9f3c9}.license-status-suspended{background:#4a3a17;color:#f6d98f}.license-status-expired,.license-status-invalid,.license-status-revoked{background:#4a2525;color:#ffd1d1}.license-status-unknown{background:#2a3543;color:#d5dde7}@media(max-width:1100px){.license-management-card .table-scroll{overflow-x:auto}.license-management-table{min-width:1050px;table-layout:auto}.license-actions-cell{min-width:220px}}


/* STEP 4D - Persistent license/admin audit history */
.audit-history-card{margin-top:18px}.audit-history-table{width:100%;border-collapse:collapse;min-width:1250px}.audit-history-table th,.audit-history-table td{padding:10px 12px;border-bottom:1px solid #2b3847;text-align:left;vertical-align:top}.audit-history-table th{color:#e4c582;font-size:13px;white-space:nowrap}.audit-history-table code{overflow-wrap:anywhere}.audit-time{white-space:nowrap;color:#b8c3cf}.audit-detail{min-width:360px;line-height:1.45;overflow-wrap:anywhere}

/* STEP 4D layout FIX2 - desktop uses 80% viewport width (10% gutter each side) */
@media(max-width:1100px){
    main{width:auto;max-width:none;margin:24px 16px;padding:0}
}
