:root {
    color-scheme: light;
    --brand-yellow: #F4BE42;
    --brand-yellow-hover: #E7B12E;
    --brand-black: #000000;
    --surface-app: #F7F8FA;
    --surface-card: #FFFFFF;
    --surface-sidebar: #111111;
    --text-primary: #171717;
    --text-secondary: #5F6368;
    --border: #E7E7E7;
    --brand-soft: #FFF6DE;
    --success: #16855A;
    --warning: #B7791F;
    --danger: #C93E42;
    --info: #2563EB;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-primary);
    background: var(--surface-app);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--surface-app); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 3px solid #9A6B00; outline-offset: 3px; }
.muted { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.eyebrow { margin: 0 0 8px; color: #777; font-size: 11px; font-weight: 700; letter-spacing: .08em; }

/* Authentication */
.auth-body { background: #fff; }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(320px, .92fr) 1.08fr; }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(28px, 6vw, 88px); color: #fff; background: #111; }
.brand-lockup { align-self: flex-start; display: inline-flex; padding: 8px 12px; background: transparent; border-radius: 6px; }
.brand-lockup img { display: block; width: 148px; height: auto; }
.login-brand .brand-lockup { padding: 0; background: transparent; }
.login-brand-copy { max-width: 440px; padding: 70px 0; animation: rise-in .45s ease both; }
.login-brand-copy .eyebrow { color: var(--brand-yellow); }
.login-brand-copy h1 { margin: 0 0 18px; font: 600 clamp(32px, 3.2vw, 46px)/1.13 'Sora', sans-serif; letter-spacing: 0; }
.login-brand-copy p { margin: 0; color: #c9c9c9; font-size: 16px; line-height: 1.6; }
.brand-footnote { color: #999; font-size: 12px; }
.login-panel { display: grid; grid-template-rows: 1fr auto; padding: 48px clamp(28px, 8vw, 120px); }
.login-form-wrap { align-self: center; width: 100%; max-width: 420px; margin: auto; animation: rise-in .5s .08s ease both; }
.login-form-wrap h2 { margin: 0 0 8px; font: 600 28px/1.2 'Sora', sans-serif; letter-spacing: 0; }
.login-form-wrap > .muted { margin: 0 0 28px; }
.form-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; color: #343434; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea, .filter-field input, .filter-field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); background: #fff; font-size: 14px; font-weight: 400; }
.currency-input { display: grid; min-height: 44px; grid-template-columns: auto minmax(0, 1fr); align-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.currency-prefix { display: grid; min-height: 42px; align-items: center; padding: 0 13px; border-right: 1px solid var(--border); color: #666; background: #f8f8f8; font-size: 14px; font-weight: 600; }
.field .currency-input input[data-currency-input] { min-width: 0; border: 0; border-radius: 0; text-align: right; font-variant-numeric: tabular-nums; }
.field .currency-input input[data-currency-input]:focus { border: 0; outline: 0; }
.field .currency-input:focus-within { border-color: #9A6B00; outline: 3px solid rgba(244,190,66,.28); }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a9a; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-field input:focus, .filter-field select:focus { border-color: #9A6B00; outline: 3px solid rgba(244,190,66,.28); }
.login-help { margin: 20px 0 0; color: #777; font-size: 12px; line-height: 1.5; }
.login-footer { padding-top: 24px; color: #888; font-size: 12px; }
.notice { margin: 0 0 20px; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.notice-error { color: #8d292d; background: #fff0f0; border: 1px solid #f0caca; }

/* App shell */
.app-body { background: var(--surface-app); }
.app-frame { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 256px; flex-direction: column; padding: 20px 14px 14px; color: #fff; background: var(--surface-sidebar); }
.sidebar-brand { position: relative; display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 0 8px; margin-bottom: 39px; }
.sidebar-brand img { width: 80px; height: auto; flex: 0 0 80px; object-fit: contain; }
.sidebar-brand::before { display: none; }
.brand-divider { width: 1px; height: 23px; margin-left: 4px; background: #555; }
.sidebar-brand b { font: 600 14px 'Sora', sans-serif; }
.nav-caption { padding: 0 12px 10px; color: #858585; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.main-nav { display: grid; gap: 4px; }
.nav-link { position: relative; display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 7px; color: #d3d3d3; font-size: 13px; transition: background .16s ease, color .16s ease; }
.nav-link:hover { color: #fff; background: #252525; }
.nav-link.is-active { color: #fff; background: #292929; }
.nav-link.is-active::before { position: absolute; inset: 8px auto 8px 0; width: 3px; border-radius: 3px; background: var(--brand-yellow); content: ''; }
.nav-icon { display: grid; width: 20px; height: 20px; place-items: center; color: var(--brand-yellow); font-size: 18px; }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; padding: 14px 7px 4px; margin-top: auto; border-top: 1px solid #303030; }
.sidebar-user-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; color: #111; background: var(--brand-yellow); font-size: 13px; font-weight: 700; }
.sidebar-user-copy { display: grid; min-width: 0; gap: 3px; flex: 1; }
.sidebar-user-copy strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy span { color: #a7a7a7; font-size: 11px; }
.app-main { min-height: 100vh; margin-left: 256px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96); }
.topbar-title { color: #555; font-size: 13px; font-weight: 500; }
.topbar-title span { padding: 0 8px; color: #aaa; }
.topbar-user { display: flex; align-items: center; gap: 8px; color: #4a4a4a; font-size: 12px; }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.page-content { max-width: 1600px; padding: 28px 32px 48px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.page-heading h1 { margin: 0; font: 600 26px/1.25 'Sora', sans-serif; letter-spacing: 0; }
.page-heading p.muted { margin: 7px 0 0; }

/* Controls and common panels */
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { color: #000; background: var(--brand-yellow); }
.button-primary:hover { background: var(--brand-yellow-hover); }
.button-secondary { border-color: var(--border); color: #222; background: #fff; }
.button-secondary:hover { background: #f7f7f7; }
.button-dark { color: #fff; background: #171717; }
.button-dark:hover { background: #303030; }
.button-danger { color: #fff; background: var(--danger); }
.button-wide { width: 100%; margin-top: 4px; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 8px; color: inherit; background: transparent; cursor: pointer; font-size: 17px; }
.icon-button:hover { background: rgba(127,127,127,.12); }
.logout-button { width: 34px; height: 34px; color: #bbb; }
.menu-toggle { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #4b3b0d; font-size: 12px; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-card); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-heading h2, .focus-panel h2 { margin: 0; font: 600 16px/1.35 'Sora', sans-serif; letter-spacing: 0; }
.panel-heading p { margin: 4px 0 0; font-size: 12px; }
.toast { position: fixed; z-index: 50; top: 82px; right: 24px; max-width: min(440px, calc(100vw - 32px)); padding: 13px 18px; border: 1px solid #b5dcc8; border-radius: 8px; color: #14583d; background: #effaf4; box-shadow: 0 8px 30px rgba(0,0,0,.1); font-size: 13px; animation: rise-in .2s ease both; transition: opacity .2s ease, transform .2s ease; }
.toast.is-dismissed { opacity: 0; transform: translateY(-5px); pointer-events: none; }

/* Dashboard */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { display: grid; min-height: 136px; align-content: start; padding: 18px; border: 1px solid var(--border); border-radius: 9px; background: #fff; transition: border-color .15s ease, transform .15s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: #d2b563; }
.metric-label { color: #606060; font-size: 12px; font-weight: 500; }
.metric-card strong { margin-top: 15px; font: 600 28px/1 'Sora', sans-serif; letter-spacing: 0; }
.metric-note { margin-top: 8px; color: #888; font-size: 11px; }
.metric-highlight { border-top: 3px solid var(--brand-yellow); }
.metric-danger { border-top: 3px solid var(--danger); }
.metric-danger strong { color: var(--danger); }
.metric-quiet { background: #fbfbfb; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 16px; margin-top: 18px; }
.task-list { display: grid; }
.task-row { display: grid; min-height: 66px; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid #f0f0f0; }
.task-marker { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-yellow); }
.marker-danger { background: var(--danger); }
.task-copy { display: grid; min-width: 0; gap: 5px; }
.task-copy strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.task-copy span { overflow: hidden; color: #7d7d7d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-row time { color: #555; font-size: 11px; white-space: nowrap; }
.empty-state { display: grid; justify-items: center; padding: 35px 12px; color: #777; text-align: center; }
.empty-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #4d745e; background: #edf6ef; }
.empty-state strong { margin-top: 10px; color: #333; font-size: 13px; }
.empty-state p { margin: 6px 0 0; font-size: 12px; }
.focus-panel { display: flex; min-height: 240px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px; background: #fff9e9; }
.focus-icon { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 20px; border-radius: 9px; color: #4d390b; background: var(--brand-yellow); font-size: 20px; }
.focus-panel p { margin: 10px 0 18px; color: #665c42; font-size: 13px; line-height: 1.6; }

/* Prospeccoes */
.filters-panel { padding: 16px; margin-bottom: 16px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); align-items: end; gap: 12px; }
.filter-field { display: grid; min-width: 0; gap: 6px; color: #555; font-size: 11px; font-weight: 600; }
.filter-field input, .filter-field select { min-height: 40px; padding: 8px 10px; font-size: 12px; }
.filter-search { grid-column: span 2; }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .button { min-height: 40px; padding: 0 13px; font-size: 12px; }
.results-summary { padding-top: 13px; margin-top: 14px; border-top: 1px solid #eee; color: #777; font-size: 11px; }
.results-summary strong { color: #222; }
.empty-crm { display: grid; justify-items: center; padding: 48px 20px; text-align: center; }
.empty-crm h2 { margin: 14px 0 4px; font: 600 18px 'Sora', sans-serif; }
.empty-crm p { margin: 0 0 18px; color: #777; font-size: 13px; }
.group-list { display: grid; gap: 12px; }
.company-group { overflow: visible; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.company-summary, .prospect-summary { display: flex; min-height: 50px; align-items: center; gap: 10px; padding: 0 15px; cursor: pointer; list-style: none; }
.company-summary::-webkit-details-marker, .prospect-summary::-webkit-details-marker, .row-actions > summary::-webkit-details-marker { display: none; }
.company-summary { background: #fbfbfb; border-radius: 9px 9px 0 0; }
.company-summary > strong { font-size: 12px; font-weight: 700; }
.company-list-logo { display: grid; width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden; place-items: center; border: 1px solid #e8e8e8; border-radius: 50%; color: #59440d; background: #fff; font-size: 13px; font-weight: 700; }
.company-list-logo img { width: 100%; height: 100%; object-fit: contain; }
.company-name-label { color: #777; font-size: 10px; font-weight: 600; }
.prospect-summary > strong { font-size: 12px; font-weight: 600; }
.disclosure { display: grid; width: 18px; height: 18px; place-items: center; color: #666; transition: transform .15s ease; }
details:not([open]) > summary .disclosure { transform: rotate(-90deg); }
.group-count { color: #858585; font-size: 11px; }
.text-action { min-height: 34px; padding: 0 9px; margin-left: auto; border: 0; border-radius: 6px; color: #4a390b; background: transparent; cursor: pointer; font-size: 11px; font-weight: 600; white-space: nowrap; }
.text-action:hover { background: var(--brand-soft); }
.prospect-group { margin: 0 12px; border-top: 1px solid #eee; }
.prospect-summary { min-height: 45px; padding: 0 7px; }
.interaction-table-wrap { overflow-x: auto; padding-bottom: 8px; }
.interaction-table { width: 100%; min-width: 980px; border-collapse: collapse; text-align: left; }
.interaction-table th { padding: 10px 9px; color: #767676; background: #fafafa; font-size: 10px; font-weight: 600; white-space: nowrap; }
.interaction-table td { min-height: 54px; padding: 10px 9px; border-top: 1px solid #f0f0f0; font-size: 11px; vertical-align: middle; }
.interaction-table tr { transition: background .2s ease; }
.interaction-number { display: inline-flex; min-width: 40px; min-height: 24px; align-items: center; justify-content: center; border-radius: 5px; background: #f0f0f0; font-size: 11px; font-weight: 700; }
.action-cell { max-width: 260px; }
.action-cell strong, .action-cell span { display: block; }
.action-cell strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; }
.action-cell span { margin-top: 4px; color: #888; font-size: 10px; }
.status-badge { display: inline-flex; min-height: 23px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.status-todo { color: #9f292d; background: #ffeded; }
.status-waiting { color: #1d4e9a; background: #eaf1ff; }
.status-doing { color: #89520d; background: #fff2df; }
.status-done { color: #176844; background: #e6f5ec; }
.deadline-label, .deadline-hint { display: block; white-space: nowrap; }
.deadline-label { font-size: 10px; }
.deadline-hint { margin-top: 3px; color: #777; font-size: 9px; }
.deadline-control { display: inline-flex; align-items: center; gap: 3px; }
.deadline-control .deadline-label { display: inline; }
.deadline-editor { position: relative; display: inline-flex; }
.deadline-editor > summary { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; cursor: pointer; color: #555; list-style: none; }
.deadline-editor > summary::-webkit-details-marker { display: none; }
.deadline-editor > summary:hover { background: #eee; }
.deadline-popover { position: absolute; z-index: 25; top: 34px; left: 0; display: grid; width: min(280px, 78vw); gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.deadline-popover form { display: grid; gap: 10px; }
.deadline-popover .field { font-size: 11px; }
.deadline-popover .field input { min-height: 38px; padding: 7px; font-size: 12px; }
.deadline-popover .button { min-height: 38px; font-size: 11px; }
.inline-status-form { margin: 0; }
.status-select { width: 148px; min-height: 30px; padding: 4px 24px 4px 9px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 10px; font-weight: 600; }
.status-select:hover, .status-select:focus-visible { border-color: #cfcfcf; }
.deadline-overdue, tr.deadline-overdue { background: #fff0ef !important; }
.deadline-overdue .deadline-hint { color: #a42f33; font-weight: 700; }
.deadline-soon, tr.deadline-soon { background: #fff4e8 !important; }
.deadline-soon .deadline-hint { color: #99540e; font-weight: 600; }
.deadline-upcoming, tr.deadline-upcoming { background: #fffbe9 !important; }
.deadline-upcoming .deadline-hint { color: #755c17; font-weight: 600; }
.feedback-cell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.interaction-row-actions { display: flex; align-items: center; gap: 3px; }
.interaction-row-actions form { margin: 0; }
.interaction-row-actions .icon-button { width: 34px; height: 34px; border-radius: 6px; font-size: 18px; }
.interaction-row-actions .interaction-delete-icon { color: var(--danger); }
.card-topline .interaction-row-actions { margin-left: auto; }
.interaction-edit-page { max-width: 980px; margin: 0 auto; }
.interaction-detail-page { max-width: 980px; margin: 0 auto; }
.interaction-detail-heading { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 34px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.interaction-detail-heading > div { display: grid; min-width: 130px; gap: 7px; }
.interaction-detail-heading .eyebrow { margin-bottom: 0; }
.interaction-detail-heading strong { font-size: 13px; }
.interaction-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.interaction-detail-list > div { min-width: 0; padding: 14px 0; border-bottom: 1px solid #eee; }
.interaction-detail-list dt { color: #777; font-size: 11px; font-weight: 600; }
.interaction-detail-list dd { overflow-wrap: anywhere; margin: 6px 0 0; color: #333; font-size: 13px; line-height: 1.55; }
.interaction-detail-list .interaction-detail-action, .interaction-detail-list .interaction-detail-feedback { grid-column: 1 / -1; }
.quick-edit-form { display: grid; gap: 10px; }
.quick-edit-form .field { font-size: 11px; }
.quick-edit-form .field input, .quick-edit-form .field select, .quick-edit-form .field textarea { min-height: 38px; padding: 8px; font-size: 12px; }
.quick-edit-form .button, .action-popover > form .button { min-height: 38px; font-size: 12px; }
.interaction-card { display: none; }
.mobile-card-row { display: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 3px; color: #666; font-size: 12px; }
.pagination > div { display: flex; gap: 8px; }
.pagination .button { min-height: 36px; }
.modal-dialog { width: min(660px, calc(100vw - 24px)); max-height: min(92vh, 850px); padding: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 22px 80px rgba(0,0,0,.25); }
.modal-dialog::backdrop { background: rgba(15,15,15,.55); backdrop-filter: blur(2px); }
.modal-form { padding: 22px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 19px; }
.modal-heading h2 { margin: 0; font: 600 20px 'Sora', sans-serif; }
.modal-heading .eyebrow { color: #7b641e; }
.modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 18px; margin-top: 18px; border-top: 1px solid #eee; }
.card-edit { margin-top: 12px; }
.card-edit summary { color: #5a4613; cursor: pointer; font-size: 12px; font-weight: 600; }
.card-edit .quick-edit-form { margin-top: 12px; }
.card-feedback { margin: 10px 0 0; color: #555; font-size: 12px; line-height: 1.5; }
.catalog-panel { padding: 18px; }
.catalog-search { display: flex; align-items: flex-end; gap: 10px; }
.catalog-search .filter-field { width: min(390px, 100%); }
.catalog-search .button { min-height: 40px; }
.catalog-search.leads-catalog-search { display: grid; grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(135px, .9fr)) auto auto; align-items: end; }
.catalog-search.proposals-search { display: grid; grid-template-columns: minmax(210px, 1.3fr) repeat(2, minmax(155px, .9fr)) auto auto; align-items: end; }
.catalog-search.leads-catalog-search .filter-field, .catalog-search.proposals-search .filter-field { width: auto; }
.catalog-summary { padding: 14px 0 10px; color: #777; font-size: 11px; }
.catalog-table-wrap { overflow-x: auto; }
.catalog-table { width: 100%; border-collapse: collapse; text-align: left; }
.catalog-table { min-width: 600px; }
.catalog-table th { padding: 11px 12px; border-bottom: 1px solid #e8e8e8; color: #777; font-size: 10px; font-weight: 600; white-space: nowrap; }
.catalog-table td { min-height: 54px; padding: 10px 12px; border-bottom: 1px solid #f0f0f0; color: #444; font-size: 12px; vertical-align: middle; }
.catalog-table tbody tr:hover { background: #fcfcfc; }
.catalog-actions { display: flex; align-items: center; gap: 7px; }
.edit-details { position: relative; }
.edit-details > summary { color: #51400e; cursor: pointer; font-size: 11px; font-weight: 600; }
.edit-details .catalog-form { position: absolute; z-index: 15; top: 24px; right: 0; width: min(520px, 86vw); max-height: 75vh; overflow-y: auto; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.catalog-form { display: grid; gap: 12px; }
.catalog-form > .button { justify-self: end; }
.text-danger { color: #ad3035; }
.access-badge { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.access-on { color: #176844; background: #e6f5ec; }
.access-off { color: #7a7a7a; background: #efefef; }
.lead-name-cell { display: flex; align-items: center; gap: 9px; }
.lead-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 30px; overflow: hidden; place-items: center; border-radius: 50%; color: #42320c; background: #f7e6ba; font-size: 12px; font-weight: 700; }
.lead-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lead-avatar-large { width: 44px; height: 44px; flex-basis: 44px; font-size: 15px; }
.lead-card-list { display: none; }
.company-card-list { display: none; }
.check-field { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; color: #444; font-size: 12px; }
.check-field input { width: 17px; height: 17px; accent-color: #9a6b00; }
.lead-photo-field { display: flex; align-items: center; gap: 15px; padding: 14px; border: 1px solid #eee; border-radius: 8px; background: #fcfcfc; }
.photo-preview { display: grid; width: 72px; height: 72px; flex: 0 0 72px; overflow: hidden; place-items: center; border: 1px solid #e3d7b8; border-radius: 50%; color: #55420f; background: #f7e6ba; font: 600 24px 'Sora', sans-serif; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-tools { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.photo-tools > strong { width: 100%; font-size: 12px; }
.photo-tools > p { width: 100%; margin: -4px 0 2px; color: #777; font-size: 10px; }
.photo-select { min-height: 34px; font-size: 11px; }
.photo-drop { min-height: 34px; display: flex; align-items: center; padding: 0 8px; border: 1px dashed #c9c1aa; border-radius: 6px; color: #66551f; background: #fff; cursor: pointer; font-size: 10px; }
.photo-drop.is-dragging { border-color: #9a6b00; background: var(--brand-soft); }
.social-fields { display: grid; gap: 7px; }
.form-section-title { display: flex; justify-content: space-between; gap: 10px; color: #333; font-size: 12px; }
.form-section-title span { color: #888; font-size: 10px; }
.social-row { display: grid; grid-template-columns: minmax(100px, .7fr) 1.5fr; gap: 7px; }
.social-row input, .social-row select { width: 100%; min-height: 39px; padding: 8px; border: 1px solid var(--border); border-radius: 7px; font-size: 11px; }
.lead-card { padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.lead-card-heading { display: flex; align-items: center; gap: 10px; }
.lead-card-heading h2 { margin: 0; font: 600 14px 'Sora', sans-serif; }
.lead-card-heading p { margin: 5px 0 0; color: #777; font-size: 11px; }
.lead-card-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.lead-card-links a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #e7e7e7; border-radius: 6px; color: #42330e; font-size: 11px; font-weight: 600; }
.lead-card-links a:hover { background: var(--brand-soft); }
.company-logo-field { display: flex; align-items: center; gap: 15px; padding: 14px; border: 1px solid #eee; border-radius: 8px; background: #fcfcfc; }
.company-card { padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.company-card-heading { display: flex; align-items: center; gap: 10px; }
.company-card-heading h2 { margin: 0; font: 600 14px 'Sora', sans-serif; }
.company-card-heading p, .company-card-location { margin: 5px 0 0; color: #777; font-size: 11px; }
.company-card-location { padding: 11px 0; border-bottom: 1px solid #eee; }
.inline-import-form { display: inline-flex; margin: 9px 0 0; }
.notice-info { color: #424242; background: #fff9e9; border: 1px solid #efdfb9; }
.notice-info .button { min-height: 36px; font-size: 11px; }
.heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status-panel { display: flex; flex-direction: column; }
.status-panel .panel-heading { margin-bottom: 20px; }
.status-chart { display: grid; gap: 17px; margin-bottom: 23px; }
.chart-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(80px, 1.4fr) 24px; align-items: center; gap: 10px; color: #555; font-size: 11px; }
.chart-row strong { color: #222; text-align: right; font-size: 11px; }
.chart-track { height: 8px; overflow: hidden; border-radius: 6px; background: #f0f0f0; }
.chart-fill { display: block; min-width: 2px; height: 100%; border-radius: inherit; }
.chart-todo { background: #c93e42; }
.chart-waiting { background: #2563eb; }
.chart-doing { background: #e3a23b; }
.chart-done { background: #16855a; }
.latest-panel { margin-top: 16px; }
.latest-list { display: grid; }
.latest-row { display: grid; min-height: 57px; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border-top: 1px solid #f0f0f0; }
.latest-number { display: grid; width: 34px; height: 24px; place-items: center; border-radius: 5px; background: #f0f0f0; font-size: 10px; font-weight: 700; }
.latest-copy { display: grid; min-width: 0; gap: 4px; }
.latest-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.latest-copy span { overflow: hidden; color: #777; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.latest-row time { color: #777; font-size: 10px; white-space: nowrap; }
.prospect-manage { padding: 0 7px 10px 32px; }
.prospect-manage > details { position: relative; display: inline-block; }
.prospect-manage > details > summary { color: #777; cursor: pointer; font-size: 10px; }
.prospect-manage-popover { position: absolute; z-index: 15; top: 20px; left: 0; display: grid; width: min(290px, 80vw); gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.prospect-manage-popover form { display: grid; gap: 9px; }
.prospect-manage-popover .field { font-size: 11px; }
.prospect-manage-popover .field input { min-height: 36px; font-size: 12px; }
.prospect-manage-popover .button { min-height: 36px; font-size: 11px; }
.lead-history summary { color: #59440d; cursor: pointer; font-size: 11px; font-weight: 600; }
.lead-history-list { display: grid; min-width: 270px; gap: 8px; padding: 10px 0 2px; }
.lead-history-item { display: grid; gap: 4px; padding: 8px; border-left: 2px solid var(--brand-yellow); background: #fbfbfb; }
.lead-history-item strong { font-size: 11px; }
.lead-history-item span { color: #777; font-size: 10px; }
.lead-history-item p { margin: 0; color: #555; font-size: 10px; }
.installer-body { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: #f7f8fa; }
.installer-shell { width: min(620px, 100%); }
.installer-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.installer-heading .brand-lockup { padding: 4px; border: 0; border-radius: 5px; background: #111; }
.installer-heading .brand-lockup img { width: 76px; }
.installer-heading .brand-divider { margin-left: 0; background: #bbb; }
.installer-heading b { font: 600 14px 'Sora', sans-serif; }
.installer-panel { padding: 28px; }
.installer-panel h1 { margin: 0; font: 600 24px 'Sora', sans-serif; }
.installer-panel > .muted { margin: 9px 0 22px; }
.installer-panel code { padding: 2px 5px; border-radius: 4px; background: #f0f0f0; font-size: 12px; }
.requirements { padding: 13px 15px; margin-bottom: 20px; border: 1px solid #eee; border-radius: 8px; }
.requirements h2 { margin: 0 0 8px; font-size: 12px; }
.requirement-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: #555; font-size: 11px; }
.requirement-ok { color: #176844; }
.requirement-fail { color: #ad3035; }
.installer-form { grid-template-columns: 1fr 1fr; }
.installer-form .button-wide { grid-column: 1 / -1; }
.installer-form label:nth-of-type(3), .installer-form label:nth-of-type(4) { grid-column: auto; }
.installer-note { margin: 16px 0 0; color: #777; font-size: 11px; text-align: center; }

@media (max-width: 1100px) {
    .filter-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}
@media (max-width: 767px) {
    .filter-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .filter-search { grid-column: 1 / -1; }
    .filter-actions { grid-column: 1 / -1; }
    .filter-actions .button { flex: 1; }
    .company-summary, .prospect-summary { gap: 7px; padding: 0 10px; }
    .company-summary > strong, .prospect-summary > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .group-count { display: none; }
    .text-action { min-height: 34px; padding: 0 5px; font-size: 10px; }
    .interaction-table-wrap { display: block; overflow: visible; }
    .interaction-table { display: none; }
    .mobile-card-row { display: block; }
    .mobile-card-row > td { display: block; padding: 0; border: 0; }
    .interaction-card { display: block; padding: 14px 12px; margin: 0 0 10px; border: 1px solid #eee; border-radius: 7px; }
    .prospect-group { margin: 0 8px; }
    .prospect-summary { min-height: 43px; }
    .card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
    .card-action { display: block; font-size: 13px; line-height: 1.45; }
    .card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 12px; margin-top: 9px; color: #666; font-size: 11px; }
    .card-meta span { overflow-wrap: anywhere; }
    .card-edit .quick-edit-form { grid-template-columns: 1fr; }
    .modal-form { padding: 18px 15px; }
    .modal-fields { grid-template-columns: 1fr; gap: 12px; }
    .field-full { grid-column: auto; }
    .pagination { font-size: 10px; }
    .pagination .button { padding: 0 10px; }
    .catalog-panel { padding: 13px; }
    .catalog-table-wrap { display: block; }
    .catalog-table-wrap.catalog-leads { display: none; }
    .lead-card-list { display: grid; gap: 10px; }
    .catalog-table-wrap.catalog-companies { display: none; }
    .company-card-list { display: grid; gap: 10px; }
    .catalog-search { flex-wrap: wrap; }
    .catalog-search .filter-field { flex: 1 1 100%; }
    .catalog-search.leads-catalog-search, .catalog-search.proposals-search { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .catalog-search.leads-catalog-search .filter-search, .catalog-search.proposals-search .filter-search { grid-column: 1 / -1; }
    .catalog-search.leads-catalog-search .catalog-filter-select { width: auto; }
    .catalog-search.leads-catalog-search .button, .catalog-search.proposals-search .button { width: 100%; }
    .catalog-search.leads-catalog-search .text-link, .catalog-search.proposals-search .text-link { align-self: center; justify-self: center; }
    .lead-photo-field { align-items: flex-start; padding: 10px; }
    .company-logo-field { align-items: flex-start; padding: 10px; }
    .photo-preview { width: 56px; height: 56px; flex-basis: 56px; }
    .photo-tools { gap: 7px; }
    .photo-drop { width: 100%; }
    .social-row { grid-template-columns: 1fr; }
    .installer-body { padding: 14px; }
    .installer-panel { padding: 20px 16px; }
    .installer-form { grid-template-columns: 1fr; }
    .installer-form .button-wide { grid-column: auto; }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-columns { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 32px rgba(0,0,0,.18); }
    .sidebar.is-open { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .menu-toggle { display: grid; }
    .topbar { justify-content: flex-start; gap: 9px; }
    .topbar-user { margin-left: auto; }
}
@media (max-width: 767px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { min-height: 220px; padding: 24px; }
    .login-brand-copy { padding: 28px 0 12px; }
    .login-brand-copy h1 { max-width: 420px; font-size: 27px; }
    .login-brand-copy p, .brand-footnote { display: none; }
    .brand-lockup img { width: 120px; }
    .login-panel { min-height: calc(100vh - 220px); padding: 32px 24px 20px; }
    .login-form-wrap h2 { font-size: 24px; }
    .sidebar { width: min(290px, 86vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 32px rgba(0,0,0,.18); }
    .sidebar.is-open { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .topbar { height: 58px; justify-content: flex-start; gap: 9px; padding: 0 12px; }
    .menu-toggle { display: grid; width: 40px; height: 40px; }
    .topbar-user { margin-left: auto; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .page-content { padding: 22px 16px 36px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 18px; }
    .page-heading h1 { font-size: 22px; }
    .page-heading > .button { width: 100%; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .metric-grid { gap: 9px; }
    .metric-card { min-height: 121px; padding: 14px; }
    .metric-card strong { margin-top: 13px; font-size: 24px; }
    .metric-note { font-size: 10px; }
    .panel { padding: 17px; }
    .task-row { grid-template-columns: 8px minmax(0, 1fr); gap: 9px; padding: 11px 0; }
    .task-row time { grid-column: 2; }
    .latest-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding: 9px 0; }
    .latest-row time { grid-column: 2 / -1; }
    .latest-row .status-badge { font-size: 9px; }
    .company-list-logo { width: 30px; height: 30px; flex-basis: 30px; }
    .company-name-label { font-size: 9px; }
    .status-select { width: auto; max-width: 130px; }
    .card-topline { flex-wrap: wrap; }
    .card-topline .interaction-row-actions { margin-left: auto; }
    .interaction-detail-page { padding: 16px; }
    .interaction-detail-heading { gap: 12px 18px; }
    .interaction-detail-list { grid-template-columns: 1fr; }
    .interaction-detail-list .interaction-detail-action, .interaction-detail-list .interaction-detail-feedback { grid-column: auto; }
}

/* Propostas */
.button-small { min-height: 36px; padding: 0 11px; font-size: 11px; }
.proposal-form { display: grid; gap: 16px; }
.proposal-section { padding: 22px; }
.proposal-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.proposal-section-heading > div { min-width: 0; }
.proposal-section-heading h2 { margin: 0; font: 600 16px/1.35 'Sora', sans-serif; letter-spacing: 0; }
.proposal-section-heading p { margin: 5px 0 0; color: #777; font-size: 12px; line-height: 1.5; }
.proposal-section-heading > .button { margin-left: auto; }
.proposal-step { display: grid; min-width: 34px; height: 34px; place-items: center; border-radius: 7px; color: #57420d; background: var(--brand-soft); font-size: 10px; font-weight: 700; }
.proposal-form .modal-fields { margin-bottom: 0; }
.proposal-form .field small { color: #777; font-size: 10px; font-weight: 400; }
.proposal-totals { max-width: 680px; margin-bottom: 18px !important; }
.grade-count-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.grade-count { min-width: 0; gap: 6px; font-size: 11px; }
.grade-count input { min-height: 40px; padding: 8px 10px; }
.teacher-count-grid { padding-top: 17px; margin-top: 18px; border-top: 1px solid #eee; }
.proposal-interest-list { display: grid; gap: 10px; }
.proposal-interest-row { display: grid; grid-template-columns: minmax(160px, 1.15fr) minmax(170px, 1.25fr) minmax(100px, .65fr) 40px; align-items: end; gap: 12px; padding: 12px; border: 1px solid #ededed; border-radius: 8px; background: #fcfcfc; }
.proposal-interest-row .field { min-width: 0; gap: 6px; font-size: 11px; }
.proposal-interest-row .field input, .proposal-interest-row .field select { min-height: 40px; padding: 8px 10px; font-size: 12px; }
.interest-remove { width: 40px; height: 40px; color: #a42f33; font-size: 22px; }
.proposal-form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.proposal-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin-bottom: 16px; }
.proposal-detail-card { min-width: 0; }
.proposal-definition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
.proposal-definition-list > div { min-width: 0; padding: 12px 0; border-top: 1px solid #eee; }
.proposal-definition-list dt { color: #777; font-size: 10px; }
.proposal-definition-list dd { overflow-wrap: anywhere; margin: 5px 0 0; color: #292929; font-size: 12px; font-weight: 600; }
.proposal-interest-table-wrap { overflow-x: auto; }
.proposal-interest-table, .proposal-grade-table { width: 100%; border-collapse: collapse; text-align: left; }
.proposal-interest-table { min-width: 420px; }
.proposal-grade-table { min-width: 700px; }
.proposal-interest-table th, .proposal-grade-table th { padding: 10px; color: #777; background: #fafafa; font-size: 10px; font-weight: 600; white-space: nowrap; }
.proposal-interest-table td, .proposal-grade-table td { padding: 11px 10px; border-top: 1px solid #eee; color: #444; font-size: 11px; }
.proposal-grade-table td { text-align: center; }
.proposal-grade-table tbody th { border-top: 1px solid #eee; color: #333; background: #fff; }
.proposal-observation { margin: 0; color: #4a4a4a; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.proposal-card-list { display: none; }
.proposal-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.proposal-card > div:not(.proposal-card-actions) { display: grid; gap: 4px; }
.proposal-card-label { color: #777; font-size: 9px; font-weight: 700; }
.proposal-card strong, .proposal-card > div > span:last-child, .proposal-card time { font-size: 12px; }
.proposal-card-actions { display: flex; align-items: center; gap: 7px; padding-top: 8px; border-top: 1px solid #eee; }
.proposal-card-actions { flex-wrap: wrap; }
.proposals-table .catalog-actions { flex-wrap: wrap; }

@media (max-width: 1100px) {
    .grade-count-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .proposal-section { padding: 17px; }
    .proposal-section-heading { flex-wrap: wrap; gap: 9px; }
    .proposal-section-heading > div { flex: 1; }
    .proposal-section-heading > .button { width: calc(100% - 43px); margin-left: 43px; }
    .grade-count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .proposal-interest-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; padding: 10px; }
    .interest-product { grid-column: 1 / -1; }
    .proposal-interest-row .interest-remove { grid-column: 3; grid-row: 2; }
    .proposal-form-actions { flex-direction: column-reverse; }
    .proposal-form-actions .button { width: 100%; }
    .proposal-detail-grid { grid-template-columns: 1fr; gap: 12px; }
    .proposal-definition-list { gap: 0 12px; }
    .catalog-table-wrap.proposals-table-wrap { display: none; }
    .proposal-card-list { display: grid; gap: 9px; }
}

/* Prospecções: resumo e grupos */
.prospecting-page-heading { align-items: center; margin-bottom: 16px; }
.prospecting-heading-copy { display: flex; min-width: 0; align-items: center; gap: 13px; }
.prospecting-heading-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 12px; color: #1762c4; background: #e8f1ff; font-size: 30px; }
.prospecting-heading-copy .eyebrow { color: #2364b5; }
.prospecting-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.prospecting-metric { display: flex; min-width: 0; min-height: 70px; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid #dfe8f4; border-radius: 9px; background: linear-gradient(120deg, #fff, #f8fbff); box-shadow: 0 3px 10px rgba(34, 79, 132, .05); }
.prospecting-metric-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; color: #1d67c8; background: #e7f0ff; font-size: 20px; font-weight: 700; }
.prospecting-metric > div { display: grid; min-width: 0; gap: 2px; }
.prospecting-metric strong { color: #17243b; font: 700 22px/1 'Sora', sans-serif; }
.prospecting-metric > div > span { overflow: hidden; color: #536176; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.metric-green .prospecting-metric-icon { color: #15803d; background: #e4f7eb; }
.metric-amber .prospecting-metric-icon { color: #b86a08; background: #fff3dc; }
.metric-red .prospecting-metric-icon { color: #c62828; background: #ffebeb; }
.prospecting-filters { padding: 14px; border-color: #dce7f5; background: #fff; box-shadow: 0 4px 14px rgba(34, 79, 132, .06); }
.prospecting-filter-grid { grid-template-columns: repeat(5, minmax(112px, 1fr)) minmax(190px, 1.5fr) auto; align-items: end; gap: 10px; }
.prospecting-filter-grid .filter-search { grid-column: auto; }
.prospecting-filter-grid .filter-actions { grid-column: auto; }
.prospecting-filters .results-summary { padding-top: 9px; margin-top: 10px; border-top-color: #e8eef6; }
.group-list { gap: 12px; }
.prospecting-company-group { overflow: hidden; border-color: #d6e3f3; border-radius: 12px; box-shadow: 0 4px 14px rgba(25, 72, 131, .07); }
.prospecting-company-summary { min-height: 64px; gap: 12px; padding: 9px 14px; border-radius: 11px 11px 0 0; background: linear-gradient(100deg, #eaf3ff 0%, #f6faff 68%, #edf5ff 100%); }
.prospecting-company-summary .company-list-logo { width: 42px; height: 42px; flex-basis: 42px; border: 0; border-radius: 10px; color: #1762c4; background: #dceaff; font-size: 16px; }
.prospecting-company-summary .company-summary-copy { display: grid; min-width: 150px; flex: 1 1 180px; gap: 2px; }
.prospecting-company-summary .company-name-label { font-size: 9px; }
.prospecting-company-summary .company-summary-copy strong { overflow: hidden; color: #17243b; font: 700 14px/1.3 'Sora', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.company-summary-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #586981; font-size: 10px; }
.prospect-name-label { color: #66758a; font-size: 9px; font-weight: 600; }
.company-summary-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.company-summary-stats > span { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid #dfe8f4; border-radius: 999px; color: #25354c; background: rgba(255,255,255,.82); font-size: 10px; white-space: nowrap; }
.company-summary-stats b { color: #1762c4; font-size: 12px; }
.prospecting-company-summary > .text-action { min-height: 38px; padding: 0 11px; margin-left: 0; border: 1px solid #c8dcf7; border-radius: 7px; color: #1459b0; background: #fff; font-size: 11px; }
.prospecting-company-summary > .text-action:hover { background: #f3f8ff; }
.prospecting-prospect-summary { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 9px 12px; margin-top: 7px; border: 1px solid #e3ebf5; border-radius: 9px; background: linear-gradient(100deg, #f4f8ff, #fff); }
.prospect-summary-content { display: grid; min-width: 0; gap: 9px; justify-items: start; text-align: left; }
.prospecting-prospect-summary .prospect-summary-copy { display: grid; min-width: 0; gap: 3px; }
.prospecting-prospect-summary .prospect-summary-copy strong { overflow: hidden; color: #1a2a42; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.prospecting-prospect-summary .prospect-summary-copy small { overflow: hidden; color: #6a788d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.prospect-summary-indicators { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 14px; text-align: left; }
.prospect-status-chip { display: inline-flex; min-height: 27px; align-items: center; justify-content: center; padding: 0 11px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.prospect-state-open { color: #146038; background: #dcf5e5; }
.prospect-state-active { color: #1459b0; background: #e1edff; }
.prospect-state-done { color: #146038; background: #dcf5e5; }
.prospect-state-overdue { color: #ae2929; background: #ffe4e4; }
.prospect-deadline-summary { color: #4a5870; font-size: 10px; white-space: nowrap; }
.prospect-progress-summary { display: flex; min-width: 130px; align-items: center; gap: 8px; color: #5d6b80; font-size: 9px; }
.prospect-progress-track { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: #dbe5f1; }
.prospect-progress-summary .prospect-progress-track { width: 100px; flex: 0 1 100px; }
.prospect-progress-track > span { display: block; height: 100%; border-radius: inherit; background: #2672d4; }
.prospecting-prospect-summary > .text-action { grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: end; min-height: 34px; padding: 0 8px; margin-left: 0; color: #175eb9; font-size: 10px; }
.prospecting-prospect-summary > .text-action:hover { background: #e8f1ff; }
.prospect-group { padding-bottom: 8px; }
.interaction-table { min-width: 920px; }
.interaction-table th { color: #44546b; background: #eff5fc; }
.interaction-table td { background: #fff; }
.interaction-table tbody tr:hover td { background: #f8fbff; }
@media (max-width: 1200px) {
    .prospecting-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prospecting-filter-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
    .prospecting-filter-grid .filter-search { grid-column: span 2; }
    .prospecting-filter-grid .filter-actions { grid-column: auto; }
    .prospect-progress-summary { min-width: 110px; }
    .prospect-progress-summary .prospect-progress-track { flex-basis: 70px; width: 70px; }
}
@media (max-width: 767px) {
    .prospecting-page-heading { align-items: flex-start; }
    .prospecting-heading-copy { align-items: flex-start; }
    .prospecting-heading-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 25px; }
    .prospecting-page-heading .heading-actions { width: 100%; }
    .prospecting-page-heading .heading-actions .button { flex: 1; }
    .prospecting-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .prospecting-metric { min-height: 62px; gap: 8px; padding: 9px; }
    .prospecting-metric-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 17px; }
    .prospecting-metric strong { font-size: 19px; }
    .prospecting-metric > div > span { font-size: 10px; }
    .prospecting-filter-grid { grid-template-columns: 1fr 1fr; }
    .prospecting-filter-grid .filter-search { grid-column: 1 / -1; }
    .prospecting-filter-grid .filter-actions { grid-column: 1 / -1; }
    .prospecting-company-summary { flex-wrap: wrap; gap: 8px; padding: 10px; }
    .prospecting-company-summary .company-list-logo { width: 36px; height: 36px; flex-basis: 36px; }
    .prospecting-company-summary .company-summary-copy { flex-basis: calc(100% - 75px); }
    .company-summary-stats { width: 100%; padding-left: 45px; }
    .prospecting-company-summary > .text-action { margin-left: auto; }
    .prospecting-prospect-summary { grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 8px; padding: 10px; }
    .prospecting-prospect-summary .disclosure { grid-column: 1; grid-row: 1 / span 3; }
    .prospect-summary-content { grid-column: 2; }
    .prospect-summary-indicators { gap: 7px 10px; }
    .prospecting-prospect-summary > .text-action { grid-column: 2; grid-row: auto; justify-self: start; margin-left: 0; }
}
