:root {
    --bg: #f4f7fb;
    --panel: #fff;
    --line: #dce5ee;
    --text: #10233f;
    --muted: #607386;
    --primary: #17a2b8;
    --primary-dark: #0d7789;
    --danger: #c0392b;
    --warning: #9a6b00;
}
* { box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}
a { color: var(--primary-dark); text-decoration: none; }
.app-shell { min-height: 100vh; }
.loading-overlay {
    align-items: center;
    background: rgba(7, 26, 61, .42);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
}
.loading-overlay.is-active {
    display: flex;
}
.loading-box {
    align-items: center;
    background: #fff;
    border: 1px solid #dce7ef;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(13, 31, 57, .22);
    color: #001957;
    display: grid;
    gap: 7px;
    justify-items: center;
    min-width: 220px;
    padding: 24px 28px;
}
.loading-box strong {
    font-size: 16px;
    font-weight: 900;
}
.loading-box small {
    color: var(--muted);
    font-weight: 700;
}
.loading-spinner {
    animation: loading-spin .75s linear infinite;
    border: 3px solid #d9edf3;
    border-top-color: var(--primary);
    border-radius: 999px;
    display: block;
    height: 34px;
    width: 34px;
}
@keyframes loading-spin {
    to { transform: rotate(360deg); }
}
body.has-modal {
    overflow: hidden;
}
.confirm-modal {
    align-items: center;
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}
.confirm-modal.is-active {
    display: flex;
}
.confirm-modal-backdrop {
    background: rgba(7, 26, 61, .54);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.confirm-modal-dialog {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #dce7ef;
    border-radius: 8px;
    box-shadow: 0 26px 80px rgba(13, 31, 57, .26);
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr);
    max-width: 520px;
    padding: 22px;
    position: relative;
    width: min(100%, 520px);
}
.confirm-modal-mark {
    align-items: center;
    background: #fdebea;
    border: 1px solid #f2bbb7;
    border-radius: 8px;
    color: var(--danger);
    display: flex;
    font-size: 22px;
    font-weight: 950;
    height: 44px;
    justify-content: center;
    width: 44px;
}
.confirm-modal-content h2 {
    color: #001957;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 8px;
}
.confirm-modal-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
.confirm-modal-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
.sidebar {
    background: #071a3d;
    bottom: 0;
    color: #dce8f5;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 0 14px 18px;
    position: fixed;
    top: 0;
    width: 246px;
}
.brand, .auth-brand {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 10px;
}
.brand {
    align-items: center;
    background: #F4F7FB;
    height: 60px;
    margin: 0 -14px;
    padding: 0 24px;
    flex-direction: column;
    justify-content: center;
}
.brand-logo {
    display: block;
    height: auto;
    max-width: 120px;
    width: 100%;
}
.brand-mark {
    align-items: center;
    background: var(--primary);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}
