@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --ink: #1c2a25;
    --muted: #718078;
    --line: #e8eee9;
    --canvas: #f5f8f5;
    --green: #237b55;
    --green-dark: #15583d;
    --green-pale: #e8f4ec;
    --white: #fff;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; flex-direction: column; width: 252px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #527262 #193b30; padding: 27px 19px 18px; background: #193b30; color: #eaf3ed; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { border-radius: 6px; background: #527262; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 36px; }
.brand b { display: block; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 3px; color: #a9c2b5; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.brand-mark { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: #e7f2e8; color: var(--green-dark); font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.08em; }
.small-mark { width: 39px; height: 39px; border-radius: 12px; font-size: 16px; }
.brand-image { width: 39px; height: 39px; flex: 0 0 auto; border-radius: 9px; background: #fff; object-fit: contain; }
.nav-label { padding: 0 11px 12px; color: #91aa9d; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.sidebar nav { display: grid; flex: 0 0 auto; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; border-radius: 9px; color: #c4d5cc; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.nav-link:hover, .nav-link.active { background: #2b5142; color: #fff; }
.nav-link.active { box-shadow: inset 3px 0 #9ed5a5; }
.nav-dot { width: 7px; height: 7px; border: 1.5px solid #9db5a8; border-radius: 50%; }
.nav-link.active .nav-dot { border-color: #b7e5b7; background: #b7e5b7; }
.sidebar-footer { margin-top: auto; }
.focal-badge { display: flex; align-items: center; gap: 9px; padding: 13px 10px; border: 1px solid #335849; border-radius: 10px; }
.focal-badge b, .focal-badge small { display: block; }
.focal-badge b { color: #d7e5dc; font-size: 11px; }
.focal-badge small { margin-top: 4px; color: #a6c5b2; font-size: 11px; }
.online-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #83d59b; box-shadow: 0 0 0 4px #335849; }
.sidebar-domain { padding: 13px 10px 0; color: #a9c2b5; font-size: 11px; letter-spacing: .02em; }
.main-content { min-height: 100vh; margin-left: 252px; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; min-height: 72px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.topbar-spacer { flex: 1; }
.mobile-brand { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; margin-right: 20px; }
.profile-link { border-radius: 8px; }
.profile-link:hover b { color: var(--green); }
.user-chip b, .user-chip small { display: block; }
.user-chip b { font-size: 12px; font-weight: 700; }
.user-chip small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.notification-link { position: relative; display: inline-flex; min-width: 37px; height: 37px; align-items: center; justify-content: center; margin-right: 15px; border: 1px solid #e5ebe6; border-radius: 9px; color: #506358; }
.notification-link svg { width: 19px; height: 19px; }
.notification-badge { position: absolute; top: -6px; right: -7px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; background: #c94f43; color: #fff; font-size: 9px; font-weight: 700; }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: #e7f2e8; color: var(--green-dark); font-weight: 700; object-fit: cover; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; transition: background .15s, border-color .15s; }
.button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.button.primary:hover { border-color: var(--green-dark); background: var(--green-dark); }
.button.subtle { border-color: #e5ebe6; background: #fff; color: #44554b; }
.button.subtle:hover, .button.tiny:hover { background: #f0f5f1; }
.button.danger-button { border-color: #b84d42; background: #b84d42; color: #fff; }
.button.danger-button:hover { border-color: #983d35; background: #983d35; }
.button.tiny { min-height: 29px; padding: 0 9px; border-color: #e0e9e2; background: #fff; color: #46564c; font-size: 11px; }
.success-button { border-color: #d3ead8 !important; color: #277248 !important; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 33px 42px 25px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 8px; color: #64816f; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Manrope, 'Segoe UI', sans-serif; }
.page-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 29px); letter-spacing: -.045em; }
.page-heading .muted { margin: 6px 0 0; font-size: 13px; }
.muted { color: var(--muted); }
.date-pill { padding: 9px 12px; border: 1px solid #e3ebe5; border-radius: 8px; background: #fff; color: #627068; font-size: 11px; font-weight: 600; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 19px; }
.metric-card, .panel { border: 1px solid #e7ede8; border-radius: 12px; background: var(--white); box-shadow: 0 2px 6px rgba(32, 57, 42, .025); }
.metric-card { min-height: 132px; padding: 17px 18px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #68776e; font-size: 12px; font-weight: 600; }
.metric-card strong { display: block; margin-top: 9px; font-family: Manrope, sans-serif; font-size: 29px; letter-spacing: -.05em; }
.metric-card > small { display: block; margin-top: 3px; color: #859188; font-size: 10px; }
.metric-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 800; }
.metric-icon.blue { background: #eaf0fb; color: #5878b1; }
.metric-icon.green { background: #e7f4eb; color: #388658; }
.metric-icon.coral { background: #fff0ec; color: #c66d58; }
.metric-icon.gold { background: #fbf3dc; color: #ad8b30; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; align-items: start; }
.management-grid { grid-template-columns: minmax(275px, .75fr) minmax(0, 1.7fr); }
.panel { min-width: 0; padding: 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.panel-heading p { margin: 5px 0 0; font-size: 11px; }
.text-link { padding-top: 2px; color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.pipeline-list { display: grid; gap: 17px; padding: 5px 0 3px; }
.pipeline-row { display: grid; grid-template-columns: 102px minmax(50px, 1fr) 22px; align-items: center; gap: 12px; color: #5b6b61; font-size: 11px; }
.pipeline-row b { color: #34443a; font-size: 11px; text-align: right; }
.pipeline-track { height: 7px; overflow: hidden; border-radius: 20px; background: #eef2ef; }
.pipeline-track i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: #5caa7b; }
.dashboard-team-tree { grid-column: 1 / -1; }
.team-tree-page-panel { overflow: hidden; }
.team-tree, .team-tree-children { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding: 0; list-style: none; }
.team-tree-item { position: relative; min-width: 0; }
.team-tree-children { position: relative; margin: 12px 0 0 25px; padding-left: 20px; border-left: 1px solid #d5e4d9; }
.team-tree-children > .team-tree-item::before { position: absolute; top: 24px; left: -21px; width: 20px; border-top: 1px solid #d5e4d9; content: ""; }
.team-tree-card { max-width: 600px; padding: 13px 15px; border: 1px solid #e3ebe5; border-radius: 10px; background: #fff; }
.team-tree-identity { display: flex; align-items: center; gap: 10px; }
.team-tree-identity > div { min-width: 0; }
.team-tree-identity b, .team-tree-identity small { display: block; }
.team-tree-identity b { overflow-wrap: anywhere; font-size: 12px; }
.team-tree-identity small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.team-tree-stats { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 9px 0 7px 44px; color: #64736a; font-size: 10px; }
.team-tree-progress { height: 6px; margin-left: 44px; overflow: hidden; border-radius: 8px; background: #eef2ef; }
.team-tree-progress i { display: block; height: 100%; border-radius: inherit; background: #54a874; }
.team-tree-pipeline { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0 44px; }
.team-tree-pipeline span { padding: 3px 6px; border-radius: 5px; background: #f0f5f1; color: #5c6e62; font-size: 9px; }
.team-tree-customer-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 8px 0 0 44px; }
.team-tree-customer-status > div { display: grid; grid-template-columns: auto minmax(35px, 1fr); align-items: center; gap: 6px; color: #718078; font-size: 9px; }
.team-tree-customer-status i { height: 5px; overflow: hidden; border-radius: 8px; background: #eef2ef; }
.team-tree-customer-status i b { display: block; height: 100%; border-radius: inherit; background: #74ae83; }
.team-tree-dashboard { max-height: 580px; overflow: auto; padding: 2px 6px 6px 2px; }
.team-tree-dashboard .team-tree-card { max-width: none; }
.team-tree-full { max-height: 72vh; overflow: auto; padding: 3px 8px 12px 3px; }
.team-tree-full > .team-tree-item > .team-tree-card { max-width: 780px; }
.stage-new { background: #95b9a2 !important; }.stage-contacted { background: #6ea87e !important; }.stage-qualified { background: #48885f !important; }.stage-viewing { background: #70a6a0 !important; }.stage-negotiation { background: #d1a64c !important; }.stage-won { background: #24784d !important; }.stage-lost { background: #c27b70 !important; }
.activity-list { display: grid; }
.activity-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid #eff2ef; }
.activity-item:last-child { border-bottom: 0; }
.activity-marker { width: 8px; height: 8px; flex: 0 0 auto; margin: 5px 1px 0; border: 2px solid #70aa81; border-radius: 50%; background: #fff; }
.activity-marker.urgent { border-color: #d57968; }
.activity-item b, .activity-item small { display: block; }
.activity-item b { font-size: 11px; font-weight: 600; line-height: 1.5; }
.activity-item small { margin-top: 3px; color: #859188; font-size: 10px; line-height: 1.45; }
.activity-panel { grid-column: 1 / -1; }
.empty-state { padding: 28px 18px; color: #77867d; font-size: 12px; line-height: 1.6; text-align: center; }
.empty-state.compact { padding: 22px 10px; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; }
.form-grid h2 { grid-column: 1 / -1; margin: 5px 0 -3px; font-size: 14px; }
.form-grid label { display: grid; align-content: start; gap: 6px; color: #4c5d52; font-size: 11px; font-weight: 600; }
.form-grid label .muted { font-size: 10px; font-weight: 400; }
.form-grid label.check-row, .check-row { display: flex; align-items: center; gap: 8px; color: #526258; font-size: 11px; font-weight: 500; line-height: 1.5; }
.form-grid .check-row input[type="checkbox"], .check-row input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; padding: 0; accent-color: #36784d; }
.campaign-target-list { min-width: 0; max-height: 320px; margin: 0; padding: 12px; overflow: auto; border: 1px solid #e4ebe5; border-radius: 8px; }
.campaign-target-list legend { padding: 0 5px; color: #526258; font-size: 11px; font-weight: 700; }
.campaign-target-list .check-row { padding: 7px 2px; border-bottom: 1px solid #eff2ef; }
.campaign-target-list .check-row:last-child { border-bottom: 0; }
.team-tools-panel { margin-bottom: 17px; }
.reset-data-panel { border-color: #efc9c3; }
.reset-data-form { max-width: 430px; }
.reset-data-form label { color: #85463e; }
.reset-data-form input { border-color: #e7c6c1; }
.team-tools-panel > .panel-heading { align-items: center; margin-bottom: 0; }
.demo-team-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 13px; border-top: 1px solid #edf1ed; }
.demo-team-tools b { color: #435449; font-size: 11px; }
.demo-team-tools .demo-copy { margin: 4px 0 0; font-size: 10px; }
.team-member-dialog { width: min(560px, calc(100vw - 32px)); max-height: min(90vh, 760px); padding: 22px; overflow: auto; border: 1px solid #e1e9e3; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(20, 42, 28, .24); }
.team-member-dialog::backdrop { background: rgba(24, 39, 29, .48); backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-heading h2 { margin: 0; font-size: 17px; }
.dialog-heading p { margin: 5px 0 0; font-size: 11px; }
.dialog-close { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #e3ebe5; border-radius: 8px; background: #f8faf8; color: #526258; font-size: 22px; cursor: pointer; }
.team-member-form { gap: 10px; }
.team-member-form label { font-size: 10px; }
.permission-form { display: flex; min-width: 510px; align-items: center; gap: 12px; white-space: nowrap; }
.permission-form .check-row { flex: 0 0 auto; gap: 5px; font-size: 9px; }
.permission-form .check-row input[type="checkbox"] { width: 14px; height: 14px; flex-basis: 14px; }
.permission-form .button { flex: 0 0 auto; padding: 6px 9px; }
.registration-panel { margin-top: 20px; padding-top: 15px; border-top: 1px solid #edf1ed; }
.registration-panel summary { color: #36784d; font-size: 12px; font-weight: 700; cursor: pointer; }
.registration-panel > p { font-size: 11px; line-height: 1.55; }
.registration-resend-form { min-width: 175px; gap: 6px; margin-top: 8px; }
.registration-resend-form label { font-size: 10px; }
.registration-resend-form input { width: 100%; min-width: 150px; height: 30px; padding: 0 7px; font-size: 10px; }
.registration-panel .form-grid { margin-top: 12px; }
.form-grid input, .form-grid select, .form-grid textarea, .inline-form select { width: 100%; min-width: 0; border: 1px solid #dfe7e1; border-radius: 7px; outline: none; background: #fff; color: #34443a; font-size: 12px; }
.form-grid input, .form-grid select { height: 37px; padding: 0 10px; }
.form-grid textarea { min-height: 74px; padding: 9px 10px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .inline-form select:focus { border-color: #70aa81; box-shadow: 0 0 0 3px rgba(76, 144, 95, .1); }
.full { grid-column: 1 / -1; }
.form-grid .button { margin-top: 2px; }
.table-panel { padding-right: 0; padding-left: 0; }
.table-panel > .panel-heading { padding: 0 20px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 13px; border-top: 1px solid #edf1ed; border-bottom: 1px solid #edf1ed; background: #f9fbf9; color: #78867d; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 13px; border-bottom: 1px solid #eff2ef; color: #4f5e54; font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td b, td small { display: block; }
td b { color: #314238; font-size: 11px; font-weight: 700; }
td small { max-width: 200px; margin-top: 4px; overflow: hidden; color: #859188; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-block; padding: 5px 8px; border-radius: 20px; background: #eef2ef; color: #5d6d62; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-new { background: #f0f3f1; color: #617067; }.status-contacted { background: #eaf1fa; color: #54749e; }.status-qualified { background: #e8f4eb; color: #47805a; }.status-viewing { background: #e7f3f1; color: #3e8276; }.status-negotiation { background: #fbf3df; color: #9c7c32; }.status-won { background: #e4f3e8; color: #277248; }.status-lost { background: #fbebe8; color: #a95f53; }
.inline-form { display: flex; align-items: center; gap: 5px; }
.inline-form select { width: auto; max-width: 120px; height: 29px; padding: 0 6px; font-size: 10px; }
.count-pill { display: inline-grid; min-width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #edf5ef; color: #37704b; font-size: 10px; font-weight: 700; }
.campaign-panel { min-height: 200px; }
.integration-note { margin: 12px 16px 0; color: #849087; font-size: 10px; line-height: 1.5; }
.notice { margin-bottom: 17px; padding: 11px 14px; border: 1px solid; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.notice.success { border-color: #cce5d2; background: #edf7ef; color: #2d7045; }
.notice.error { border-color: #f0d4cd; background: #fff3f0; color: #984f43; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 14px; border-top: 1px solid #e8eee9; color: #87938b; font-size: 10px; }
.login-page, .setup-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(ellipse at 15% 10%, #e8f3e9 0, transparent 38%), #f4f7f4; }
.login-card, .setup-card { width: min(100%, 410px); padding: 34px; border: 1px solid #e5ece6; border-radius: 17px; background: #fff; box-shadow: 0 16px 50px rgba(28, 62, 42, .08); }
.setup-card { width: min(100%, 550px); }
.login-card .brand-mark { margin: 0 auto 22px; }
.login-card h1, .setup-card h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.login-card > .muted, .setup-card > .muted { margin: 8px 0 22px; font-size: 12px; line-height: 1.6; }
.login-card .form-grid { grid-template-columns: 1fr; gap: 15px; }
.login-card .small, .setup-card .small { margin: 21px 0 0; font-size: 10px; text-align: center; }
.setup-card .form-grid { margin-top: 19px; }
.setup-card .form-grid h2:not(:first-of-type) { margin-top: 11px; }
.login-logo { display: block; max-width: 180px; max-height: 90px; margin: 0 auto 22px; object-fit: contain; object-position: center; }
.registration-page { background: radial-gradient(ellipse at 5% 10%, #dcebe0 0, transparent 38%), radial-gradient(ellipse at 95% 90%, #e7f0e8 0, transparent 36%), #f4f7f4; }
.registration-card { display: grid; width: min(100%, 920px); min-height: 570px; grid-template-columns: .88fr 1.12fr; overflow: hidden; border: 1px solid #e3ebe5; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(28, 62, 42, .13); }
.registration-intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 42px 38px 30px; overflow: hidden; background: linear-gradient(150deg, #193b30, #245640); color: #fff; }
.registration-intro::after { position: absolute; right: -88px; bottom: -96px; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.025); content: ""; pointer-events: none; }
.registration-logo { align-self: center; max-width: 145px; max-height: 72px; margin: 0 0 48px; object-fit: contain; object-position: center; mix-blend-mode: screen; }
.registration-intro .brand-mark { align-self: center; margin-bottom: 48px; background: #e7f2e8; }
.registration-kicker { margin: 0 0 12px; color: #a9d2b6; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.registration-intro h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.055em; line-height: 1.12; }
.registration-intro > p:not(.registration-kicker) { max-width: 270px; margin: 13px 0 0; color: #d1e0d6; font-size: 12px; line-height: 1.75; }
.registration-approval { display: flex; align-items: flex-start; gap: 11px; margin-top: 36px; padding: 14px; border: 1px solid rgba(220,240,225,.2); border-radius: 10px; background: rgba(255,255,255,.07); }
.registration-approval-icon { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: #b6e0bd; color: #1d5437; font-size: 13px; font-weight: 800; }
.registration-approval b, .registration-approval small { display: block; }
.registration-approval b { color: #fff; font-size: 10px; }
.registration-approval small { margin-top: 5px; color: #d1e0d6; font-size: 10px; line-height: 1.5; }
.registration-intro-footer { margin-top: auto; padding-top: 30px; color: #b9d1c2; font-size: 10px; }
.registration-intro-footer b { margin-left: 5px; color: #fff; }
.registration-form-panel { align-self: center; padding: 42px 45px; }
.registration-form-panel .eyebrow { margin-bottom: 7px; color: #398057; }
.registration-form-panel h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.045em; }
.registration-form-description { margin: 8px 0 24px; color: #77847b; font-size: 11px; line-height: 1.65; }
.registration-form { gap: 15px 12px; }
.registration-form .registration-password, .registration-form > .button { grid-column: 1 / -1; }
.registration-form .button { min-height: 43px; margin-top: 2px; }
.registration-signin { margin: 19px 0 0; color: #77847b; font-size: 11px; text-align: center; }
.registration-signin a { color: #237b55; font-weight: 700; }
.registration-signin a:hover, .registration-link:hover b { color: #15583d; }
.registration-link { display: flex; align-items: center; gap: 5px; margin-top: 21px; padding: 12px 13px; border: 1px solid #e2ebe4; border-radius: 8px; background: #f8fbf8; color: #68776e; font-size: 11px; }
.registration-link b { color: #237b55; }
.registration-link span { margin-left: auto; color: #237b55; font-size: 16px; }
.form-divider { height: 1px; margin: 20px 0 17px; background: var(--line); }
.subheading { margin: 0 0 7px; font-family: Manrope, sans-serif; font-size: 13px; }
.demo-copy { margin-bottom: 13px; font-size: 11px; line-height: 1.6; }
.credential-panel { margin-bottom: 17px; }
.credential-panel h2 { margin: 0 0 6px; font-size: 15px; }
.credential-panel > .muted { margin-bottom: 12px; font-size: 11px; }
.credential-panel code { padding: 4px 6px; border-radius: 5px; background: #f0f4f1; color: #355342; font-size: 11px; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.green-api-panel { grid-column: 1 / -1; }
.green-api-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.green-api-summary > div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; }
.green-api-summary small, .green-api-summary b { display: block; }
.green-api-summary small { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.green-api-summary b { overflow-wrap: anywhere; color: #34443a; font-size: 11px; }
.green-api-form { max-width: 820px; }
.green-api-actions { display: grid; gap: 11px; justify-items: start; margin-top: 16px; }
.green-api-qr-frame { width: min(100%, 360px); height: 360px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.whatsapp-compose { min-width: 125px; }
.whatsapp-compose summary { display: inline-block; cursor: pointer; list-style: none; }
.whatsapp-compose summary::-webkit-details-marker { display: none; }
.whatsapp-send-form { display: grid; min-width: 190px; gap: 5px; margin-top: 7px; }
.whatsapp-send-form input, .whatsapp-send-form textarea, .contact-search-label input { width: 100%; min-width: 0; border: 1px solid #dfe7e1; border-radius: 7px; padding: 7px 8px; background: #fff; color: #34443a; font: inherit; font-size: 10px; }
.whatsapp-send-form textarea { resize: vertical; }
.contact-search-label { display: grid; gap: 6px; margin: 0 20px 12px; color: #4c5d52; font-size: 11px; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.whatsapp-history-panel { margin-top: 16px; }
.table-wrap tr[hidden] { display: none; }
.notification-list { display: grid; gap: 10px; }
.notification-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #e5ebe6; border-radius: 9px; background: #fff; }
.notification-card.unread { border-color: #c8dfce; background: #f3faf4; }
.notification-card-content { display: grid; min-width: 0; gap: 5px; }
.notification-card-content b { color: #34443a; font-size: 12px; }
.notification-card-content p { margin: 0; color: #64736a; font-size: 11px; line-height: 1.5; }
.notification-card-content small { color: #859188; font-size: 10px; }
.task-type-badge { display: inline-block; margin-right: 5px; padding: 3px 6px; border-radius: 5px; background: #edf4ef; color: #52725e; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.company-broadcast-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center !important; gap: 8px !important; }
.company-broadcast-label[hidden] { display: none !important; }
.company-broadcast-label input { width: 16px; height: 16px; }
.form-grid input:disabled, .form-grid select:disabled { background: #f3f5f3; color: #7d8981; }
.profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-preview { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; }
.image-preview img { max-width: 190px; max-height: 76px; object-fit: contain; }
.upload-preview img[hidden] { display: none; }
.profile-upload-preview img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.profile-upload-preview span { color: var(--muted); font-size: 11px; }
.reporting-manager-field[hidden] { display: none; }
.demo-data-panel { grid-column: 1 / -1; }
.image-preview .favicon-preview { width: 32px; height: 32px; }
.social-preview { overflow: hidden; margin-top: 20px; border: 1px solid #e1e7e2; border-radius: 9px; background: #f9fbfa; }
.social-preview > img { display: block; width: 100%; max-height: 190px; border-bottom: 1px solid #e1e7e2; background: #fff; object-fit: contain; }
.social-preview > div { display: grid; gap: 5px; padding: 12px; }
.social-preview small { color: #718078; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.social-preview b { font-size: 12px; }
.social-preview span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.social-preview code { color: #64816f; font-size: 10px; }
.social-preview .social-image-placeholder { min-height: 130px; align-content: center; justify-items: center; padding: 20px; color: var(--muted); text-align: center; }
.member-profile-toolbar { margin-bottom: 14px; }
.member-identity { display: flex; align-items: center; gap: 17px; margin-bottom: 17px; padding: 20px; }
.member-avatar { width: 58px; height: 58px; font-size: 21px; }
.member-identity .eyebrow { margin-bottom: 5px; }
.member-identity h2 { margin: 0; font-size: 19px; }
.member-identity p { margin: 5px 0 3px; color: #53645a; font-size: 12px; }
.member-identity small { color: var(--muted); font-size: 10px; }
.member-metrics { margin-bottom: 17px; }
.member-progress-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
.member-activity-panel { grid-column: 1 / -1; }
.team-name-cell { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.team-name-cell .avatar { width: 30px; height: 30px; font-size: 10px; }
.profile-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 17px; padding: 23px 26px; }
.profile-photo-large { display: grid; width: 104px; height: 104px; flex: 0 0 auto; place-items: center; border: 4px solid #f0f5f1; border-radius: 50%; object-fit: cover; }
.profile-photo-placeholder { background: linear-gradient(135deg, #e4f0e7, #cfe2d4); color: #236043; font-family: Manrope, sans-serif; font-size: 37px; font-weight: 800; }
.profile-hero-details { min-width: 0; }
.profile-hero-details .eyebrow { margin-bottom: 5px; }
.profile-hero-details h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.profile-hero-details p { margin: 5px 0 3px; color: #466251; font-size: 12px; font-weight: 600; }
.profile-hero-details > span { color: var(--muted); font-size: 11px; }
.profile-member-since { display: grid; gap: 5px; margin-left: auto; padding-left: 20px; border-left: 1px solid var(--line); }
.profile-member-since small { color: #849087; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.profile-member-since b { color: #35493c; font-size: 12px; }
.profile-metrics { margin-bottom: 17px; }
.role-metric { max-width: 100%; overflow-wrap: anywhere; font-size: 17px !important; letter-spacing: -.03em !important; }
.profile-remove-option { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.profile-remove-option input { width: 15px; height: 15px; accent-color: var(--green); }
.security-note { margin: 0; color: #718078; font-size: 10px; line-height: 1.6; }
.form-hint { margin: 0; color: #718078; font-size: 10px; line-height: 1.6; }
.booking-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.booking-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 17px; }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list > div { display: grid; grid-template-columns: minmax(105px, .7fr) minmax(0, 1.5fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #eff2ef; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: #78867d; font-size: 10px; font-weight: 600; }
.detail-list dd { margin: 0; color: #34443a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.approval-timeline { display: grid; }
.approval-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 11px; padding: 10px 0; }
.approval-step:not(:last-child)::after { position: absolute; top: 38px; bottom: -7px; left: 13px; width: 1px; background: #dce8df; content: ""; }
.approval-step-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e8f4eb; color: #34774d; font-size: 10px; font-weight: 700; }
.approval-step b, .approval-step small { display: block; }
.approval-step b { padding-top: 2px; font-size: 11px; }
.approval-step small { margin-top: 4px; color: #718078; font-size: 10px; }
.approval-step p { margin: 6px 0 0; color: #59685e; font-size: 10px; line-height: 1.5; }
.approval-step time { color: #849087; font-size: 9px; white-space: nowrap; }
.installment-panel { margin-top: 17px; }
.booking-review-form { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; min-width: 154px; }
.booking-review-form input { grid-column: 1 / -1; width: 100%; height: 29px; padding: 0 7px; border: 1px solid #dfe7e1; border-radius: 6px; font-size: 10px; }
.reject-button { border-color: #f0d4cd !important; color: #984f43 !important; }
.booking-view-link { display: block; margin-top: 6px; color: var(--green); font-size: 10px; font-weight: 700; }

@media (max-width: 1100px) {
    .sidebar { width: 218px; }
    .main-content { margin-left: 218px; }
    .topbar { padding-right: 27px; padding-left: 27px; }
    .page-content { padding-right: 27px; padding-left: 27px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .management-grid { grid-template-columns: minmax(250px, .75fr) minmax(0, 1.5fr); }
}
@media (max-width: 760px) {
    body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .registration-page { padding: 18px 14px; }
    .registration-card { width: min(100%, 520px); grid-template-columns: 1fr; }
    .registration-intro { padding: 26px 26px 22px; }
    .registration-logo, .registration-intro .brand-mark { margin-bottom: 20px; }
    .registration-intro h1 { font-size: 30px; }
    .registration-intro > p:not(.registration-kicker) { max-width: 430px; }
    .registration-approval { margin-top: 20px; }
    .registration-intro-footer { padding-top: 17px; }
    .registration-form-panel { padding: 29px 26px 30px; }
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .topbar { min-height: 60px; padding: 0 17px; }
    .mobile-brand { display: flex; align-items: center; gap: 8px; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; }
    .mobile-brand .small-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 13px; }
    .mobile-brand .brand-image { width: 31px; height: 31px; }
    .user-chip { margin-right: 8px; }
    .notification-link { min-width: 32px; width: 32px; height: 32px; margin-right: 8px; }
    .user-chip b { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-chip small { font-size: 9px; }
    .avatar { width: 30px; height: 30px; }
    .logout-form .button { min-height: 32px; padding: 0 9px; font-size: 10px; }
    .page-content { padding: 24px 16px 20px; }
    .date-pill { display: none; }
    .content-grid, .management-grid, .settings-grid, .profile-grid { grid-template-columns: 1fr; }
    .team-tools-panel > .panel-heading { align-items: flex-start; }
    .demo-team-tools { align-items: flex-start; flex-direction: column; }
    .team-member-dialog { padding: 18px; }
    .green-api-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .green-api-qr-frame { height: min(360px, 85vw); }
    .member-progress-grid { grid-template-columns: 1fr; }
    .member-activity-panel { grid-column: auto; }
    .dashboard-team-tree { grid-column: auto; }
    .profile-hero { flex-wrap: wrap; gap: 14px; padding: 17px; }
    .profile-photo-large { width: 78px; height: 78px; }
    .profile-photo-placeholder { font-size: 29px; }
    .profile-member-since { width: 100%; margin-left: 0; padding: 11px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .booking-detail-grid { grid-template-columns: 1fr; }
    .approval-step { grid-template-columns: 28px minmax(0, 1fr); }
    .approval-step time { grid-column: 2; }
    .activity-panel { grid-column: auto; }
    .metric-grid { gap: 10px; }
    .metric-card { min-height: 115px; padding: 13px; }
    .metric-card strong { font-size: 25px; }
    .metric-card > small { font-size: 9px; }
    .mobile-bottom-nav { position: fixed; inset: auto 0 0; z-index: 10; display: flex; min-height: calc(62px + env(safe-area-inset-bottom)); align-items: stretch; gap: 2px; overflow-x: auto; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #dfe8e1; background: rgba(255,255,255,.97); box-shadow: 0 -5px 18px rgba(27, 55, 39, .08); overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .mobile-bottom-nav::-webkit-scrollbar { display: none; }
    .mobile-nav-link { display: flex; min-width: 62px; flex: 1 0 62px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 9px; color: #68786e; font-size: 9px; font-weight: 600; white-space: nowrap; }
    .mobile-nav-link svg { width: 20px; height: 20px; }
    .mobile-nav-link.active { background: #e8f4ec; color: #17613f; }
    .mobile-nav-link:focus-visible { outline: 2px solid #237b55; outline-offset: -2px; }
    .team-tree-children { margin-left: 12px; padding-left: 10px; }
    .team-tree-children > .team-tree-item::before { left: -11px; width: 10px; }
    .team-tree-card { padding: 11px; }
    .team-tree-stats, .team-tree-progress, .team-tree-pipeline, .team-tree-customer-status { margin-left: 0; }
}
@media (max-width: 410px) {
    .form-grid { grid-template-columns: 1fr; }
    .registration-form-panel { padding: 25px 20px; }
    .registration-form .registration-password, .registration-form > .button { grid-column: auto; }
    .team-member-form .full { grid-column: auto; }
    .form-grid .full, .form-grid h2 { grid-column: auto; }
    .login-card, .setup-card { padding: 25px 20px; }
    .page-heading h1 { font-size: 23px; }
    .mobile-bottom-nav { padding-right: 4px; padding-left: 4px; }
    .mobile-nav-link { min-width: 58px; flex-basis: 58px; font-size: 8px; }
    .topbar { padding-right: 10px; padding-left: 10px; }
    .logout-form .button { padding: 0 7px; }
}
@media (min-width: 761px) {
    .mobile-bottom-nav { display: none; }
}
