:root {
    --pc-primary: #2563eb;
    --pc-primary-2: #0ea5e9;
    --pc-primary-soft: #eef6ff;
    --pc-success: #16a34a;
    --pc-warning: #f59e0b;
    --pc-danger: #ef4444;
    --pc-info: #06b6d4;
    --pc-dark: #0f172a;
    --pc-text: #1f2937;
    --pc-muted: #64748b;
    --pc-border: #e5e7eb;
    --pc-bg: #f4f7fb;
    --pc-card: #ffffff;
    --pc-sidebar: #0f172a;
    --pc-sidebar-2: #1e293b;
    --pc-shadow: 0 18px 55px rgba(15, 23, 42, .08);
    --pc-soft-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    --pc-radius: 22px;
    --pc-sidebar-width: 264px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--pc-bg);
    color: var(--pc-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 14px;
}
a { color: var(--pc-primary); transition: .2s ease; }
a:hover { color: #1d4ed8; text-decoration: none; }
img, svg { max-width: 100%; }

/* ===== Auth pages ===== */
.auth-page {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 36%),
        radial-gradient(circle at bottom right, rgba(6, 182, 212, .15), transparent 35%),
        #f7faff;
}
.guest-content { min-height: 100vh; }
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}
.auth-card {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .15);
    backdrop-filter: blur(14px);
}
.auth-card.register { max-width: 1080px; }
.auth-panel {
    position: relative;
    padding: 44px;
    color: #fff;
    background: linear-gradient(145deg, #0f172a 0%, #1d4ed8 58%, #06b6d4 120%);
    overflow: hidden;
}
.auth-panel:before,
.auth-panel:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}
.auth-panel:before { width: 220px; height: 220px; right: -70px; top: -70px; }
.auth-panel:after { width: 160px; height: 160px; left: -60px; bottom: -50px; }
.brand-mark {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 24px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}
.auth-panel h1,
.auth-panel p,
.auth-feature-list { position: relative; z-index: 1; }
.auth-panel h1 { font-weight: 800; letter-spacing: -.04em; margin-bottom: 14px; }
.auth-panel p { color: rgba(255,255,255,.78); line-height: 1.7; }
.auth-feature-list { margin: 30px 0 0; padding: 0; list-style: none; }
.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.88);
    margin-bottom: 14px;
}
.auth-feature-list i {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.16);
}
.auth-form { padding: 44px; }
.form-title { font-size: 28px; font-weight: 800; color: var(--pc-dark); letter-spacing: -.04em; }
.form-subtitle { color: var(--pc-muted); margin-top: 4px; }

