/* Public company page (/company/{slug}) - Views/Employer/CompanyDetailsPreview.cshtml.
   Every rule is scoped under .cp so nothing leaks into the site header/footer. */

.cp, .cp-chat-overlay, .cp-toast {
    --cp-bg: #f4f6fb;
    --cp-surface: #ffffff;
    --cp-soft: #f1f4f9;
    --cp-line: #e3e8f0;
    --cp-text: #0f172a;
    --cp-text-2: #475569;
    --cp-muted: #8a94a6;
    --cp-accent: #4f46e5;
    --cp-accent-2: #6366f1;
    --cp-accent-soft: #eef2ff;
    --cp-good: #15803d;
    --cp-good-soft: #ecfdf3;
    --cp-warn: #b45309;
    --cp-warn-soft: #fff7ed;
    --cp-bad: #dc2626;
    --cp-star: #f59e0b;
    --cp-radius: 16px;
    --cp-radius-sm: 10px;
    --cp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px rgba(15, 23, 42, .06);
    --cp-sticky-top: 0px;
}
.cp {
    background: var(--cp-bg);
    color: var(--cp-text);
    padding: 90px 0 56px;
    font-size: 14px;
}
.cp-chat-overlay *, .cp-chat-overlay *::before, .cp-chat-overlay *::after { box-sizing: border-box; }

.cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
.cp a { text-decoration: none; }
.cp h1, .cp h2, .cp h3 { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; color: var(--cp-text); }
.cp .cp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- buttons ---------- */
.cp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 999px;
    font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
    border: 1px solid var(--cp-line); background: var(--cp-surface); color: var(--cp-text-2);
    cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.cp-btn:hover, .cp-btn:focus-visible { border-color: var(--cp-accent); color: var(--cp-accent); }
.cp-btn:focus-visible { outline: 3px solid rgba(79, 70, 229, .25); outline-offset: 1px; }
.cp-btn:disabled { opacity: .6; cursor: default; }
.cp-btn-primary { background: var(--cp-accent); border-color: var(--cp-accent); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
.cp-btn-primary:hover, .cp-btn-primary:focus-visible { background: #4338ca; border-color: #4338ca; color: #fff; }
.cp-btn-icon { width: 42px; padding: 0; }
.cp-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

.cp-btn-follow.is-following { background: var(--cp-good-soft); border-color: #86efac; color: var(--cp-good); box-shadow: none; }
.cp-btn-follow.is-following:hover { background: #fef2f2; border-color: #fca5a5; color: var(--cp-bad); }

/* ---------- hero ---------- */
.cp-hero { background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: var(--cp-radius); box-shadow: var(--cp-shadow); overflow: hidden; }
.cp-cover { position: relative; height: 210px; background: linear-gradient(120deg, #312e81 0%, #4f46e5 45%, #0ea5e9 100%); overflow: hidden; }
.cp-cover.is-pattern::before {
    content: ''; position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(circle at 15% 30%, rgba(255,255,255,.22) 0 2px, transparent 3px),
                      radial-gradient(circle at 70% 70%, rgba(255,255,255,.16) 0 2px, transparent 3px);
    background-size: 46px 46px, 64px 64px;
}
.cp-cover.is-pattern::after {
    content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
}
.cp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.cp-hero-body { display: flex; gap: 22px; align-items: flex-end; padding: 0 28px 22px; }
.cp-logo {
    position: relative; flex: 0 0 auto; width: 120px; height: 120px; margin-top: -56px;
    border-radius: 22px; border: 4px solid var(--cp-surface); background: var(--cp-surface);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .16); overflow: hidden;
}
.cp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.cp-logo-initials {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font: 700 38px/1 'Montserrat', sans-serif; color: #fff; letter-spacing: .5px;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
}
.cp-ident { flex: 1 1 auto; min-width: 0; padding-top: 16px; }
.cp-name { font-size: 27px; font-weight: 700; line-height: 1.2; margin: 0 0 4px; word-wrap: break-word; }
.cp-tagline { margin: 0 0 10px; color: var(--cp-text-2); font-size: 15px; line-height: 1.45; }
.cp-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--cp-text-2); font-size: 13px; font-weight: 500; }
.cp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cp-meta i { color: var(--cp-muted); }
.cp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; flex: 0 0 auto; padding-bottom: 4px; }

.cp-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--cp-line); }
.cp-stat { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; color: inherit; }
.cp-stat + .cp-stat { border-left: 1px solid var(--cp-line); }
a.cp-stat:hover { background: var(--cp-soft); color: inherit; }
.cp-stat-value { font: 700 21px/1.2 'Montserrat', sans-serif; color: var(--cp-text); display: inline-flex; align-items: center; gap: 6px; }
.cp-stat-value .fa-star { color: var(--cp-star); font-size: 17px; }
.cp-stat-label { font-size: 12.5px; color: var(--cp-muted); font-weight: 600; }

