/* ── myjob – Saved Jobs – Styles ────────────────────────────────── */
:root {
    --ink: #102033; --muted: #667386; --line: #dce4ed; --surface: #fff;
    --background: #f2f6fa; --blue: #087fea; --blue-dark: #0065c2;
    --favorite: #fff9d9; --favorite-line: #f0da75; --radius: 18px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-width: 280px; background: var(--background); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 12; padding-top: env(safe-area-inset-top); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 3px 16px rgba(26,50,77,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100%, 760px); height: 68px; margin: 0 auto; padding: 0 12px 0 16px; }
.logo-window { display: flex; align-items: center; width: auto; height: 100%; }
.logo-window img { display: block; width: 126px; height: auto; max-height: 63px; object-fit: contain; object-position: left center; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.icon-button:hover, .icon-button[aria-expanded="true"] { background: #edf3f8; }
.icon-button:focus-visible { outline: 3px solid rgba(8,127,234,.25); outline-offset: 1px; }
.icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-panel { position: fixed; z-index: 11; top: calc(68px + env(safe-area-inset-top)); left: 0; right: 0; display: none; padding: 10px 16px 12px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(26,50,77,.08); }
.search-panel.is-open { display: block !important; }
.add-panel { position: fixed; z-index: 11; top: calc(68px + env(safe-area-inset-top)); left: 0; right: 0; display: none; padding: 10px 16px 12px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(26,50,77,.08); }
.add-panel.is-open { display: block; }
.add-panel__inner { display: flex; align-items: flex-end; gap: 8px; width: min(100%, 728px); margin: 0 auto; }
.add-textarea { flex: 1; min-height: 80px; max-height: 220px; padding: 11px 14px; border: 1px solid #cbd7e3; border-radius: 14px; background: #f7f9fb; color: var(--ink); font: inherit; font-size: .9rem; line-height: 1.5; outline: none; resize: vertical; min-width: 0; }
.add-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.add-textarea::placeholder { color: #9aabbe; }
.get-job-button { flex-shrink: 0; height: 46px; padding: 0 18px; border: none; border-radius: 14px; background: var(--blue); color: #fff; font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer; white-space: nowrap; transition: background 150ms ease; }
.get-job-button:hover { background: var(--blue-dark); }
.get-job-button:disabled { opacity: .55; cursor: not-allowed; }
.add-panel__status { display: none; align-items: center; gap: 8px; width: min(100%, 728px); margin: 8px auto 0; font-size: .82rem; color: var(--muted); }
.add-panel__status.is-visible { display: flex; }
.add-panel__status.is-error { color: #b91c1c; }
.add-panel__status.is-success { color: #116534; }
.add-spinner { width: 16px; height: 16px; border: 2px solid #d9e6f1; border-top-color: var(--blue); border-radius: 50%; animation: research-spin .8s linear infinite; flex-shrink: 0; }
.search-panel__inner { position: relative; width: min(100%, 728px); margin: 0 auto; }
.search-panel svg { position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; }
.search-input { width: 100%; height: 46px; padding: 0 44px 0 43px; border: 1px solid #cbd7e3; border-radius: 14px; background: #f7f9fb; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.clear-search { position: absolute; top: 50%; right: 7px; display: none; width: 34px; height: 34px; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.35rem; cursor: pointer; }
.clear-search.is-visible { display: grid; place-items: center; }
.menu-panel { position: fixed; z-index: 13; top: calc(68px + env(safe-area-inset-top)); right: max(12px, calc((100vw - 760px) / 2 + 12px)); width: min(222px, calc(100vw - 24px)); min-height: 50px; padding: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(26,50,77,.16); overflow: hidden; }
.menu-panel[hidden] { display: none; }
.menu-section { padding: 2px 16px 3px; }
.menu-section-title { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.menu-divider { height: 1px; margin: 7px 0; background: var(--line); }
.menu-view-btn,
.menu-action-btn,
.menu-download-link,
.menu-logout-btn { display: block; width: 100%; padding: 6px 16px; border: none; background: none; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 520; line-height: 1.35; cursor: pointer; text-align: left; }
.menu-download-link { text-decoration: none; }
.menu-view-btn:hover, .menu-view-btn.is-active, .menu-action-btn:hover, .menu-download-link:hover { background: #edf3f8; }
.menu-logout-form { margin: 0; }
.menu-logout-btn { color: var(--ink); }
.menu-logout-btn:hover { background: #fff1f0; }
main { width: min(100%, 760px); margin: 0 auto; padding: calc(86px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); transition: padding-top 150ms ease; }
body.search-open main { padding-top: calc(150px + env(safe-area-inset-top)); }
body.add-open main { padding-top: calc(190px + env(safe-area-inset-top)); }
.intro { margin: 0 2px 20px; }
.intro h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.65rem, 7vw, 2.25rem); letter-spacing: -.035em; }
.intro p { margin: 7px 0 0; color: var(--muted); font-size: .94rem; }
.daily-progress { position: relative; display: flex; align-items: center; min-height: 20px; margin: -8px 0 19px; border-bottom: 1px solid #e7edf3; background: #f8fbfd; }
.daily-progress[hidden] { display: none; }
.daily-progress__bar { position: relative; width: 100%; height: 20px; overflow: hidden; background: #f3f6f9; }
.daily-progress__fill { display: block; height: 100%; min-width: 2px; background: var(--blue); transition: width 180ms ease; }
.daily-progress__count { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #0f172a; font-size: .74rem; font-weight: 650; line-height: 1; }

/* ── View indicators (1|2|3 dots) ── */
.view-indicators { display: inline-flex; gap: 5px; align-items: center; flex-shrink: 0; }
.view-dot { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; font: inherit; font-size: .85rem; font-weight: 800; color: #fff; background: #027BE4; cursor: pointer; transition: transform .15s; user-select: none; line-height: 1; }
.view-dot.is-orange { background: #e8821a; }
.view-dot:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.view-dot:active { transform: scale(.95); }
body.searching-jobs .view-indicators { display: none; }
body.searching-jobs .intro { margin-bottom: 14px; }
body.searching-jobs .intro h1 { font-size: 1.45rem; line-height: 1.25; letter-spacing: 0; }
body.searching-jobs .intro p { margin-top: 4px; font-size: .84rem; }
.job-list { display: grid; gap: 11px; }
.job-list-subheading { margin: 18px 2px 2px; color: #606b78; font-size: .82rem; font-weight: 850; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.job-card { display: flex; align-items: flex-start; gap: 13px; width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 7px 24px rgba(26,50,77,.05); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.job-card:active { transform: scale(.985); }
.job-card:focus-visible { outline: 3px solid rgba(8,127,234,.28); outline-offset: 2px; }
.job-card.is-disliked { background: #e2e5e8; border-color: #d7dde3; }
.job-card.is-disliked .job-card__title,
.job-card.is-disliked .job-card__meta,
.job-card.is-disliked .job-ai-tags { text-decoration: line-through; }
.job-card.is-status-2 { background: #f3f8ff; border-color: #c8dbf8; }
.job-card.is-status-3 { background: #fff7ed; border-color: #fed7aa; }
.job-card--past-invitation,
.job-card--past-invitation.is-disliked,
.job-card--past-invitation.is-status-2,
.job-card--past-invitation.is-status-3 { background: #f3f5f7; color: #6b7280; border-color: #d7dde3; }
.job-card--past-invitation .job-card__title,
.job-card--past-invitation .job-card__company,
.job-card--past-invitation .job-card__meta { color: #6b7280; }
.job-card--past-invitation.is-disliked .job-card__title,
.job-card--past-invitation.is-disliked .job-card__meta,
.job-card--past-invitation.is-disliked .job-ai-tags { text-decoration: none; }
.job-card--past-invitation .job-card__logo { opacity: .72; filter: grayscale(1); }
.job-card__logo { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border: 1px solid #d7e0ea; border-radius: 8px; background: #fff; color: #32506d; font-size: .8rem; font-weight: 850; line-height: 1; }
.job-card__logo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.job-card__logo-fallback { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #edf3f8; }
.job-card__logo-fallback[hidden] { display: none; }
.job-card__body { display: block; min-width: 0; flex: 1 1 auto; }
.job-card__title { display: block; min-width: 0; flex: 1 1 auto; padding-right: 8px; font-size: 1.2rem; line-height: 1.27; font-weight: 760; letter-spacing: -.018em; overflow-wrap: break-word; word-break: normal; }
.job-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-card__source { display: none; align-items: center; justify-content: center; max-width: 150px; padding: 4px 9px; border: 1px solid #d3dde8; border-radius: 999px; background: #f7f9fb; color: #516174; font-size: .72rem; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
body.searching-jobs .job-card__source { display: inline-flex; }
.job-card__status-badge { display: inline-flex; align-items: center; justify-content: center; max-width: 150px; padding: 4px 9px; border: 1px solid #d7dde3; border-radius: 999px; background: #eef1f4; color: #606b78; font-size: .72rem; font-weight: 800; line-height: 1.2; white-space: nowrap; flex-shrink: 0; }
.job-card__score { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 4px 10px; border-radius: 999px; background: #e4f3ff; color: #0066bd; font-size: .78rem; font-weight: 800; line-height: 1.2; flex-shrink: 0; }
.job-card__score--activities { background: #e3f5eb; color: #116534; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 11px; color: var(--muted); font-size: .82rem; }
.job-card__meta span { position: relative; }
.job-card__meta span + span::before { content: ""; position: absolute; left: -9px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #a3afbd; }
.job-card__company { color: #3a475a; font-weight: 800; }
.job-card__work-model--remote { color: #0f6b45; font-weight: 700; }
.job-ai-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ai-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 8px; border: 1px solid #c9d8f8; border-radius: 999px; background: #edf3ff; color: #315a9a; font-size: .72rem; font-weight: 720; line-height: 1.2; overflow-wrap: anywhere; }
.empty-state { padding: 34px 22px; border: 1px dashed #b9c7d5; border-radius: var(--radius); background: rgba(255,255,255,.65); text-align: center; color: var(--muted); }
.empty-state--compact { padding: 22px 16px; }
.search-empty { display: none; }

/* Statistics */
.stats-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.stats-kpi,
.stats-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 7px 24px rgba(26,50,77,.05); }
.stats-kpi { min-width: 0; padding: 16px; overflow: hidden; }
.stats-kpi--accent { border-color: #b7d5f3; background: linear-gradient(135deg, #f7fbff 0%, #fff 55%); }
.stats-kpi__label { display: block; color: var(--muted); font-size: .75rem; font-weight: 760; text-transform: uppercase; letter-spacing: .05em; }
.stats-kpi strong { display: block; margin-top: 8px; color: var(--ink); font-size: 2rem; line-height: 1; letter-spacing: 0; }
.stats-kpi span:last-child { display: block; margin-top: 8px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.stats-panel { min-width: 0; padding: 17px; margin-bottom: 12px; }
.stats-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stats-panel h2 { margin: 0; font-size: 1.02rem; line-height: 1.25; }
.stats-panel p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.stats-grid { display: grid; gap: 12px; }
.stats-chart-wrap { display: none; position: relative; height: 260px; }
.stats-chart-wrap--small { height: 190px; }
.stats-chart-wrap.is-rendered { display: block; }
.stats-fallback-chart { display: grid; gap: 10px; }
.stats-chart-wrap.is-rendered + .stats-fallback-chart { display: none; }
.stats-month-row { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 10px; align-items: center; color: var(--muted); font-size: .74rem; }
.stats-month-bars { display: grid; gap: 3px; }
.stats-bar { display: block; min-width: 2px; height: 6px; border-radius: 999px; }
.stats-bar--imports { background: var(--blue); }
.stats-bar--applications { background: #14a36f; }
.stats-bar--rejections { background: #e05757; }
.stats-meter-list,
.stats-segment-list,
.stats-company-list,
.stats-status-list { display: grid; gap: 10px; }
.stats-meter,
.stats-segment { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; align-items: center; }
.stats-meter span,
.stats-segment span { color: #394a5d; font-size: .84rem; font-weight: 680; overflow-wrap: anywhere; }
.stats-meter strong,
.stats-segment strong { color: var(--ink); font-size: .9rem; }
.stats-meter i,
.stats-segment i { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: #edf3f8; }
.stats-meter b,
.stats-segment b { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #14a36f); }
.stats-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 15px; }
.stats-mini-grid span { min-width: 0; padding: 11px; border-radius: 12px; background: #f7f9fb; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.stats-mini-grid strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.12rem; }
.stats-status-list span,
.stats-company-list span { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 0; border-top: 1px solid #e8edf2; color: #394a5d; font-size: .84rem; font-weight: 680; }
.stats-status-list span:first-child,
.stats-company-list span:first-child { border-top: 0; }
.stats-status-list strong,
.stats-company-list strong { color: var(--ink); font-size: .9rem; }
.stats-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #8b9bad; flex: 0 0 9px; }
.stats-dot--offen { background: var(--blue); }
.stats-dot--beworben { background: #6f879f; }
.stats-dot--eingeladen { background: #9b6ce5; }
.stats-dot--abgesagt { background: #e05757; }
.stats-dot--geschlossen { background: #7b8794; }
.stats-segment i { background: #eef3f7; }
.stats-segment b { background: #9b6ce5; }
.modal { position: fixed; inset: 0; z-index: 20; display: none; background: rgba(4,12,22,.72); backdrop-filter: blur(5px); }
.modal.is-open { display: block; }
.modal__panel { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--background); }
.modal__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 14px 8px; background: rgba(242,246,250,.92); backdrop-filter: blur(12px); }
.modal-actions { display: flex; align-items: flex-start; gap: 5px; }
.close-button, .favorite-button, .delete-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.favorite-control { position: relative; }
.favorite-button { color: #8a94a2; font-size: 1.75rem; transition: color 150ms ease, background 150ms ease, transform 150ms ease; }
.favorite-button.is-dislike { border-color: #d7dce3; background: #f8fafc; color: #64748b; }
.favorite-button.is-like { border-color: #f3b9b9; background: #fff5f5; color: #dc2626; }
.favorite-button.is-love { border-color: #f3b9b9; background: #fff5f5; color: #dc2626; }
.favorite-button:active { transform: scale(.9); }
.favorite-button:disabled { opacity: .45; cursor: wait; }
.favorite-picker { position: absolute; top: 50px; right: 0; display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 10px 26px rgba(26,50,77,.12); }
.favorite-picker[hidden] { display: none; }
.status-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #64748b; font-size: 1rem; cursor: pointer; }
.status-btn.is-active { border-color: #cbd7e3; background: #f7f9fb; }
.status-btn--dislike { color: #64748b; }
.status-btn--like { color: #dc2626; font-size: 1rem; line-height: 1; }
.status-btn--love { color: #dc2626; font-size: 1.18rem; line-height: 1; }
.delete-control { position: relative; }
.delete-button { color: #7c8795; }
.delete-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.delete-control.is-armed .delete-button { border-color: #f3a2a2; background: #fff0f0; color: #dc2626; }
.delete-question { position: absolute; top: 50px; right: 0; display: none; width: max-content; max-width: 150px; padding: 7px 9px; border: 1px solid #f3a2a2; border-radius: 9px; background: #fff; color: #b91c1c; font-size: .76rem; font-weight: 750; box-shadow: 0 8px 20px rgba(110,20,20,.14); }
.delete-control.is-armed .delete-question { display: block; }
.modal__content { width: min(100%, 760px); margin: 0 auto; padding: 4px 16px 56px; }
.detail-head { padding: 7px 2px 19px; }
.detail-head h2 { margin: 0; font-size: clamp(1.65rem, 7vw, 2.3rem); line-height: 1.12; letter-spacing: -.04em; }
.detail-company { margin: 9px 0 0; color: var(--blue-dark); font-weight: 720; }
.detail-company a { color: inherit; text-decoration: none; }
.detail-company a:hover { text-decoration: underline; }
.refresh-job-button,
.clean-description-job-button,
.fetch-logo-button { height: 30px; padding: 0 9px; border: 1px solid #b8cce0; border-radius: 8px; background: #fff; color: var(--blue-dark); font: inherit; font-size: .7rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.refresh-job-button:hover,
.clean-description-job-button:hover,
.fetch-logo-button:hover { background: #eaf4fd; }
.fetch-logo-button:disabled { opacity: .55; cursor: wait; }
.modal__content .myjob-detail-tabs { display: inline-flex !important; align-items: center; gap: 3px; margin: 4px 0 18px; padding: 4px; border: 1px solid #dce6f0; border-radius: 12px; background: #f3f7fb; }
.modal__content .myjob-detail-tab { appearance: none; -webkit-appearance: none; display: inline-flex !important; align-items: center; justify-content: center; min-width: 132px; height: 34px; margin: 0; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: #53677c; font: inherit; font-size: .9rem; font-weight: 760; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.modal__content .myjob-detail-tab.is-active { background: #fff; color: var(--blue-dark); box-shadow: 0 1px 2px rgba(26,50,77,.08), 0 7px 18px rgba(26,50,77,.08); }
.modal__content .myjob-detail-tab:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.modal__content .myjob-detail-tab:focus-visible { outline: 3px solid rgba(8,127,234,.22); outline-offset: 2px; }
.modal__content .myjob-detail-tab-panel[hidden] { display: none !important; }
.detail-section { margin: 12px 0; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-section h3 { margin: 0 0 14px; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.field-grid { display: grid; gap: 14px; }
.field { min-width: 0; }
.field__label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.field__value { margin: 0; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.field__value a, .source-link { color: var(--blue-dark); font-weight: 650; text-underline-offset: 3px; }
.score { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: #e4f3ff; color: #0066bd; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 10px; border-radius: 999px; background: #edf3f8; color: #33465b; font-size: .82rem; font-weight: 650; }
.item-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.item-list li { padding: 11px 0; border-top: 1px solid #e8edf2; line-height: 1.5; }
.item-list li:first-child { padding-top: 0; border-top: 0; }
.item-meta { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; }
.ai-tag-details { margin-top: 16px; }
.ai-tag-evidence { margin-top: 7px; }
.loading { padding: 50px 10px; text-align: center; color: var(--muted); }
.research-modal { position: fixed; inset: 0; z-index: 40; display: none; padding: 14px; background: rgba(4,12,22,.72); backdrop-filter: blur(6px); }
.research-modal.is-open { display: grid; place-items: center; }
.research-panel { display: flex; flex-direction: column; width: min(100%, 700px); max-height: calc(100vh - 28px); border-radius: 22px; background: var(--background); box-shadow: 0 30px 80px rgba(0,0,0,.38); overflow: hidden; }
.research-header { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.research-header h2 { margin: 0; font-size: 1.15rem; }
.research-header p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
.research-body { min-height: 220px; padding: 18px; overflow-y: auto; }
.research-loading { display: grid; justify-items: center; gap: 14px; padding: 42px 12px; color: var(--muted); text-align: center; }
.research-spinner { width: 38px; height: 38px; border: 4px solid #d9e6f1; border-top-color: var(--blue); border-radius: 50%; animation: research-spin .8s linear infinite; }
@keyframes research-spin { to { transform: rotate(360deg); } }
.research-summary { margin: 0 0 15px; padding: 13px; border-radius: 13px; background: #eaf4fd; line-height: 1.5; }
.change-group { margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.change-group h3 { margin: 0 0 11px; color: var(--muted); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; }
.change-item { padding: 11px 0; border-top: 1px solid #e8edf2; }
.change-item:first-of-type { padding-top: 0; border-top: 0; }
.change-field { font-size: .8rem; font-weight: 800; }
.change-values { display: grid; gap: 4px; margin-top: 6px; font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.change-old { color: var(--muted); text-decoration: line-through; }
.change-new { color: #116534; font-weight: 700; }
.change-evidence { margin: 7px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.research-source-count { margin-top: 13px; }
.research-actions { display: none; justify-content: flex-end; gap: 9px; padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.research-actions.is-visible { display: flex; }
.research-action { min-width: 92px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 750; cursor: pointer; }
.research-action.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.research-action:disabled { opacity: .45; cursor: not-allowed; }
.lookup-progress-modal { position: fixed; inset: 0; z-index: 59; display: none; padding: 14px; background: rgba(4,12,22,.48); backdrop-filter: blur(4px); }
.lookup-progress-modal.is-open { display: grid; place-items: center; }
.lookup-progress-panel { width: min(100%, 520px); max-height: calc(100vh - 28px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(188,204,220,.9); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.lookup-progress-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 13px; border-bottom: 1px solid var(--line); background: #fff; }
.lookup-progress-header h2 { margin: 0; font-size: 1.05rem; }
.lookup-progress-header p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.lookup-progress-close { width: 32px; height: 32px; border: 1px solid #d3e0ec; border-radius: 50%; background: #f7fafc; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.lookup-progress-body { padding: 16px 20px 18px; overflow-y: auto; }
.lookup-progress-current { min-height: 20px; color: var(--ink); font-size: .88rem; font-weight: 720; }
.lookup-progress-bar { height: 8px; margin: 12px 0 16px; overflow: hidden; border-radius: 999px; background: #edf3f8; }
.lookup-progress-bar span { display: block; width: 0%; height: 100%; border-radius: inherit; background: var(--blue); transition: width .25s ease; }
.lookup-progress-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.lookup-progress-stats div { min-width: 0; padding: 10px 8px; border: 1px solid #e0e9f2; border-radius: 10px; background: #f8fbfd; text-align: center; }
.lookup-progress-stats span { display: block; color: var(--blue-dark); font-size: 1.1rem; font-weight: 830; }
.lookup-progress-stats small { display: block; margin-top: 2px; color: var(--muted); font-size: .7rem; font-weight: 720; }
.lookup-progress-log { display: grid; gap: 6px; margin-top: 14px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.lookup-progress-log div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lookup-progress-log .is-found { color: #116534; }
.lookup-progress-log .is-missing { color: #7a4b12; }
.lookup-progress-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.lookup-progress-cancel,
.lookup-progress-background { min-height: 36px; padding: 0 14px; border: 1px solid #c9d8e6; border-radius: 10px; background: #fff; color: var(--blue-dark); font: inherit; font-size: .82rem; font-weight: 760; cursor: pointer; }
.lookup-progress-cancel { border-color: #f1c2c2; background: #fff8f8; color: #9f1d1d; }
@media (min-width: 640px) {
    .job-card { padding: 21px 23px; }
    .job-card:hover { transform: translateY(-2px); border-color: #b9cee0; box-shadow: 0 13px 32px rgba(26,50,77,.1); }
    .modal { padding: 24px; }
    .modal__panel { position: relative; inset: auto; width: min(100%, 820px); max-height: calc(100vh - 48px); margin: 0 auto; border-radius: 24px; box-shadow: 0 28px 70px rgba(0,0,0,.3); }
    .modal__content { padding-inline: 26px; }
    .field-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .field--wide { grid-column: 1 / -1; }
    .stats-kpi-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .stats-panel--chart { padding: 20px; }
    .stats-chart-wrap { height: 300px; }
    .stats-chart-wrap--small { height: 220px; }
}
/* Edit mode */
.edit-bar { display: flex; align-items: center; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.edit-toggle-btn, .edit-save-btn, .edit-cancel-btn, .interview-training-btn, .coverletter-btn { height: 30px; padding: 0 9px; border-radius: 8px; font: inherit; font-size: .7rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.edit-toggle-btn { border: 1px solid #b8cce0; background: #fff; color: var(--blue-dark); }
.edit-toggle-btn:hover { background: #eaf4fd; }
.edit-toggle-btn.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.interview-training-btn { border: 1px solid #9b6ce5; background: #f4efff; color: #5d36a6; }
.interview-training-btn:hover { background: #eadfff; }
.coverletter-btn { border: 1px solid #14a36f; background: #eefbf5; color: #116534; }
.coverletter-btn:hover { background: #dcf7eb; }
.edit-save-btn { border: none; background: #116534; color: #fff; }
.edit-save-btn:disabled { opacity: .5; cursor: not-allowed; }
.edit-cancel-btn { border: 1px solid var(--line); background: #fff; color: var(--muted); }
.edit-add-row { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.edit-field-select { flex: 1; height: 38px; padding: 0 10px; border: 1px solid #cbd7e3; border-radius: 10px; background: #f7f9fb; color: var(--ink); font: inherit; font-size: .82rem; }
.edit-add-field-btn { height: 38px; padding: 0 14px; border: none; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.edit-add-field-btn:hover { background: var(--blue-dark); }
.field__input { width: 100%; padding: 7px 10px; border: 1px solid #cbd7e3; border-radius: 9px; background: #f7f9fb; color: var(--ink); font: inherit; font-size: .88rem; line-height: 1.5; resize: vertical; }
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
textarea.field__input { min-height: 80px; }
/* Notes panel */
.notes-toggle-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 4px; border: 1px solid #b8cce0; border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; transition: color 150ms ease, border-color 150ms ease, background 150ms ease; }
.explain-job-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid #b8cce0; border-radius: 8px; background: #fff; color: var(--blue-dark); font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; transition: color 150ms ease, border-color 150ms ease, background 150ms ease; }
.explain-job-btn:hover { background: #eaf4fd; border-color: var(--blue); }
.notes-toggle-btn svg { width: 18px; height: 18px; }
.notes-toggle-btn:hover { background: #eaf4fd; color: var(--blue-dark); }
.notes-toggle-btn.is-active { border-color: #116534; background: #eefbf3; color: #116534; }
.notes-panel { display: none; align-items: flex-start; gap: 8px; margin-top: 12px; }
.notes-panel.is-open { display: flex; }
.notes-textarea { flex: 1; min-height: 72px; max-height: 220px; padding: 10px 13px; border: 1px solid #cbd7e3; border-radius: 12px; background: #f7f9fb; color: var(--ink); font: inherit; font-size: .87rem; line-height: 1.55; resize: vertical; outline: none; }
.notes-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.notes-textarea::placeholder { color: #9aabbe; }
.notes-save-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 6px; border: 1px solid #b8cce0; border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; flex-shrink: 0; margin-top: 1px; transition: color 150ms ease, border-color 150ms ease, background 150ms ease; }
.notes-save-btn svg { width: 20px; height: 20px; }
.notes-save-btn:hover { border-color: var(--blue); color: var(--blue); background: #eaf4fd; }
.notes-save-btn.is-saving { opacity: .5; cursor: wait; }
.notes-save-btn.is-saved { border-color: #116534; color: #116534; background: #eefbf3; }
.notes-save-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Activity styles ── */
.activities-box { margin-top: 0; }
.activities-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.activities-header h3 { margin: 0; font-size: .95rem; font-weight: 650; }
.activity-add-btn { width: 32px; height: 32px; border: 1px dashed var(--line); border-radius: 50%; background: none; color: var(--blue); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.activity-add-btn:hover { background: #edf3f8; border-color: var(--blue); }
.activity-item { position: relative; height: 132px; padding: 14px 40px 14px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.activity-item.is-expanded { height: auto; min-height: 132px; }
.activity-item__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.activity-item__date { font-size: .82rem; color: var(--muted); font-weight: 600; }
.activity-item__type { font-size: .75rem; font-weight: 650; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .03em; }
.activity-item__type--email { background: #e8f0fe; color: #1967d2; }
.activity-item__type--telefonat { background: #fef3e8; color: #c55600; }
.activity-item__type--post { background: #e6f4ea; color: #1e7e34; }
.activity-item__type--vorstellungsgespraech { background: #fce8e6; color: #c5221f; }
.activity-item__type--statuswechsel { background: #edf3f8; color: #33465b; }
.activity-item__type--job_interview { background: #efe7ff; color: #7048bf; }
.activity-item__notes { max-height: 72px; font-size: .87rem; color: var(--ink); line-height: 1.5; margin-top: 8px; white-space: pre-wrap; overflow: hidden; }
.activity-item.is-expanded .activity-item__notes { max-height: none; }
.activity-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-right: 8px; }
.activity-attachment { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px; border: 1px solid #d8e3ee; border-radius: 8px; background: #f7f9fb; color: var(--blue-dark); font-size: .78rem; font-weight: 650; text-decoration: none; }
.activity-attachment:hover { border-color: #b8cce0; background: #edf3f8; }
.activity-attachment span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-attachment small { color: var(--muted); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.activity-item__delete { position: absolute; top: 13px; right: 12px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; display: grid; place-items: center; flex-shrink: 0; }
.activity-item__delete:hover { background: #fce8e6; color: #c5221f; }
.activity-item__expand { position: absolute; z-index: 2; right: 12px; bottom: 10px; width: 28px; height: 24px; border: 1px solid #d8e3ee; border-radius: 999px; background: #fff; color: var(--blue-dark); font: inherit; font-size: 1rem; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 4px 10px rgba(26,50,77,.08); }
.activity-item__expand:hover { background: #edf3f8; border-color: #b8cce0; }
.activity-item.is-expanded .activity-item__expand { position: sticky; display: block; margin: 10px 0 0 auto; }
.activity-empty { text-align: center; color: var(--muted); font-size: .85rem; padding: 20px 0; }
.job-mails-box { margin-top: 0; }
.job-mails-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.job-mails-header h3 { margin: 0; font-size: .95rem; font-weight: 650; }
.job-mails-header span { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: #edf3f8; color: #53677c; font-size: .78rem; font-weight: 800; display: inline-grid; place-items: center; }
.job-mails-list { display: grid; gap: 9px; }
.job-mail-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.job-mail-open { width: 100%; padding: 13px 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; display: grid; gap: 6px; }
.job-mail-open:hover { background: #f7fafd; }
.job-mail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-mail-date { color: var(--muted); font-size: .78rem; font-weight: 700; }
.job-mail-subject { min-width: 0; color: var(--ink); font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
.job-mail-summary { color: #53677c; font-size: .84rem; line-height: 1.45; }
.job-mail-meta { color: var(--muted); font-size: .76rem; line-height: 1.4; overflow-wrap: anywhere; }

@media (max-width: 520px) {
    .job-card--past-invitation .job-card__top { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
    .job-card--past-invitation .job-card__title { flex: 1 0 100%; padding-right: 0; }
    .job-card--past-invitation .job-card__status-badge,
    .job-card--past-invitation .job-card__score { max-width: 100%; }
    .modal__content .myjob-detail-tabs { display: flex !important; width: 100%; }
    .modal__content .myjob-detail-tab { min-width: 0; flex: 1 1 0; padding-inline: 8px; font-size: .82rem; }
    .modal__content .myjob-detail-tab:last-child { margin-right: 0; }
}

/* ── Activity modal ── */
.activity-modal { position: fixed; inset: 0; z-index: 60; display: none; padding: 14px; background: rgba(4,12,22,.72); backdrop-filter: blur(6px); }
.activity-modal.is-open { display: grid; place-items: center; }
.activity-panel { display: flex; flex-direction: column; width: min(100%, 500px); max-height: calc(100vh - 28px); border-radius: 22px; background: var(--background); box-shadow: 0 30px 80px rgba(0,0,0,.38); overflow: hidden; }
.application-submitted-panel { width: min(100%, 640px); }
.activity-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.activity-header h2 { margin: 0; font-size: 1.05rem; }
.activity-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.activity-close:hover { background: #edf3f8; }
.activity-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.activity-form { display: flex; flex-direction: column; gap: 14px; }
.activity-field { display: flex; flex-direction: column; gap: 4px; }
.activity-field label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.activity-input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .9rem; background: #fff; outline: none; }
.activity-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.activity-textarea { resize: vertical; min-height: 80px; }
.application-content-textarea { min-height: 220px; }
.activity-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); background: #fff; }
.activity-cancel { padding: 8px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: .87rem; cursor: pointer; }
.activity-cancel:hover { background: #f7f9fb; }

/* ── Beworben detail: collapsible job info ── */
.jobinfo-toggle { display: block; width: 100%; padding: 12px 0; border: 0; background: none; color: var(--blue); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; text-align: left; }
.jobinfo-toggle:hover { opacity: .8; }
.jobinfo-toggle::before { content: '▸ '; }
.jobinfo-toggle.is-open::before { content: '▾ '; }
.jobinfo-content { display: none; }
.jobinfo-content.is-open { display: block; }

/* Explain modal */
.explain-modal { position: fixed; inset: 0; z-index: 50; display: none; padding: 14px; background: rgba(4,12,22,.72); backdrop-filter: blur(6px); }
.explain-modal.is-open { display: grid; place-items: center; }
.explain-panel { display: flex; flex-direction: column; width: min(100%, 640px); max-height: calc(100vh - 28px); border-radius: 22px; background: var(--background); box-shadow: 0 30px 80px rgba(0,0,0,.38); overflow: hidden; }
.explain-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.explain-header h2 { margin: 0; font-size: 1.05rem; }
.explain-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.explain-close:hover { background: #edf3f8; color: var(--ink); }
.explain-body { min-height: 120px; padding: 18px; overflow-y: auto; }
.job-agent-modal { position: fixed; inset: 0; z-index: 55; display: none; padding: 14px; background: rgba(4,12,22,.72); backdrop-filter: blur(6px); }
.job-agent-modal.is-open { display: grid; place-items: center; }
.job-agent-panel { display: flex; flex-direction: column; width: min(100%, 700px); max-height: calc(100vh - 28px); border-radius: 22px; background: var(--background); box-shadow: 0 30px 80px rgba(0,0,0,.38); overflow: hidden; }
.job-agent-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.job-agent-header h2 { margin: 0; font-size: 1.05rem; }
.job-agent-close,
.job-agent-discard { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.job-agent-close { width: 36px; height: 36px; font-size: 1.5rem; }
.job-agent-close:hover,
.job-agent-discard:hover { background: #edf3f8; color: var(--ink); }
.job-agent-body { flex: 1; padding: 18px; overflow-y: auto; }
.job-agent-form { display: grid; gap: 7px; margin-bottom: 12px; }
.job-agent-form label { color: var(--muted); font-size: .82rem; font-weight: 700; }
.job-agent-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.job-agent-input,
.job-agent-select { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #cbd7e3; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.job-agent-input:focus,
.job-agent-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.job-agent-select { cursor: pointer; }
.job-agent-submit { height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.job-agent-submit:hover { background: var(--blue-dark); }
.job-agent-submit:disabled { opacity: .55; cursor: wait; }
.job-agent-scope,
.job-agent-sources { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.job-agent-scope { color: #234a72; font-weight: 700; }
.job-agent-status { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 4px 0 12px; color: var(--muted); font-size: .82rem; }
.job-agent-status.is-success { color: #116534; }
.job-agent-status.is-error { color: #b91c1c; }
.job-agent-results { display: grid; gap: 10px; }
.job-agent-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(26,50,77,.04); }
.job-agent-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-agent-title-wrap { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.job-agent-logo { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border: 1px solid #d7e0ea; border-radius: 8px; background: #fff; color: #32506d; font-size: .8rem; font-weight: 850; line-height: 1; }
.job-agent-logo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.job-agent-card h3 { margin: 0; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.job-agent-discard { width: 32px; height: 32px; flex: 0 0 32px; font-size: 1.25rem; }
.job-agent-meta { margin-top: 6px; color: var(--muted); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.job-agent-card p { margin: 10px 0 0; color: #3a475a; font-size: .86rem; line-height: 1.5; }
.job-agent-reason { padding: 10px 11px; border-radius: 11px; background: #edf6ff; color: #075fa9 !important; font-weight: 650; }
.job-agent-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.job-agent-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.job-agent-actions a { color: var(--blue-dark); font-size: .82rem; font-weight: 700; text-underline-offset: 3px; }
.job-agent-more { display: flex; justify-content: center; margin-top: 14px; }
.job-agent-more[hidden] { display: none; }
.job-agent-next { min-width: 150px; }
.mail-logging-modal { position: fixed; inset: 0; z-index: 55; display: none; padding: 14px; background: rgba(4,12,22,.72); backdrop-filter: blur(6px); }
.mail-logging-modal.is-open { display: grid; place-items: center; }
.mail-logging-panel { display: flex; flex-direction: column; width: min(100%, 760px); max-height: calc(100vh - 28px); border-radius: 22px; background: var(--background); box-shadow: 0 30px 80px rgba(0,0,0,.38); overflow: hidden; }
.mail-logging-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.mail-logging-header h2 { margin: 0; font-size: 1.05rem; }
.mail-logging-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.mail-logging-close:hover { background: #edf3f8; color: var(--ink); }
.mail-logging-body { flex: 1; padding: 18px; overflow-y: auto; }
.mail-logging-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mail-log-details-toggle { margin: -4px 0 12px; padding: 0; border: 0; background: transparent; color: var(--blue-dark); font: inherit; font-size: .78rem; font-weight: 720; cursor: pointer; text-align: left; text-underline-offset: 3px; }
.mail-log-details-toggle:hover { text-decoration: underline; }
.mail-check-button { height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.mail-check-button:hover { background: var(--blue-dark); }
.mail-check-button:disabled { opacity: .58; cursor: wait; }
.mail-check-status { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.mail-check-status.is-success { color: #116534; }
.mail-check-status.is-error { color: #b91c1c; }
.mail-check-list { display: grid; gap: 10px; }
.mail-check-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 7px 22px rgba(26,50,77,.04); }
.mail-check-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.mail-check-card__head strong { display: block; color: var(--ink); font-size: .95rem; }
.mail-check-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #edf3f8; color: #33465b; font-size: .74rem; font-weight: 760; white-space: nowrap; }
.mail-check-empty { margin-top: 10px; color: var(--muted); font-size: .84rem; }
.mail-log-details { display: grid; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mail-log-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mail-log-detail-meta span { padding: 4px 7px; border-radius: 999px; background: #edf3f8; color: #33465b; font-size: .72rem; font-weight: 720; }
.mail-log-detail-mail { display: grid; gap: 4px; padding: 9px; border-radius: 10px; background: #fbfcfd; color: var(--muted); font-size: .76rem; line-height: 1.4; overflow-wrap: anywhere; }
.mail-log-detail-mail strong { color: var(--ink); font-size: .8rem; }
.mail-log-detail-mail pre { max-height: 160px; margin: 5px 0 0; padding: 8px; overflow: auto; border-radius: 8px; background: #eef3f7; color: #2b3a4d; white-space: pre-wrap; font: inherit; font-size: .74rem; }
.mail-response-list { display: grid; gap: 9px; margin-top: 12px; }
.mail-response-item { position: relative; padding: 11px 42px 11px 11px; border-radius: 10px; background: #f7f9fb; }
.mail-response-item strong { display: block; color: var(--ink); font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
.mail-response-meta { margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.mail-response-dismiss { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.mail-response-dismiss:hover { background: #edf3f8; color: var(--ink); }
.mail-job-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.mail-job-match { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; max-width: 100%; }
.mail-job-link { min-height: 30px; padding: 0 10px; border: 1px solid #b8cce0; border-radius: 999px; background: #fff; color: var(--blue-dark); font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }
.mail-job-link:hover { background: #edf3f8; border-color: var(--blue); }
.mail-confirm-rejection { min-height: 30px; padding: 0 10px; border: 1px solid #f0c0c0; border-radius: 999px; background: #fff7f7; color: #b91c1c; font: inherit; font-size: .76rem; font-weight: 760; cursor: pointer; }
.mail-confirm-rejection:hover { background: #ffecec; border-color: #e05757; }
.mail-confirm-rejection:disabled { border-color: #d7e0ea; background: #f3f6f8; color: #7b8794; cursor: default; }
.mail-confirm-invitation { min-height: 30px; padding: 0 10px; border: 1px solid #d4c4f4; border-radius: 999px; background: #f7f2ff; color: #7048bf; font: inherit; font-size: .76rem; font-weight: 760; cursor: pointer; }
.mail-confirm-invitation:hover { background: #efe7ff; border-color: #9b6ce5; }
.mail-confirm-invitation:disabled { border-color: #d7e0ea; background: #f3f6f8; color: #7b8794; cursor: default; }
.mail-move-acknowledgement { min-height: 30px; padding: 0 10px; border: 1px solid #b9dbc9; border-radius: 999px; background: #f2fbf6; color: #116534; font: inherit; font-size: .76rem; font-weight: 760; cursor: pointer; }
.mail-move-acknowledgement:hover { background: #e7f7ee; border-color: #55a774; }
.mail-move-acknowledgement:disabled { border-color: #d7e0ea; background: #f3f6f8; color: #7b8794; cursor: default; }
.mail-inbox-back { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 1.5rem; cursor: pointer; }
.mail-inbox-back { font-size: 1.9rem; line-height: 1; }
.mail-inbox-back:hover { background: #edf3f8; color: var(--ink); }
.mail-inbox-back[hidden] { display: none; }
.mail-inbox-body { flex: 1; min-height: 220px; padding: 14px; overflow-y: auto; }
.mail-inbox-view .mail-inbox-body { padding: 0; overflow: visible; }
.mail-inbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mail-inbox-status { flex: 1; min-height: 18px; margin: 0 2px; color: var(--muted); font-size: .8rem; line-height: 1.35; text-align: center; }
.mail-inbox-status.is-error { color: #b91c1c; }
.mail-inbox-filter,
.mail-inbox-refresh,
.mail-folder-switch { min-height: 34px; padding: 0 11px; border: 1px solid #b8cce0; border-radius: 9px; background: #fff; color: var(--blue-dark); font: inherit; font-size: .78rem; font-weight: 760; cursor: pointer; white-space: nowrap; }
.mail-inbox-filter:hover,
.mail-inbox-refresh:hover,
.mail-folder-switch:hover { background: #edf6ff; border-color: var(--blue); }
.mail-inbox-refresh:disabled { opacity: .58; cursor: wait; }
.mail-folder-switch { display: inline-flex; align-items: center; gap: 6px; max-width: 210px; }
.mail-folder-switch[hidden] { display: none; }
.mail-folder-switch svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mail-folder-switch span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mail-inbox-list { display: grid; gap: 9px; }
.mail-inbox-item { position: relative; width: 100%; min-height: 82px; padding: 13px 84px 13px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; box-shadow: 0 7px 22px rgba(26,50,77,.04); }
.mail-inbox-item:hover { border-color: #b8cce0; background: #fbfdff; }
.mail-inbox-open { display: block; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mail-inbox-open:focus-visible { outline: 3px solid rgba(8,127,234,.2); outline-offset: 2px; border-radius: 8px; }
.mail-inbox-actions { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 4px; }
.mail-inbox-action { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #7c8795; cursor: pointer; }
.mail-inbox-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mail-inbox-folder:hover { background: #edf6ff; color: var(--blue-dark); }
.mail-inbox-delete:hover { background: #fff1f0; color: #b91c1c; }
.mail-inbox-item__main { min-width: 0; }
.mail-inbox-item__top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.mail-inbox-date { color: var(--muted); font-size: .76rem; font-weight: 700; }
.mail-inbox-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: #edf3f8; color: #33465b; font-size: .7rem; font-weight: 820; }
.mail-inbox-badge--invitation { background: #e5f6ec; color: #116534; }
.mail-inbox-badge--rejection { background: #fff1f0; color: #b42318; }
.mail-inbox-badge--acknowledgement { background: #e6f2ff; color: #075fa9; }
.mail-inbox-subject { display: block; color: var(--ink); font-size: .98rem; font-weight: 780; line-height: 1.3; overflow-wrap: anywhere; }
.mail-inbox-summary { display: block; margin-top: 5px; color: var(--muted); font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; }
.mail-job-assignment-area { margin-top: 9px; padding-right: 6px; }
.mail-job-assignment { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.mail-linked-job { display: inline-grid; gap: 1px; max-width: min(100%, 420px); padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; line-height: 1.25; text-align: left; cursor: pointer; }
.mail-linked-job strong { display: block; min-width: 0; font-size: .82rem; font-weight: 820; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-linked-job:hover strong { color: var(--blue-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.mail-unlink-job { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 0; border-radius: 50%; background: transparent; color: #7c8795; cursor: pointer; opacity: 0; pointer-events: none; }
.mail-job-assignment:hover .mail-unlink-job,
.mail-job-assignment:focus-within .mail-unlink-job { opacity: 1; pointer-events: auto; }
.mail-unlink-job:hover { background: #fff1f0; color: #b91c1c; }
.mail-unlink-job svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mail-add-assignment { min-height: 28px; padding: 0; border: 0; background: transparent; color: var(--blue-dark); font: inherit; font-size: .82rem; font-weight: 770; cursor: pointer; }
.mail-add-assignment:hover { text-decoration: underline; text-underline-offset: 2px; }
.mail-assignment-search { position: relative; width: min(100%, 420px); }
.mail-assignment-input { width: 100%; height: 36px; padding: 0 11px; border: 1px solid #b8cce0; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: .86rem; outline: none; }
.mail-assignment-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.mail-assignment-results { position: absolute; z-index: 6; top: calc(100% + 4px); left: 0; right: 0; display: grid; gap: 2px; max-height: 220px; padding: 6px; border: 1px solid #d7e0ea; border-radius: 10px; background: #fff; box-shadow: 0 14px 32px rgba(26,50,77,.16); overflow-y: auto; }
.mail-assignment-result { display: grid; gap: 2px; width: 100%; padding: 8px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mail-assignment-result:hover { background: #edf6ff; }
.mail-assignment-result strong { font-size: .82rem; font-weight: 820; }
.mail-assignment-result span,
.mail-assignment-hint { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.mail-assignment-hint { padding: 7px 8px; }
.mail-inbox-list[hidden] { display: none; }
.mail-detail-modal { position: fixed; inset: 0; z-index: 57; display: none; padding: 14px; background: rgba(4,12,22,.72); backdrop-filter: blur(6px); }
.mail-detail-modal.is-open { display: grid; place-items: center; }
.mail-detail-panel { display: flex; flex-direction: column; width: min(100%, 760px); max-height: calc(100vh - 28px); border-radius: 22px; background: var(--background); box-shadow: 0 30px 80px rgba(0,0,0,.38); overflow: hidden; }
.mail-detail-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.mail-detail-modal-header h2 { margin: 0; min-width: 0; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-detail-close { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.mail-detail-close:hover { background: #edf3f8; color: var(--ink); }
.mail-detail-modal-body { flex: 1; padding: 18px; overflow-y: auto; }
.mail-detail-head { padding: 3px 2px 15px; }
.mail-detail-head h3 { margin: 0; color: var(--ink); font-size: 1.35rem; line-height: 1.18; overflow-wrap: anywhere; }
.mail-detail-meta { display: grid; gap: 3px; margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.mail-detail-body { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #26374a; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.settings-modal { position: fixed; inset: 0; z-index: 50; display: none; padding: 14px; background: rgba(4,12,22,.72); backdrop-filter: blur(6px); }
.settings-modal.is-open { display: grid; place-items: center; }
.settings-panel { display: flex; flex-direction: column; width: min(100%, 640px); max-height: calc(100vh - 28px); border-radius: 22px; background: var(--background); box-shadow: 0 30px 80px rgba(0,0,0,.38); overflow: hidden; }
.settings-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.settings-header h2 { margin: 0; font-size: 1.05rem; }
.settings-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.settings-close:hover { background: #edf3f8; color: var(--ink); }
.settings-body { min-height: 180px; padding: 18px; overflow-y: auto; }
.settings-form { display: grid; gap: 16px; }
.settings-field { display: grid; gap: 7px; }
.settings-field span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.settings-field input { width: 128px; height: 44px; padding: 0 12px; border: 1px solid #cbd7e3; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.settings-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.settings-category { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.settings-category-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; text-align: left; }
.settings-category-toggle:hover { background: #f7f9fb; }
.settings-category-toggle[aria-expanded="true"] { border-bottom: 1px solid var(--line); }
.settings-category-chevron { color: var(--muted); font-size: 1.25rem; line-height: 1; transition: transform .15s; }
.settings-category-toggle[aria-expanded="true"] .settings-category-chevron { transform: rotate(90deg); }
.settings-category-body { padding: 10px; background: #f7f9fb; }
.mail-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plugin-settings-grid { display: grid; gap: 10px; }
.plugin-download-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px; border: 1px solid #dbe6f1; border-radius: 10px; background: #fff; }
.plugin-download-box strong { display: block; color: var(--ink); font-size: .88rem; line-height: 1.3; }
.plugin-download-box p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.about-me-upload-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid #dbe6f1; border-radius: 10px; background: #fff; }
.about-me-upload-box strong { display: block; color: var(--ink); font-size: .88rem; line-height: 1.3; }
.about-me-upload-box p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.about-me-upload-button { margin-top: 0 !important; white-space: nowrap; }
.about-me-profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.about-me-profile-actions .settings-add-type { margin-top: 0 !important; white-space: nowrap; }
.about-me-profile-actions .settings-add-type:disabled { opacity: .55; cursor: not-allowed; }
.about-me-profile-meta { margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #33465b; font-size: .82rem; line-height: 1.4; overflow-wrap: anywhere; }
.about-me-history-toggle { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--blue-dark); font: inherit; font-size: .82rem; font-weight: 760; cursor: pointer; }
.about-me-history { display: grid; gap: 8px; margin-top: 8px; }
.about-me-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.about-me-history-row strong { display: block; color: var(--ink); font-size: .82rem; line-height: 1.3; overflow-wrap: anywhere; }
.about-me-history-row span, .about-me-history-empty { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; overflow-wrap: anywhere; }
.about-me-history-empty { padding: 8px 0; }
.plugin-settings-grid label { display: grid; gap: 6px; min-width: 0; }
.plugin-settings-grid label span { color: var(--muted); font-size: .76rem; font-weight: 730; }
.plugin-settings-grid input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #cbd7e3; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: .82rem; outline: none; }
.plugin-token-row { display: grid !important; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px !important; align-items: center; }
.plugin-token-copy { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #cbd7e3; border-radius: 9px; background: #fff; color: var(--blue-dark); cursor: pointer; }
.plugin-token-copy:hover { background: #edf6ff; border-color: var(--blue); }
.plugin-token-copy:disabled { opacity: .55; cursor: not-allowed; }
.plugin-token-copy svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plugin-settings-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mail-settings-grid label { display: grid; gap: 6px; min-width: 0; }
.mail-settings-grid label span { color: var(--muted); font-size: .76rem; font-weight: 730; }
.mail-settings-grid input,
.mail-settings-grid select { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #cbd7e3; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: .86rem; outline: none; }
.mail-settings-grid input:focus,
.mail-settings-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.mail-settings-active { grid-column: 1 / -1; display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; padding: 4px 0; }
.mail-settings-active input { width: auto; height: auto; accent-color: var(--blue); }
.mail-settings-status { min-height: 18px; margin-top: 9px; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.mail-settings-status.is-success { color: #116534; }
.mail-settings-status.is-error { color: #b91c1c; }
.activity-types-list { display: grid; gap: 8px; }
.activity-type-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.activity-type-label { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #cbd7e3; border-radius: 8px; color: var(--ink); font: inherit; font-size: .9rem; outline: none; }
.activity-type-label:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.activity-type-label:disabled { border-color: transparent; background: #f7f9fb; color: var(--muted); }
.activity-type-active { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .82rem; font-weight: 650; white-space: nowrap; }
.activity-type-active input { accent-color: var(--blue); }
.activity-type-lock { padding: 4px 7px; border-radius: 999px; background: #edf3f8; color: #33465b; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.settings-add-type { justify-self: start; margin-top: 10px; padding: 8px 12px; border: 1px dashed #b8cce0; border-radius: 10px; background: #fff; color: var(--blue-dark); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.settings-add-type:hover { background: #edf3f8; border-color: var(--blue); }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.settings-status { min-height: 1.2em; color: var(--muted); font-size: .8rem; }
.settings-status.is-success { color: #116534; }
.settings-status.is-error { color: #b91c1c; }
.settings-save { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer; }
.settings-save:hover { background: var(--blue-dark); }
.settings-save:disabled { opacity: .55; cursor: wait; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 520px) {
  .mail-settings-grid { grid-template-columns: 1fr; }
  .about-me-upload-box { align-items: stretch; flex-direction: column; }
  .about-me-upload-button { justify-self: stretch; text-align: center; }
  .activity-type-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .job-agent-search-row { grid-template-columns: 1fr; }
  .job-agent-submit { width: 100%; }
  .job-agent-actions { align-items: stretch; flex-direction: column; }
  .job-agent-actions .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   TAB PANEL
   ═══════════════════════════════════════════════════════════════ */
.tab-panel[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════
   ANFORDERUNGEN (Requirements) TAB
   ═══════════════════════════════════════════════════════════════ */
.about-me-workspace { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.about-me-workspace__toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.about-me-workspace__toolbar h2 { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.25; }
.about-me-workspace__toolbar p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; overflow-wrap: anywhere; }
.about-me-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.about-me-page-actions .btn { min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: .84rem; }
.about-me-page-status { min-height: 18px; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.about-me-page-status.is-success { color: #116534; }
.about-me-page-status.is-error { color: #b91c1c; }
.about-me-markdown-view { display: grid; gap: 10px; color: #27384a; font-size: .94rem; line-height: 1.62; overflow-wrap: anywhere; }
.about-me-markdown-view h2,
.about-me-markdown-view h3 { margin: 12px 0 0; color: var(--ink); line-height: 1.25; }
.about-me-markdown-view h2:first-child,
.about-me-markdown-view h3:first-child { margin-top: 0; }
.about-me-markdown-view h2 { font-size: 1.18rem; }
.about-me-markdown-view h3 { font-size: 1rem; }
.about-me-markdown-view p { margin: 0; }
.about-me-markdown-view ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; }
.about-me-markdown-view li { padding-left: 2px; }
.about-me-markdown-view code { padding: 1px 4px; border-radius: 5px; background: #edf3f8; color: #19344f; font-size: .9em; }
.about-me-markdown-editor { width: 100%; min-height: 520px; padding: 14px; border: 1px solid #cbd7e3; border-radius: 10px; background: #fbfdff; color: var(--ink); font: inherit; font-size: .94rem; line-height: 1.55; resize: vertical; outline: none; }
.about-me-markdown-editor:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.about-me-optimize-modal { position: fixed; inset: 0; z-index: 58; display: none; padding: 14px; background: rgba(4,12,22,.72); backdrop-filter: blur(6px); }
.about-me-optimize-modal.is-open { display: grid; place-items: center; }
.about-me-optimize-panel { display: flex; flex-direction: column; width: min(100%, 780px); max-height: calc(100vh - 28px); border-radius: 18px; background: var(--background); box-shadow: 0 30px 80px rgba(0,0,0,.38); overflow: hidden; }
.about-me-optimize-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.about-me-optimize-header h2 { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.25; }
.about-me-optimize-header p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.about-me-optimize-close { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.about-me-optimize-close:hover { background: #edf3f8; color: var(--ink); }
.about-me-optimize-close:disabled { opacity: .5; cursor: wait; }
.about-me-optimize-chat { display: flex; flex-direction: column; gap: 10px; min-height: 260px; padding: 16px; overflow-y: auto; }
.about-me-optimize-bubble { max-width: 86%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #26374a; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.about-me-optimize-bubble.is-user { align-self: flex-end; border-color: #b8d7f2; background: #edf6ff; color: #133b63; }
.about-me-optimize-bubble.is-assistant { align-self: flex-start; }
.about-me-optimize-form { display: grid; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: #fff; }
.about-me-optimize-form textarea { width: 100%; min-height: 86px; padding: 11px 12px; border: 1px solid #cbd7e3; border-radius: 10px; background: #fbfdff; color: var(--ink); font: inherit; font-size: .92rem; line-height: 1.45; resize: vertical; outline: none; }
.about-me-optimize-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.about-me-optimize-form textarea:disabled { opacity: .65; cursor: wait; }
.about-me-optimize-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.about-me-optimize-status { min-height: 18px; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.about-me-optimize-status.is-success { color: #116534; }
.about-me-optimize-status.is-error { color: #b91c1c; }
.about-me-optimize-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.about-me-optimize-actions .btn { min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: .84rem; }
.about-me-optimize-actions .btn:disabled { opacity: .55; cursor: wait; }
.req-card.card { margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card-header { font-size: .95rem; font-weight: 750; margin-bottom: 14px; }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.form-grid input[type="text"],
.form-grid input[type="number"] { width: 100%; padding: 8px 11px; border: 1px solid #cbd7e3; border-radius: 10px; background: #f7f9fb; color: var(--ink); font: inherit; font-size: .88rem; outline: none; }
.form-grid input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.form-grid input[type="checkbox"] { accent-color: var(--blue); }
.full-width { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .about-me-workspace__toolbar { flex-direction: column; }
  .about-me-page-actions { justify-content: flex-start; width: 100%; }
  .about-me-page-actions .btn { flex: 1 1 auto; }
  .about-me-markdown-editor { min-height: 420px; }
  .about-me-optimize-footer { align-items: stretch; flex-direction: column; }
  .about-me-optimize-actions { justify-content: stretch; width: 100%; }
  .about-me-optimize-actions .btn { flex: 1 1 auto; }
  .about-me-optimize-bubble { max-width: 100%; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; border: none; border-radius: 10px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; gap: 5px; transition: opacity .15s, transform .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: #edf3f8; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: #e0e8f0; }
.btn-sm { padding: 5px 10px; font-size: .78rem; border-radius: 8px; }
.btn-lg { padding: 10px 22px; font-size: .95rem; border-radius: 12px; }

/* ── Profile Tiles ────────────────────────────────────────── */
.profiles-grid { display: grid; gap: 8px; margin: 16px 0; }
.profile-tile { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; gap: 10px; }
.profile-tile__info { min-width: 0; flex: 1; }
.profile-tile__name { display: block; font-size: .88rem; }
.profile-tile__detail { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; }
.profile-tile__actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ── Adzuna Result Cards ──────────────────────────────────── */
.adzuna-result { padding: 15px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.adzuna-result__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.adzuna-result__title { font-size: 1rem; font-weight: 760; letter-spacing: -.015em; }
.adzuna-result__company { color: var(--blue-dark); font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.adzuna-result__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; color: var(--muted); font-size: .82rem; }
.adzuna-result__desc { margin: 8px 0 0; font-size: .84rem; line-height: 1.5; color: #3a475a; }
.adzuna-result__actions { display: flex; gap: 7px; margin-top: 11px; }

/* ── Job Status Dropdown in Modal ─────────────────────────── */
.job-status-control { display: inline-flex; flex-direction: column; gap: 3px; min-width: 118px; }
.job-status-control[hidden] { display: none; }
.job-status-control span { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.job-status-select { width: 100%; height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; outline: none; }
.job-status-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.job-status-select.is-eingeladen { border-color: #cbb8f0; background: #f4efff; color: #5d36a6; }
.job-stage-select { min-width: 148px; }
.job-stage-select.is-erstes_interview { border-color: #cbb8f0; background: #f4efff; color: #5d36a6; }
.job-stage-select.is-zweites_interview { border-color: #86c99b; background: #e5f6ec; color: #116534; }
.job-stage-select.is-finalrunde { border-color: #83bdf0; background: #edf7ff; color: #075fa9; }
.job-stage-select.is-vertragsabschluss { border-color: #e2bd55; background: #fff8df; color: #806000; }
.job-status-select.is-abgesagt { border-color: #f3a2a2; background: #fff1f0; color: #b91c1c; }
.job-status-select:disabled { opacity: .6; cursor: wait; }

/* ── Beworben date editor ─────────────────────────────────── */
#beworben-editor label { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
#beworben-date-input { flex: 1; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; }

/* ── Job card with beworben styling ───────────────────────── */
.job-card--beworben { border-left: 4px solid #6f879f; }
.job-card--beworben .job-card__date { color: #516174; font-weight: 700; }
.job-card--eingeladen { border-left-color: #9b6ce5; }
.job-card--eingeladen .job-card__date { color: #7048bf; }
.job-card__application-stage { color: #116534; font-weight: 800; }
.job-card--eingeladen .job-card__application-stage { color: #5d36a6; }

/* ── AI matching preferences ─────────────────────────────── */
.preference-card { margin-bottom: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 7px 24px rgba(26,50,77,.04); }
.preference-card__header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.preference-card__header > div { display: flex; align-items: center; gap: 10px; }
.preference-card__header h2 { margin: 0; font-size: 1.08rem; }
.preference-step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 800; }
.preference-help { margin: 10px 0 17px; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.cv-status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #fff4dc; color: #8a5600; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.cv-status-badge.is-completed { background: #e5f6ec; color: #116534; }
.cv-status-badge.is-processing { background: #e5f2ff; color: #075fa9; }
.cv-status-badge.is-failed { background: #fff1f0; color: #9f1c14; }
.cv-status-badge.is-empty { background: #edf1f5; color: var(--muted); }
.cv-dropzone { position: relative; display: grid; place-items: center; min-height: 118px; border: 2px dashed #b9c9da; border-radius: 15px; background: #f8fafc; transition: border-color .15s, background .15s; }
.cv-dropzone:hover, .cv-dropzone.is-dragging { border-color: var(--blue); background: #f0f7fe; }
.cv-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cv-dropzone__content { display: grid; gap: 5px; text-align: center; pointer-events: none; }
.cv-dropzone__content strong { color: var(--blue-dark); font-size: .9rem; }
.cv-dropzone__content span { color: var(--muted); font-size: .77rem; }
.cv-file-info { margin-top: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.cv-file-info div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cv-file-info strong { font-size: .85rem; overflow-wrap: anywhere; }
.cv-file-info span { color: var(--muted); font-size: .76rem; }
.cv-error { margin: 8px 0 0; color: #9f1c14; font-size: .78rem; line-height: 1.4; }
.profile-text-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .8rem; font-weight: 700; }
#matching-profile-text { width: 100%; min-height: 150px; padding: 13px 14px; border: 1px solid #cbd7e3; border-radius: 13px; background: #f7f9fb; color: var(--ink); font: inherit; font-size: .91rem; line-height: 1.55; resize: vertical; outline: none; }
#matching-profile-text:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.profile-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.character-count { color: var(--muted); font-size: .76rem; }
.profile-editor-actions { display: flex; gap: 8px; }
.preference-progress { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 13px; border-radius: 11px; background: #edf6ff; color: #075fa9; font-size: .82rem; font-weight: 650; }
.preference-progress[hidden] { display: none; }
.profile-form-status { min-height: 20px; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.saved-profiles-section { margin-top: 27px; }
.saved-profiles-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 13px; }
.saved-profiles-heading h2 { margin: 0; font-size: 1.08rem; }
.saved-profiles-heading span { color: var(--muted); font-size: .8rem; }
.matching-profiles-grid { display: grid; gap: 12px; }
.profiles-loading { padding: 24px; color: var(--muted); text-align: center; }
.matching-profile-card { position: relative; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(26,50,77,.04); }
.matching-profile-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.matching-profile-date { color: var(--muted); font-size: .72rem; }
.matching-profile-card h3 { margin: 8px 34px 14px 0; font-size: 1rem; line-height: 1.35; }
.matching-profile-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.matching-profile-meta > span { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: #f4f7fa; color: #33465b; font-size: .8rem; overflow-wrap: anywhere; }
.matching-profile-meta strong { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.profile-kebab { position: relative; }
.profile-kebab-button { width: 34px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; letter-spacing: 2px; cursor: pointer; }
.profile-kebab-button:hover, .profile-kebab-button[aria-expanded="true"] { background: #edf3f8; color: var(--ink); }
.profile-kebab-menu { position: absolute; z-index: 5; top: 34px; right: 0; width: 130px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 12px 30px rgba(26,50,77,.15); }
.profile-kebab-menu[hidden] { display: none; }
.profile-kebab-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.profile-kebab-menu button:hover { background: #edf3f8; }
.profile-kebab-menu button.is-danger { color: #b42318; }
.profile-kebab-menu button.is-danger:hover { background: #fff1f0; }
.work-model-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.work-model-control span { color: var(--muted); font-size: .76rem; font-weight: 650; }
.work-model-control select { min-width: 142px; height: 36px; padding: 0 30px 0 10px; border: 1px solid #cbd7e3; border-radius: 9px; background: #f8fafc; color: var(--ink); font: inherit; font-size: .8rem; }
@media (max-width: 520px) {
    .preference-card { padding: 16px; }
    .preference-card__header { align-items: flex-start; }
    .matching-profile-meta { grid-template-columns: 1fr; }
    .profile-editor-footer { align-items: flex-end; }
    .profile-editor-actions { flex-direction: column-reverse; }
}

/* ── Login ───────────────────────────────────────────────── */
.login-page { min-height: 100vh; background: var(--background); }
.login-main { display: grid; place-items: center; width: 100%; min-height: 100vh; margin: 0; padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom)); }
.login-card { width: min(100%, 400px); padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 65px rgba(26,50,77,.14); }
.login-logo { display: block; width: 160px; height: auto; margin: 0 auto 24px; }
.login-heading { margin-bottom: 22px; text-align: center; }
.login-heading h1 { margin: 0; font-size: 1.65rem; letter-spacing: -.03em; }
.login-heading p { margin: 7px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.login-error { margin-bottom: 17px; padding: 11px 13px; border: 1px solid #f2b8b5; border-radius: 11px; background: #fff1f0; color: #9f1c14; font-size: .84rem; line-height: 1.45; }
.login-field { display: grid; gap: 6px; margin-top: 15px; }
.login-field span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.login-field input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #cbd7e3; border-radius: 12px; background: #f7f9fb; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.login-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,234,.12); }
.login-remember { display: flex; align-items: center; gap: 9px; margin-top: 15px; color: var(--muted); font-size: .88rem; font-weight: 650; cursor: pointer; }
.login-remember input { width: 17px; height: 17px; accent-color: var(--blue); }
.login-submit { width: 100%; height: 46px; margin-top: 22px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.login-submit:hover { background: var(--blue-dark); }

/* Public policy page */
.policy-page { min-height: 100vh; background: #f6f8fb; }
.policy-page .policy-header { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.policy-logo { display: flex; align-items: center; width: min(100%, 880px); height: 68px; margin: 0 auto; padding: 0 18px; }
.policy-logo img { width: 126px; height: auto; object-fit: contain; }
.policy-main { width: min(100%, 880px); margin: 0 auto; padding: 34px 18px 64px; }
.policy-hero { padding: 8px 0 26px; border-bottom: 1px solid #dfe7ef; }
.policy-kicker { margin: 0 0 10px; color: var(--blue-dark); font-size: .78rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.policy-hero h1 { max-width: 780px; margin: 0; color: var(--ink); font-size: clamp(2rem, 7vw, 3.35rem); line-height: 1.05; letter-spacing: 0; }
.policy-hero p { max-width: 720px; margin: 14px 0 0; color: #4f6072; font-size: 1.03rem; line-height: 1.6; }
.policy-hero span { display: inline-flex; margin-top: 18px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.policy-notice { display: grid; gap: 5px; margin: 22px 0; padding: 15px 17px; border: 1px solid #f0d585; border-radius: 8px; background: #fff9e8; color: #594315; font-size: .9rem; line-height: 1.45; }
.policy-notice strong { color: #3d2d0c; }
.policy-content { display: grid; gap: 18px; }
.policy-content section { padding: 22px 0; border-bottom: 1px solid #dfe7ef; }
.policy-content h2 { margin: 0 0 12px; color: var(--ink); font-size: 1.22rem; line-height: 1.3; letter-spacing: 0; }
.policy-content p,
.policy-content li,
.policy-content address { color: #35465a; font-size: .98rem; line-height: 1.65; }
.policy-content p,
.policy-content ul,
.policy-content address { margin: 0 0 12px; }
.policy-content p:last-child,
.policy-content ul:last-child,
.policy-content address:last-child { margin-bottom: 0; }
.policy-content ul { padding-left: 1.2rem; }
.policy-content li + li { margin-top: 4px; }
.policy-content a { color: var(--blue-dark); font-weight: 700; overflow-wrap: anywhere; }
.policy-content address { font-style: normal; }

@media (max-width: 560px) {
    .policy-main { padding-top: 24px; }
    .policy-content section { padding: 19px 0; }
}