.brand strong, .auth-brand strong { display: block; font-size: 15px; }
.brand small, .auth-brand small { color: #8fa6bd; display: block; font-size: 12px; margin-top: 1px; }
.sidebar nav { display: grid; gap: 4px; margin-top: 26px; }
.sidebar nav a {
    border-radius: 6px;
    color: #dce8f5;
    font-weight: 700;
    padding: 10px 12px;
}
.sidebar nav a:hover { background: rgba(255,255,255,.08); }
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,.13);
    display: grid;
    gap: 3px;
    margin-top: auto;
    padding-top: 14px;
}
.sidebar-footer span { font-weight: 800; }
.sidebar-footer small { color: #a9bdd0; }
.sidebar-footer a { color: #fff; font-size: 12px; font-weight: 800; margin-top: 8px; }
.content {
    margin-left: 246px;
    padding: 26px;
}
.auth-content {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
}
.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(13,31,57,.08);
    margin: 20px;
    max-width: 430px;
    padding: 28px;
    width: 100%;
}
.login-shell {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    max-width: none;
    min-height: 100vh;
    overflow: hidden;
    width: 100%;
}
.login-visual {
    background:
        linear-gradient(180deg, rgba(5, 18, 47, .12), rgba(5, 18, 47, .76)),
        url("https://phishfy.com/img/challenge-human-security-map.png") center/cover no-repeat;
    display: flex;
    min-height: 100vh;
    padding: 54px;
}
.login-visual-copy {
    align-self: flex-end;
    color: #fff;
    max-width: 420px;
}
.login-visual-copy span {
    color: #7ee3ef;
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.login-visual-copy h1 {
    font-size: 34px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 12px;
}
.login-visual-copy p {
    color: #dce8f5;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}
.login-card {
    align-content: center;
    display: grid;
    min-height: 100vh;
    padding: 64px;
}
.login-card .auth-brand {
    color: var(--text);
    margin-bottom: 26px;
}
.login-logo {
    display: block;
    height: 38px;
    width: auto;
}
.login-card h1 {
    color: #001957;
    font-size: 30px;
    font-weight: 850;
    line-height: 1.12;
    margin: 0 0 8px;
}
.login-card > p {
    color: var(--muted);
    margin: 0 0 22px;
}
.login-card .form-stack {
    padding: 0;
}
.login-card input {
    min-height: 44px;
}
.otp-input {
    font-size: 24px;
    font-weight: 850;
    letter-spacing: 8px;
    text-align: center;
}
.login-secondary-form {
    margin-top: 14px;
    text-align: center;
}
.link-button {
    background: transparent;
    border: 0;
    color: var(--primary-dark);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    padding: 0;
}
.login-v2-shell {
    display: grid;
    grid-template-columns: minmax(520px, 1.08fr) minmax(390px, .92fr);
    min-height: 100vh;
    width: 100%;
}
.login-v2-brand {
    background:
        linear-gradient(rgba(4, 20, 31, .62), rgba(4, 20, 31, .78)),
        url("https://phishfy.com/img/challenge-human-security-map.png") center center / cover no-repeat;
    display: flex;
    min-height: 100vh;
    padding: 56px 64px;
}
.login-v2-brand-inner {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
}
.login-v2-kicker {
    color: #10f2c1;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .34em;
    line-height: 1.35;
    margin-bottom: 56px;
    text-transform: uppercase;
}
.login-v2-brand h1 {
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: .98;
    margin: 0 0 72px;
    max-width: 760px;
}
.login-v2-brand p {
    color: rgba(238, 255, 255, .94);
    font-size: 28px;
    line-height: 1.35;
    margin: 0;
    max-width: 720px;
}
.login-v2-brand .login-v2-highlight {
    color: #85bdc0;
}
.login-v2-access {
    align-items: center;
    background: #f7fafb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 44px 76px;
    position: relative;
}
.login-v2-logo-block {
    margin: 0 auto 56px;
    text-align: center;
}
.login-v2-top-logo {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 180px;
    object-fit: contain;
}
.login-v2-slogan {
    color: #85bdc0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    margin-top: 6px;
}
.partner-language {
    align-items: center;
    color: #657584;
    display: flex;
    gap: 8px;
    position: absolute;
    right: 44px;
    top: 36px;
}
.partner-language a {
    color: #526574;
    font-size: 13px;
}
.partner-language form {
    margin: 0;
}
.partner-language select {
    appearance: auto;
    background: transparent;
    border: 0;
    color: #526574;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    min-height: 0;
    padding: 0;
    width: auto;
}
.login-v2-card {
    background: #fff;
    border: 1px solid #dce6ec;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(28, 52, 67, .16);
    max-width: 440px;
    padding: 34px;
    width: 100%;
}
.login-v2-card .login_content {
    padding: 0;
    text-align: left;
}
.login-v2-card form {
    margin: 0;
}
.login-v2-card h1 {
    color: #6f8399;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 26px;
    position: relative;
    text-align: center;
}
.login-v2-card h1::before,
.login-v2-card h1::after {
    background: #8d8d8d;
    content: "";
    display: block;
    height: 1px;
    opacity: .6;
    position: absolute;
    top: 50%;
    width: 23%;
}
.login-v2-card h1::before { left: 0; }
.login-v2-card h1::after { right: 0; }
.login-v2-card .form-group {
    margin-bottom: 14px;
    padding: 0;
    position: relative;
}
.login-v2-card .form-control {
    background: #f8fbfc;
    border: 1px solid #d7e2e8;
    border-radius: 6px;
    box-shadow: none;
    color: #20313c;
    font: inherit;
    font-size: 15px;
    height: 46px;
    min-height: 46px;
    padding: 8px 12px 8px 58px;
    width: 100%;
}
.login-v2-card .form-control:focus {
    background: #fff;
    border-color: #1abb9c;
    box-shadow: 0 0 0 3px rgba(26,187,156,.14);
    outline: 0;
}
.login-field-icon {
    align-items: center;
    border-right: 1px solid #d7e2e8;
    color: #8ba0ae;
    display: flex;
    font-size: 15px;
    font-weight: 800;
    height: 46px;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 46px;
}
.login-v2-card .otp-input {
    font-size: 22px;
    font-weight: 850;
    letter-spacing: 6px;
    text-align: center;
}
.login-v2-card .login_button {
    margin-top: 8px;
}
.login-v2-card .btn-padding {
    background: #17a2b8;
    border: 1px solid #17a2b8;
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(23,162,184,.2);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    height: 44px;
    padding: 0 18px;
    width: 100%;
}
.login-v2-card .btn-padding:hover {
    background: #13899c;
    border-color: #13899c;
}
.login-v2-card .login_msg,
.login-v2-card .login_msg_ok {
    border-radius: 6px;
    display: none;
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
    padding: 9px 10px;
}
.login-v2-card .login_msg.visible,
.login-v2-card .login_msg_ok.visible {
    display: block;
}
.login-v2-card .login_msg {
    background: #fff0f1;
    color: #b3313c;
}
.login-v2-card .login_msg_ok {
    background: #eaf8f2;
    color: #14745f;
}
.resend-code {
    display: block;
    margin: 14px auto 0;
}
.login-v2-card .separator {
    border-top: 1px solid #e5edf2;
    margin-top: 28px;
    padding-top: 18px;
    text-align: center;
}
.login-v2-card .separator p {
    color: #7b8e9c;
    font-size: 12px;
    margin: 0;
}
.policy-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 22px 60px rgba(13,31,57,.10);
    margin: 20px;
    max-width: 780px;
    padding: 34px;
    width: 100%;
}
.policy-logo {
    display: block;
    height: 46px;
    margin-bottom: 22px;
    width: auto;
}
.policy-kicker {
    color: var(--primary-dark);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.policy-card h1 {
    color: #001957;
    font-size: 30px;
    font-weight: 850;
    line-height: 1.12;
    margin: 0 0 8px;
}
.policy-intro {
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 22px;
    max-width: 650px;
}
.policy-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}
.policy-link {
    border: 1px solid #d9e5ee;
    border-radius: 8px;
    color: var(--text);
    padding: 18px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.policy-link:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(23,162,184,.14);
    transform: translateY(-1px);
}
.policy-link strong {
    color: #001957;
    display: block;
    font-size: 16px;
    font-weight: 850;
    margin-bottom: 6px;
}
.policy-link span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    line-height: 1.45;
}
.policy-form {
    border-top: 1px solid #edf2f6;
    display: grid;
    gap: 12px;
    padding-top: 18px;
}
.policy-check {
    align-items: flex-start;
    color: #334b66;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    line-height: 1.45;
}
.policy-check input {
    flex: 0 0 auto;
    margin-top: 2px;
    min-height: auto;
    width: auto;
}
.auth-card h1, .page-head h1 {
    color: #001957;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    margin: 18px 0 5px;
}
.auth-card p, .page-head p { color: var(--muted); margin: 0; }
.page-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}
.page-head h1 { margin-top: 0; }
.actions, .form-actions { align-items: center; display: flex; gap: 8px; justify-content: flex-end; }
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}
.panel-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}
.panel-head h2 {
    color: #17233b;
    font-size: 15px;
    font-weight: 800;
    margin: 0;
}
.panel > form, .panel > table, .panel > .filters, .panel > .approval-grid, .panel > .details { margin: 0; }
.grid-form, .form-stack { display: grid; gap: 12px; padding: 16px; }
.grid-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-form .checkbox-field {
    align-items: center;
    align-self: end;
    display: flex;
    gap: 8px;
    min-height: 36px;
}
.grid-form .checkbox-field input[type="checkbox"] {
    flex: 0 0 auto;
    min-height: auto;
    padding: 0;
    width: 16px;
    height: 16px;
}
.form-stack { grid-template-columns: 1fr; }
.full { grid-column: 1 / -1; }
[hidden] { display: none !important; }
label { color: #334b66; display: grid; font-size: 12px; font-weight: 800; gap: 6px; }
input, select, textarea {
    background: #fff;
    border: 1px solid #cfdbe6;
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    min-height: 36px;
    padding: 8px 10px;
    width: 100%;
}
textarea { min-height: 88px; resize: vertical; }
.btn {
    align-items: center;
    background: #fff;
    border: 1px solid #cfdbe6;
    border-radius: 7px;
    color: #173450;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    padding: 0 14px;
    white-space: nowrap;
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { font-size: 12px; height: 30px; padding: 0 10px; }
.table-scroll { overflow-x: auto; }
.crm-form-panel { display: none; }
.crm-form-panel.is-open { display: block; }
.crm-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crm-metrics .metric { min-height: 104px; }
.crm-metrics .metric small { color: var(--muted); display: block; font-size: 11px; margin-top: 6px; }
.view-switch { align-items: center; display: flex; }
.view-switch .btn { border-radius: 0; }
.view-switch .btn:first-child { border-radius: 7px 0 0 7px; }
.view-switch .btn:last-child { border-radius: 0 7px 7px 0; margin-left: -1px; }
.opportunity-scope-switch {
    align-items: center;
    background: #f3f7fa;
    border: 1px solid #d8e3ec;
    border-radius: 9px;
    display: inline-flex;
    gap: 5px;
    margin-bottom: 16px;
    padding: 5px;
}
.opportunity-scope-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #40566b;
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.opportunity-scope-link:hover { background: #fff; border-color: #cbd9e4; color: #001957; }
.opportunity-scope-link.is-active { background: #fff; border-color: #cbd9e4; box-shadow: 0 2px 7px rgba(16, 35, 63, .08); color: #001957; }
.opportunity-scope-dot { background: #7f93a6; border-radius: 50%; height: 8px; width: 8px; }
.scope-won .opportunity-scope-dot { background: #15936e; }
.scope-lost .opportunity-scope-dot { background: #c0392b; }
.scope-won.is-active { color: #137044; }
.scope-lost.is-active { color: #a72b20; }
.lost-reason-field { margin-top: 16px; }
.lost-reason-field small { color: var(--danger); display: none; }
.confirm-modal.has-error .lost-reason-field textarea { border-color: var(--danger); }
.confirm-modal.has-error .lost-reason-field small { display: block; }
.kanban-board {
    display: grid;
    gap: 12px;
    grid-auto-columns: minmax(280px, 300px);
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 16px;
}
.kanban-column {
    background: #f6f8fb;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    min-height: 550px;
    transition: background .15s, border-color .15s;
}
.kanban-column.is-over { background: #eaf8fa; border-color: var(--primary); }
.kanban-column > header {
    border-bottom: 1px solid #dce5ee;
    padding: 13px;
}
.kanban-column > header div { align-items: center; display: flex; gap: 7px; }
.kanban-column > header strong { color: #10233f; font-size: 13px; }
.kanban-column > header b { background: #e4eaf0; border-radius: 999px; color: #52637a; font-size: 11px; margin-left: auto; padding: 2px 7px; }
.kanban-column > header small { color: #52637a; display: block; font-size: 12px; font-weight: 800; margin-top: 5px; }
.kanban-dot { background: #8da0b2; border-radius: 50%; display: inline-block; height: 8px; width: 8px; }
.kanban-dot.approved { background: #168fa1; }
.kanban-dot.trial { background: #e58a00; }
.kanban-dot.negotiation { background: #176bff; }
.kanban-dot.won { background: #15936e; }
.kanban-dot.lost, .kanban-dot.rejected { background: #c0392b; }
.kanban-cards { display: grid; gap: 10px; padding: 10px; }
.kanban-card {
    background: #fff;
    border: 1px solid #dce5ee;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(36,52,71,.04);
    cursor: grab;
    padding: 12px;
}
.kanban-card.is-dragging { opacity: .45; }
.kanban-card.is-saving { cursor: wait; opacity: .72; }
.kanban-card-top { align-items: center; display: flex; justify-content: space-between; }
.kanban-card-top strong { color: #607386; font-size: 11px; }
.kanban-card-top span { background: #edf8fa; border-radius: 5px; color: #0d7789; font-size: 11px; font-weight: 900; padding: 2px 6px; }
.kanban-card h3 { font-size: 14px; line-height: 1.3; margin: 10px 0 3px; }
.kanban-card h3 a { color: #10233f; }
.kanban-card p { color: #607386; font-size: 12px; margin: 0; }
.kanban-card-value { color: #001957; font-size: 16px; font-weight: 900; margin-top: 14px; }
.kanban-card-weighted { color: #607386; font-size: 11px; font-weight: 700; margin-top: 2px; }
.kanban-card footer { align-items: flex-end; border-top: 1px solid #edf2f6; color: #607386; display: flex; font-size: 10px; gap: 8px; justify-content: space-between; margin-top: 10px; padding-top: 9px; }
.kanban-card footer span { max-width: 56%; }
.kanban-card footer time { text-align: right; }
.kanban-card .lost-reason { background: #fff3f1; border-radius: 5px; color: #8f2b22; display: block; font-size: 11px; margin-top: 9px; padding: 7px; }
.temperature-badge {
    border-radius: 5px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    margin-top: 8px;
    padding: 3px 7px;
}
.temperature-badge.hot { background: #e3f7ee; color: #08764f; }
.temperature-badge.warm { background: #fff3d8; color: #8a6100; }
.temperature-badge.cold { background: #e7f2ff; color: #175b9c; }
.kanban-empty { border: 1px dashed #c8d4df; border-radius: 7px; color: #8292a3; font-size: 11px; padding: 24px 12px; text-align: center; }
.marketing-support:only-child { grid-column: 1 / -1; }
.email-settings-intro {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 16px;
}
.email-settings-intro strong { color: #001957; }
.email-settings-intro p { color: var(--muted); margin: 4px 0 0; }
.email-settings-form > .form-actions { margin-top: 14px; }
.email-settings-head, .email-rule {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(240px, 1.15fr) 120px minmax(420px, 1.85fr);
}
.email-settings-head {
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    color: #607386;
    font-size: 11px;
    font-weight: 900;
    padding: 11px 16px;
    text-transform: uppercase;
}
.email-rule {
    border-bottom: 1px solid #edf2f6;
    padding: 15px 16px;
}
.email-rule:last-child { border-bottom: 0; }
.email-rule-copy strong { color: #10233f; display: block; }
.email-rule-copy p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.email-rule-enabled, .email-recipient-options label {
    align-items: center;
    display: flex;
    font-size: 12px;
    gap: 7px;
}
.email-rule-enabled input, .email-recipient-options input { min-height: auto; width: auto; }
.email-recipient-options {
    display: grid;
    gap: 8px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.metric-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 16px;
}
.metric-grid.dashboard-metrics {
    grid-template-columns: repeat(5, minmax(88px, .64fr)) repeat(2, minmax(220px, 1.4fr));
}
.metric-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}
.metric-number { min-height: 78px; padding: 12px; }
.metric-value { min-height: 78px; }
.metric span { color: var(--muted); display: block; font-size: 12px; font-weight: 800; margin-bottom: 5px; }
.metric strong { color: #001957; font-size: 24px; font-weight: 850; }
.metric-number strong { font-size: 22px; }
.metric-value strong { font-size: 21px; line-height: 1.15; }
.split, .detail-grid, .approval-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
}
.approval-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px; }
table { border-collapse: collapse; width: 100%; }
th, td {
    border-bottom: 1px solid #edf2f6;
    padding: 11px 12px;
    text-align: left;
    vertical-align: middle;
}
th {
    background: #f8fafc;
    color: #607386;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
td small { color: var(--muted); display: block; font-size: 12px; margin-top: 2px; }
tr:last-child td { border-bottom: 0; }
.empty { color: var(--muted); padding: 26px; text-align: center; }
.badge {
    background: #eef3f7;
    border: 1px solid #d9e4ec;
    border-radius: 999px;
    color: #385273;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    text-transform: uppercase;
}
.badge.approved, .badge.active, .badge.paid { background: #e7f7ef; border-color: #b8e6ce; color: #137044; margin-bottom: 15px; }
.badge.pending, .badge.possible { background: #fff6df; border-color: #efd384; color: #8a5d00; margin-bottom: 15px; }
.badge.trial { background: #fff1df; border-color: #f1c786; color: #9a5b00; }
.badge.negotiation { background: #e9f0ff; border-color: #bfd0f7; color: #164fc1; }
.badge.rejected, .badge.blocked, .badge.inactive, .badge.cancelled { background: #fdebea; border-color: #f2bbb7; color: #a72b20; }
.badge.won { background: #e6f6ff; border-color: #b4e1f7; color: #075d83; }
.flash {
    background: #eaf7f4;
    border: 1px solid #bfe5dd;
    border-radius: 7px;
    color: #13705f;
    font-weight: 750;
    margin-bottom: 14px;
    padding: 11px 13px;
}
.flash.error { background: #fdebea; border-color: #f2bbb7; color: #a72b20; }
.flash.warning { background: #fff6df; border-color: #efd384; color: var(--warning); }
.filters {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) 190px auto;
    padding: 12px;
}
.opportunity-filters {
    grid-template-columns: minmax(220px, 1fr) 220px 190px auto;
}
.details {
    display: grid;
    grid-template-columns: 200px 1fr;
    margin: 0;
    padding: 16px;
}
.details dt, .details dd { border-bottom: 1px solid #edf2f6; margin: 0; padding: 9px 0; }
.details dt { color: var(--muted); font-size: 12px; font-weight: 900; }
.details dd { font-weight: 750; }
.details dd small { color: var(--muted); display: block; font-weight: 500; }
.statement { display: grid; gap: 10px; padding: 16px; }
.statement div { align-items: center; border: 1px solid #edf2f6; border-radius: 7px; display: flex; justify-content: space-between; padding: 12px; }
.statement span { color: var(--muted); font-weight: 800; }
.statement strong { color: #001957; font-size: 18px; }
.inline-form { align-items: center; display: flex; gap: 6px; }
.inline-form select { min-width: 120px; }
.price-tools {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 18px;
}
.price-simulator-panel .grid-form {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.resale-simulator-panel .panel-head p {
    color: var(--muted);
    font-size: 12px;
    margin: 4px 0 0;
}
.resale-simulator-panel .grid-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.resale-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.resale-form-actions .btn.export {
    background: #fff;
    border-color: #9fb8c8;
    color: #17384c;
}
.resale-form-actions .btn.export:hover {
    background: #eef7f8;
    border-color: #24768c;
    color: #00566d;
}
.resale-calculation-note {
    background: #f7fafc;
    border: 1px solid #e3ebf2;
    border-radius: 7px;
    color: #53687d;
    font-size: 12px;
    margin: 0 16px 14px;
    padding: 9px 11px;
}
.resale-results {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 16px 16px;
}
.resale-result-card {
    border: 1px solid #dce7ef;
    border-radius: 8px;
    overflow: hidden;
}
.resale-result-card h3 {
    background: #17384c;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    margin: 0;
    padding: 11px 13px;
    text-transform: uppercase;
}
.resale-result-card.financial h3 { background: #24768c; }
.resale-result-card dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0;
    padding: 5px 13px 10px;
}
.resale-result-card dt,
.resale-result-card dd {
    border-bottom: 1px solid #edf2f6;
    font-size: 12px;
    margin: 0;
    padding: 9px 0;
}
.resale-result-card dt { color: var(--muted); font-weight: 800; padding-right: 12px; }
.resale-result-card dd { color: #17233b; font-weight: 800; text-align: right; }
.resale-result-card .total {
    background: #eef8f4;
    border-bottom: 0;
    color: #0d6b56;
    font-size: 13px;
    font-weight: 900;
    margin: 4px -13px -5px;
    padding: 11px 13px;
}
.resale-result-card dt.total { padding-right: 12px; }
.resale-result-card dd.total.negative { background: #fdebea; color: #a72b20; }
.resale-result-card dd.total.positive { color: #0d6b56; }
.price-list-board {
    display: grid;
    gap: 28px;
}
.price-table-wrap {
    overflow-x: auto;
}
.price-matrix {
    border-collapse: collapse;
    min-width: 920px;
    width: 100%;
}
.price-matrix th,
.price-matrix td {
    border: 1px solid #bdd1d8;
    color: #0c2434;
    font-size: 18px;
    line-height: 1.1;
    padding: 5px 8px;
    text-align: right;
}
.price-matrix thead th {
    background: #092431;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}
.price-matrix .price-title {
    background: #17384c;
    font-size: 22px;
    padding: 6px 8px;
}
.price-matrix tbody th {
    background: #e2f4f0;
    color: #17384c;
    font-weight: 900;
    text-align: left;
    width: 220px;
}
.price-matrix tbody td {
    background: #e2f4f0;
}
.price-matrix tbody td.service {
    background: #fcebe3;
}
.opportunity-hero {
    align-items: center;
    background: #fff;
    border: 1px solid #dce7ef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    min-height: 118px;
    overflow: hidden;
    padding: 24px 26px;
    position: relative;
}
.opportunity-hero::before {
    background: var(--primary);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 5px;
}
.hero-kicker {
    color: var(--primary-dark);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.opportunity-hero h1 {
    color: #001957;
    font-size: 30px;
    font-weight: 850;
    line-height: 1.1;
    margin: 0 0 7px;
}
.opportunity-hero p {
    color: var(--muted);
    margin: 0;
}
.hero-status {
    background: #f3fbfd;
    border: 1px solid #bde8ef;
    border-radius: 8px;
    display: grid;
    gap: 3px;
    min-width: 148px;
    padding: 12px 14px;
}
.hero-status span {
    color: #4c6a80;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.hero-status strong {
    color: #08356f;
    font-size: 14px;
}
.opportunity-form-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}
.opportunity-form {
    display: grid;
    gap: 14px;
}
.form-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    padding: 20px 22px 22px;
}
.section-title {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}
.section-title span {
    align-items: center;
    background: #eaf8fb;
    border: 1px solid #bde8ef;
    border-radius: 8px;
    color: var(--primary-dark);
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 12px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
}
.section-title h2 {
    color: #10233f;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
    margin: 0 0 3px;
}
.section-title p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}
.opportunity-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.opportunity-grid.customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.opportunity-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.opportunity-grid .wide { grid-column: span 2; }
.financial-preview {
    background: #f8fbfd;
    border: 1px solid #dbe8f0;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 12px;
}
.financial-preview div {
    background: #fff;
    border: 1px solid #edf2f6;
    border-radius: 7px;
    padding: 10px 12px;
}
.financial-preview span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 4px;
}
.financial-preview strong {
    color: #001957;
    display: block;
    font-size: 15px;
    font-weight: 900;
}
.opportunity-form input,
.opportunity-form select,
.opportunity-form textarea {
    color: #10233f;
    font-size: 14px;
    font-weight: 800;
}
.opportunity-form input,
.opportunity-form select {
    height: 48px;
    line-height: 1.2;
    min-height: 48px;
}
.opportunity-form textarea {
    min-height: 92px;
}
.opportunity-form select {
    appearance: auto;
    padding-bottom: 0;
    padding-top: 0;
}
.opportunity-form input[type="date"] {
    font-family: inherit;
}
.opportunity-form input[type="date"]::-webkit-datetime-edit {
    color: #10233f;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}
.opportunity-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    height: 22px;
    width: 22px;
}
.opportunity-form input[readonly],
.opportunity-form textarea[readonly],
.opportunity-form select:disabled {
    background: #eef3f7;
    border-color: #d5e0ea;
    color: #6f8194;
    cursor: not-allowed;
}
.opportunity-form select:disabled {
    opacity: 1;
}
.opportunity-form label {
    color: #28415e;
}
.opportunity-file-field {
    background: #f8fbfd;
    border: 1px dashed #a9c4d4;
    border-radius: 8px;
    padding: 14px;
}
.opportunity-file-field input[type="file"] {
    background: #fff;
    cursor: pointer;
    padding: 8px;
}
.opportunity-file-field small,
.opportunity-attachment-item small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}
.opportunity-attachment-list {
    display: grid;
    gap: 8px;
}
.opportunity-attachment-item {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe8f0;
    border-radius: 8px;
    color: #173450;
    display: flex;
    gap: 11px;
    padding: 11px 12px;
}
.opportunity-attachment-item:hover {
    background: #f4fafb;
    border-color: #9fcbd3;
}
.opportunity-attachment-item > span:not(.opportunity-attachment-icon) {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.opportunity-attachment-item strong {
    overflow-wrap: anywhere;
}
.opportunity-attachment-icon {
    align-items: center;
    background: #e8f7f5;
    border-radius: 7px;
    color: #087c73;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 18px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
}
.opportunity-attachments-empty {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}
.opportunity-actions {
    background: #f8fbfd;
    padding: 16px 22px;
}
.opportunity-admin-workflow {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 14px;
    padding: 20px 22px 22px;
}
.workflow-title {
    margin-bottom: 16px;
}
.approval-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    padding: 0;
}
.workflow-card {
    background: #f8fbfd;
    border: 1px solid #dbe8f0;
    border-radius: 8px;
    padding: 14px;
}
.workflow-card .btn {
    width: 100%;
}
.workflow-card.compact-card .btn {
    justify-self: start;
    width: auto;
}
.inline-card-form {
    margin: 0;
}
.opportunity-statement {
    margin-top: 14px;
}
.opportunity-save-bar {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
    padding: 14px 16px;
}
.large-date-popover {
    background: #fff;
    border: 1px solid #cfdbe6;
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(16, 35, 63, .18);
    display: none;
    padding: 14px;
    position: absolute;
    width: 342px;
    z-index: 1000;
}
.large-date-popover.is-open {
    display: block;
}
.large-date-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.large-date-head strong {
    color: #10233f;
    font-size: 18px;
    font-weight: 900;
    text-transform: capitalize;
}
.large-date-nav {
    align-items: center;
    display: flex;
    gap: 6px;
}
.large-date-nav button,
.large-date-day {
    align-items: center;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #10233f;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    padding: 0;
}
.large-date-nav button {
    color: #607386;
    width: 34px;
}
.large-date-nav button:hover,
.large-date-day:hover {
    background: #eef8fb;
    border-color: #bde8ef;
    color: #0d7789;
}
.large-date-grid {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(7, 1fr);
}
.large-date-weekday {
    color: #607386;
    font-size: 12px;
    font-weight: 900;
    padding: 4px 0;
    text-align: center;
    text-transform: uppercase;
}
.large-date-day.is-muted {
    color: #aeb9c4;
}
.large-date-day.is-selected {
    background: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}
.large-date-day.is-today:not(.is-selected) {
    border-color: #17a2b8;
}
.platform-error {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 22px;
    grid-template-columns: 120px minmax(0, 1fr);
    margin: 32px auto;
    max-width: 760px;
    padding: 34px;
}
.error-mark {
    align-items: center;
    background: #eaf8fb;
    border: 1px solid #bde8ef;
    border-radius: 8px;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 30px;
    font-weight: 900;
    height: 96px;
    justify-content: center;
    width: 96px;
}
.platform-error h1 {
    color: #001957;
    font-size: 28px;
    font-weight: 850;
    line-height: 1.1;
    margin: 0 0 8px;
}
.platform-error p {
    color: var(--muted);
    margin: 0 0 18px;
}
.marketing-feature {
    align-items: center;
    background: linear-gradient(110deg, #071a3d, #0f5f70);
    border-radius: 8px;
    color: #fff;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 26px;
}
.marketing-feature h2 {
    color: #fff;
    font-size: 26px;
    line-height: 1.1;
    margin: 6px 0 8px;
}
.marketing-feature p {
    color: #c9dde5;
    margin: 0;
    max-width: 680px;
}
.marketing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}
.marketing-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    min-height: 230px;
    padding: 22px;
}
.marketing-card-kicker {
    color: var(--primary-dark);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.marketing-card h2 {
    color: #001957;
    font-size: 22px;
    line-height: 1.15;
    margin: 0 0 8px;
}
.marketing-card p,
.marketing-support p {
    color: var(--muted);
    margin: 0;
}
.marketing-actions {
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.material-flag {
    font-size: 18px;
    line-height: 1;
    margin-left: 10px;
}
.marketing-support-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;
}
.marketing-support {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 16px;
}
.marketing-support h3 {
    color: #001957;
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
}
.opportunity-flow-page {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(167,193,203,.55);
    border-radius: 8px;
    box-shadow: 0 14px 42px rgba(10,47,61,.10);
    overflow: hidden;
}
.flow-hero {
    background: linear-gradient(110deg, rgba(7,35,47,.98), rgba(8,57,70,.96));
    color: #fff;
    overflow: hidden;
    padding: 38px 44px 34px;
    position: relative;
}
.flow-hero::after {
    border: 60px solid rgba(99,205,209,.12);
    border-radius: 50%;
    content: "";
    height: 390px;
    position: absolute;
    right: -170px;
    top: -230px;
    width: 390px;
}
.flow-eyebrow {
    align-items: center;
    color: #7ee0d2;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 10px;
    letter-spacing: .16em;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.flow-eyebrow i {
    background: #00b99a;
    border-radius: 9px;
    height: 3px;
    width: 28px;
}
.flow-hero h1 {
    font-size: clamp(30px, 4.2vw, 48px);
    letter-spacing: 0;
    line-height: 1.06;
    margin: 0;
    max-width: 760px;
}
.flow-hero p {
    color: #b9d0d7;
    font-size: 16px;
    line-height: 1.55;
    margin: 14px 0 0;
    max-width: 740px;
}
.flow-summary {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: 28px;
    position: relative;
    z-index: 1;
}
.flow-summary span {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(175,216,220,.18);
    border-radius: 8px;
    color: #cfe2e6;
    font-size: 11px;
    font-weight: 700;
    padding: 9px 8px;
    text-align: center;
}
.flow-summary span:last-child {
    background: rgba(0,185,154,.15);
    border-color: rgba(0,185,154,.55);
    color: #fff;
}
.flow-content { padding: 30px 42px 36px; }
.flow-lane-head {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 88px 1fr;
    margin-bottom: 4px;
}
.flow-lane-label {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .06em;
    padding: 12px 16px;
    text-align: center;
    text-transform: uppercase;
}
.flow-lane-label.partner { background: #eaf2ff; color: #135fcf; }
.flow-lane-label.phishfy { background: #e4f8f3; color: #007d6b; }
.flow-timeline {
    padding-top: 8px;
    position: relative;
}
.flow-timeline::before {
    background: linear-gradient(#176bff, #00b99a);
    bottom: 0;
    content: "";
    left: 50%;
    opacity: .28;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
}
.flow-step {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 88px 1fr;
    min-height: 132px;
    position: relative;
}
.flow-node {
    align-items: center;
    background: linear-gradient(145deg, #176bff, #0e52c8);
    border: 6px solid #eef5ff;
    border-radius: 50%;
    box-shadow: 0 4px 13px rgba(23,107,255,.24);
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    grid-column: 2;
    height: 42px;
    justify-content: center;
    justify-self: center;
    width: 42px;
    z-index: 2;
}
.flow-step.phishfy .flow-node {
    background: linear-gradient(145deg, #00b99a, #008f7a);
    border-color: #e7f8f4;
    box-shadow: 0 4px 13px rgba(0,185,154,.25);
}
.flow-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 7px 22px rgba(18,66,81,.07);
    padding: 20px 22px;
    position: relative;
    width: min(100%, 465px);
}
.flow-step.partner .flow-card {
    grid-column: 1;
    justify-self: end;
}
.flow-step.phishfy .flow-card {
    grid-column: 3;
    justify-self: start;
}
.flow-step.partner .flow-card::after,
.flow-step.phishfy .flow-card::before {
    background: var(--line);
    content: "";
    height: 1px;
    position: absolute;
    top: 50%;
    width: 22px;
}
.flow-step.partner .flow-card::after { right: -22px; }
.flow-step.phishfy .flow-card::before { left: -22px; }
.flow-card-top {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}
.flow-actor {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.partner .flow-actor { color: #176bff; }
.phishfy .flow-actor { color: #008f7a; }
.flow-card h2 {
    color: var(--text);
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.22;
    margin: 0;
}
.flow-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
    margin: 8px 0 0;
}
.flow-step-icon {
    align-items: center;
    background: #f0f5f7;
    border-radius: 8px;
    color: #0b3442;
    display: flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.flow-chips, .flow-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.flow-chips { margin-top: 13px; }
.flow-chip {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
    padding: 6px 10px;
    white-space: nowrap;
}
.flow-chip::before {
    background: currentColor;
    border-radius: 50%;
    content: "";
    height: 6px;
    width: 6px;
}
.flow-chip.pending { background: #fff2d6; color: #9a6100; }
.flow-chip.approved { background: #e3f7ee; color: #08764f; }
.flow-chip.rejected { background: #ffeaed; color: #ae3340; }
.flow-chip.trial { background: #fff1df; color: #9a5b00; }
.flow-chip.negotiation { background: #e9f0ff; color: #164fc1; }
.flow-chip.won { background: #eee9ff; color: #6543c4; }
.flow-chip.paid { background: #dbf7ef; color: #006f60; }
.flow-chip.conditional { background: #edf2f4; color: #66727c; }
.flow-decision {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
}
.flow-decision div {
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    padding: 9px 10px;
}
.flow-decision .go { background: #edf9f4; color: #08764f; }
.flow-decision .stop { background: #fff0f1; color: #a23d47; }
.flow-footer {
    align-items: center;
    background: #f8fbfc;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 22px 42px;
}
.flow-legend strong {
    color: #496171;
    font-size: 12px;
    margin-right: 3px;
}
.flow-footer p {
    color: #657b89;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    max-width: 360px;
    text-align: right;
}
.flow-footer p strong { color: #0b3442; }
@media (max-width: 1100px) {
    .email-settings-head { display: none; }
    .email-rule { align-items: start; grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.5fr); }
    .email-rule-enabled { grid-column: 1; }
    .email-recipient-options { grid-column: 2; grid-row: 1 / span 2; }
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .metric-grid.dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .marketing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .marketing-support-grid { grid-template-columns: 1fr; }
    .flow-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-form, .split, .detail-grid, .approval-grid, .opportunity-grid, .opportunity-grid.compact, .opportunity-grid.customer-grid, .price-tools, .price-simulator-panel .grid-form, .resale-simulator-panel .grid-form, .resale-results, .financial-preview { grid-template-columns: 1fr; }
    .opportunity-grid .wide { grid-column: auto; }
    .login-shell { grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); }
    .login-visual { padding: 34px; }
    .login-card { padding: 42px; }
}
@media (max-width: 980px) {
    .login-v2-shell { grid-template-columns: 1fr; }
    .login-v2-brand { min-height: 340px; padding: 34px; }
    .login-v2-brand h1 { font-size: 42px; margin-bottom: 28px; }
    .login-v2-kicker { font-size: 12px; margin-bottom: 22px; }
    .login-v2-brand p { font-size: 18px; }
    .login-v2-access { min-height: auto; padding: 80px 22px 38px; }
    .partner-language { right: 22px; top: 20px; }
    .login-v2-logo-block { margin-bottom: 34px; }
    .login-v2-top-logo { width: 150px; }
    .login-v2-slogan { font-size: 13px; }
}
@media (max-width: 760px) {
    .email-rule { grid-template-columns: 1fr; }
    .email-rule-enabled, .email-recipient-options { grid-column: 1; grid-row: auto; }
    .email-recipient-options { grid-template-columns: 1fr; }
    .sidebar { position: static; width: auto; }
    .content { margin-left: 0; padding: 16px; }
    .page-head { flex-direction: column; }
    .opportunity-scope-switch { display: flex; overflow-x: auto; width: 100%; }
    .opportunity-scope-link { flex: 1 0 auto; }
    .opportunity-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
    .hero-status { width: 100%; }
    .platform-error { grid-template-columns: 1fr; padding: 22px; }
    .login-shell { grid-template-columns: 1fr; min-height: 100vh; }
    .login-visual { display: none; }
    .login-card { min-height: 100vh; padding: 24px; }
    .login-card h1, .policy-card h1 { font-size: 26px; }
    .policy-card { margin: 16px; padding: 24px; }
    .policy-grid { grid-template-columns: 1fr; }
    .policy-form .form-actions { align-items: stretch; flex-direction: column; }
    .metric-grid, .metric-grid.compact, .filters { grid-template-columns: 1fr; }
    .metric-grid.dashboard-metrics { grid-template-columns: 1fr; }
    .marketing-feature {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }
    .marketing-grid { grid-template-columns: 1fr; }
    .marketing-actions { align-items: stretch; flex-direction: column; }
    .flow-hero { padding: 30px 24px; }
    .flow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow-content { padding: 24px 18px 28px; }
    .flow-lane-head { display: none; }
    .flow-timeline::before {
        left: 21px;
        transform: none;
    }
    .flow-step {
        align-items: start;
        grid-template-columns: 44px 1fr;
        margin-bottom: 18px;
        min-height: auto;
    }
    .flow-step .flow-node,
    .flow-step.phishfy .flow-node {
        grid-column: 1;
        height: 42px;
        width: 42px;
    }
    .flow-step.partner .flow-card,
    .flow-step.phishfy .flow-card {
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
        margin-left: 12px;
        width: auto;
    }
    .flow-step.partner .flow-card::after { display: none; }
    .flow-step.phishfy .flow-card::before {
        left: -13px;
        width: 13px;
    }
    .flow-decision { grid-template-columns: 1fr; }
    .flow-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }
    .flow-footer p { text-align: left; }
    .price-matrix th, .price-matrix td { font-size: 16px; }
    .price-matrix thead th { font-size: 17px; }
    .price-matrix .price-title { font-size: 19px; }
    table { display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
    .login-v2-brand { min-height: 280px; padding: 24px; }
    .login-v2-brand h1 { font-size: 34px; }
    .login-v2-brand p { font-size: 14px; }
    .login-v2-kicker { letter-spacing: .24em; }
    .login-v2-card { border-radius: 8px; padding: 24px 18px; }
}
