* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* ---------- Home Page ---------- */

.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 22px 0;
}

.login-button {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.login-button:hover {
    background: #1d4ed8;
}

.home-content {
    text-align: center;
    padding: 70px 20px;
}

.home-content h1 {
    font-size: 46px;
    margin-bottom: 12px;
}

.home-content h2 {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 18px;
}

.subtitle {
    color: #667085;
    font-size: 17px;
}

.status {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 20px;
    background: #e8f1ff;
    border-radius: 6px;
    color: #1d4ed8;
}

/* ---------- Login ---------- */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(420px, 92%);
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
    text-align: center;
    margin: 0;
    font-size: 34px;
}

.login-card .login-tagline {
    text-align: center;
    color: #667085;
    margin: 8px 0 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.login-submit {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 7px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.login-submit:hover {
    background: #1d4ed8;
}

.error-message {
    background: #fee4e2;
    color: #b42318;
    padding: 11px;
    border-radius: 7px;
    margin-bottom: 20px;
    text-align: center;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #2563eb;
    text-decoration: none;
}

/* ---------- Connect Services ---------- */

.connect-page {
    padding: 45px 0 70px;
}

.connect-header {
    text-align: center;
    margin-bottom: 45px;
}

.connect-header h1 {
    margin-bottom: 10px;
    font-size: 38px;
}

.connect-header p {
    color: #667085;
    font-size: 17px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

.service-icon {
    font-size: 52px;
    margin-bottom: 15px;
}

.service-card h2 {
    margin: 0 0 10px;
    font-size: 21px;
}

.service-card p {
    color: #667085;
    min-height: 45px;
    line-height: 1.5;
}

.connect-button,
.coming-soon {
    display: inline-block;
    margin-top: 15px;
    padding: 11px 22px;
    border-radius: 7px;
    font-weight: 600;
}

.connect-button {
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.connect-button:hover {
    background: #1d4ed8;
}

.coming-soon {
    background: #eef2f6;
    color: #667085;
}

.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4e7ec;
}

.logout-link {
    color: #667085;
    text-decoration: none;
}

/* =========================================================
   YOUR PA — Registration Page
   ========================================================= */

.register-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 24px;
    box-sizing: border-box;
}

.register-card {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.register-header h1 {
    margin-bottom: 8px;
}

.register-tagline {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.register-description {
    margin: 10px 0 0;
    color: #666666;
}


/* ---------------------------------------------------------
   Form Sections
   --------------------------------------------------------- */

.form-section {
    margin-bottom: 28px;
    padding: 26px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fafafa;
}

.password-section {
    background: #f3f4f6;
}

.form-section-header {
    margin-bottom: 22px;
}

.form-section-header h2 {
    margin: 0 0 5px;
    font-size: 1.15rem;
}

.form-section-header p {
    margin: 0;
    color: #666666;
    font-size: 0.9rem;
}


/* ---------------------------------------------------------
   Desktop Form Grid
   --------------------------------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}


/* ---------------------------------------------------------
   Form Fields
   --------------------------------------------------------- */

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.92rem;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #ffffff;
    font-size: 1rem;
    outline: none;
}

.form-group input:focus {
    border-color: #555555;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}


/* ---------------------------------------------------------
   Password Input
   --------------------------------------------------------- */

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Password Requirements
   --------------------------------------------------------- */

.password-requirements {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
}

.password-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 0.88rem;
    color: #666666;
}

.password-rule .rule-icon {
    width: 18px;
    font-weight: 700;
}

.password-rule.valid {
    color: #198754;
}

.password-rule.valid .rule-icon {
    font-weight: 700;
}


/* ---------------------------------------------------------
   Password Match
   --------------------------------------------------------- */

.password-match {
    margin-top: 9px;
    min-height: 20px;
    font-size: 0.88rem;
    font-weight: 600;
}

.password-match.valid {
    color: #198754;
}

.password-match.invalid {
    color: #dc3545;
}


/* ---------------------------------------------------------
   Register Button
   --------------------------------------------------------- */

/* .register-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
} */
.register-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    background: #2563eb;
    color: #ffffff;
}

.register-submit:hover {
    background: #1d4ed8;
}

.register-submit:active {
    background: #1e40af;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.register-footer {
    margin-top: 26px;
    text-align: center;
}

.register-footer p {
    margin-bottom: 12px;
}


/* ---------------------------------------------------------
   Responsive — Tablet
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .register-page {
        padding: 24px 14px;
    }

    .register-card {
        padding: 26px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

}


/* ---------------------------------------------------------
   Responsive — Mobile
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .register-page {
        padding: 12px 8px;
    }

    .register-card {
        padding: 22px 14px;
        border-radius: 8px;
    }

    .form-section {
        padding: 18px 14px;
    }
}

/* =========================================================
   YOUR PA — Registration Screen Fit Optimization
   Desktop / Laptop
   ========================================================= */

@media (min-width: 701px) {

    .register-page {
        min-height: 100vh;
        padding: 20px 24px;
        align-items: center;
    }

    .register-card {
        max-width: 1000px;
        padding: 24px 32px;
    }

    .register-header {
        margin-bottom: 18px;
    }

    .register-description {
        margin-top: 5px;
    }

    .form-section {
        margin-bottom: 14px;
        padding: 16px 20px;
    }

    .form-section-header {
        margin-bottom: 12px;
    }

    .form-section-header h2 {
        font-size: 1.05rem;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-grid {
        gap: 10px 18px;
    }

    .password-section .form-group {
        margin-bottom: 10px;
    }

    .password-requirements {
        margin-top: 7px;
        padding: 7px 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
    }

    .password-rule {
        margin: 3px 0;
        font-size: 0.82rem;
    }

    .register-submit {
        padding: 12px;
    }

    .register-footer {
        margin-top: 12px;
    }
}

/* =========================================================
   Registration — Compact Desktop Layout
   ========================================================= */

@media (min-width: 701px) {

    .register-page {
        padding: 8px 20px;
        align-items: center;
    }

    .register-card {
        padding: 18px 30px;
    }

    .register-header {
        margin-bottom: 12px;
    }

    .register-header h1 {
        margin-top: 0;
        margin-bottom: 3px;
    }

    .register-tagline {
        margin: 0;
    }

    .register-description {
        margin: 3px 0 0;
    }

    .form-section {
        margin-bottom: 10px;
        padding: 12px 18px;
    }

    .form-section-header {
        margin-bottom: 8px;
    }

    .form-section-header h2 {
        margin-bottom: 2px;
    }

    .form-section-header p {
        font-size: 0.82rem;
    }

    .form-grid {
        gap: 7px 16px;
    }

    .form-group {
        margin-bottom: 7px;
    }

    .form-group label {
        margin-bottom: 4px;
    }

    .form-group input {
        padding: 8px 11px;
    }

    .password-requirements {
        margin-top: 5px;
        padding: 5px 10px;
    }

    .password-rule {
        margin: 2px 0;
        font-size: 0.78rem;
    }

    .password-match {
        min-height: 16px;
        margin-top: 4px;
    }

    .register-submit {
        padding: 10px;
    }

    /* Footer in one line */
    .register-footer {
        margin-top: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 14px;
    }

    .register-footer p {
        margin: 0;
    }

    .register-footer p::after {
        content: "|";
        margin-left: 14px;
        color: #999;
    }

    .register-footer .back-link {
        margin: 0;
    }
}

/* =====================================================
   CAPABILITIES / USP
   ===================================================== */

#features {
    background: #f8fafc;
}

.capabilities-heading {
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;

    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    position: relative;

    min-height: 230px;
    padding: 28px;

    border: 2px solid #dbe3ef;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);

    border-color: #93c5fd;

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.08);
}

.feature-number {
    margin-bottom: 18px;

    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.feature-card h4 {
    margin: 0 0 12px;

    font-size: 19px;
    line-height: 1.3;
}

.feature-card p {
    margin: 0;

    color: #64748b;
    line-height: 1.65;
}

.feature-card.capability-highlight {
    grid-column: span 3;

    min-height: 190px;

    background: #ffffff;
}

.capability-bottom-message {
    margin-top: 36px;

    padding: 24px;

    border-top: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;

    text-align: center;
    font-size: 16px;
}

.connected-status {
    display: inline-block;
    color: #198754;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

/* =========================================================
   YOUR PA — Admin Shell
   Shared Admin page layout
   ========================================================= */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 58px;
    padding: 0 22px;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
    color: #172033;
    box-sizing: border-box;
}

.topbar > div:last-child {
    color: #667085;
    font-size: 13px;
}

.topbar a {
    color: #475467;
    text-decoration: none;
}

.topbar a:hover {
    color: #172033;
    text-decoration: underline;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 58px);
}

.sidebar {
    width: 210px;
    flex: 0 0 210px;
    background: #ffffff;
    border-right: 1px solid #e4e7ec;
    padding: 16px 10px;
    box-sizing: border-box;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #475467;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.sidebar nav a:hover {
    background: #f2f4f7;
    color: #172033;
}

.sidebar nav a.active {
    background: #f2f4f7;
    color: #172033;
    font-weight: 700;
}

.admin-main {
    flex: 1;
    min-width: 0;
    background: #f5f7fb;
}

/* =========================================================
   YOUR PA — Admin User Worklist
   Uses the actual classes in admin_users.html
   ========================================================= */

.admin-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

.page-header {
    margin-bottom: 18px;
}

.page-header h1 {
    margin: 0 0 5px;
    font-size: 25px;
    line-height: 1.25;
}

.page-header p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.worklist-filters {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.section-heading {
    margin: 0 0 12px;
    color: #172033;
    font-size: 16px;
    font-weight: 700;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 10px;
    margin-bottom: 14px;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    padding: 10px 12px;
    background: #ffffff;
    color: #172033;
    font-size: 13px;
}

.search-input:focus,
.filter-item select:focus {
    outline: none;
    border-color: #98a2b3;
    box-shadow: 0 0 0 2px rgba(16, 24, 40, 0.06);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-item label {
    font-size: 12px;
    color: #475467;
    font-weight: 600;
}

.filter-item select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    padding: 9px 10px;
    background: #ffffff;
    color: #344054;
    font-size: 13px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    padding: 8px 15px;
    border-radius: 7px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
}

.btn-primary {
    background: #344054;
    color: #ffffff;
    border-color: #344054;
}

.btn:hover {
    opacity: 0.9;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.results-header .section-heading {
    margin-bottom: 0;
}

.results-count {
    font-size: 13px;
    color: #667085;
}

.worklist-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    overflow: hidden;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.user-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    font-size: 13px;
}

.user-table th {
    padding: 11px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e4e7ec;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-align: left;
    white-space: nowrap;
}

.user-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #eef0f3;
    color: #344054;
    vertical-align: middle;
    white-space: nowrap;
}

.user-table tbody tr:last-child td {
    border-bottom: none;
}

.user-table tbody tr:hover {
    background: #fafbfc;
}

.user-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.user-link:hover {
    text-decoration: underline;
}

.user-email {
    color: #667085;
}

.secondary-text {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: 11px;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    background: #f2f4f7;
    color: #475467;
}

.status-active {
    background: #ecfdf3;
    color: #027a48;
}

.status-inactive {
    background: #f2f4f7;
    color: #667085;
}

.status-pending {
    background: #fffaeb;
    color: #b54708;
}

.status-expired {
    background: #fef3f2;
    color: #b42318;
}

.status-normal {
    background: #f2f4f7;
    color: #667085;
}

.status-additional {
    background: #f4ebff;
    color: #6941c6;
}

.status-connected {
    background: #ecfdf3;
    color: #027a48;
}

.status-none {
    background: #f2f4f7;
    color: #667085;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #667085;
    font-size: 14px;
}

/* ---------- Admin Users responsive ---------- */

@media (max-width: 1100px) {
    .filter-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 800px) {
    .topbar {
        min-height: 54px;
        padding: 0 14px;
    }

    .topbar > div:last-child {
        font-size: 12px;
    }

    .admin-layout {
        min-height: calc(100vh - 54px);
    }

    .sidebar {
        width: 175px;
        flex-basis: 175px;
    }

    .admin-page {
        padding: 16px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 600px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 10px 14px;
    }

    .admin-layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        padding: 8px 10px;
        border-right: none;
        border-bottom: 1px solid #e4e7ec;
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar nav a {
        padding: 8px 10px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   YOUR PA — Typography & Information Density Refresh
   V1 UI consistency pass
   ========================================================= */

/* ---------- Common typography ---------- */

html {
    font-size: 16px;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-size: 15px;
    line-height: 1.5;
}

/* ---------- Public / common screens ---------- */

.home-content h1 {
    font-size: 48px;
    line-height: 1.15;
}

.home-content h2 {
    font-size: 27px;
    line-height: 1.25;
}

.subtitle {
    font-size: 18px;
    line-height: 1.55;
}

.login-card h1 {
    font-size: 36px;
}

.form-group label {
    font-size: 14px;
}

.form-group input {
    font-size: 16px;
}

/* =========================================================
   YOUR PA WORKSPACE
   Inline workspace CSS is intentionally overridden here so
   typography remains consistent without changing functionality.
   ========================================================= */

.pa-brand-name {
    font-size: 17px !important;
}

.pa-brand-caption {
    font-size: 11px !important;
}

.pa-user-name {
    font-size: 13px !important;
}

.pa-logout {
    font-size: 13px !important;
}

.nav-title {
    font-size: 11px !important;
}

.nav-item {
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.nav-icon {
    font-size: 16px !important;
}

.nav-meta {
    font-size: 10px !important;
}

.agent-name {
    font-size: 27px !important;
    line-height: 1.2 !important;
}

.agent-description {
    font-size: 14px !important;
}

.agent-ready {
    font-size: 11px !important;
}

.welcome-card h2 {
    font-size: 19px !important;
    line-height: 1.35 !important;
}

.welcome-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.prompt-chip {
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.message-input {
    font-size: 14px !important;
}

.voice-info {
    font-size: 11px !important;
}

.page-heading h1 {
    font-size: 27px !important;
    line-height: 1.25 !important;
}

.page-heading p {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.metric-label {
    font-size: 12px !important;
}

.metric-value {
    font-size: 22px !important;
    line-height: 1.25 !important;
}

.metric-detail {
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.section-heading h2 {
    font-size: 17px !important;
}

.section-heading span {
    font-size: 12px !important;
}

.category-title {
    font-size: 11px !important;
}

.tool-name {
    font-size: 14px !important;
}

.tool-description {
    font-size: 12px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.4 !important;
}

.connect-button {
    font-size: 11px !important;
}

.preferences-card h1 {
    font-size: 24px !important;
}

.preferences-card > p {
    font-size: 14px !important;
}

.preferences-view .form-group label {
    font-size: 13px !important;
}

.preferences-view .form-group input,
.preferences-view .form-group select {
    font-size: 14px !important;
}

.choice label {
    font-size: 13px !important;
}

.save-message {
    font-size: 12px !important;
}

.save-button {
    font-size: 13px !important;
}

/* =========================================================
   ADMIN SHELL
   ========================================================= */

.topbar > div:last-child {
    font-size: 14px !important;
}

.sidebar nav a {
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.page-header h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
}

.page-header p {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.section-heading {
    font-size: 18px !important;
}

.search-input {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.filter-item label {
    font-size: 13px !important;
}

.filter-item select {
    font-size: 14px !important;
}

.btn {
    font-size: 14px !important;
}

.results-count {
    font-size: 14px !important;
}

/* =========================================================
   ADMIN USER WORKLIST
   Better alignment + controlled wrapping for long values.
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.user-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px !important;
}

.user-table th {
    padding: 12px 12px !important;
    font-size: 12.5px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    vertical-align: middle !important;
}

.user-table td {
    padding: 13px 12px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    vertical-align: top !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Stable column widths for the 10-column Worklist. */
.user-table th:nth-child(1),
.user-table td:nth-child(1) {
    width: 15%;
}

.user-table th:nth-child(2),
.user-table td:nth-child(2) {
    width: 12%;
}

.user-table th:nth-child(3),
.user-table td:nth-child(3) {
    width: 9%;
}

.user-table th:nth-child(4),
.user-table td:nth-child(4) {
    width: 10%;
}

.user-table th:nth-child(5),
.user-table td:nth-child(5) {
    width: 10%;
}

.user-table th:nth-child(6),
.user-table td:nth-child(6) {
    width: 9%;
}

.user-table th:nth-child(7),
.user-table td:nth-child(7) {
    width: 10%;
}

.user-table th:nth-child(8),
.user-table td:nth-child(8) {
    width: 8%;
}

.user-table th:nth-child(9),
.user-table td:nth-child(9) {
    width: 8%;
}

.user-table th:nth-child(10),
.user-table td:nth-child(10) {
    width: 9%;
}

.user-table .user-link {
    display: inline-block;
    font-size: 15px !important;
    line-height: 1.35;
    margin-bottom: 1px;
}

.user-table .secondary-text {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.user-table .status {
    font-size: 12px !important;
    line-height: 1.25 !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
    vertical-align: middle;
}

/* Keep date ranges readable instead of forcing a single line. */
.user-table td:nth-child(4),
.user-table td:nth-child(5),
.user-table td:nth-child(6),
.user-table td:nth-child(10) {
    overflow-wrap: anywhere;
}

/* =========================================================
   ADMIN USER 360
   The page has local CSS, so !important is used only for
   typography/layout rules that need to remain consistent.
   ========================================================= */

.user360-header {
    margin-bottom: 24px !important;
}

.user360-title h1 {
    font-size: 30px !important;
    line-height: 1.2 !important;
}

.user360-title p {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.user360-actions .btn {
    font-size: 14px !important;
}

.user-summary-name {
    font-size: 20px !important;
}

.user-summary-email {
    font-size: 14px !important;
}

.user-summary-code {
    font-size: 13px !important;
}

.detail-card-header h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.detail-card-header p {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.detail-label {
    font-size: 12px !important;
}

.detail-value {
    font-size: 14px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.user360-grid .status {
    font-size: 12px !important;
}

.usage-box-title,
.limit-box-title {
    font-size: 12px !important;
}

.usage-box-value {
    font-size: 20px !important;
}

.usage-box-label {
    font-size: 12px !important;
}

.limit-box-value {
    font-size: 16px !important;
    overflow-wrap: anywhere;
}

.service-name {
    font-size: 14px !important;
}

.service-provider {
    font-size: 12px !important;
}

.service-toolkit {
    font-size: 11px !important;
    overflow-wrap: anywhere;
}

.empty-state {
    font-size: 14px !important;
}

/* =========================================================
   ADMIN RESPONSIVE TYPOGRAPHY
   ========================================================= */

@media (max-width: 800px) {

    .page-header h1 {
        font-size: 25px !important;
    }

    .page-header p {
        font-size: 14px !important;
    }

    .user360-title h1 {
        font-size: 27px !important;
    }

    .user-summary-name {
        font-size: 18px !important;
    }

    .user-table {
        min-width: 1050px;
    }

    .user-table th {
        font-size: 12px !important;
    }

    .user-table td {
        font-size: 13.5px !important;
    }

    .user-table .secondary-text {
        font-size: 12px !important;
    }

}

@media (max-width: 650px) {

    .agent-name {
        font-size: 23px !important;
    }

    .agent-description {
        font-size: 13px !important;
    }

    .welcome-card h2 {
        font-size: 18px !important;
    }

    .welcome-card p {
        font-size: 13.5px !important;
    }

    .prompt-chip {
        font-size: 12px !important;
    }

    .page-heading h1 {
        font-size: 23px !important;
    }

    .metric-value {
        font-size: 20px !important;
    }

}

/* =========================================================
   USER 360 MODAL
   ========================================================= */

.user360-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.45);

    z-index: 9999;
    padding: 24px;
    box-sizing: border-box;
}

.user360-modal-content {
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);

    background: #ffffff;
    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.user360-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.user360-modal-header h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.user360-modal-header p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.user360-modal-close {
    border: none;
    background: transparent;

    font-size: 26px;
    line-height: 1;

    color: #6b7280;
    cursor: pointer;

    padding: 0 2px;
}

.user360-modal-close:hover {
    color: #111827;
}

.user360-modal-body {
    padding: 22px 24px;

    overflow-y: auto;
}

.user360-modal-body .form-group {
    margin-bottom: 16px;
}

.user360-modal-body .form-group:last-child {
    margin-bottom: 0;
}

.user360-modal-body label {
    display: block;
    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 600;
}

.user360-modal-body input {
    width: 100%;
    box-sizing: border-box;

    padding: 10px 12px;

    border: 1px solid #d1d5db;
    border-radius: 7px;

    font-size: 14px;
}

.user360-modal-body input:focus {
    outline: none;
    border-color: #6b7280;
}

.user360-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 16px 24px;

    border-top: 1px solid #e5e7eb;
}