/* ===== Core layout ===== */
.pc-body { background: var(--pc-bg); }
.pc-shell { min-height: 100vh; }
.pc-sidebar {
    position: fixed;
    z-index: 1040;
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: var(--pc-sidebar-width);
    padding: 18px 14px;
    border-radius: 24px;
    color: #dbeafe;
    background: linear-gradient(180deg, var(--pc-sidebar), #111827 62%, #0f2a3a);
    box-shadow: 0 25px 70px rgba(15, 23, 42, .28);
    overflow-y: auto;
    transition: transform .24s ease, box-shadow .24s ease;
}
.pc-sidebar::-webkit-scrollbar { width: 6px; }
.pc-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; }
.pc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 8px 10px 18px;
    color: #fff !important;
}
.pc-brand-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    box-shadow: 0 12px 25px rgba(37, 99, 235, .35);
}
.pc-brand-copy { min-width: 0; line-height: 1.05; }
.pc-brand-copy strong {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.03em;
    white-space: nowrap;
}
.pc-brand-copy small {
    display: block;
    margin-top: 6px;
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pc-nav { margin-top: 20px; }
.pc-nav-label {
    padding: 0 12px 10px;
    color: #94a3b8;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
}
.pc-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 17px;
    color: #cbd5e1 !important;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
}
.pc-nav-item:hover,
.pc-nav-item.active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.1);
}
.pc-nav-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,.08);
    color: #bfdbfe;
}
.pc-nav-item:hover .pc-nav-icon,
.pc-nav-item.active .pc-nav-icon {
    color: var(--pc-primary);
    background: #fff;
}
.pc-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 4px 4px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
}
.pc-sidebar-user-text { min-width: 0; line-height: 1.2; }
.pc-sidebar-user-text strong,
.pc-sidebar-user-text small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-sidebar-user-text strong { color: #fff; font-size: 13px; }
.pc-sidebar-user-text small { color: #93c5fd; margin-top: 3px; font-size: 12px; }
.pc-main {
    min-height: 100vh;
    margin-left: calc(var(--pc-sidebar-width) + 32px);
    display: flex;
    flex-direction: column;
}
.pc-topbar {
    position: sticky;
    top: 0;
    z-index: 930;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 82px;
    padding: 16px 28px;
    background: rgba(244, 247, 251, .86);
    border-bottom: 1px solid rgba(226, 232, 240, .75);
    backdrop-filter: blur(18px);
}
.pc-topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}
.pc-icon-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: var(--pc-dark);
    background: #fff;
    border: 1px solid var(--pc-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
    cursor: pointer;
}
.pc-icon-btn:focus,
.pc-user-button:focus { outline: none; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.pc-topbar-title { min-width: 0; line-height: 1.25; }
.pc-topbar-title strong,
.pc-topbar-title small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-topbar-title strong { color: var(--pc-dark); font-size: 15px; font-weight: 800; }
.pc-topbar-title small { color: var(--pc-muted); margin-top: 5px; font-size: 12px; font-weight: 600; }
.pc-user-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 260px;
    padding: 8px 12px;
    border: 1px solid var(--pc-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
    color: var(--pc-dark);
    cursor: pointer;
}
.pc-user-button:after { margin-left: 2px; }
.pc-avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-info));
}
.pc-avatar.small {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
}
.pc-user-meta { min-width: 0; line-height: 1.15; text-align: left; }
.pc-user-meta strong,
.pc-user-meta small {
    display: block;
    max-width: 145px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-user-meta strong { font-size: 13px; font-weight: 800; color: var(--pc-dark); }
.pc-user-meta small { margin-top: 3px; color: var(--pc-muted); font-size: 12px; font-weight: 600; }
.pc-dropdown-menu,
.dropdown-menu {
    border: 1px solid rgba(226, 232, 240, .9) !important;
    border-radius: 18px !important;
    box-shadow: var(--pc-shadow) !important;
    overflow: hidden;
    padding: 10px !important;
}
.pc-dropdown-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 10px;
    min-width: 240px;
}
.pc-dropdown-head strong,
.pc-dropdown-head small {
    display: block;
    max-width: 185px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-dropdown-head strong { font-size: 13px; color: var(--pc-dark); }
.pc-dropdown-head small { font-size: 12px; color: var(--pc-muted); margin-top: 2px; }
.pc-dropdown-menu .dropdown-item {
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
}
.pc-content {
    flex: 1;
    width: 100%;
    padding: 28px 28px 34px;
}
.pc-section {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}
.pc-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 26px;
}
.pc-section-header h1 {
    margin: 0;
    color: var(--pc-dark);
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1.15;
}
.pc-section-header p {
    margin: 7px 0 0;
    color: var(--pc-muted);
    font-size: 13px;
}
.role-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--pc-primary);
    background: var(--pc-primary-soft);
    font-weight: 800;
    white-space: nowrap;
}
.pc-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 0 28px 26px;
    color: var(--pc-muted);
    font-size: 12px;
}
.pc-backdrop { display: none; }
.pc-alert { border-radius: 16px; border: 0; box-shadow: var(--pc-soft-shadow); }

