:root {
    --agent-green: #21c6a3;
    --agent-green-dark: #129678;
    --agent-emerald: #10b981;
    --agent-slate: #0f172a;
    --agent-muted: #64748b;
    --agent-line: #e2e8f0;
}

body.agent-auth-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--agent-slate);
    background: #f8fafc;
    letter-spacing: 0;
}

body[data-page="agent-login"],
body[data-page="agent-signup"] {
    background: #f0f9f7;
}

.agent-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.agent-auth-card {
    width: min(100%, 384px);
    padding: 32px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.agent-signup-card {
    width: min(100%, 672px);
}

.agent-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    text-decoration: none;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.agent-brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--agent-green);
    color: #fff;
    font-size: 14px;
}

.agent-auth-title {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
    color: #111827;
}

.agent-auth-subtitle {
    margin: 0 0 28px;
    color: #6b7280;
    font-size: 14px;
}

.agent-auth-form {
    display: grid;
    gap: 16px;
}

.agent-auth-label {
    display: block;
    margin-bottom: 6px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.agent-auth-control {
    min-height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #111827;
    box-shadow: none;
}

.agent-auth-control.is-invalid {
    border-color: #ef4444;
    background-image: none;
}

.agent-form-error {
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.agent-form-hint {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.agent-signup-card .iti,
.agent-step-form-card .iti {
    width: 100%;
}

.agent-signup-card .iti__flag-container,
.agent-step-form-card .iti__flag-container {
    border-right: 1px solid #dce8df;
}

.agent-signup-card .iti--separate-dial-code .iti__selected-flag,
.agent-step-form-card .iti--separate-dial-code .iti__selected-flag {
    min-width: 88px;
    border-radius: 12px 0 0 12px;
    background: #edf8ef;
}

.agent-signup-card .iti--separate-dial-code .agent-phone-input,
.agent-step-form-card .iti--separate-dial-code .agent-phone-input {
    padding-left: 104px !important;
}

.agent-step-form-card .agent-phone-code-locked .iti__selected-flag {
    cursor: default;
}

.agent-step-form-card .agent-phone-code-locked .agent-phone-input,
.agent-step-form-card .agent-phone-code-locked .iti__selected-flag {
    background: #f8fafc;
    color: var(--agent-muted);
}

.agent-step-form-card .agent-phone-code-locked .iti__arrow {
    display: none;
}

.agent-phone-input {
    border-color: #cfe8d8;
}

.agent-signup-card .iti__country-list {
    min-width: 320px;
}

.iti__country-search-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px;
    background: #fff;
}

.iti__country-search {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    color: #111827;
    font-size: 13px;
    outline: 0;
    padding: 8px 10px;
}

.iti__country-search:focus {
    border-color: var(--agent-green);
    box-shadow: 0 0 0 3px rgba(33, 198, 163, 0.12);
}

.iti__country-hidden {
    display: none;
}

.agent-password-action-wrap {
    position: relative;
}

.agent-password-action-wrap .agent-auth-control {
    padding-right: 118px !important;
}

.agent-password-generate-btn {
    position: absolute;
    top: 50%;
    right: 42px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #059669;
    font-size: 12px;
    font-weight: 800;
}

.agent-auth-control:focus,
.agent-step-control:focus {
    border-color: var(--agent-green);
    box-shadow: 0 0 0 4px rgba(33, 198, 163, 0.14);
}

.agent-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9ca3af;
    line-height: 1;
}

.agent-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #059669;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.agent-auth-submit,
.agent-step-primary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    background: var(--agent-green);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.agent-auth-submit:hover,
.agent-step-primary:hover {
    background: var(--agent-green-dark);
    color: #fff;
}

.agent-auth-switch {
    margin-top: 24px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.agent-auth-switch a {
    margin-left: 4px;
    color: #059669;
    font-weight: 700;
    text-decoration: none;
}

.agent-auth-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.agent-auth-footer a {
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
}

.agent-auth-demo-note,
.agent-auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 12px;
    font-size: 12px;
}

.agent-auth-demo-note {
    margin-top: 20px;
    border: 1px solid #d1fae5;
    background: #ecfdf5;
    color: #047857;
}

.agent-auth-alert {
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.agent-auth-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 1050;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.agent-auth-toast.is-visible {
    opacity: 1;
}

.agent-onboarding-header,
.agent-onboarding-progress {
    border-bottom: 1px solid var(--agent-line);
    background: #fff;
}

.agent-onboarding-header-inner,
.agent-onboarding-progress-inner,
.agent-onboarding-main {
    width: min(100%, 1024px);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.agent-onboarding-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.agent-onboarding-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-onboarding-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: var(--agent-emerald);
    color: #fff;
}

.agent-onboarding-kicker {
    margin: 0 0 2px;
    color: #059669;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.agent-onboarding-title-wrap h1 {
    margin: 0;
    color: var(--agent-slate);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
}

.agent-onboarding-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--agent-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.agent-onboarding-login:hover {
    color: var(--agent-slate);
}

.agent-onboarding-login:focus,
.agent-onboarding-login:active,
.agent-onboarding-login:focus-visible {
    background: transparent;
    color: var(--agent-slate);
    outline: 0;
    box-shadow: none;
}

.agent-onboarding-logout-form {
    margin: 0;
}

.agent-onboarding-progress-inner {
    padding-top: 16px;
    padding-bottom: 16px;
}

.agent-progress-title {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.agent-progress-count {
    color: var(--agent-muted);
    font-size: 14px;
}

.agent-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
}

.agent-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--agent-emerald);
    transition: width 0.3s ease;
}