/* owner notice */
.cp-owner-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 16px;
    background: var(--cp-accent-soft); color: #3730a3; border: 1px solid #c7d2fe; border-radius: var(--cp-radius-sm); font-size: 13.5px;
}
.cp-owner-bar .cp-btn { margin-left: auto; }

/* ---------- section tabs ---------- */
.cp-tabs {
    position: sticky; top: var(--cp-sticky-top); z-index: 20; margin: 18px 0;
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
    border: 1px solid var(--cp-line); border-radius: 999px; padding: 5px; box-shadow: var(--cp-shadow);
}
.cp-tabs::-webkit-scrollbar { display: none; }
.cp-tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px;
    color: var(--cp-text-2); font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.cp-tab:hover { color: var(--cp-accent); background: var(--cp-soft); }
@media (min-width: 901px) { .cp-tab-contact { display: none; } }
.cp-tab.is-active { background: var(--cp-accent); color: #fff; }
.cp-tab-count { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--cp-soft); color: var(--cp-text-2); }
.cp-tab.is-active .cp-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- layout ---------- */
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cp-side { position: sticky; top: calc(var(--cp-sticky-top) + 74px); display: flex; flex-direction: column; gap: 18px; }
.cp-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.cp-card { background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: var(--cp-radius); box-shadow: var(--cp-shadow); scroll-margin-top: calc(var(--cp-sticky-top) + 70px); }
.cp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.cp-card-title { font-size: 17px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.cp-card-title .cp-ico {
    width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--cp-accent-soft); color: var(--cp-accent); font-size: 14px;
}
.cp-card-body { padding: 16px 22px 22px; }
.cp-empty { color: var(--cp-muted); text-align: center; padding: 26px 10px 10px; font-size: 14px; }
.cp-empty i { display: block; font-size: 30px; margin-bottom: 10px; color: #cbd5e1; }

/* about */
.cp-about { color: var(--cp-text-2); font-size: 15px; line-height: 1.75; white-space: pre-line; word-wrap: break-word; margin: 0; }
.cp-about.is-clamped { max-height: 13.2em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.cp-link-btn { background: none; border: 0; padding: 0; margin-top: 10px; color: var(--cp-accent); font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cp-link-btn:hover { text-decoration: underline; }

/* jobs */
.cp-jobs { display: flex; flex-direction: column; gap: 12px; }
.cp-job {
    display: block; border: 1px solid var(--cp-line); border-radius: 14px; padding: 16px 18px; color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.cp-job[href]:hover { border-color: #c7d2fe; box-shadow: 0 8px 22px rgba(79, 70, 229, .10); transform: translateY(-1px); color: inherit; }
.cp-job.is-hidden { display: none; }
.cp-job-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cp-job-title { font: 700 16px/1.35 'Montserrat', sans-serif; color: var(--cp-text); margin: 0; }
a.cp-job[href]:hover .cp-job-title { color: var(--cp-accent); }
.cp-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cp-badge-type { background: var(--cp-good-soft); color: var(--cp-good); }
.cp-job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--cp-text-2); font-size: 13px; }
.cp-job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cp-job-meta i { color: var(--cp-muted); width: 13px; text-align: center; }
.cp-job-meta .cp-salary { color: var(--cp-text); font-weight: 600; }
.cp-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cp-skill { font-size: 12px; font-weight: 600; color: var(--cp-text-2); background: var(--cp-soft); border-radius: 6px; padding: 3px 9px; }
.cp-job-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--cp-line); font-size: 12.5px; color: var(--cp-muted); }
.cp-job-dates { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cp-due-soon { color: var(--cp-warn); font-weight: 700; }
.cp-due-past { color: var(--cp-bad); font-weight: 600; }
.cp-job-cta { color: var(--cp-accent); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cp-more-row { text-align: center; margin-top: 14px; }

/* reviews */
.cp-rev-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--cp-line); }
.cp-rev-score { text-align: center; min-width: 110px; }
.cp-rev-big { font: 800 40px/1 'Montserrat', sans-serif; color: var(--cp-text); }
.cp-stars { color: var(--cp-star); letter-spacing: 1px; font-size: 14px; }
.cp-stars .fa-star-o { color: #d5dbe5; }
.cp-rev-count { font-size: 12.5px; color: var(--cp-muted); margin-top: 3px; }
.cp-bars { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cp-bar-row { display: grid; grid-template-columns: 28px 1fr 30px; gap: 8px; align-items: center; font-size: 12px; color: var(--cp-text-2); font-weight: 600; }
.cp-bar-row i { color: var(--cp-star); font-size: 10px; margin-left: 2px; }
.cp-bar { height: 8px; border-radius: 99px; background: var(--cp-soft); overflow: hidden; }
.cp-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.cp-bar-n { text-align: right; color: var(--cp-muted); }

.cp-rev-form { display: none; margin-top: 18px; padding: 18px; background: var(--cp-soft); border-radius: 14px; }
.cp-rev-form.show { display: block; }
.cp-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--cp-text-2); margin-bottom: 8px; }
.cp-star-picker { display: flex; gap: 6px; font-size: 28px; color: #d1d5db; margin-bottom: 4px; cursor: pointer; }
.cp-star-picker i { transition: color .1s, transform .1s; }
.cp-star-picker i:hover { transform: scale(1.12); }
.cp-star-picker i.filled { color: var(--cp-star); }
.cp-star-hint { font-size: 12.5px; color: var(--cp-muted); min-height: 18px; margin-bottom: 12px; }
.cp-rev-form textarea {
    width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--cp-line); border-radius: 10px; padding: 11px 13px;
    font: inherit; font-size: 14px; color: var(--cp-text); background: var(--cp-surface); outline: none;
}
.cp-rev-form textarea:focus { border-color: var(--cp-accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.cp-char { text-align: right; font-size: 11.5px; color: var(--cp-muted); margin: 4px 0 10px; }
.cp-rev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cp-rev-status { font-size: 12.5px; font-weight: 600; }
.cp-rev-status.is-error { color: var(--cp-bad); }
.cp-rev-status.is-ok { color: var(--cp-good); }
.cp-remove { margin-left: auto; background: none; border: 0; color: var(--cp-bad); font-weight: 600; font-size: 13px; cursor: pointer; }

.cp-reviews { margin-top: 6px; }
.cp-review { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--cp-line); }
.cp-review:last-child { border-bottom: 0; padding-bottom: 0; }
.cp-review.is-hidden { display: none; }
.cp-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; object-fit: cover; background: var(--cp-soft); }
.cp-review-main { min-width: 0; flex: 1; }
.cp-review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cp-review-name { font-weight: 700; color: var(--cp-text); }
.cp-review-date { font-size: 12px; color: var(--cp-muted); }
.cp-review-text { margin: 6px 0 0; color: var(--cp-text-2); line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.cp-reply { margin-top: 12px; padding: 11px 14px; background: var(--cp-accent-soft); border-left: 3px solid var(--cp-accent); border-radius: 0 10px 10px 0; }
.cp-reply-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--cp-accent); display: inline-flex; gap: 6px; align-items: center; }
.cp-reply p { margin: 4px 0 0; font-size: 13.5px; color: var(--cp-text); line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }

