.mcp-app {
    --mcp-navy: #0A1628;
    --mcp-blue: #1F4FD8;
    --mcp-blue-dark: #1940B0;
    --mcp-blue-light: #EAF0FF;
    --mcp-bg: #F7F8FB;
    --mcp-card: #FFFFFF;
    --mcp-border: #E8EBF2;
    --mcp-text: #121B2D;
    --mcp-text-soft: #6B7588;
    --mcp-radius: 16px;
    --mcp-radius-sm: 12px;
    --mcp-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.04);
    --mcp-shadow-md: 0 20px 50px rgba(10,22,40,.25);

    position: fixed; inset: 0; z-index: 99990;
    display: flex; gap: 16px; padding: 16px;
    background: linear-gradient(135deg, #E6EAF5 0%, #F0F2F8 100%);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--mcp-text); font-size: 14px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body:has(.mcp-app) { overflow: hidden; }
.mcp-app, .mcp-app *, .mcp-app *::before, .mcp-app *::after { box-sizing: border-box; }
.mcp-app h1, .mcp-app h2, .mcp-app h3, .mcp-app h4, .mcp-app p { font-family: inherit; color: inherit; letter-spacing: normal; }
.mcp-app a { text-decoration: none; box-shadow: none; }
.mcp-app .mcp-ico { flex-shrink: 0; }

/* ---------- Sidebar ---------- */
.mcp-sidebar {
    width: 260px; flex-shrink: 0; background: var(--mcp-navy); border-radius: 20px;
    display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto;
}
.mcp-sidebar-logo {
    display: flex; align-items: center; gap: 10px; padding: 0 10px 22px 10px;
    color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.2px;
}
.mcp-logo-mark {
    width: 34px; height: 34px; background: var(--mcp-blue); border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800;
}
.mcp-sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.mcp-app .mcp-sidebar-nav a, .mcp-app .mcp-logout {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
    color: rgba(255,255,255,.66); font-size: 14px; font-weight: 500; transition: .15s;
}
.mcp-app .mcp-sidebar-nav a:hover, .mcp-app .mcp-logout:hover { background: rgba(255,255,255,.07); color: #fff; }
.mcp-app .mcp-sidebar-nav a.active { background: var(--mcp-blue); color: #fff; font-weight: 600; }
.mcp-app .mcp-logout { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0 0 12px 12px; padding-top: 16px; }

.mcp-sidebar-promo {
    margin-top: auto; margin-bottom: 8px; padding: 16px; border-radius: 16px;
    background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.1); margin-top: 22px;
}
.mcp-promo-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px; color: #fff; background: var(--mcp-blue); padding: 3px 9px; border-radius: 20px; }
.mcp-sidebar-promo h4 { color: #fff; font-size: 14.5px; line-height: 1.35; margin: 10px 0 6px 0; }
.mcp-sidebar-promo p { color: rgba(255,255,255,.6); font-size: 12.5px; margin: 0 0 12px 0; }
.mcp-app .mcp-promo-btn { display: block; text-align: center; background: #fff; color: var(--mcp-navy); font-weight: 700; font-size: 13px; padding: 9px 12px; border-radius: 10px; }
.mcp-app .mcp-promo-btn:hover { background: var(--mcp-blue-light); color: var(--mcp-blue); }

/* ---------- Main column ---------- */
.mcp-main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--mcp-bg); border-radius: 20px; overflow: hidden; }
.mcp-topbar { height: 72px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; border-bottom: 1px solid var(--mcp-border); }
.mcp-topbar-search {
    display: flex; align-items: center; gap: 10px; flex: 1; max-width: 420px;
    background: #fff; border: 1px solid var(--mcp-border); border-radius: 12px; padding: 0 14px; height: 42px; color: var(--mcp-text-soft);
}
.mcp-app .mcp-topbar-search input { border: none; background: none; outline: none; box-shadow: none; font-size: 13.5px; width: 100%; height: 100%; padding: 0; margin: 0; color: var(--mcp-text); font-family: inherit; }
.mcp-topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; margin-left: auto; }
.mcp-app .mcp-icon-btn, .mcp-app .mcp-menu-btn {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--mcp-border); background: #fff;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--mcp-text-soft); padding: 0;
}
.mcp-app .mcp-icon-btn:hover, .mcp-app .mcp-menu-btn:hover { background: var(--mcp-blue-light); color: var(--mcp-blue); }
.mcp-menu-btn { display: none !important; }
.mcp-user-chip { display: flex; align-items: center; gap: 10px; }
.mcp-user-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mcp-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.mcp-user-name { font-size: 14px; font-weight: 600; }

.mcp-main { flex: 1; overflow-y: auto; padding: 28px 32px 36px; }

