.history-page .overview{align-items:center;margin-bottom:26px}.back-link{display:inline-block;font-size:11px;color:#74877b;margin-bottom:24px}.history-page .overview h1{font-size:32px}.history-page .overview .eyebrow{font-size:10px}.customer-hero{padding:25px 27px;display:flex;align-items:center;gap:18px;border:1px solid #dce7dc;background:linear-gradient(120deg,#eff5ec,#f7f9f4);border-radius:12px;margin-bottom:25px}.hero-avatar{width:63px;height:63px;flex:none;border-radius:17px;display:grid;place-items:center;background:#dfeacd;border:4px solid #ffffff9c;color:#476647;font:700 22px var(--display)}.hero-identity{min-width:0}.hero-identity h2{font:700 21px/1.4 var(--display);margin:5px 0;overflow-wrap:anywhere;color:#2b4939}.hero-identity p{font-size:11px;color:#7d8f7e;margin:0}.hero-tags{display:flex;gap:9px;align-items:center;font-size:10px;color:#688165}.hero-tags>span:last-child{background:#e2eddd;padding:3px 7px;border-radius:4px;color:#55734d}.hero-owner{margin-left:auto;padding:0 16px;min-width:0}.hero-owner>span{font-size:8px;letter-spacing:.9px;color:#80917b;display:block;margin-bottom:8px}.hero-owner strong{font-size:12px;font-weight:600;color:#4d684e;overflow-wrap:anywhere}.customer-hero>.secondary-button{background:#ffffffa6;white-space:nowrap;font-size:11px}.history-layout{display:grid;grid-template-columns:265px minmax(0,1fr);gap:24px;align-items:start}.history-aside{display:grid;gap:20px}.contact-card{padding:23px 24px}.small-heading{display:flex;align-items:center;gap:9px}.small-heading .icon{color:#729277;width:16px;height:16px}.small-heading h2{font:650 13px var(--display);margin:0}.contact-card dl{margin:24px 0}.contact-card dt{font-size:10px;color:#84918a;margin-top:19px}.contact-card dd{font-size:12px;line-height:1.5;color:#405848;margin:6px 0 0;overflow-wrap:anywhere}.contact-card dd a:hover{text-decoration:underline}.switch-client{padding-top:16px;border-top:1px solid #e7ece4;display:flex;justify-content:space-between;color:#60825f;font-size:11px}.relationship-card{padding:24px;border:1px solid #e3e8de;border-radius:12px;background:#f0f3e9}.relationship-card>.eyebrow{font-size:8px;letter-spacing:1.3px;color:#7a8d68}.relationship-counts{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.relationship-counts>div{display:flex;flex-direction:column;gap:7px}.relationship-counts strong{font:650 30px var(--display);color:#476040;letter-spacing:-1px}.relationship-counts span{font-size:10px;line-height:1.5;color:#7b8b70}.last-contact{border-top:1px solid #dce3d3;padding-top:18px;display:flex;gap:11px;align-items:center;color:#79926b}.last-contact .icon{width:19px;height:19px}.last-contact span{font-size:10px}.last-contact strong{display:block;font-size:11px;font-weight:600;color:#526e47;margin-top:5px}.relationship-card>p{font-size:9px;line-height:1.7;color:#86947c;margin:18px 0 0}.history-help{padding:6px 12px}.history-help>.icon{color:#8fa078;margin-bottom:13px}.history-help h3{font:650 12px var(--display);line-height:1.5;color:#657659;margin:0 0 9px}.history-help p{font-size:11px;line-height:1.8;color:#899382;margin:0}.timeline-card{overflow:hidden}.timeline-heading{padding:25px 27px 20px;display:flex;justify-content:space-between;gap:10px;align-items:center}.timeline-heading h2{font:700 16px var(--display);margin:0;display:flex;gap:9px;align-items:center}.timeline-heading p{font-size:10px;color:#8a978e;margin:8px 0 0}.timeline-heading p span{padding:0 5px;color:#b1bbad}.timeline-filters{padding:0 27px 21px;border-bottom:1px solid #e8ece6}.timeline-filters .search-control{background:#fafcf9;padding:11px 13px}.filter-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-top:14px}.filter-row .field>span,.period-fields .field>span{font-size:10px;color:#7e8c81}.filter-row .field select{font-size:11px;min-height:37px;padding:8px;max-width:100%}.filter-row .secondary-button{font-size:11px;min-height:37px;padding:8px 11px}.period-fields{display:flex;align-items:end;gap:13px;margin-top:15px}.period-fields input{font-size:11px}.period-fields .field{flex:1}.text-button{border:0;background:transparent;padding:12px 0;font:500 11px var(--sans);color:#528568;text-decoration:underline;white-space:nowrap}.timeline-feed{padding:4px 27px 0}.day-group{padding:22px 0 0}.day-heading{font-size:10px;color:#7d8d79;font-weight:600;display:flex;align-items:center;gap:12px;margin:0 0 20px}.day-heading span{background:#f3f6ef;border:1px solid #e9eee4;border-radius:5px;padding:5px 10px;white-space:nowrap}.day-heading::after{content:'';height:1px;background:#eaf0e4;flex:1}.timeline-entry{position:relative;padding:0 0 23px 46px;min-height:64px}.timeline-entry::before{content:'';position:absolute;left:15px;top:30px;bottom:0;width:1px;background:#e3eadd}.day-group .timeline-entry:last-child::before{bottom:12px}.event-icon{position:absolute;top:0;left:0;width:32px;height:32px;border-radius:10px;background:#edf4e7;color:#6a9253;display:grid;place-items:center;border:1px solid #e4edde;z-index:1}.event-icon .icon{width:15px;height:15px}.timeline-entry[data-category=deal] .event-icon{background:#f8f2e7;color:#b3985d;border-color:#f0e6d0}.timeline-entry[data-category=customer] .event-icon{background:#f0f3f1;color:#8a9a92;border-color:#e6ebe7}.timeline-entry[data-kind=email] .event-icon{background:#ecf1f8;color:#718eaf;border-color:#e0e9f4}.timeline-entry[data-kind=call] .event-icon{background:#eef0f9;color:#8e8bb1;border-color:#e4e5f2}.timeline-entry[data-kind=note] .event-icon{background:#f7f3e9;color:#ac965c;border-color:#eee6d4}.event-top{display:flex;gap:12px;align-items:center;min-height:27px}.event-type{font-size:9px;font-weight:500;padding:3px 7px;border-radius:4px;background:#f4f6f1;color:#839075}.event-time{font-size:10px;color:#93a088;margin-left:auto;white-space:nowrap}.timeline-entry h3{font:650 13px/1.6 var(--display);margin:4px 0 6px;color:#344e3e;overflow-wrap:anywhere}.event-body{font-size:12px;color:#778575;line-height:1.8;margin:6px 0 10px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:155px;overflow:hidden}.event-body.expanded{max-height:none}.expand-body{display:inline-block;border:0;background:transparent;color:#5e865f;padding:0 0 7px;font-size:10px;text-decoration:underline}.event-result{font-size:11px;line-height:1.6;border-left:2px solid #c4d7b3;background:#f8faf5;padding:8px 11px;color:#7c8c70;margin-bottom:11px;overflow-wrap:anywhere}.event-result strong{font-weight:600;color:#698059}.event-author{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:10px;line-height:1.5;color:#94a08b}.author-dot{width:18px;height:18px;display:grid;place-items:center;font-size:8px;border-radius:50%;background:#edf1e7;color:#82946f}.event-author .recorded-at{font-size:9px;color:#a0ac99}.deal-caption{font-size:11px;color:#a68e60;margin:5px 0 8px;overflow-wrap:anywhere}.legacy-note{font-size:10px;line-height:1.6;padding:8px 10px;background:#fbf7ef;color:#a08d6d;margin-bottom:10px}.timeline-footer{padding:17px 27px 24px;border-top:1px solid #edf1e9;display:flex;flex-direction:column;align-items:center;gap:14px;color:#9aa48f;font-size:10px}.timeline-footer button{font-size:11px;min-width:240px}.timeline-status{text-align:center;padding:25px;font-size:12px;color:#7e8e71}.timeline-status h3{font:650 15px var(--display);color:#617456}.timeline-status p{font-size:12px;line-height:1.7}.timeline-card>.message{margin:20px 27px}.picker{padding:28px;max-width:850px}.picker h2{font:650 18px var(--display);margin:0}.picker>p{font-size:12px;color:#899581;line-height:1.6;margin-bottom:22px}.picker-client{display:flex;gap:12px;align-items:center;padding:18px 4px;border-bottom:1px solid #edf1e7}.picker-client:hover{background:#f7f9f3}.picker-client strong{display:block;font-size:13px;color:#4a6440}.picker-client small{display:block;font-size:11px;color:#8e9b84;margin-top:5px}.picker-client>span:last-child{margin-left:auto;color:#759264}.picker-pages{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#87987b;margin-top:20px}.history-page #interaction-dialog{width:640px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 30px 90px #18352330}.history-page dialog::backdrop{background:#102c246b;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:25px 28px;border-bottom:1px solid #e6ece2}.dialog-heading .eyebrow{font-size:9px;color:#8a9c7b}.dialog-heading h2{font:700 22px var(--display);margin:8px 0}.dialog-heading p{font-size:12px;color:#84967a;margin:0;overflow-wrap:anywhere}.dialog-heading .icon-button{font-size:25px}.interaction-fields{padding:20px 28px}.registration-note{font-size:11px;color:#8a9784;line-height:1.6;margin:0}.interaction-fields .message{margin:18px 0 0}.interaction-fields .form-grid{gap:16px}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e7ede2;padding:20px 28px;background:#fbfcf9}.dialog-footer>span{font-size:10px;color:#96a18d}.history-page #discard-prompt p{margin:0 0 12px}.history-page #discard-prompt>div{display:flex;gap:8px;flex-wrap:wrap}.history-page :focus-visible{outline:2px solid #80a987;outline-offset:3px}
@media(min-width:1500px){.history-layout{grid-template-columns:285px minmax(0,1fr)}.timeline-heading,.timeline-filters,.timeline-footer{padding-left:32px;padding-right:32px}.timeline-feed{padding-left:32px;padding-right:32px}}
@media(max-width:1150px){.history-layout{grid-template-columns:220px minmax(0,1fr);gap:18px}.hero-owner{display:none}.customer-hero>.secondary-button{margin-left:auto}.contact-card,.relationship-card{padding:20px}.timeline-heading,.timeline-filters,.timeline-footer{padding-left:20px;padding-right:20px}.timeline-feed{padding-left:20px;padding-right:20px}.filter-row{gap:8px}.filter-row .secondary-button{padding:8px}.filter-row .secondary-button .icon{display:none}}
@media(max-width:760px){.history-page .overview{align-items:stretch;gap:18px}.history-page .overview h1{font-size:29px}.history-page .overview>.primary-button{align-self:flex-start}.history-page .subtitle{font-size:12px;line-height:1.7}.back-link{margin-bottom:20px}.customer-hero{padding:18px;gap:13px;flex-wrap:wrap}.hero-avatar{width:51px;height:51px;font-size:17px;border-radius:13px}.hero-identity{flex:1}.hero-identity h2{font-size:18px}.customer-hero>.secondary-button{margin-left:64px;min-height:33px;padding:7px 11px;font-size:10px}.history-layout{grid-template-columns:1fr}.history-aside{grid-template-columns:1fr 1fr;gap:12px}.contact-card,.relationship-card{padding:17px}.contact-card dl{margin:15px 0}.contact-card dt{margin-top:12px;font-size:9px}.contact-card dd{font-size:11px}.small-heading h2{font-size:11px;line-height:1.5}.small-heading .icon{display:none}.relationship-card>.eyebrow{font-size:7px;line-height:1.5;display:block}.relationship-counts{gap:10px;margin:18px 0}.relationship-counts strong{font-size:26px}.relationship-counts span{font-size:9px}.last-contact{align-items:flex-start}.last-contact>.icon{display:none}.last-contact strong{line-height:1.5;font-size:10px}.relationship-card>p{font-size:8px}.history-help{display:none}.timeline-heading{padding:22px 18px 18px}.timeline-heading h2{font-size:14px;gap:7px}.timeline-filters{padding:0 18px 18px}.filter-row{grid-template-columns:1fr 1fr}.filter-row>button{grid-column:1/-1;justify-self:start;min-height:31px;font-size:10px}.timeline-feed{padding:0 18px}.timeline-entry{padding-left:42px}.event-top{gap:5px}.event-type{font-size:8px}.event-time{font-size:9px}.timeline-entry h3{font-size:12px}.event-body{font-size:11px}.event-author{font-size:9px}.event-author .recorded-at{width:100%;padding-left:25px}.period-fields{flex-wrap:wrap}.period-fields>.field{min-width:110px}.history-page .shared-badge{display:none}.dialog-heading{padding:21px}.interaction-fields{padding:18px 21px}.dialog-footer{padding:17px 21px}.dialog-footer>span{max-width:95px;line-height:1.6}.dialog-heading h2{font-size:20px}.picker{padding:21px}.picker h2{font-size:16px;line-height:1.5}.history-page .page-footer{line-height:1.6}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:760px){.customer-hero{display:grid;grid-template-columns:51px minmax(0,1fr)}.customer-hero>.secondary-button{grid-column:2;margin:0;justify-self:start}.hero-identity{width:100%}.last-contact strong{overflow-wrap:anywhere}}