/* side cards */
.cp-facts { list-style: none; margin: 0; padding: 0; }
.cp-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--cp-line); }
.cp-facts li:first-child { padding-top: 0; }
.cp-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.cp-fact-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--cp-accent-soft); color: var(--cp-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.cp-fact-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--cp-muted); text-transform: uppercase; letter-spacing: .3px; }
.cp-fact-value { display: block; font-size: 14px; font-weight: 600; color: var(--cp-text); word-break: break-word; line-height: 1.4; margin-top: 1px; }
a.cp-fact-value:hover { color: var(--cp-accent); }
.cp-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cp-social a {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--cp-soft); color: var(--cp-text-2); font-size: 15px; transition: background-color .15s, color .15s, transform .15s;
}
.cp-social a:hover { background: var(--cp-accent); color: #fff; transform: translateY(-1px); }
.cp-side .cp-btn { width: 100%; margin-top: 14px; }

/* toast */
.cp-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100000;
    background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: opacity .2s, transform .2s;
}
.cp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* message modal */
.cp-chat-overlay { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, .55); align-items: center; justify-content: center; padding: 16px; }
.cp-chat-overlay.show { display: flex; }
.cp-chat {
    width: 100%; max-width: 440px; height: min(620px, 86vh); display: flex; flex-direction: column;
    background: var(--cp-surface); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.cp-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--cp-line); }