/* ===== Cards and dashboard ===== */
.pc-body .card {
    border: 1px solid rgba(226, 232, 240, .92) !important;
    border-radius: var(--pc-radius) !important;
    box-shadow: var(--pc-soft-shadow) !important;
    overflow: hidden;
    margin-bottom: 24px;
    background: #fff;
}
.pc-body .card .card-header {
    min-height: auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px !important;
    border-bottom: 1px solid #eef2f7 !important;
    background: #fff !important;
}
.pc-body .card .card-header h4 {
    margin: 0;
    color: var(--pc-dark);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.03em;
}
.pc-body .card .card-body { padding: 24px; }
.card-header-action { flex: 0 0 auto; }
.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 238px;
    padding: clamp(26px, 4vw, 42px);
    margin-bottom: 26px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #06b6d4 120%);
    box-shadow: 0 28px 75px rgba(37, 99, 235, .22);
}
.hero-card:before,
.hero-card:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}
.hero-card:before { width: 230px; height: 230px; right: -50px; top: -70px; }
.hero-card:after { width: 170px; height: 170px; left: 45%; bottom: -60px; }
.hero-card > * { position: relative; z-index: 1; }
.eyebrow {
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.hero-card h2 {
    margin: 0 0 12px;
    max-width: 720px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.05em;
}
.hero-card p {
    max-width: 760px;
    color: rgba(255,255,255,.82);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 0;
}
.hero-card .page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.metric-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 130px;
    padding: 24px;
    margin-bottom: 26px;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--pc-soft-shadow);
}
.metric-card:after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -46px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: #eff6ff;
}
.metric-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    font-size: 20px;
}
.metric-icon.primary { background: linear-gradient(135deg, var(--pc-primary), #06b6d4); }
.metric-icon.success { background: linear-gradient(135deg, var(--pc-success), #22c55e); }
.metric-icon.warning { background: linear-gradient(135deg, var(--pc-warning), #fbbf24); }
.metric-icon.danger { background: linear-gradient(135deg, var(--pc-danger), #f97316); }
.metric-body { position: relative; z-index: 1; min-width: 0; }
.metric-label {
    color: var(--pc-muted);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 900;
    white-space: nowrap;
}
.metric-value {
    margin-top: 6px;
    color: var(--pc-dark);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.05em;
}
.metric-caption { margin-top: 7px; color: #94a3b8; font-size: 12px; line-height: 1.35; }

/* ===== Forms, tables, controls ===== */
.form-control,
.custom-select {
    min-height: 44px;
    border-radius: 14px !important;
    border-color: var(--pc-border) !important;
    box-shadow: none !important;
}
textarea.form-control { min-height: 110px; }
.form-control:focus,
.custom-select:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10) !important;
}
label { color: #334155; font-weight: 800; font-size: 12px; }
.btn {
    border-radius: 13px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}
.btn-primary {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-info)) !important;
}
.btn-light { background: #f8fafc !important; border-color: #e2e8f0 !important; color: #0f172a !important; }
.btn-outline-light { border-color: rgba(255,255,255,.7) !important; color: #fff !important; }
.btn-outline-light:hover { color: #0f172a !important; background: #fff !important; }
.filter-box {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    background: #f8fafc;
}
.table-responsive { border-radius: 18px; }
.table {
    margin-bottom: 0;
    color: #334155;
}
.table thead th {
    border-top: 0;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.table td,
.table th { vertical-align: middle !important; padding: 15px 14px !important; }
.table-hover tbody tr:hover { background: #f8fbff; }
.project-title { color: var(--pc-primary); font-weight: 900; }
.progress {
    height: 9px !important;
    border-radius: 999px !important;
    background: #eaf1fb !important;
    overflow: hidden;
}
.progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--pc-primary), var(--pc-info)) !important; }
.progress-label { flex: 0 0 44px; text-align: right; color: var(--pc-muted); font-size: 12px; font-weight: 800; }
.badge { border-radius: 999px; font-weight: 800; padding: .48em .78em; }
.badge-role { text-transform: none; }
.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #eef2f7;
}
.status-item:last-child { border-bottom: 0; }
.status-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 999px;
    margin-right: 10px;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-info));
}
.empty-state {
    display: grid;
    place-items: center;
    min-height: 140px;
    gap: 8px;
    color: var(--pc-muted);
    text-align: center;
}
.empty-state i { color: #bfdbfe; font-size: 36px; }
.note-item {
    padding: 16px;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #f8fafc;
    margin-bottom: 14px;
}
.page-actions,
.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.page-actions { justify-content: flex-start; }
.alert { border-radius: 16px; }
.pagination { flex-wrap: wrap; gap: 6px; }
.page-link { border-radius: 10px !important; border-color: #e2e8f0; }


.pc-nav-item > span:last-child,
.pc-brand-copy,
.pc-sidebar-user-text,
.pc-user-meta,
.pc-topbar-title,
.pc-dropdown-head > div {
    min-width: 0;
}
.filter-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-action-row .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.role-static-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe6f3;
    background: #f8fbff;
}
.permission-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.legend-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.legend-chip-primary {
    color: #1d4ed8;
    background: #eaf3ff;
}
.legend-chip-secondary {
    color: #0f766e;
    background: #e8fffb;
}
.legend-chip-muted {
    color: #475569;
    background: #f1f5f9;
}
.org-chart {
    display: grid;
    gap: 20px;
}
.org-level {
    position: relative;
    padding: 18px;
    border: 1px solid #e6edf5;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.org-level-head {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-info));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .18);
}
.org-level-line {
    width: 2px;
    height: 24px;
    margin: 10px auto 0;
    background: linear-gradient(180deg, rgba(37,99,235,.45), rgba(14,165,233,.15));
}
.org-users {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.org-user-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e6edf5;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .04);
}
.org-user-card.is-current {
    border-color: #93c5fd;
    background: #f3f9ff;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .10);
}
.org-user-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-info));
}
.org-user-body {
    min-width: 0;
    line-height: 1.2;
}
.org-user-body strong,
.org-user-body small,
.org-user-role {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
.org-user-body strong {
    color: var(--pc-dark);
    font-size: 14px;
    font-weight: 900;
}
.org-user-body small {
    margin-top: 4px;
    color: var(--pc-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.org-user-role {
    width: max-content;
    max-width: 100%;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--pc-primary);
    font-size: 11px;
    font-weight: 800;
}
.gap-2 {
    gap: .5rem;
}

/* ===== Profile ===== */
.profile-summary-card .card-body { padding: 30px !important; }
.profile-avatar-lg {
    width: 96px;
    height: 96px;
    display: inline-grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 30px;
    color: #fff;
    font-size: 38px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-info));
    box-shadow: 0 18px 40px rgba(37, 99, 235, .25);
}
.profile-info-list { display: grid; gap: 12px; }
.profile-info-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}
.profile-info-list > div:last-child { border-bottom: 0; }
.profile-info-list span { color: var(--pc-muted); font-size: 12px; font-weight: 800; }
.profile-info-list strong {
    color: var(--pc-dark);
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
}
.password-box {
    margin-top: 12px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
}
.password-box h5 { color: var(--pc-dark); font-weight: 900; }