/* ---------- Generic components (used by every page) ---------- */
.mcp-page-head { margin-bottom: 24px; }
.mcp-app .mcp-page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 4px 0; line-height: 1.2; }
.mcp-page-head p { color: var(--mcp-text-soft); margin: 0; font-size: 14px; }
.mcp-card { background: var(--mcp-card); border: 1px solid var(--mcp-border); border-radius: var(--mcp-radius); box-shadow: var(--mcp-shadow); padding: 24px; }
.mcp-app .mcp-card-title { font-size: 18px; font-weight: 700; margin: 0 0 4px 0; letter-spacing: -.2px; }
.mcp-card-sub { color: var(--mcp-text-soft); font-size: 13px; margin: 0; }
.mcp-app .mcp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--mcp-blue); color: #fff;
    padding: 11px 22px; border: 1px solid var(--mcp-blue); border-radius: var(--mcp-radius-sm); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: .15s; font-family: inherit; line-height: 1.2;
}
.mcp-app .mcp-btn:hover { background: var(--mcp-blue-dark); border-color: var(--mcp-blue-dark); color: #fff; }
.mcp-app .mcp-btn-ghost { background: #fff; color: var(--mcp-text); border-color: var(--mcp-border); }
.mcp-app .mcp-btn-ghost:hover { background: var(--mcp-blue-light); border-color: var(--mcp-blue-light); color: var(--mcp-blue); }
.mcp-app .mcp-btn-sm { padding: 8px 16px; font-size: 13px; }
.mcp-empty-state { text-align: center; padding: 36px 20px; color: var(--mcp-text-soft); }
.mcp-empty-state p { margin: 0 0 14px 0; }
.mcp-app .mcp-link { color: var(--mcp-blue); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }
.mcp-app .mcp-link:hover { color: var(--mcp-blue-dark); }
.mcp-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }

.mcp-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--mcp-blue-light); color: var(--mcp-blue); }
.mcp-pill.applied    { background: #EAF0FF; color: #1F4FD8; }
.mcp-pill.assessment { background: #FFF4DF; color: #B9770E; }
.mcp-pill.interview  { background: #F0E9FF; color: #6D3FD6; }
.mcp-pill.offer      { background: #E3F8EA; color: #17803D; }
.mcp-pill.rejected   { background: #FDE8E8; color: #C0392B; }

.mcp-progress-bar { background: var(--mcp-border); border-radius: 20px; height: 8px; overflow: hidden; }
.mcp-progress-fill { background: var(--mcp-blue); height: 100%; border-radius: 20px; transition: width .4s; }

/* ---------- Grids ---------- */
.mcp-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.mcp-grid-hero { grid-template-columns: 1.15fr 1fr 1fr; }
.mcp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mcp-grid-2 { grid-template-columns: 1.25fr 1fr; }

/* ---------- Hero stat card ---------- */
.mcp-hero-card {
    border-radius: var(--mcp-radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
    background: linear-gradient(135deg, #DCE4FF 0%, #EDE9FB 55%, #F6EEE4 100%); border: 1px solid #E3E8F7;
}
.mcp-hero-metrics { display: flex; gap: 32px; flex-wrap: wrap; }
.mcp-hero-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 22px; }
.mcp-hero-icon.blue { background: var(--mcp-blue); }
.mcp-hero-icon.tan { background: #B9966F; }
.mcp-hero-num { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.mcp-hero-label { color: #4A5469; font-size: 14px; margin-top: 6px; }

/* ---------- Donut ---------- */
.mcp-donut-wrap { display: flex; align-items: center; gap: 22px; margin: 6px 0 18px 0; }
.mcp-donut { width: 132px; height: 132px; border-radius: 50%; position: relative; flex-shrink: 0; }
.mcp-donut::after { content: ''; position: absolute; inset: 17px; background: #fff; border-radius: 50%; }
.mcp-donut-center { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mcp-donut-center strong { font-size: 26px; font-weight: 800; line-height: 1; }
.mcp-donut-center span { font-size: 11px; color: var(--mcp-text-soft); margin-top: 2px; }
.mcp-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.mcp-legend-item { display: flex; align-items: center; gap: 8px; color: var(--mcp-text-soft); }
.mcp-legend-item b { color: var(--mcp-text); margin-left: auto; padding-left: 10px; }
.mcp-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Interviews ---------- */
.mcp-interview-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1.5px solid #C9D6F8; background: #F5F8FF; border-radius: 14px; margin-bottom: 10px; }
.mcp-interview-item h4 { margin: 0 0 2px 0; font-size: 14px; font-weight: 700; }
.mcp-interview-item p { margin: 0; font-size: 12.5px; color: var(--mcp-text-soft); }
.mcp-empty-inline { color: var(--mcp-text-soft); font-size: 13.5px; padding: 18px 0 22px 0; }

/* ---------- Status cards ---------- */
.mcp-status-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mcp-status-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mcp-blue-light); color: var(--mcp-blue); display: flex; align-items: center; justify-content: center; }
.mcp-status-icon.warn { background: #FDE8E8; color: #C0392B; }
.mcp-status-icon.ok { background: #E3F8EA; color: #17803D; }
.mcp-status-label { font-size: 12px; font-weight: 700; color: var(--mcp-text-soft); text-transform: uppercase; letter-spacing: .5px; }
.mcp-status-value { font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.mcp-status-value.sm { font-size: 18px; }
.mcp-status-sub { font-size: 12.5px; color: var(--mcp-text-soft); margin: 10px 0 14px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Journey ---------- */
.mcp-journey { display: flex; margin-top: 26px; }
.mcp-journey-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; text-align: center; }
.mcp-journey-step::before { content: ''; position: absolute; top: 18px; right: 50%; width: 100%; height: 3px; background: var(--mcp-border); }
.mcp-journey-step:first-child::before { display: none; }
.mcp-journey-step.done::before, .mcp-journey-step.current::before { background: var(--mcp-blue); }
.mcp-journey-dot {
    width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--mcp-border); color: var(--mcp-text-soft);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; position: relative; z-index: 1;
}
.mcp-journey-step.done .mcp-journey-dot { background: var(--mcp-blue); border-color: var(--mcp-blue); color: #fff; }
.mcp-journey-step.current .mcp-journey-dot { border-color: var(--mcp-blue); color: var(--mcp-blue); box-shadow: 0 0 0 5px var(--mcp-blue-light); }
.mcp-journey-label { font-size: 13px; font-weight: 600; color: var(--mcp-text-soft); }
.mcp-journey-step.done .mcp-journey-label, .mcp-journey-step.current .mcp-journey-label { color: var(--mcp-text); }

/* ---------- List rows ---------- */
.mcp-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--mcp-border); }
.mcp-row:first-of-type { border-top: none; padding-top: 4px; }
.mcp-row-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--mcp-blue-light); color: var(--mcp-blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.mcp-row-body { flex: 1; min-width: 0; }
.mcp-row-body h4 { margin: 0 0 3px 0; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcp-row-body p { margin: 0; font-size: 12.5px; color: var(--mcp-text-soft); }
.mcp-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mcp-tags span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Welcome modal ---------- */
.mcp-welcome-overlay { position: fixed; inset: 0; background: rgba(10,22,40,.6); backdrop-filter: blur(3px); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mcp-welcome-card { background: #fff; border-radius: 24px; max-width: 580px; width: 100%; padding: 34px 36px 36px; text-align: center; position: relative; box-shadow: var(--mcp-shadow-md); max-height: 92vh; overflow-y: auto; }
.mcp-app .mcp-welcome-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--mcp-bg); color: var(--mcp-text-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.mcp-app .mcp-welcome-close:hover { background: var(--mcp-border); }
.mcp-welcome-founders { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 6px 0 22px 0; padding: 0 6px; }
.mcp-founder { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 170px; }
.mcp-founder-avatar { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(16,24,40,.18); background: var(--mcp-blue-light); color: var(--mcp-blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 32px; overflow: hidden; margin-bottom: 8px; }
.mcp-founder-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcp-founder-name { font-size: 15px; font-weight: 700; }
.mcp-founder-title { font-size: 12px; color: var(--mcp-text-soft); line-height: 1.35; }
.mcp-app .mcp-welcome-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 12px 0; }
.mcp-welcome-card p { font-size: 14.5px; color: var(--mcp-text-soft); line-height: 1.65; margin: 0 0 24px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .mcp-grid-hero { grid-template-columns: 1fr 1fr; }
    .mcp-grid-hero > :first-child { grid-column: 1 / -1; }
    .mcp-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .mcp-app { padding: 0; gap: 0; }
    .mcp-main-col { border-radius: 0; }
    .mcp-menu-btn { display: inline-flex !important; }
    .mcp-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; border-radius: 0 20px 20px 0; transform: translateX(-105%); transition: transform .25s ease; }
    .mcp-app.menu-open .mcp-sidebar { transform: none; }
    .mcp-scrim { display: none; position: fixed; inset: 0; background: rgba(10,22,40,.5); z-index: 20; }
    .mcp-app.menu-open .mcp-scrim { display: block; }
    .mcp-topbar { padding: 0 18px; }
    .mcp-main { padding: 22px 18px 32px; }
    .mcp-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .mcp-grid-hero { grid-template-columns: 1fr; }
    .mcp-user-name { display: none; }
    .mcp-app .mcp-page-head h1 { font-size: 23px; }
    .mcp-hero-num { font-size: 42px; }
    .mcp-donut-wrap { flex-direction: column; align-items: flex-start; }
    .mcp-journey-label { font-size: 11.5px; }
    .mcp-welcome-card { padding: 28px 20px; }
    .mcp-founder-avatar { width: 78px; height: 78px; font-size: 26px; }
    .mcp-row { flex-wrap: wrap; }
}






/* ---------- Shared form styles ---------- */
.mcp-form-section { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mcp-text-soft); margin: 0 0 16px 0; padding-bottom: 10px; border-bottom: 1px solid var(--mcp-border); }
.mcp-form-section:not(:first-child) { margin-top: 30px; }
.mcp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mcp-field { margin-bottom: 18px; }
.mcp-app .mcp-field label { display: block; font-size: 13px; font-weight: 600; color: var(--mcp-text); margin-bottom: 7px; }
.mcp-app .mcp-field input[type="text"],
.mcp-app .mcp-field input[type="email"],
.mcp-app .mcp-field input[type="url"],
.mcp-app .mcp-field input[type="date"],
.mcp-app .mcp-field input[type="number"],
.mcp-app .mcp-field input[type="password"],
.mcp-app .mcp-field select,
.mcp-app .mcp-field textarea {
    width: 100%; height: 46px; padding: 0 14px; margin: 0; background: #fff; color: var(--mcp-text);
    border: 1px solid var(--mcp-border); border-radius: var(--mcp-radius-sm); font-family: inherit; font-size: 14px;
    box-shadow: none; outline: none; transition: border-color .15s, box-shadow .15s;
}
.mcp-app .mcp-field textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.mcp-app .mcp-field input:focus,
.mcp-app .mcp-field select:focus,
.mcp-app .mcp-field textarea:focus { border-color: var(--mcp-blue); box-shadow: 0 0 0 4px var(--mcp-blue-light); }
.mcp-app .mcp-field input:disabled { background: var(--mcp-bg); color: var(--mcp-text-soft); cursor: not-allowed; }
.mcp-field small { display: block; margin-top: 6px; color: var(--mcp-text-soft); font-size: 12px; }
.mcp-form-actions { display: flex; justify-content: flex-end; padding-top: 6px; }

.mcp-msg-success { background: #E3F8EA; color: #17803D; border: 1px solid #BFE9CD; border-radius: var(--mcp-radius-sm); }
.mcp-msg-error { background: #FDE8E8; color: #C0392B; border: 1px solid #F5C6CB; border-radius: var(--mcp-radius-sm); }

@media (max-width: 640px) {
    .mcp-form-row { grid-template-columns: 1fr; gap: 0; }
    .mcp-form-actions .mcp-btn { width: 100%; }
}




/* ---------- CV page ---------- */
.mcp-file-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mcp-file-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--mcp-blue-light); color: var(--mcp-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mcp-file-icon.empty { background: var(--mcp-bg); color: var(--mcp-text-soft); }
.mcp-file-info { flex: 1; min-width: 200px; }
.mcp-file-info h4 { margin: 0 0 3px 0; font-size: 15.5px; font-weight: 700; word-break: break-word; }
.mcp-file-info p { margin: 0; font-size: 13px; color: var(--mcp-text-soft); }
.mcp-file-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mcp-upload-zone { border: 2px dashed #CBD5EA; background: #FAFBFE; border-radius: var(--mcp-radius); padding: 28px 20px; text-align: center; transition: .15s; }
.mcp-upload-zone:hover { border-color: var(--mcp-blue); background: var(--mcp-blue-light); }
.mcp-upload-zone .mcp-upload-ico { color: var(--mcp-blue); margin-bottom: 10px; }
.mcp-app .mcp-upload-zone input[type="file"] { display: block; margin: 0 auto 10px; max-width: 100%; font-family: inherit; font-size: 13.5px; color: var(--mcp-text-soft); }
.mcp-app .mcp-upload-zone input[type="file"]::file-selector-button {
    background: var(--mcp-blue); color: #fff; border: none; border-radius: 10px; padding: 9px 18px; margin-right: 12px;
    font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s;
}
.mcp-app .mcp-upload-zone input[type="file"]::file-selector-button:hover { background: var(--mcp-blue-dark); }
.mcp-upload-hint { font-size: 12.5px; color: var(--mcp-text-soft); margin: 0; }




/* ---------- Education / list-item cards ---------- */
.mcp-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.mcp-item-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.mcp-item-main { display: flex; gap: 16px; min-width: 0; flex: 1; }
.mcp-item-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--mcp-blue-light); color: var(--mcp-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mcp-item-body { min-width: 0; }
.mcp-item-body h4 { margin: 0 0 3px 0; font-size: 16px; font-weight: 700; }
.mcp-item-body .mcp-item-sub { margin: 0 0 6px 0; color: var(--mcp-text-soft); font-size: 14px; }
.mcp-item-meta { margin: 0; font-size: 13px; color: var(--mcp-text); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mcp-item-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mcp-item-desc { margin: 10px 0 0 0; font-size: 13.5px; color: var(--mcp-text-soft); line-height: 1.6; }
.mcp-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mcp-app .mcp-btn-danger { background: #fff; color: #C0392B; border-color: #F5C6CB; }
.mcp-app .mcp-btn-danger:hover { background: #C0392B; border-color: #C0392B; color: #fff; }
.mcp-form-actions.left { justify-content: flex-start; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .mcp-form-row-3 { grid-template-columns: 1fr; gap: 0; }
    .mcp-item-card { flex-direction: column; }
    .mcp-item-actions { width: 100%; }
    .mcp-item-actions .mcp-btn { flex: 1; }
    .mcp-form-actions.left .mcp-btn { width: 100%; }
}



/* ---------- Jobs listing ---------- */
.mcp-app .mcp-job-search { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--mcp-border); border-radius: var(--mcp-radius); box-shadow: var(--mcp-shadow); padding: 8px 8px 8px 18px; margin-bottom: 10px; color: var(--mcp-text-soft); }
.mcp-app .mcp-job-search input { flex: 1; min-width: 0; border: none; outline: none; box-shadow: none; background: none; height: 40px; padding: 0 4px; margin: 0; font-family: inherit; font-size: 14.5px; color: var(--mcp-text); }
.mcp-results-count { color: var(--mcp-text-soft); font-size: 13.5px; margin: 14px 0 18px 0; }

.mcp-jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.mcp-job-card { background: #fff; border: 1px solid var(--mcp-border); border-radius: var(--mcp-radius); box-shadow: var(--mcp-shadow); padding: 22px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.mcp-job-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,24,40,.09); }
.mcp-job-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mcp-job-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--mcp-blue-light); color: var(--mcp-blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.mcp-app .mcp-job-card h3 { margin: 0 0 3px 0; font-size: 17px; font-weight: 700; letter-spacing: -.2px; line-height: 1.3; }
.mcp-job-dept { margin: 0 0 14px 0; color: var(--mcp-text-soft); font-size: 13.5px; }
.mcp-job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--mcp-text-soft); margin-bottom: 10px; }
.mcp-job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mcp-job-closing { font-size: 12.5px; font-weight: 600; color: #C0392B; margin: 0 0 16px 0; display: inline-flex; align-items: center; gap: 5px; }
.mcp-app .mcp-job-view-btn { margin-top: auto; width: 100%; }

.mcp-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.mcp-app .mcp-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; background: #fff; border: 1px solid var(--mcp-border); color: var(--mcp-text); font-size: 14px; font-weight: 600; }
.mcp-app .mcp-page-link:hover { background: var(--mcp-blue-light); color: var(--mcp-blue); }
.mcp-app .mcp-page-link.active { background: var(--mcp-blue); border-color: var(--mcp-blue); color: #fff; }

@media (max-width: 600px) {
    .mcp-app .mcp-job-search { flex-wrap: wrap; padding: 12px; }
    .mcp-app .mcp-job-search input { flex-basis: 100%; }
    .mcp-app .mcp-job-search .mcp-btn { width: 100%; }
}





/* ---------- Job detail ---------- */
.mcp-back-link { margin: 0 0 16px 0; }
.mcp-app .mcp-back-link a { display: inline-flex; align-items: center; gap: 4px; color: var(--mcp-text-soft); font-size: 13.5px; font-weight: 600; }
.mcp-app .mcp-back-link a:hover { color: var(--mcp-blue); }

.mcp-jd-hero { background: linear-gradient(135deg, #0A1628 0%, #14307A 60%, #1F4FD8 100%); color: #fff; border-radius: 20px; padding: 34px; margin-bottom: 22px; position: relative; overflow: hidden; }
.mcp-jd-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.mcp-jd-badge { display: inline-block; background: rgba(255,255,255,.16); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 5px 13px; border-radius: 20px; }
.mcp-app .mcp-jd-hero h1 { margin: 14px 0 4px 0; font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; color: #fff; }
.mcp-jd-dept { margin: 0 0 24px 0; color: rgba(255,255,255,.75); font-size: 15px; }
.mcp-jd-meta { display: flex; flex-wrap: wrap; gap: 14px 34px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.16); position: relative; z-index: 1; }
.mcp-jd-meta-item { display: flex; flex-direction: column; gap: 5px; }
.mcp-jd-meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.6); font-weight: 600; }
.mcp-jd-meta-value { font-size: 14.5px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.mcp-jd-meta-value.warn { color: #FFB4A8; }
.mcp-jd-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.mcp-app .mcp-jd-apply { background: #fff; border-color: #fff; color: #0A1628; padding: 12px 32px; font-size: 15px; font-weight: 700; }
.mcp-app .mcp-jd-apply:hover { background: var(--mcp-blue-light); border-color: var(--mcp-blue-light); color: var(--mcp-blue); }
.mcp-jd-applied { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.16); color: #fff; padding: 11px 18px; border-radius: var(--mcp-radius-sm); font-weight: 600; font-size: 14px; }
.mcp-app .mcp-jd-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.mcp-app .mcp-jd-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }

.mcp-jd-body { display: flex; flex-direction: column; gap: 18px; }
.mcp-app .mcp-jd-section h3 { margin: 0 0 14px 0; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.mcp-jd-section p { margin: 0; line-height: 1.75; color: var(--mcp-text); font-size: 14.5px; }
.mcp-job-bullets { margin: 0; padding: 0; list-style: none; }
.mcp-job-bullets li { position: relative; padding-left: 28px; margin-bottom: 11px; line-height: 1.65; font-size: 14.5px; }
.mcp-job-bullets li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--mcp-blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4FD8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.mcp-jd-bottom { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; background: var(--mcp-blue-light); border-color: #D5E1FB; }
.mcp-jd-bottom h3 { margin: 0 0 4px 0; font-size: 18px; font-weight: 700; }
.mcp-jd-bottom p { margin: 0; color: var(--mcp-text-soft); font-size: 14px; }

@media (max-width: 640px) {
    .mcp-jd-hero { padding: 24px 20px; border-radius: 16px; }
    .mcp-app .mcp-jd-hero h1 { font-size: 23px; }
    .mcp-jd-meta { gap: 16px 26px; }
    .mcp-jd-bottom { flex-direction: column; align-items: flex-start; }
    .mcp-jd-bottom .mcp-btn, .mcp-jd-cta .mcp-btn { width: 100%; }
}





/* ---------- Apply page ---------- */
.mcp-cv-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--mcp-border); border-radius: var(--mcp-radius-sm); background: var(--mcp-bg); }
.mcp-cv-box-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--mcp-blue-light); color: var(--mcp-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mcp-cv-box-name { font-weight: 600; font-size: 14px; word-break: break-word; }
.mcp-cv-box-date { color: var(--mcp-text-soft); font-size: 12.5px; }
.mcp-app .mcp-field small a { color: var(--mcp-blue); font-weight: 600; }
.mcp-warn-card { border-left: 4px solid #C0392B; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mcp-warn-card p { margin: 0; }
.mcp-apply-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--mcp-border); }
.mcp-apply-head .mcp-row-logo { width: 48px; height: 48px; font-size: 18px; }
.mcp-apply-head h3 { margin: 0 0 2px 0; font-size: 16px; font-weight: 700; }
.mcp-apply-head p { margin: 0; font-size: 13px; color: var(--mcp-text-soft); }

@media (max-width: 640px) {
    .mcp-warn-card .mcp-btn { width: 100%; }
}



/* ---------- My Applications list ---------- */
.mcp-app-row { background: #fff; border: 1px solid var(--mcp-border); border-radius: var(--mcp-radius); box-shadow: var(--mcp-shadow); padding: 20px 22px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; transition: box-shadow .15s, transform .15s; }
.mcp-app-row:hover { box-shadow: 0 12px 28px rgba(16,24,40,.08); transform: translateY(-2px); }
.mcp-app-row-main { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.mcp-app-row-main .mcp-row-logo { width: 48px; height: 48px; font-size: 18px; }
.mcp-app-code { margin: 0 0 3px 0; font-size: 11.5px; font-weight: 700; color: var(--mcp-text-soft); letter-spacing: .5px; text-transform: uppercase; }
.mcp-app .mcp-app-row h3 { margin: 0 0 3px 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; }
.mcp-app-meta { margin: 0; color: var(--mcp-text-soft); font-size: 13.5px; }
.mcp-app-date { margin: 6px 0 0 0; font-size: 12.5px; color: var(--mcp-text-soft); display: inline-flex; align-items: center; gap: 5px; }
.mcp-app-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

@media (max-width: 640px) {
    .mcp-app-row { flex-direction: column; align-items: flex-start; }
    .mcp-app-actions { width: 100%; justify-content: space-between; }
}




/* ---------- Learning Hub ---------- */
.mcp-learning-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 820px; }
.mcp-learning-card { background: #fff; border: 1px solid var(--mcp-border); border-radius: var(--mcp-radius); box-shadow: var(--mcp-shadow); padding: 30px 28px; transition: transform .15s, box-shadow .15s; }
.mcp-learning-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,24,40,.08); }
.mcp-learning-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--mcp-blue-light); color: var(--mcp-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.mcp-app .mcp-learning-card h3 { margin: 0 0 8px 0; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.mcp-learning-card p { margin: 0 0 18px 0; color: var(--mcp-text-soft); font-size: 14px; line-height: 1.65; }
.mcp-coming-soon { display: inline-block; background: var(--mcp-bg); border: 1px solid var(--mcp-border); color: var(--mcp-text-soft); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; }






/* ---------- Auth pages (login / register) ---------- */
.mcp-auth {
    --mcp-navy: #0A1628; --mcp-blue: #1F4FD8; --mcp-blue-dark: #1940B0; --mcp-blue-light: #EAF0FF;
    --mcp-bg: #F7F8FB; --mcp-border: #E8EBF2; --mcp-text: #121B2D; --mcp-text-soft: #6B7588;
    position: fixed; inset: 0; z-index: 99990; background: #fff; overflow-y: auto;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--mcp-text); font-size: 14px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body:has(.mcp-auth) { overflow: hidden; }
.mcp-auth, .mcp-auth *, .mcp-auth *::before, .mcp-auth *::after { box-sizing: border-box; }
.mcp-auth h1, .mcp-auth h2, .mcp-auth p { font-family: inherit; color: inherit; letter-spacing: normal; }
.mcp-auth a { text-decoration: none; box-shadow: none; color: var(--mcp-blue); font-weight: 600; }
.mcp-auth a:hover { color: var(--mcp-blue-dark); }
.mcp-auth-wrap { display: flex; min-height: 100%; width: 100%; }

/* Left brand panel */
.mcp-auth-side {
    width: 46%; max-width: 640px; flex-shrink: 0; position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(150deg, #0A1628 0%, #112B66 55%, #1F4FD8 100%);
    padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.mcp-auth-side::before { content: ''; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.07); }
.mcp-auth-side::after { content: ''; position: absolute; left: -90px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.05); }
.mcp-auth-side > * { position: relative; z-index: 1; }
.mcp-auth-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.mcp-auth-brand .mcp-logo-mark { color: #fff; width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
.mcp-auth .mcp-auth-side h2 { font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: -.8px; margin: 0 0 14px 0; color: #fff; }
.mcp-auth .mcp-auth-side-text { color: rgba(255,255,255,.75); font-size: 15.5px; line-height: 1.65; margin: 0 0 28px 0; max-width: 440px; }
.mcp-auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mcp-auth-points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.92); }
.mcp-auth-points li span { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mcp-auth-foot { font-size: 12.5px; color: rgba(255,255,255,.55); }

/* Right form side */
.mcp-auth-main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--mcp-bg); }
.mcp-auth-box { width: 100%; max-width: 430px; background: #fff; border: 1px solid var(--mcp-border); border-radius: 20px; box-shadow: 0 20px 50px rgba(16,24,40,.08); padding: 38px 36px; }
.mcp-auth-mobile-brand { display: none; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 22px; }
.mcp-auth .mcp-auth-box h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 6px 0; line-height: 1.2; }
.mcp-auth-sub { color: var(--mcp-text-soft); margin: 0 0 24px 0; font-size: 14px; }

.mcp-auth-error { background: #FDE8E8; color: #C0392B; border: 1px solid #F5C6CB; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 500; margin: 0 0 20px 0; }

.mcp-auth-field { margin-bottom: 18px; }
.mcp-auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.mcp-auth-input { position: relative; display: flex; align-items: center; }
.mcp-auth-input > .mcp-ico { position: absolute; left: 14px; color: var(--mcp-text-soft); pointer-events: none; }
.mcp-auth .mcp-auth-input input[type="text"],
.mcp-auth .mcp-auth-input input[type="email"],
.mcp-auth .mcp-auth-input input[type="password"] {
    width: 100%; height: 48px; margin: 0; padding: 0 44px 0 42px; background: #fff; color: var(--mcp-text);
    border: 1px solid var(--mcp-border); border-radius: 12px; font-family: inherit; font-size: 14.5px;
    box-shadow: none; outline: none; transition: border-color .15s, box-shadow .15s;
}
.mcp-auth .mcp-auth-input input:focus { border-color: var(--mcp-blue); box-shadow: 0 0 0 4px var(--mcp-blue-light); }
.mcp-auth .mcp-auth-toggle { position: absolute; right: 6px; width: 36px; height: 36px; border: none; background: none; border-radius: 9px; color: var(--mcp-text-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.mcp-auth .mcp-auth-toggle:hover { background: var(--mcp-bg); color: var(--mcp-blue); }

.mcp-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px 0; font-size: 13.5px; flex-wrap: wrap; }
.mcp-auth-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; margin: 0; }
.mcp-auth-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--mcp-blue); }

.mcp-auth .mcp-auth-btn {
    width: 100%; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--mcp-blue); color: #fff; border: none; border-radius: 12px; font-family: inherit;
    font-size: 15px; font-weight: 700; cursor: pointer; transition: .15s; box-shadow: 0 6px 16px rgba(31,79,216,.28);
}
.mcp-auth .mcp-auth-btn:hover { background: var(--mcp-blue-dark); }
.mcp-auth-alt { text-align: center; margin: 22px 0 0 0; color: var(--mcp-text-soft); font-size: 14px; }

@media (max-width: 960px) {
    .mcp-auth-side { display: none; }
    .mcp-auth-mobile-brand { display: flex; }
    .mcp-auth-main { padding: 24px 16px; background: #fff; align-items: flex-start; }
    .mcp-auth-box { border: none; box-shadow: none; padding: 20px 6px; }
}


/* ---------- Register page extras ---------- */
.mcp-auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mcp-auth .mcp-auth-input input[type="email"] { padding-right: 14px; }
.mcp-auth-hint { display: block; margin-top: 6px; color: var(--mcp-text-soft); font-size: 12px; }
.mcp-auth-match { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #C0392B; }
.mcp-auth-match.show { display: block; }

@media (max-width: 480px) {
    .mcp-auth-grid-2 { grid-template-columns: 1fr; gap: 0; }
}




/* ---------- Profile photo ---------- */
.mcp-app [hidden] { display: none !important; }
.mcp-user-avatar { overflow: hidden; }
.mcp-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mcp-avatar-card { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; flex-wrap: wrap; }
.mcp-avatar-preview { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--mcp-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; flex-shrink: 0; border: 4px solid var(--mcp-blue-light); }
.mcp-avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcp-app .mcp-avatar-info h3 { margin: 0 0 4px 0; }
.mcp-avatar-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mcp-avatar-msg { margin: 10px 0 0 0; font-size: 13px; font-weight: 600; min-height: 1em; }
.mcp-avatar-msg.ok { color: #17803D; }
.mcp-avatar-msg.err { color: #C0392B; }




/* ---------- Sidebar brand ---------- */
.mcp-sidebar-logo { gap: 12px; }
.mcp-logo-mark.mcp-logo-img { width: 44px; height: 44px; border-radius: 12px; background: #fff; padding: 5px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.mcp-logo-mark.mcp-logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mcp-sidebar-logo .mcp-brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }



.mcp-logo-mark.mcp-logo-img { width: 48px; height: 48px; border-radius: 13px; background: transparent; padding: 0; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.mcp-logo-mark.mcp-logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.mcp-sidebar-logo .mcp-brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }




/* ---------- Auth error styling ---------- */
.mcp-auth .mcp-auth-error { line-height: 1.55; animation: mcp-shake .45s; }
.mcp-auth .mcp-auth-error a { color: #C0392B; text-decoration: underline; font-weight: 700; }
@keyframes mcp-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .mcp-auth .mcp-auth-error { animation: none; } }



/* ---------- Auth: field-level errors ---------- */
.mcp-auth .mcp-auth-field.has-error input[type="text"],
.mcp-auth .mcp-auth-field.has-error input[type="email"],
.mcp-auth .mcp-auth-field.has-error input[type="password"] { border-color: #C0392B; box-shadow: 0 0 0 4px #FDE8E8; }
.mcp-auth .mcp-auth-field.has-error .mcp-auth-input > .mcp-ico { color: #C0392B; }
.mcp-auth .mcp-field-error { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 0 0; color: #C0392B; font-size: 13px; font-weight: 600; line-height: 1.5; animation: mcp-shake .45s; }
.mcp-auth .mcp-field-error .mcp-ico { margin-top: 2px; }
.mcp-auth .mcp-field-error a { color: #C0392B; text-decoration: underline; font-weight: 700; }





/* ---------- Admin panel ---------- */
.mcp-admin-tag { align-self: flex-start; margin: 0 0 14px 12px; padding: 3px 11px; border-radius: 20px; background: rgba(255,255,255,.12); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.mcp-admin-links { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 3px; }
.mcp-app .mcp-admin-links a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: rgba(255,255,255,.6); font-size: 13.5px; font-weight: 500; transition: .15s; }
.mcp-app .mcp-admin-links a:hover { background: rgba(255,255,255,.07); color: #fff; }
.mcp-topbar-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }

.mcp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mcp-mstat { display: flex; flex-direction: column; gap: 2px; }
.mcp-mstat .mcp-status-icon { margin-bottom: 12px; }
.mcp-mstat-num { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.mcp-mstat-label { color: var(--mcp-text-soft); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.mcp-mscore { font-size: 14px; white-space: nowrap; }

.mcp-pipe-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13.5px; }
.mcp-pipe-name { width: 96px; flex-shrink: 0; color: var(--mcp-text-soft); font-weight: 600; }
.mcp-pipe-bar { flex: 1; height: 9px; background: var(--mcp-border); border-radius: 20px; overflow: hidden; display: block; }
.mcp-pipe-fill { display: block; height: 100%; border-radius: 20px; }
.mcp-pipe-count { width: 30px; text-align: right; font-weight: 800; }

@media (max-width: 1200px) { .mcp-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .mcp-grid-4 { grid-template-columns: 1fr; }
    .mcp-app .mcp-hide-sm { display: none; }
    .mcp-row .mcp-mscore { display: none; }
}






/* ---------- Admin: toolbar, tabs, tables, notices ---------- */
.mcp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.mcp-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.mcp-app .mcp-tab { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 30px; border: 1px solid var(--mcp-border); background: #fff; color: var(--mcp-text-soft); font-size: 13px; font-weight: 700; line-height: 1; transition: .15s; }
.mcp-app .mcp-tab:hover { color: var(--mcp-blue); background: var(--mcp-blue-light); border-color: var(--mcp-blue-light); }
.mcp-app .mcp-tab.active { background: var(--mcp-blue); border-color: var(--mcp-blue); color: #fff; }
.mcp-tab b { margin-left: 8px; padding: 2px 8px; border-radius: 20px; background: rgba(120,130,150,.15); font-size: 11.5px; font-weight: 800; }
.mcp-app .mcp-tab.active b { background: rgba(255,255,255,.22); }

.mcp-table-wrap { overflow-x: auto; }
.mcp-table { width: 100%; border-collapse: collapse; min-width: 880px; margin: 0; }
.mcp-app .mcp-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--mcp-text-soft); font-weight: 700; padding: 0 14px 12px; border: none; border-bottom: 1px solid var(--mcp-border); white-space: nowrap; background: none; }
.mcp-app .mcp-table td { padding: 16px 14px; border: none; border-bottom: 1px solid var(--mcp-border); font-size: 13.5px; vertical-align: middle; background: none; color: var(--mcp-text); }
.mcp-app .mcp-table tbody tr:last-child td { border-bottom: none; }
.mcp-app .mcp-table tbody tr:hover td { background: #FAFBFE; }
.mcp-table td small { display: block; margin-top: 2px; font-size: 12px; color: var(--mcp-text-soft); }

.mcp-job-cell { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.mcp-job-cell strong { display: block; font-size: 14.5px; line-height: 1.3; }
.mcp-job-cell small { margin: 2px 0 0; }

.mcp-table-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.mcp-table-actions form { margin: 0; display: inline-block; }
.mcp-table-actions .mcp-btn { white-space: nowrap; padding: 8px 14px; }

.mcp-pill.draft { background: #EEF0F5; color: #6B7588; }
.mcp-text-warn { color: #C0392B; font-weight: 600; }
.mcp-text-warn small { color: #C0392B; }

.mcp-notice { padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.mcp-notice.ok { background: #E3F8EA; color: #17803D; border: 1px solid #BFE9CD; }
.mcp-notice.err { background: #FDE8E8; color: #C0392B; border: 1px solid #F5C6CB; }



/* ---------- Admin: assessments ---------- */
.mcp-muted { color: var(--mcp-text-soft); font-size: 12.5px; }
.mcp-inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mcp-app .mcp-inline-form input[type="number"] { width: 84px; height: 42px; padding: 0 12px; border: 1px solid var(--mcp-border); border-radius: 12px; font-family: inherit; font-size: 14px; box-shadow: none; background: #fff; }
.mcp-app .mcp-inline-form input[type="number"]:focus { outline: none; border-color: var(--mcp-blue); box-shadow: 0 0 0 4px var(--mcp-blue-light); }

.mcp-detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 12px 14px; margin: 0; }
.mcp-detail-list dt { color: var(--mcp-text-soft); font-weight: 600; font-size: 13px; }
.mcp-detail-list dd { margin: 0; font-weight: 600; font-size: 14px; word-break: break-word; }
.mcp-score-big { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.mcp-score-big span { font-size: 18px; color: var(--mcp-text-soft); font-weight: 700; letter-spacing: 0; }

.mcp-app .mcp-sec-title { font-size: 17px; font-weight: 800; letter-spacing: -.2px; margin: 30px 0 14px; }
.mcp-qa { background: #fff; border: 1px solid var(--mcp-border); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.mcp-qa-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.mcp-qa-q { font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.mcp-qa-pts { font-size: 12px; color: var(--mcp-text-soft); font-weight: 700; white-space: nowrap; }
.mcp-badge-ok, .mcp-badge-bad, .mcp-badge-none { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mcp-badge-ok { background: #E3F8EA; color: #17803D; }
.mcp-badge-bad { background: #FDE8E8; color: #C0392B; }
.mcp-badge-none { background: #EEF0F5; color: var(--mcp-text-soft); }
.mcp-ans { font-size: 14px; }
.mcp-given { color: var(--mcp-text-soft); font-size: 13px; margin: 5px 0; line-height: 1.5; }
.mcp-ans-box { background: var(--mcp-bg); border: 1px solid var(--mcp-border); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; margin: 12px 0; font-size: 14px; line-height: 1.65; }
.mcp-marks { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px; }
.mcp-app .mcp-marks input[type="number"] { width: 90px; height: 40px; padding: 0 12px; border: 1px solid var(--mcp-border); border-radius: 10px; font-family: inherit; font-size: 14px; box-shadow: none; background: #fff; }
.mcp-app .mcp-marks input[type="number"]:focus { outline: none; border-color: var(--mcp-blue); box-shadow: 0 0 0 4px var(--mcp-blue-light); }

@media (max-width: 640px) {
    .mcp-detail-list { grid-template-columns: 110px 1fr; }
    .mcp-qa-head { flex-direction: column; gap: 8px; }
}



/* ---------- Admin: applications ---------- */
.mcp-app .mcp-input { height: 42px; padding: 0 12px; border: 1px solid var(--mcp-border); border-radius: 12px; font-family: inherit; font-size: 14px; background: #fff; box-shadow: none; }
.mcp-app textarea.mcp-input { height: auto; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.mcp-app .mcp-input:focus { outline: none; border-color: var(--mcp-blue); box-shadow: 0 0 0 4px var(--mcp-blue-light); }
.mcp-app .mcp-input.mcp-full { width: 100%; max-width: 100%; box-sizing: border-box; }
.mcp-field-label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.mcp-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--mcp-text-soft); }
.mcp-mini-row { padding: 10px 0; border-bottom: 1px solid var(--mcp-border); }
.mcp-mini-row:last-child { border-bottom: 0; }
.mcp-mini-row strong { display: block; font-size: 14px; }
.mcp-mini-row small { display: block; color: var(--mcp-text-soft); font-size: 12.5px; margin-top: 2px; }



.mcp-app .mcp-btn-danger { background: #C0392B; color: #fff; border-color: #C0392B; }
.mcp-app .mcp-btn-danger:hover { background: #a93226; }




/* ---------- Admin: tests ---------- */
.mcp-app select.mcp-sel { height: 42px; padding: 0 12px; min-width: 190px; border: 1px solid var(--mcp-border); border-radius: 12px; background: #fff; font-family: inherit; font-size: 13.5px; color: var(--mcp-text); box-shadow: none; }
.mcp-app select.mcp-sel:focus { outline: none; border-color: var(--mcp-blue); box-shadow: 0 0 0 4px var(--mcp-blue-light); }
.mcp-app .mcp-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--mcp-blue); cursor: pointer; }
.mcp-bulkbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; background: var(--mcp-bg); border-radius: 12px; }





/* ---------- Admin: test builder ---------- */
.mcp-tb-grow { flex: 1; }
.mcp-tb-sec { margin-bottom: 18px; }
.mcp-tb-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--mcp-border); font-size: 15px; }
.mcp-tb-tools { display: inline-flex; gap: 6px; }
.mcp-app .mcp-tb-tools button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--mcp-border); background: #fff; color: var(--mcp-text-soft); font-size: 15px; font-weight: 700; cursor: pointer; padding: 0; line-height: 1; }
.mcp-app .mcp-tb-tools button:hover:not(:disabled) { background: var(--mcp-blue-light); color: var(--mcp-blue); border-color: var(--mcp-blue-light); }
.mcp-app .mcp-tb-tools button.del:hover:not(:disabled) { background: #FDE8E8; color: #C0392B; border-color: #FDE8E8; }
.mcp-app .mcp-tb-tools button:disabled { opacity: .35; cursor: not-allowed; }

.mcp-tb-q { background: var(--mcp-bg); border: 1px solid var(--mcp-border); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.mcp-tb-q-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mcp-tb-qno { font-weight: 800; font-size: 14px; }
.mcp-tb-badge { padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.mcp-tb-badge.mcq { background: #EAF0FF; color: #1F4FD8; }
.mcp-tb-badge.text { background: #F0E9FF; color: #6D3FD6; }
.mcp-tb-pts { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin: 0; }
.mcp-app .mcp-tb-pts input { width: 76px; height: 36px; padding: 0 10px; border: 1px solid var(--mcp-border); border-radius: 10px; font-family: inherit; font-size: 14px; background: #fff; box-shadow: none; }
.mcp-tb-lbl { display: block; font-size: 12.5px; font-weight: 700; margin: 12px 0 6px; color: var(--mcp-text); }
.mcp-tb-lbl small { color: var(--mcp-text-soft); font-weight: 600; }

.mcp-app .mcp-tb-q textarea,
.mcp-app .mcp-tb-q input[type="text"],
.mcp-app .mcp-tb-field input,
.mcp-app .mcp-tb-sec .mcp-field input[type="text"],
.mcp-app .mcp-tb-sec .mcp-field input[type="number"] { width: 100%; padding: 10px 12px; border: 1px solid var(--mcp-border); border-radius: 12px; background: #fff; font-family: inherit; font-size: 14px; color: var(--mcp-text); box-shadow: none; line-height: 1.5; }
.mcp-app .mcp-tb-q textarea { min-height: 70px; resize: vertical; }
.mcp-app .mcp-tb-q input[type="text"] { height: 42px; padding: 0 12px; }
.mcp-app .mcp-tb-q textarea:focus,
.mcp-app .mcp-tb-q input:focus { outline: none; border-color: var(--mcp-blue); box-shadow: 0 0 0 4px var(--mcp-blue-light); }

.mcp-tb-opt, .mcp-tb-fact { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mcp-tb-fact input:first-child { flex: 0 0 34%; }
.mcp-tb-opt input[type="radio"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--mcp-blue); margin: 0; cursor: pointer; }
.mcp-app .mcp-tb-x { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--mcp-border); background: #fff; color: var(--mcp-text-soft); font-size: 18px; cursor: pointer; padding: 0; line-height: 1; }
.mcp-app .mcp-tb-x:hover { background: #FDE8E8; color: #C0392B; border-color: #FDE8E8; }
.mcp-app .mcp-tb-link { background: none; border: none; color: var(--mcp-blue); font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 0; }
.mcp-app .mcp-tb-link:hover { text-decoration: underline; }
.mcp-tb-add { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.mcp-tb-footer { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding: 14px 18px; background: #fff; border: 1px solid var(--mcp-border); border-radius: 14px; box-shadow: 0 -4px 20px rgba(16,24,40,.06); }
.mcp-tb-footer-btns { display: flex; gap: 10px; }

@media (max-width: 640px) {
    .mcp-tb-fact { flex-wrap: wrap; }
    .mcp-tb-fact input:first-child { flex: 1 1 100%; }
}



/* Topbar clock */
.mcp-app .mcp-clock {
    display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center;
    line-height: 1.15; padding: 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mcp-app .mcp-clock b { font-size: 14px; font-weight: 700; color: var(--mcp-text); }
.mcp-app .mcp-clock small { font-size: 11px; font-weight: 500; color: var(--mcp-text-soft); }
@media (max-width: 640px) {
    .mcp-app .mcp-clock small { display: none; }
}