.cp-chat-head .cp-logo-mini { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: 0 0 38px; background: var(--cp-soft); }
.cp-chat-head .cp-logo-mini img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cp-chat-head .cp-logo-mini .cp-logo-initials { font-size: 14px; }
.cp-chat-title { flex: 1; min-width: 0; }
.cp-chat-title strong { display: block; font-size: 15px; color: var(--cp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-chat-title span { font-size: 12px; color: var(--cp-muted); }
.cp-chat-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--cp-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.cp-chat-close:hover { background: var(--cp-soft); color: var(--cp-text); }
.cp-chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--cp-bg); }
.cp-chat-empty { margin: auto; text-align: center; color: var(--cp-muted); font-size: 13.5px; padding: 20px; }
.cp-bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap; }
.cp-bubble.mine { align-self: flex-end; background: var(--cp-accent); color: #fff; border-bottom-right-radius: 5px; }
.cp-bubble.theirs { align-self: flex-start; background: var(--cp-surface); color: var(--cp-text); border: 1px solid var(--cp-line); border-bottom-left-radius: 5px; }
.cp-bubble-time { display: block; font-size: 10.5px; opacity: .7; margin-top: 3px; white-space: normal; }
.cp-resume { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .16); white-space: normal; }
.cp-bubble.theirs .cp-resume { background: var(--cp-soft); }
.cp-resume .fa-file-pdf-o { font-size: 20px; }
.cp-bubble.theirs .cp-resume .fa-file-pdf-o { color: var(--cp-bad); }
.cp-resume-info { flex: 1; min-width: 0; }
.cp-resume-label { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; opacity: .75; }
.cp-resume-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-resume-open { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .25); color: inherit; }
.cp-bubble.theirs .cp-resume-open { background: var(--cp-accent-soft); color: var(--cp-accent); }
.cp-chat-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--cp-line); background: var(--cp-surface); }
.cp-chat-foot input {
    flex: 1; min-width: 0; height: 42px; border: 1px solid var(--cp-line); border-radius: 999px; padding: 0 16px;
    font: inherit; font-size: 14px; color: var(--cp-text); background: var(--cp-surface); outline: none;
}
.cp-chat-foot input:focus { border-color: var(--cp-accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.cp-chat-foot button { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; background: var(--cp-accent); color: #fff; cursor: pointer; }
.cp-chat-foot button:disabled { opacity: .6; cursor: default; }

/* missing company */
.cp-missing { max-width: 560px; margin: 30px auto; text-align: center; padding: 40px 24px; }
.cp-missing i { font-size: 44px; color: #c7d2fe; margin-bottom: 14px; display: block; }
.cp-missing h1 { font-size: 22px; margin: 0 0 8px; }
.cp-missing p { color: var(--cp-text-2); margin: 0 0 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .cp-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
    .cp-grid { grid-template-columns: minmax(0, 1fr); }
    .cp-side { position: static; }
    .cp-hero-body { flex-wrap: wrap; }
    .cp-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 600px) {
    .cp { padding-top: 76px; }
    .cp .cp-wrap { padding: 0 12px; }
    .cp-cover { height: 130px; }
    .cp-hero-body { padding: 0 16px 18px; gap: 6px 14px; align-items: flex-start; }
    .cp-logo { width: 88px; height: 88px; margin-top: -40px; border-radius: 18px; }
    .cp-logo-initials { font-size: 28px; }
    .cp-ident { padding-top: 6px; flex-basis: 100%; }
    .cp-name { font-size: 22px; }
    .cp-tagline { font-size: 14px; }
    /* Share sits on the left: the site's floating apps button covers the right edge on phones */
    .cp-actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
    .cp-actions #btnShareCompany { order: -1; }
    .cp-actions .cp-btn { width: 100%; padding: 0 10px; }
    .cp-actions .cp-btn-icon { width: 42px; }
    .cp-actions.is-owner { grid-template-columns: auto 1fr; }
    .cp-stats { grid-template-columns: repeat(2, 1fr); }
    .cp-stat { padding: 12px 16px; }
    .cp-stat:nth-child(3) { border-left: 0; }
    .cp-stat:nth-child(n+3) { border-top: 1px solid var(--cp-line); }
    .cp-stat-value { font-size: 18px; }
    .cp-tabs { margin: 14px 0; border-radius: 14px; }
    .cp-tab { padding: 0 12px; }
    .cp-card-head { padding: 16px 16px 0; }
    .cp-card-body { padding: 14px 16px 18px; }
    .cp-job { padding: 14px; }
    .cp-job-foot { flex-wrap: wrap; }
    .cp-rev-summary { grid-template-columns: auto 1fr; gap: 16px; }
    .cp-rev-score { min-width: 0; }
    .cp-rev-summary .cp-btn { grid-column: 1 / -1; width: 100%; }
    .cp-chat-overlay { padding: 0; align-items: flex-end; }
    .cp-chat { max-width: none; height: 88vh; border-radius: 18px 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cp *, .cp-toast { transition: none !important; }
}