/* ===== Responsive behavior ===== */
@media (max-width: 1199.98px) {
    :root { --pc-sidebar-width: 248px; }
    .pc-sidebar { left: 12px; width: var(--pc-sidebar-width); }
    .pc-main { margin-left: calc(var(--pc-sidebar-width) + 24px); }
    .pc-content, .pc-topbar { padding-left: 22px; padding-right: 22px; }
    .metric-card { padding: 20px; }
}

@media (max-width: 991.98px) {
    .pc-sidebar {
        top: 12px;
        left: 12px;
        bottom: 12px;
        width: min(292px, calc(100vw - 24px));
        transform: translateX(calc(-100% - 24px));
    }
    body.sidebar-show .pc-sidebar { transform: translateX(0); }
    .pc-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1030;
        display: block;
        pointer-events: none;
        opacity: 0;
        background: rgba(15, 23, 42, .42);
        backdrop-filter: blur(4px);
        transition: .24s ease;
    }
    body.sidebar-show .pc-backdrop { opacity: 1; pointer-events: auto; }
    .pc-main { margin-left: 0; }
    .pc-topbar { min-height: 72px; padding: 14px 18px; }
    .pc-content { padding: 22px 18px 30px; }
    .pc-footer { padding: 0 18px 22px; }
    .pc-section-header { align-items: flex-start; }
    .auth-card { grid-template-columns: 1fr; max-width: 680px; }
    .auth-panel { padding: 34px; }
    .auth-form { padding: 34px; }
}

@media (max-width: 767.98px) {
    body { font-size: 13px; }
    .pc-topbar-title small { display: none; }
    .pc-user-meta { display: none; }
    .pc-user-button { padding: 7px; border-radius: 16px; }
    .pc-user-button:after { display: none; }
    .pc-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }
    .role-pill { align-self: flex-start; }
    .hero-card { min-height: auto; border-radius: 24px; }
    .hero-card p { font-size: 14px; }
    .metric-card { min-height: 110px; margin-bottom: 16px; }
    .pc-body .card .card-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px !important;
    }
    .pc-body .card .card-body { padding: 18px; }
    .card-header-action { width: 100%; }
    .card-header-action .btn { width: 100%; }
    .table td,
    .table th { padding: 12px 10px !important; }
    .filter-box { padding: 14px; }
    .filter-action-row { flex-direction: column; }
    .filter-action-row .btn { width: 100%; }
    .form-actions { justify-content: stretch; }
    .form-actions .btn { flex: 1 1 140px; }
    .profile-info-list > div { align-items: flex-start; flex-direction: column; gap: 4px; }
    .profile-info-list strong { text-align: left; }
    .pc-footer { flex-direction: column; gap: 4px; }
}