.agent-progress-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.agent-progress-step {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.agent-progress-step.is-active {
    color: #047857;
}

.agent-onboarding-main {
    padding-top: 32px;
    padding-bottom: 48px;
}

.agent-step-card,
.agent-success-card {
    border: 1px solid var(--agent-line);
    border-radius: 28px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.agent-step-form-card {
    overflow: visible;
}

.agent-step-card h2,
.agent-success-card h2 {
    margin: 0 0 4px;
    color: var(--agent-slate);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
}

.agent-step-subtitle {
    margin: 0 0 24px;
    color: var(--agent-muted);
    font-size: 14px;
}

.agent-step-note {
    margin-bottom: 24px;
    border: 1px solid #c7f9e8;
    border-radius: 16px;
    background: #ecfdf5;
    color: #166534;
    padding: 12px 16px;
    font-size: 14px;
}

.agent-step-label {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.agent-step-label span {
    color: #ef4444;
}

.agent-step-control {
    min-height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 12px 16px;
    color: var(--agent-slate);
    font-size: 14px;
}

.agent-step-control[readonly] {
    background: #f8fafc;
    color: var(--agent-muted);
    cursor: not-allowed;
}

textarea.agent-step-control {
    min-height: 126px;
    resize: none;
}

.agent-upload-zone {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 4px;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agent-upload-zone i {
    color: #cbd5e1;
    font-size: 30px;
}

.agent-upload-zone span {
    color: var(--agent-muted);
    font-size: 14px;
}

.agent-upload-zone small {
    color: #94a3b8;
    font-size: 12px;
}

.agent-upload-zone:hover,
.agent-upload-zone.is-uploaded {
    border-color: var(--agent-emerald);
    background: #ecfdf5;
}

.agent-upload-zone.is-disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.72;
}

.agent-upload-preview {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.agent-pill-picker {
    border: 0;
    background: transparent;
    padding: 0;
}

.agent-empty-inline {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.agent-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agent-tag-option {
    display: inline-flex;
    margin: 0;
}

.agent-tag-check {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.agent-tag {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    padding: 6px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.agent-tag-check:checked + .agent-tag,
.agent-tag.is-selected,
.agent-tag:hover {
    border-color: var(--agent-emerald);
    background: var(--agent-emerald);
    color: #fff;
}

.agent-step-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.agent-step-secondary,
.agent-step-outline {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.agent-step-secondary {
    border: 0;
}

.agent-step-outline {
    border: 1px solid #cbd5e1;
}

.agent-step-secondary:hover,
.agent-step-outline:hover {
    background: #f8fafc;
    color: var(--agent-slate);
}

.agent-document-stack {
    display: grid;
    gap: 20px;
}

.agent-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--agent-muted);
    font-size: 13px;
}

.agent-confirm-box {
    border: 1px solid var(--agent-line);
    border-radius: 16px;
    background: #f8fafc;
    padding: 16px;
}

.agent-review-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.agent-review-initials {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 20px;
    background: #d1fae5;
    color: #047857;
    font-size: 20px;
    font-weight: 900;
}

.agent-review-profile h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.agent-review-profile p {
    margin: 2px 0 0;
    color: var(--agent-muted);
    font-size: 14px;
}

.agent-review-grid span,
.agent-profile-note span,
.agent-doc-status > span {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.agent-review-grid strong {
    color: var(--agent-slate);
    font-size: 14px;
}

.agent-profile-note,
.agent-doc-status {
    margin-top: 24px;
    border-radius: 16px;
    padding: 16px;
}

.agent-profile-note {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
}

.agent-profile-note p {
    margin: 0;
    color: #065f46;
    font-size: 14px;
}

.agent-doc-status {
    border: 1px solid var(--agent-line);
}

.agent-doc-status div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 14px;
}

.agent-doc-status div + div {
    margin-top: 8px;
}

.agent-doc-status small {
    color: var(--agent-muted);
}

.agent-success-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.agent-success-icon {
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 999px;
    background: #d1fae5;
    color: var(--agent-emerald);
    font-size: 38px;
}

.agent-success-card p {
    margin: 0 0 8px;
    color: var(--agent-muted);
}

.agent-success-small {
    font-size: 14px;
}

.agent-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

@media (max-width: 767.98px) {
    .agent-auth-card {
        padding: 28px 20px;
    }

    .agent-onboarding-header-inner,
    .agent-onboarding-progress-inner,
    .agent-onboarding-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .agent-onboarding-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .agent-onboarding-title-wrap h1,
    .agent-step-card h2,
    .agent-success-card h2 {
        font-size: 22px;
    }

    .agent-onboarding-kicker {
        letter-spacing: 0.18em;
    }

    .agent-step-card,
    .agent-success-card {
        border-radius: 22px;
        padding: 22px 18px;
    }

    .agent-step-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .agent-step-actions .btn {
        width: 100%;
    }
}

.agent-shell-body {
    min-height: 100vh;
    background: #f9fafb;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

.agent-shell {
    display: flex;
    min-height: 100vh;
}

.agent-shell-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.agent-sidebar {
    width: 256px;
    flex: 0 0 256px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    background: #fff;
}

.agent-sidebar-profile {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.agent-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-sidebar-user img,
.agent-header-avatar img {
    display: block;
    border-radius: 999px;
    object-fit: cover;
}

.agent-sidebar-user img {
    width: 48px;
    height: 48px;
    box-shadow: 0 0 0 2px #a7f3d0;
}

.agent-sidebar-user p {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.agent-sidebar-user span {
    color: #9ca3af;
    font-size: 12px;
}

.agent-sidebar-badges,
.agent-profile-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.agent-rating-pill,
.agent-verified-pill,
.agent-top-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.agent-rating-pill {
    background: #fffbeb;
    color: #d97706;
}

.agent-rating-pill i {
    color: #f59e0b;
}

.agent-verified-pill {
    background: #d1fae5;
    color: #047857;
}

.agent-top-pill {
    background: #dbeafe;
    color: #1d4ed8;
}

.agent-sidebar-nav {
    display: grid;
    gap: 2px;
    padding: 12px;
}

.agent-sidebar-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    padding: 10px 16px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.agent-sidebar-link i {
    width: 16px;
    text-align: center;
}

.agent-sidebar-link strong {
    min-width: 22px;
    margin-left: auto;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.agent-sidebar-link strong.is-gray {
    background: #e5e7eb;
    color: #4b5563;
}

.agent-sidebar-link.active {
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
}

.agent-sidebar-link:hover {
    background: #f9fafb;
    color: #059669;
}

.agent-sidebar-link.is-muted {
    opacity: 0.82;
}

.agent-sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #f3f4f6;
    padding: 12px;
}

.agent-sidebar-logout-form {
    margin: 0;
}

.agent-sidebar-logout-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.agent-sidebar-logout-button:hover {
    background: #fef2f2;
    color: #dc2626;
}

.agent-shell-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.agent-shell-header-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}

.agent-mobile-menu {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #334155;
}

.agent-header-avatar img {
    width: 32px;
    height: 32px;
}

.agent-header-name {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.agent-header-actions {
    display: flex;
    gap: 8px;
}

.agent-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.agent-header-actions .btn {
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.agent-header-actions .btn.is-active {
    background: #d1fae5;
    color: #047857;
}

.agent-notification-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.agent-notification-button:hover {
    color: #059669;
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.agent-notification-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
}

.agent-notification-dropdown {
    position: relative;
}

.agent-notification-menu {
    width: min(340px, calc(100vw - 28px));
    max-height: min(520px, calc(100vh - 96px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.agent-notification-head {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #ecfdf5;
}

.agent-notification-head strong {
    color: #064e3b;
    font-size: 16px;
    font-weight: 800;
}

.agent-notification-head span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #047857;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.agent-notification-list {
    max-height: 360px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
}

.agent-notification-item {
    width: 100%;
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: transparent;
    color: #111827;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.agent-notification-item > span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 7px;
    border-radius: 999px;
    background: #ffb300;
}

.agent-notification-item strong {
    display: block;
    color: #343a40;
    font-size: 14px;
    font-weight: 800;
}

.agent-notification-item p {
    margin: 2px 0 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.4;
}

.agent-notification-item:hover {
    background: #f8fafc;
}

.agent-notification-footer {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #ecfdf5;
    color: #064e3b;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.agent-notification-footer:hover {
    color: #059669;
}

.agent-notification-empty {
    min-height: 136px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 24px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.agent-notification-empty i {
    font-size: 22px;
}

.agent-notifications-page {
    --portal-accent: #059669;
    --portal-accent-dark: #047857;
    --portal-soft: #ecfdf5;
}

.portal-notifications-page {
    padding: 24px 32px 32px;
}

.portal-notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.portal-notifications-head h1 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 900;
}

.portal-notifications-head p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.portal-notifications-control {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.portal-notifications-control select {
    border: 0;
    background: transparent;
    color: #111827;
    font-weight: 800;
    outline: none;
}

.portal-notifications-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.portal-notifications-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.portal-notifications-card-head h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.portal-notifications-card-head span {
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--portal-soft);
    color: var(--portal-accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.portal-notification-row {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
}

.portal-notification-row.is-unread {
    background: linear-gradient(90deg, var(--portal-soft), #fff 46%);
}

.portal-notification-chip {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 14px;
    background: var(--portal-soft);
    color: var(--portal-accent);
}

.portal-notification-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.portal-notification-copy > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-notification-copy h3 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.portal-notification-copy span {
    border-radius: 999px;
    padding: 4px 9px;
    background: var(--portal-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.portal-notification-copy p {
    margin: 5px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.portal-notification-copy small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.portal-notifications-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 54px 20px;
    text-align: center;
}

.portal-notifications-empty i {
    color: #cbd5e1;
    font-size: 34px;
}

.portal-notifications-empty h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.portal-notifications-empty p {
    margin: 0;
    color: #6b7280;
}

.portal-notifications-pagination {
    padding: 18px 20px;
    border-top: 1px solid #eef2f7;
}

.agent-page {
    flex: 1 1 auto;
    padding: 24px;
}

.agent-page-head,
.agent-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.agent-page-head h1,
.agent-profile-head h1 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.agent-page-head p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.agent-solid-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: #059669;
    color: #fff;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 700;
}

.agent-solid-btn:hover {
    background: #047857;
    color: #fff;
}

.agent-itinerary-group {
    margin-bottom: 32px;
}

.agent-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.agent-group-title h2 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.agent-group-title h2 span {
    color: #9ca3af;
    font-weight: 400;
}

.agent-group-title div {
    height: 1px;
    flex: 1;
    background: #e5e7eb;
}

.agent-group-title strong,
.agent-status-pill {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.agent-group-title strong.is-blue,
.agent-status-pill.is-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.agent-group-title strong.is-gray,
.agent-status-pill.is-gray {
    background: #f3f4f6;
    color: #4b5563;
}

.agent-status-pill.is-amber {
    background: #fef3c7;
    color: #b45309;
}

.agent-itinerary-list,
.agent-customer-list {
    display: grid;
    gap: 12px;
}

.agent-itinerary-card,
.agent-customer-card {
    display: flex;
    gap: 16px;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.agent-itinerary-card.is-active-card {
    border-color: #dbeafe;
}

.agent-itinerary-card:hover,
.agent-customer-card:hover {
    border-color: #a7f3d0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.agent-itinerary-image {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    overflow: hidden;
    border-radius: 12px;
}

.agent-itinerary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-itinerary-content {
    min-width: 0;
    flex: 1;
}

.agent-itinerary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.agent-itinerary-top h3,
.agent-customer-copy h2 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.agent-client-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.agent-client-line small,
.agent-customer-copy p,
.agent-customer-copy div span,
.agent-customer-copy small {
    color: #6b7280;
    font-size: 12px;
}

.agent-mini-avatar {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.agent-mini-avatar.is-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.agent-mini-avatar.is-indigo {
    background: #e0e7ff;
    color: #4338ca;
}

.agent-mini-avatar.is-emerald {
    background: #d1fae5;
    color: #047857;
}

.agent-mini-avatar.is-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.agent-itinerary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 8px 0 12px;
    color: #6b7280;
    font-size: 12px;
}

.agent-itinerary-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.agent-itinerary-meta i {
    color: #9ca3af;
}

.agent-itinerary-meta strong {
    color: #1f2937;
}

.agent-itinerary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agent-card-primary,
.agent-card-secondary,
.agent-card-soft {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.agent-card-primary {
    border: 0;
    background: #059669;
    color: #fff;
}

.agent-card-primary:hover {
    background: #047857;
    color: #fff;
}

.agent-card-secondary {
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.agent-card-secondary:hover {
    background: #f9fafb;
}

.agent-card-soft {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.agent-card-soft:hover {
    background: #d1fae5;
    color: #047857;
}

.agent-search-wrap {
    position: relative;
    margin-bottom: 16px;
}

.agent-search-wrap i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
}

.agent-search-wrap input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 10px 16px 10px 40px;
    color: #111827;
    font-size: 14px;
    outline: none;
}

.agent-search-wrap input:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.agent-customer-card {
    align-items: center;
    border-color: #e5e7eb;
}

.agent-customer-initials {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #d1fae5;
    color: #047857;
    font-size: 14px;
    font-weight: 800;
}

.agent-customer-copy {
    min-width: 0;
    flex: 1;
}

.agent-customer-copy p {
    margin: 3px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-customer-copy div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.agent-customer-copy div span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.agent-customer-copy div i {
    color: #d1d5db;
}

.agent-customer-copy small {
    display: block;
    margin-top: 4px;
    color: #92400e;
}

.agent-customer-side {
    display: grid;
    justify-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.agent-customer-side span {
    color: #9ca3af;
    font-size: 10px;
}

.agent-empty-state {
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    background: #fff;
    padding: 32px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

.agent-profile-head {
    margin-bottom: 20px;
}

.agent-completeness {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    background: #ecfdf5;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.agent-completeness > div {
    flex: 1;
}

.agent-completeness-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.agent-completeness-top p {
    margin: 0;
    color: #064e3b;
    font-size: 14px;
    font-weight: 700;
}

.agent-completeness-top strong {
    color: #047857;
    font-size: 14px;
}

.agent-completeness-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #d1fae5;
}

.agent-completeness-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #10b981;
}

.agent-completeness small {
    display: block;
    margin-top: 6px;
    color: #047857;
    font-size: 12px;
}

.agent-profile-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr);
    gap: 24px;
}

.agent-profile-left,
.agent-profile-right {
    display: grid;
    align-content: start;
    gap: 16px;
}

.agent-profile-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 20px;
}

.agent-profile-card h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}

.agent-profile-card > p {
    margin: 2px 0 10px;
    color: #6b7280;
    font-size: 14px;
}

.agent-profile-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.agent-profile-photo {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.agent-profile-photo img {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 4px #d1fae5;
}

.agent-profile-photo button {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #059669;
    color: #fff;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.24);
    font-size: 10px;
}

.agent-profile-stat-list {
    display: grid;
    gap: 10px;
    border-top: 1px solid #f3f4f6;
    margin-top: 16px;
    padding-top: 16px;
    text-align: left;
}

.agent-profile-stat-list div,
.agent-availability-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
}

.agent-profile-stat-list i {
    width: 16px;
    color: #9ca3af;
    text-align: center;
}

.agent-profile-stat-list .is-emerald i,
.agent-availability-list i {
    color: #10b981;
}

.agent-availability-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-availability-row strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
}

.agent-availability-row span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
}

.agent-toggle {
    width: 44px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    padding: 4px;
    transition: background 0.2s ease;
}

.agent-toggle span {
    width: 16px;
    height: 16px;
    display: block;
    border-radius: 999px;
    background: #fff;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.agent-toggle.is-on {
    background: #10b981;
}

.agent-toggle.is-on span {
    transform: translateX(20px);
}

.agent-availability-list {
    display: grid;
    gap: 8px;
}

.agent-doc-list {
    display: grid;
    gap: 10px;
}

.agent-doc-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.agent-doc-list span,
.agent-doc-list strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.agent-doc-list span {
    color: #374151;
}

.agent-doc-list span i {
    width: 14px;
    color: #60a5fa;
}

.agent-doc-list strong {
    font-weight: 700;
}

.agent-doc-list strong.is-verified {
    color: #059669;
}

.agent-doc-list strong.is-warning {
    color: #d97706;
}

.agent-profile-textarea {
    min-height: 120px;
    border-color: #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
}

.agent-muted-caption {
    margin: 0 0 12px;
    color: #9ca3af;
    font-size: 12px;
}

.agent-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agent-destination-chip,
.agent-style-chip,
.agent-language-chip,
.agent-add-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

.agent-destination-chip {
    background: #d1fae5;
    color: #047857;
}

.agent-destination-chip button,
.agent-add-chip,
.agent-bank-footer button {
    border: 0;
    background: transparent;
}

.agent-destination-chip button {
    color: #34d399;
    padding: 0;
    font-weight: 800;
}

.agent-style-chip {
    background: #f3f4f6;
    color: #374151;
}

.agent-language-chip {
    background: #dbeafe;
    color: #1d4ed8;
}

.agent-add-chip {
    border: 1px dashed #86efac;
    color: #059669;
}

.agent-add-chip.is-blue {
    border-color: #bfdbfe;
    color: #3b82f6;
}

.agent-bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px;
    background: #f9fafb;
    padding: 12px;
    margin-bottom: 12px;
}

.agent-bank-row > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-bank-row > div > span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #dbeafe;
    color: #3b82f6;
    font-size: 12px;
}

.agent-bank-row strong {
    display: block;
    color: #111827;
    font-size: 14px;
}

.agent-bank-row small {
    color: #9ca3af;
    font-size: 12px;
}

.agent-bank-row em {
    border-radius: 999px;
    background: #d1fae5;
    color: #047857;
    padding: 2px 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.agent-bank-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #9ca3af;
    font-size: 12px;
}

.agent-bank-footer button {
    color: #059669;
    font-weight: 600;
}

.agent-shell-footer {
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding: 12px 24px;
    text-align: right;
}

.agent-shell-footer a {
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .agent-shell {
        display: block;
    }

    .agent-sidebar {
        width: min(88vw, 320px);
    }

    .agent-sidebar-mobile-head {
        display: flex;
    }

    .agent-sidebar-mobile-title {
        color: #111827;
        font-weight: 800;
    }

    .agent-page {
        padding: 20px 16px;
    }

    .agent-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .agent-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex !important;
        flex-direction: column;
    }

    .agent-sidebar-mobile-head {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .agent-page-head,
    .agent-profile-head,
    .agent-completeness {
        align-items: stretch;
        flex-direction: column;
    }

    .agent-page-head .btn,
    .agent-profile-head .btn,
    .agent-completeness .btn {
        width: 100%;
    }

    .agent-itinerary-card,
    .agent-customer-card {
        flex-direction: column;
    }

    .agent-itinerary-image {
        width: 100%;
        height: 160px;
        flex-basis: auto;
    }

    .agent-itinerary-top {
        flex-direction: column;
    }

    .agent-customer-side {
        justify-items: stretch;
    }

    .agent-customer-side .btn {
        width: 100%;
    }

    .agent-header-actions {
        display: none;
    }
}