@media (max-width: 575.98px) {
    .pc-topbar { gap: 8px; padding: 12px 14px; }
    .pc-topbar-left { gap: 10px; }
    .pc-topbar-title strong { max-width: 175px; font-size: 13px; }
    .pc-icon-btn { width: 40px; height: 40px; flex-basis: 40px; border-radius: 14px; }
    .pc-content { padding: 18px 14px 26px; }
    .pc-section-header h1 { font-size: 24px; }
    .auth-shell { padding: 18px 12px; }
    .auth-panel, .auth-form { padding: 26px 22px; }
    .auth-panel h1, .form-title { font-size: 24px; }
    .metric-card { padding: 18px; align-items: flex-start; }
    .metric-icon { width: 50px; height: 50px; flex-basis: 50px; }
    .metric-label { white-space: normal; }
    .org-users { grid-template-columns: 1fr; }
    .hero-card .btn { width: 100%; }
}

/* ===== Organization chart like tree structure ===== */
.org-card .card-body {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, .08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, .08), transparent 26%),
        #fff;
}
.org-tree-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 14px 10px 22px;
    border: 1px solid #eef2f7;
    border-radius: 22px;
    background: rgba(248, 250, 252, .72);
}
.org-tree-wrap::-webkit-scrollbar { height: 8px; }
.org-tree-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.org-tree,
.org-tree ul {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 34px;
    min-width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
}
.org-tree {
    padding-top: 16px;
}
.org-node-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 22px;
}
.org-tree > .org-node-item {
    padding-top: 0;
}
.org-node-item::before,
.org-node-item::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 22px;
    border-top: 2px solid #cfd8e3;
}
.org-node-item::before {
    right: 50%;
    border-right: 2px solid #cfd8e3;
}
.org-node-item::after {
    left: 50%;
    border-left: 2px solid #cfd8e3;
}
.org-node-item:only-child::before,
.org-node-item:only-child::after,
.org-tree > .org-node-item::before,
.org-tree > .org-node-item::after {
    display: none;
}
.org-node-item:first-child::before,
.org-node-item:last-child::after {
    border-top: 0;
}
.org-node-item:first-child::after {
    border-top-left-radius: 12px;
}
.org-node-item:last-child::before {
    border-top-right-radius: 12px;
}
.org-children {
    padding-top: 32px !important;
}
.org-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 32px;
    background: #cfd8e3;
}
.org-person-card {
    position: relative;
    z-index: 2;
    width: 360px;
    min-height: 132px;
    padding: 18px 18px 16px;
    border: 1px solid #e1e7f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.org-person-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 22px 52px rgba(37, 99, 235, .12);
}
.org-person-card.is-current {
    border-color: #818cf8;
    background: linear-gradient(180deg, #ffffff, #f7f8ff);
    box-shadow: 0 22px 52px rgba(79, 70, 229, .14);
}
.org-person-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}
.org-person-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #4f46e5;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    font-weight: 900;
}
.org-person-title {
    min-width: 0;
    line-height: 1.2;
}
.org-person-title strong,
.org-person-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.org-person-title strong {
    color: var(--pc-dark);
    font-size: 15px;
    font-weight: 900;
}
.org-person-title span {
    margin-top: 5px;
    color: var(--pc-muted);
    font-size: 12px;
    font-weight: 800;
}
.org-person-meta {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}
.org-person-meta div {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}
.org-person-meta i {
    width: 14px;
    margin-top: 2px;
    color: #6366f1;
}
.org-person-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .org-tree-wrap {
        padding: 10px 8px 18px;
    }
    .org-tree,
    .org-tree ul {
        gap: 22px;
    }
    .org-person-card {
        width: 290px;
    }
}

/* ===== Scope menu separator ===== */
.pc-nav-divider {
    height: 1px;
    margin: 18px 12px 14px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
}

/* ===== Certification module ===== */
.cert-brand-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}
.cert-logo {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -.02em;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}
.cert-logo-lg {
    width: 112px;
    height: 112px;
    border-radius: 32px;
    font-size: 24px;
}
.brand-pan { background: linear-gradient(135deg, #ef4444, #f97316); }
.brand-cisco { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.brand-fortinet { background: linear-gradient(135deg, #dc2626, #991b1b); }
.brand-ms { background: linear-gradient(135deg, #16a34a, #0ea5e9); }
.brand-aws { background: linear-gradient(135deg, #111827, #f59e0b); }
.brand-gcp { background: linear-gradient(135deg, #2563eb, #f59e0b); }
.brand-comptia { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.brand-other { background: linear-gradient(135deg, #475569, #0f172a); }

@media (max-width: 767.98px) {
    .cert-brand-cell { min-width: 160px; }
    .cert-logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
}
