/* HGTC visual system: navy navigation, clear surfaces, restrained blue and teal. */
@media screen {
  :root {
    --navy:#1756b8; --ink:#192b40; --muted:#586c80; --blue:#215fb7;
    --line:#e2e8ef; --canvas:#f3f5f9; --surface:#fff; --radius:16px;
    --rail:#102238; --rail-muted:#9eb0c5; --teal:#147563;
    --shadow:0 3px 16px rgba(22,43,72,.035);
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  body{background:var(--canvas)}
  .sidebar{width:236px;padding:0;background:var(--rail);border:0;overflow:hidden;color:#e3eaf2}
  .brand{flex-shrink:0;min-height:94px;padding:26px 23px;gap:13px;color:#fff;font-size:24px;letter-spacing:1.2px}
  .brand-mark{width:40px;height:42px;border:1px solid #3c607e;border-radius:12px;background:#20415e;color:#fff;box-shadow:inset 0 1px 0 #52718b}
  .brand-sub{color:var(--rail-muted);font-size:10px;letter-spacing:.6px;margin-top:1px}
  .sidebar nav{flex:1;overflow-y:auto;padding:0 13px 16px;scrollbar-width:thin;scrollbar-color:#38516a transparent;min-height:0}
  .nav-group{margin-bottom:20px}
  .nav-label{font-size:9px;letter-spacing:1.6px;color:#95a9c0;padding:0 12px 8px;font-weight:600}
  .nav-link{position:relative;color:#c3d0df;min-height:40px;padding:10px 12px;font-size:12px;border-radius:8px;gap:11px;margin:3px 0;transition:background .15s,color .15s}
  .nav-link svg{width:18px;height:18px;opacity:.86}
  .nav-link:hover{color:#fff;background:#1d344d}
  .nav-link.active{color:#fff;background:#235c92;box-shadow:inset 3px 0 0 #8bcdff;font-weight:600}
  .nav-link.active svg{opacity:1}
  .nav-link b{background:#28445f;color:#dbeafd;border-radius:6px;font-size:10px;min-width:21px;padding:2px 5px}
  .nav-link.active b{background:#3b74a6;color:white}
  .sidebar-foot{flex-shrink:0;padding:17px 23px 20px;margin:0;background:#102238;border-top:1px solid #2a3f56;color:#bccbdc;font-size:11px}
  .sidebar-foot small{color:#9eafc4;font-size:10px;margin-top:5px}
  .sidebar-foot .status-dot{background:#5cd0ad;box-shadow:0 0 0 3px #21493f}
  .main-shell{margin-left:236px;width:calc(100% - 236px)}
  .topbar{height:78px;padding:0 34px;background:#fff;border-bottom:1px solid #e2e8ef}
  .breadcrumb{display:flex;align-items:center;gap:11px;font-size:12px;color:#536b80}
  .breadcrumb svg{width:17px;height:17px;color:#7691a8}
  .breadcrumb span{margin:0;color:#a8b6c4}
  .top-actions{gap:16px}
  .top-guide{border:0;background:#f0f4f9;color:#48617a;padding:9px 12px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:550;min-height:38px}
  .top-guide:hover{background:#e6eef8;color:#1b56a0}
  .top-guide svg{width:16px;height:16px}
  .notification{background:#f4f7fb;border:1px solid #e5ebf2;border-radius:10px;padding:8px;min-height:38px;gap:6px;color:#536b82}
  .notification span{color:#245d9f;background:#e1ecfa}
  .user-switch{border-left:1px solid #e4eaf1;padding-left:18px;gap:10px}
  .avatar{background:#e7edf9;color:#355b96;box-shadow:inset 0 0 0 1px #d8e1f1;font-weight:650}
  .user-switch small{font-size:9px;letter-spacing:.2px;color:#526c82;margin-bottom:2px}
  .user-switch select{font-size:12px;font-weight:650}
  main{padding:32px 34px 48px;max-width:1700px}
  h1{font-size:30px;letter-spacing:-.9px;font-weight:650;color:#172b42}
  .page-heading{margin:2px 0 26px;align-items:center;gap:20px}
  .eyebrow{display:flex;align-items:center;gap:7px;font-size:9px;color:#526d85;letter-spacing:1.5px;font-weight:650;margin-bottom:10px}
  .eyebrow:before{content:'';width:5px;height:5px;background:#4286c7;border-radius:2px}
  .subtitle{font-size:13px;color:#586e83;line-height:1.7;max-width:760px}
  .btn{border-radius:9px;min-height:39px;font-weight:600;font-size:12px;padding:9px 14px;transition:background .15s,box-shadow .15s,color .15s}
  .btn.primary{background:#1f5fbc;border:1px solid #1f5fbc;box-shadow:0 2px 3px #123e8215;color:white}
  .btn.primary:hover{background:#174d9c;border-color:#174d9c;box-shadow:0 4px 10px #15417c24}
  .btn.secondary{background:#fff;border:1px solid #d7e1eb;color:#405d77;box-shadow:0 1px 2px #203a5610}
  .btn.secondary:hover{background:#f4f8fd;border-color:#b4c9df}
  .btn.quiet{color:#2462a4}
  .btn.danger{color:#a73c42;background:#fff2f2;border-color:#e7c8ca}
  .btn:disabled{box-shadow:none;opacity:.5}
  a,button,input,select,textarea{touch-action:manipulation}
  :focus-visible{outline:3px solid #5199e4;outline-offset:3px}
  input,select,textarea{border:1px solid #c9d6e3;background:#fff;border-radius:9px;color:#253f58}
  input::placeholder,textarea::placeholder{color:#72859a}
  input:focus,select:focus,textarea:focus{border-color:#6d9ece}
  .panel{border-color:#e0e7f0;border-radius:var(--radius);box-shadow:var(--shadow);background:#fff;margin-bottom:22px}
  .panel-head{padding:19px 22px;border-bottom:1px solid #e9edf4;min-height:62px}
  .panel-head h2{font-size:14px;letter-spacing:-.15px;font-weight:650;color:#253c54}
  .panel-head .text-link{font-size:11px;font-weight:600}
  .panel-note{background:#f8fafc;color:#60768a;border-top:1px solid #e9edf4;font-size:12px;line-height:1.65}
  .text-link{color:#245f9f}
  .text-link:hover{color:#174780}
  .columns{gap:22px}
  .columns.wide-left{grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr)}
  th{background:#f8fafd;font-size:9px;letter-spacing:.8px;color:#526a82;padding:14px 18px;border-color:#e5ecf4;font-weight:650}
  td{padding:17px 18px;font-size:12px;border-color:#edf1f7;color:#3c5369}
  td:first-child{color:#223e59}
  td .text-link{font-weight:600}
  td small{font-size:10px;color:#5c7288}
  tbody tr:hover{background:#f6f9fd}
  .badge{padding:5px 8px;border-radius:6px;font-size:10px;font-weight:600;border:1px solid transparent}
  .badge.green{background:#eaf6f0;border-color:#d1eadd;color:#17684e}
  .badge.blue{background:#edf3fe;border-color:#dce8fb;color:#2b5da0}
  .badge.amber{background:#fff6e5;border-color:#f1e3c2;color:#875c18}
  .badge.neutral{background:#f0f4f8;border-color:#e1e8ef;color:#50667b}
  .segmented{background:#e7edf4;border-radius:10px;border:1px solid #e0e7ef;padding:3px;gap:3px}
  .segmented .btn{border-radius:7px;color:#556e85;font-size:11px;padding:7px 12px}
  .segmented .selected{background:#fff;color:#24568d;box-shadow:0 1px 5px #1d3e5b14}
  .toolbar{margin-bottom:22px;gap:14px}
  #search{padding-left:14px;box-shadow:0 1px 2px #19354d05}
  .progress-label{color:#586f83;font-size:10px}
  progress{height:5px;background:#e9eff5}
  progress::-webkit-progress-bar{background:#e9eff5}
  progress::-webkit-progress-value{background:#4b8cc6}
  .empty{padding:38px 24px}
  .empty-icon{width:48px;height:48px;color:#507c9f;background:#edf4fa;border:1px solid #dce8f3;border-radius:14px}
  .empty h3{font-size:15px;color:#334f68}
  .empty p{font-size:12px;color:#687d91;line-height:1.7}
  .notice{border-radius:11px;border-color:#d9e7f5;background:#f0f6fd;line-height:1.7;color:#3f6284}
  .notice.subtle{background:#eef3f8;border-color:#e0e8f0;color:#5b738b}
  .notice.error{background:#fff1f0;border-color:#ecc9c7;color:#913b35}
  /* Overview */
  .dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
  .stat-card{--stat:#2a65ae;--stat-bg:#eaf2fd;display:block;background:#fff;border:1px solid #e0e7f0;border-radius:15px;padding:19px 20px;box-shadow:var(--shadow);position:relative;transition:border-color .16s,box-shadow .16s}
  .stat-card:hover{border-color:#adc6df;box-shadow:0 7px 24px #254d7910}
  .stat-card.teal{--stat:#17795f;--stat-bg:#e7f5ee}
  .stat-card.amber{--stat:#92681c;--stat-bg:#fff4df}
  .stat-card.slate{--stat:#5a6884;--stat-bg:#edf0f7}
  .stat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#60748a;font-size:11px;font-weight:550}
  .stat-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--stat-bg);color:var(--stat);flex-shrink:0}
  .stat-icon svg{width:18px;height:18px}
  .stat-number{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin:12px 0 10px}
  .stat-number strong{font-size:34px;font-weight:600;line-height:1;letter-spacing:-1px;color:#1c3650;font-variant-numeric:tabular-nums}
  .stat-number .stat-arrow{font-size:18px;color:#7890a7}
  .stat-card>small{font-size:10px;color:#536e86;display:block}
  .dashboard-split{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:22px;align-items:start}
  .dashboard-split>*{min-width:0}
  .queue-count{font-size:10px;background:#eaf1fb;color:#2c639f;border-radius:6px;padding:4px 7px;font-weight:600;margin-left:7px}
  .work-row{padding:18px 22px;gap:13px;border-bottom:1px solid #edf1f7;min-height:77px}
  .work-row strong{font-size:12px;line-height:1.6;color:#304c65;font-weight:600}
  .work-row small{font-size:10px;color:#5b7288;line-height:1.6}
  .work-symbol{border:1px solid #e2eaf3;background:#f0f5fb;color:#4e7a9f;border-radius:10px;width:36px;height:36px;flex-shrink:0}
  .work-owner{font-size:10px;max-width:125px;color:#567086;min-width:85px}
  .work-row>span:last-child{color:#8399ad}
  .work-row:hover{background:#f7fafe}
  .queue-footer{padding:13px 22px;border-top:1px solid #e9edf4;background:#fbfcfe;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#60788d}
  .overview-side{display:grid;gap:18px}
  .demo-card{background:#173654;border:1px solid #254e70;border-radius:16px;color:#fff;padding:23px;box-shadow:0 6px 18px #19375210;position:relative;overflow:hidden}
  .demo-card-kicker{font-size:9px;color:#a4cce9;letter-spacing:1.4px;display:flex;align-items:center;gap:9px;font-weight:600}
  .demo-card-kicker svg{width:16px;height:16px}
  .demo-card h2{color:#fff;font-size:23px;font-weight:550;letter-spacing:-.6px;line-height:1.3;margin:17px 0 12px;max-width:230px}
  .demo-card p{color:#c0d1e1;font-size:12px;line-height:1.8;margin-bottom:18px}
  .demo-card .btn{background:#fff;border:1px solid #fff;color:#194670;min-height:42px;width:100%;box-shadow:none}
  .demo-card .btn:hover{background:#e7f1fb}
  .demo-path{display:flex;align-items:center;gap:9px;margin:20px 0;color:#759ab8}
  .demo-path span{display:grid;place-items:center;width:34px;height:34px;border:1px solid #426280;background:#244967;border-radius:9px;color:#c7e1f6}
  .demo-path svg{width:16px;height:16px}
  .intake-card{background:#eaf5f2;border:1px solid #d3e8df;border-radius:14px;padding:18px 21px}
  .intake-card-top{display:flex;align-items:center;gap:12px}
  .intake-card-top>.stat-icon{background:#d7eee5;color:#24795f}
  .intake-card h3{color:#275e50;font-size:13px;margin:0 0 3px}
  .intake-card small{color:#426a5b;font-size:10px}
  .intake-card .text-link{display:block;margin-top:15px;color:#1b6d56;font-size:11px;font-weight:650}
  .sales-snapshot{margin-top:24px}
  .sales-snapshot .panel-head{border-bottom:0;padding-bottom:10px}
  .snapshot-title small{display:block;margin-top:4px;font-size:10px;color:#607387}
  .snapshot-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:12px 22px 24px}
  .snapshot-stage{--stage:#698bac;display:block;position:relative;background:#f7f9fc;border:1px solid #e6edf4;border-top:3px solid var(--stage);border-radius:9px;padding:12px 14px}
  .snapshot-stage:nth-child(2){--stage:#ca9e43}.snapshot-stage:nth-child(3){--stage:#4f8ac8}.snapshot-stage:nth-child(4){--stage:#3e9676}.snapshot-stage:nth-child(5){--stage:#a77a83}
  .snapshot-stage small{display:block;font-size:10px;color:#506b83;margin-bottom:6px}
  .snapshot-stage strong{font-size:23px;line-height:1.2;color:#294962;font-weight:550;font-variant-numeric:tabular-nums}
  .snapshot-stage:hover{background:#edf4fb}
  .dashboard-heading-tools{display:flex;gap:8px;align-items:center}
  /* Sales boards and customer records */
  .crm-summary{border-color:#dee7f1;border-radius:12px;box-shadow:var(--shadow);padding:18px 22px}
  .crm-summary>span{display:flex;align-items:center;gap:7px;font-size:11px}
  .crm-summary strong{font-size:15px;font-weight:650;color:#294969}
  .crm-board,.board{gap:16px}
  .board-column{--stage:#7590aa;background:#edf1f7;border:1px solid #e0e7f0;border-radius:13px;padding:13px;min-height:190px;border-top:3px solid var(--stage)}
  .board-column:nth-child(2){--stage:#c59b43}.board-column:nth-child(3){--stage:#528acb}.board-column:nth-child(4){--stage:#3e9272}.board-column:nth-child(5){--stage:#ad7c85}
  .board-column>h2{font-size:9px;letter-spacing:.8px;align-items:center;padding:3px 2px 6px;color:#556f88;min-height:25px}
  .board-column>h2>span{border:1px solid #d9e3ee;background:#fff;border-radius:5px;padding:1px 6px;font-size:10px;color:#496984}
  .case-card{box-shadow:0 2px 5px #304f7410;border:1px solid #dde6f1;border-radius:10px;transition:box-shadow .16s,border-color .16s}
  .case-card:hover{border-color:#9fbedb;box-shadow:0 5px 16px #244a7412}
  .case-card h3{font-size:13px;line-height:1.65;letter-spacing:-.1px}
  .case-card>small{font-size:9px;letter-spacing:.35px;color:#5d748a}
  .case-card p{font-size:11px;line-height:1.7}
  .opportunity-value{font-size:18px;color:#284e70;font-weight:600;letter-spacing:-.4px}
  .crm-next{background:#f0f6fc;border-left:2px solid #8ab3d8;border-radius:7px;padding:11px}
  .crm-next small{font-size:10px}
  .crm-contact-item{padding:20px 22px}
  .customer-info{background:#fafcfe}
  .back-link{font-size:11px;margin-bottom:21px}
  .case-summary{border-radius:14px;padding:20px 24px;border-color:#dde6f0;box-shadow:var(--shadow);position:relative;overflow:hidden}
  .case-summary:before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:#5a90c9}
  .case-summary small{color:#5d7288;font-size:9px;letter-spacing:.3px}
  .case-summary strong{font-size:12px;color:#324f69}
  .next-step{background:#f0f6fb;padding:24px;border-top:3px solid #8db3d4}
  .next-step>strong{font-size:14px;color:#285d87;margin-bottom:20px}
  .next-step h3{font-size:18px;letter-spacing:-.3px}
  .next-step small{color:#527797;font-weight:650}
  .timeline{padding:24px 26px}
  .timeline>div{padding-left:23px;border-color:#dce7f3}
  .timeline-dot{width:9px;height:9px;left:-5px;background:#6c9ec9;border:2px solid #fff;box-shadow:0 0 0 1px #cadff0}
  .timeline strong{font-size:12px;color:#365773}
  .timeline p{font-size:12px;line-height:1.75;color:#5a748c}
  .timeline .text-link{font-size:11px;display:inline-block;margin-top:6px}
  .audit-list strong{color:#45637c}
  /* Inbox and workflow */
  .message{border-color:#dce5ef;border-radius:14px;box-shadow:var(--shadow);padding:24px;transition:border-color .16s}
  .message:hover{border-color:#abc4dc}
  .message-avatar{background:#e9f1fb;border:1px solid #d6e5f5;border-radius:12px;color:#376c9e;width:42px;height:42px}
  .message-meta{font-size:11px;color:#5c7389}
  .message h2{font-size:15px;line-height:1.5;color:#244461;letter-spacing:-.2px}
  .message p{font-size:12px;line-height:1.8;color:#526e85}
  .message-footer{border-top:1px solid #edf1f6;padding-top:16px;margin-top:19px}
  .message-footer .badge{font-size:9px;margin-right:4px}
  .automation-preview{background:#edf7f2;border-color:#d3e9df;padding:20px 22px}
  .journey-step{border-radius:14px;box-shadow:var(--shadow);border-color:#dde6ef;border-top:3px solid #93b4d3;padding:24px;position:relative}
  .journey-step:nth-child(2){border-top-color:#a3b3ce}.journey-step:nth-child(3){border-top-color:#d2b575}.journey-step:nth-child(4){border-top-color:#8ab5ce}.journey-step:nth-child(5){border-top-color:#7bbda7}.journey-step:nth-child(6){border-top-color:#78a795}
  .journey-step h2{font-size:19px;letter-spacing:-.4px;color:#294963}
  .journey-step strong{color:#356d96;font-size:11px}
  .journey-step .step-no{background:#ecf3fa;color:#3b6c93;border:1px solid #d8e6f2;font-size:11px}
  .journey-step p{font-size:12px;line-height:1.8;color:#607a8f}
  .approval-flow>div{background:#f1f6fb;border:1px solid #dde8f3;color:#365c7b}
  .approval-flow small{color:#5e7c93}
  .approval>span{width:32px;height:32px;background:#f0f5fb;border-color:#d9e5f2;color:#657e96}
  .approval.current>span{background:#e9f2fe;border:2px solid #679bce;color:#2b669e;box-shadow:0 0 0 4px #edf4fc}
  .approval.done>span{background:#e4f5ec;border-color:#93c5ac;color:#207251}
  .approval small{color:#5c7288}
  .quote-total{background:#f8fafd;border-top:1px solid #e9eef5;padding:20px 24px}
  .quote-total strong{color:#234e76;font-weight:650}
  .payment-summary>strong{font-size:30px;color:#254d72}
  /* Sheets, guides and interaction details */
  .modal{border-radius:17px;box-shadow:0 24px 100px #122f5340;border:1px solid #dae5ef}
  .modal-head{padding:21px 26px;background:#f9fbfe;border-color:#e2eaf4}
  .modal-head h2{font-size:19px;color:#274963}
  .modal-body{padding:25px 26px}
  .modal-foot{background:#f9fbfd;border-color:#e4ebf3}
  .modal::backdrop{background:#0d243d70;backdrop-filter:blur(5px)}
  .field>span{font-size:12px;color:#425e76}
  .form-intro{font-size:12px;color:#5f7890}
  .quote-line{padding:14px;background:#f5f8fc;border:1px solid #e5ecf5;border-radius:10px}
  .form-error{background:#fff2f1;color:#93392f;border-color:#e7c4c0}
  .close-button{color:#658097;border-radius:8px}
  .close-button:hover{background:#eaf1f8}
  .toast{background:#173e60;border:1px solid #35627f;box-shadow:0 6px 24px #15375226;font-size:12px}
  .presenter-script{background:#eff5fc;border-left-color:#5285bc;color:#2d5274;line-height:1.9;font-size:15px}
  .walkthrough-step .step-no{background:#edf4fc;border:1px solid #d8e6f5;color:#326796}
  .walkthrough-outcome{background:#eff6fc!important;border:1px solid #e0ebf5}
  .walkthrough-flow{background:#eaf1f9;border:1px solid #dbe6f2;color:#355e85}
  .workspace-footer{padding:8px 34px 24px;color:#71869a;font-size:10px}
}

@media screen and (max-width:1200px){
  .sidebar{width:218px}.main-shell{margin-left:218px;width:calc(100% - 218px)}
  .brand{padding-left:21px}.topbar{padding:0 26px}main{padding:28px 26px 44px}
  .stat-card{padding:17px 16px}.dashboard-metrics{gap:12px}.stat-head{font-size:10px}.stat-icon{width:30px;height:30px}.stat-number strong{font-size:31px}
  .dashboard-split{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:18px}
  .work-row{padding:16px 18px}.work-owner{display:none}.work-row small{font-size:10px}
  .snapshot-steps{gap:8px;padding:12px 18px 20px}.snapshot-stage{padding:11px}.snapshot-stage small{font-size:9px}
  .demo-card{padding:21px}.demo-card h2{font-size:22px}
}
@media screen and (max-width:1050px){
  .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-split{grid-template-columns:1fr}
  .overview-side{grid-template-columns:1.35fr 1fr;align-items:start}.demo-path{margin:14px 0}.demo-card h2{max-width:none;font-size:21px}
  .columns.wide-left{grid-template-columns:1fr}.top-guide{display:none}
}
@media screen and (max-width:900px){
  .sidebar{width:270px;padding:0 0 calc(70px + env(safe-area-inset-bottom));height:100dvh}
  .sidebar nav{padding-bottom:12px}.sidebar-foot{padding:16px 23px}.brand{min-height:89px;padding:24px}
  .nav-link{font-size:13px;min-height:44px}.nav-label{font-size:10px}.nav-link svg{width:19px;height:19px}
  .main-shell{margin:0;width:100%}.topbar{padding:8px 16px;height:70px;background:#ffffffed;backdrop-filter:blur(16px)}
  .breadcrumb{display:none}.menu-toggle{display:flex;align-items:center;justify-content:center;color:#2f5577;min-width:44px;min-height:44px}.menu-toggle svg{width:22px;height:22px}
  .top-actions{gap:10px}.user-switch{padding-left:10px;border-left:1px solid #e4eaf2;gap:8px}.user-switch select{font-size:12px;max-width:173px}.user-switch small{font-size:9px}
  .notification{min-width:38px;min-height:40px;padding:7px}.user-switch .avatar{width:31px;height:31px}
  main{padding:24px 18px 32px}.page-heading{gap:16px;margin-bottom:23px;align-items:flex-start}h1{font-size:28px;letter-spacing:-.8px}
  .subtitle{font-size:13px;line-height:1.75}.eyebrow{font-size:9px;letter-spacing:1.2px}.page-heading>.actions{width:100%}
  .dashboard-heading-tools{width:100%}.dashboard-heading-tools .btn{flex:1}
  .btn{min-height:44px;font-size:12px;padding:10px 13px}.btn.quiet{min-height:44px}
  .dashboard-metrics{gap:10px;margin-bottom:20px}.stat-card{padding:16px 14px;border-radius:13px}.stat-head{align-items:flex-start;font-size:11px;gap:6px;line-height:1.5}.stat-icon{width:27px;height:27px;border-radius:8px}.stat-icon svg{width:15px;height:15px}.stat-number{margin:14px 0 8px}.stat-number strong{font-size:30px}.stat-card>small{font-size:10px;line-height:1.6}.stat-arrow{display:none}
  .overview-side{grid-template-columns:1fr}.dashboard-split{gap:0}.demo-card{padding:23px}.demo-card h2{font-size:24px;max-width:240px}.demo-card p{font-size:13px}.demo-card .btn{min-height:44px}.demo-path{margin:20px 0}
  .intake-card{padding:20px}.intake-card .text-link{min-height:34px;display:flex;align-items:center}
  .sales-snapshot{margin-top:20px}.snapshot-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 16px 20px}.snapshot-stage{padding:10px}.snapshot-stage small{font-size:10px;min-height:30px;line-height:1.5}.snapshot-stage strong{font-size:23px}
  .panel-head{padding:18px;gap:12px}.panel-head h2{font-size:15px}.panel-head .text-link{font-size:11px;min-height:28px;display:flex;align-items:center}
  .work-symbol{display:grid;width:30px;height:30px}.work-symbol svg{width:15px;height:15px}.work-row{padding:17px 16px;gap:11px;min-height:80px}.work-row strong{font-size:12px}.work-row small{font-size:11px}.queue-footer{padding:13px 17px;font-size:11px;flex-wrap:wrap}
  .panel{border-radius:14px;margin-bottom:20px}.empty{padding:32px 20px}.empty p{font-size:12px}
  tbody tr{padding:17px 18px}td{padding:7px 0;font-size:12px}td:first-child{padding-bottom:12px;font-size:14px}td:before{font-size:10px;color:#586f84}td .btn{min-height:44px}td small{font-size:10px}
  .toolbar{gap:13px}.segmented .btn{min-height:40px;font-size:11px;padding:8px 11px}#search{font-size:14px;min-height:44px}
  .message{padding:20px 18px;border-radius:13px}.message h2{font-size:15px}.message p{font-size:13px;line-height:1.8}.message-meta{font-size:10px}.message-footer{padding-top:15px}.message-footer .btn{min-height:44px;font-size:12px}.message-footer .badge{font-size:10px}
  .case-summary{padding:20px;gap:20px}.case-summary small{font-size:10px}.case-summary strong{font-size:12px}
  .board-column{padding:13px;min-height:130px}.board-column>h2{font-size:10px}.case-card h3{font-size:14px}.case-card p{font-size:12px}.crm-board .btn{font-size:12px;min-height:44px}.crm-summary{padding:18px}.crm-summary>span{font-size:12px}
  .modal,.modal.wide{border:0;border-radius:20px 20px 0 0}.modal-head{padding:16px 18px}.modal-body{padding:20px 18px}.modal-foot{padding:15px 18px calc(15px + env(safe-area-inset-bottom))}.field input,.field select,.field textarea{font-size:16px;min-height:46px}.close-button{min-width:44px;min-height:44px}
  .quote-line{padding:13px}.quote-total{padding:20px}.quote-total strong{font-size:22px}.presenter-script{font-size:14px;padding:22px;line-height:1.9}
  .mobile-tabs{background:#fffffff2;border-top:1px solid #dce7f2;box-shadow:0 -4px 20px #24466506;padding:9px 6px calc(9px + env(safe-area-inset-bottom))}
  .mobile-tabs a,.mobile-tabs button{color:#536e86;font-size:10px;min-width:55px;min-height:44px;border-radius:9px;padding:3px 5px;gap:3px}
  .mobile-tabs [aria-current=page]{background:#eaf2fd;color:#215ead}.mobile-tabs svg{width:20px;height:20px}
  .workspace-footer{padding:16px 18px 110px;font-size:9px;line-height:1.7}.toast{font-size:12px}
}
@media screen and (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

@media screen{.work-row small.action-owner{display:none}}@media screen and (max-width:1200px){.work-row small.action-owner{display:block;color:#4e718c;margin-top:7px}}

@media screen and (max-width:900px){.dashboard-heading-tools{align-items:stretch}.dashboard-heading-tools .btn{font-size:11px;white-space:nowrap;min-height:46px;padding:10px}.dashboard-heading-tools .btn span[aria-hidden]{display:none}}

@media screen{.modal{overflow:hidden}.modal form{max-height:calc(90dvh - 2px)}}@media screen and (max-width:900px){.modal form{max-height:94dvh}}

@media screen{
 .user-switch select{max-width:315px;font-size:11px}.user-switch{min-width:0}.person{overflow-wrap:anywhere}.work-owner{max-width:200px}
 .inline-help{padding:16px 22px;background:#f5f8fc;border:1px solid #e1e9f2;border-radius:10px;margin:14px 0;font-size:12px;line-height:1.8}.inline-help summary{color:#315e84;font-weight:600}.inline-help p{margin:12px 0 0;color:#4c6982}.inline-help.panel{margin-bottom:22px}.inline-help .details{padding:16px 0;grid-template-columns:160px 1fr}
 .supplier-quote{padding:20px 22px;border-bottom:1px solid var(--line)}.supplier-quote:last-child{border:0}.supplier-quote-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.supplier-quote h3{font-size:14px;margin:0 0 6px}.supplier-quote small{font-size:11px}.supplier-quote p{font-size:12px;color:var(--muted);margin:14px 0}.supplier-prices{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;background:#f5f9fc;padding:15px;border-radius:9px;margin:16px 0}.supplier-prices strong{font-size:14px;display:block;margin-top:5px}.supplier-quote .badge{white-space:normal}
 .order-flow-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:22px}.order-flow-step{border:1px solid #dce6f0;background:#f5f8fc;border-radius:10px;padding:14px}.order-flow-step>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e3ebf5;color:#446d94;font-size:12px;margin-bottom:10px}.order-flow-step strong{display:block;font-size:12px;line-height:1.5}.order-flow-step small{display:block;font-size:10px;line-height:1.7;margin-top:5px}.order-flow-step.complete{background:#eff8f3;border-color:#cce4d7}.order-flow-step.complete>span{background:#cfe9db;color:#1b6b4c}.followup-alert{background:#fff6e5;border-color:#e9d5a7;color:#76561a}.followup-alert p{font-size:12px;margin:6px 0 10px}.payment-summary>small{display:block;line-height:1.8}.payment-summary p{line-height:1.8}.overview-side .guide h3{font-size:16px;overflow-wrap:anywhere}
}
@media screen and (max-width:1100px){.order-flow-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.supplier-prices{grid-template-columns:1fr 1fr}.supplier-quote-head{flex-wrap:wrap}}
@media screen and (max-width:900px){.user-switch>.avatar{display:none}.user-switch select{max-width:210px;font-size:11px}.top-actions{gap:5px}.user-switch{padding-left:6px}.topbar{gap:6px}.inline-help{padding:16px}.inline-help .details{grid-template-columns:1fr}.supplier-quote{padding:18px}.supplier-prices{grid-template-columns:1fr;gap:12px}.order-flow-steps{grid-template-columns:1fr;gap:9px;padding:18px}.order-flow-step{display:grid;grid-template-columns:28px 1fr;gap:0 12px;padding:13px}.order-flow-step>span{grid-row:1/3;margin:0}.order-flow-step small{grid-column:2}.person{font-size:11px}}

@media screen{.overview-side>.panel:only-child{grid-column:1/-1}}

@media screen{
 .quotation-followup{padding:20px 22px;background:#f2f7fd;border-top:1px solid #dbe8f5;display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;justify-content:space-between}.quotation-followup>div:first-child{flex:1;min-width:230px}.quotation-followup h3{margin:0 0 8px;font-size:15px}.quotation-followup p{font-size:12px;line-height:1.7;color:#496b86;margin:5px 0}.saved-followup-draft{background:white;border:1px solid #dbe6f1;border-radius:8px;padding:12px;margin-top:12px}.saved-followup-draft p,.message-draft p{white-space:pre-wrap}.message-draft{min-width:140px}.message-draft p{font-size:12px;line-height:1.7;margin:10px 0}
 .followup-popup{position:fixed;right:24px;bottom:24px;width:410px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow:auto;background:white;border:1px solid #d1dfee;border-radius:16px;box-shadow:0 12px 65px #173a6733;z-index:200}.followup-popup-head{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line);background:#f2f7fd}.followup-popup-head>div{flex:1}.followup-popup-head small{font-size:9px;color:#456f94;letter-spacing:1px}.followup-popup-head h2{font-size:16px;margin-top:3px}.followup-popup-head .close-button{min-width:36px;min-height:36px;padding:0;border:0;font-size:24px;background:transparent}.followup-popup-item{padding:18px 20px;border-bottom:1px solid var(--line)}.followup-popup-item>strong{font-size:13px;display:block}.followup-popup-item>small{display:block;margin-top:5px;font-size:11px;color:#8b5d13}.followup-popup-item p{font-size:12px;line-height:1.7;color:#567089;margin:10px 0}.followup-popup-draft{background:#f3f7fb;padding:12px;border-radius:8px;white-space:pre-wrap}.followup-popup-foot{padding:15px 20px;font-size:12px}.followup-popup-foot small{display:block;font-size:10px;margin-top:7px}.print-preview #followup-popup-root{display:none}
}
@media screen and (max-width:900px){.followup-popup{right:12px;bottom:calc(78px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px);max-height:calc(100dvh - 165px);width:410px}.followup-popup .btn{min-height:44px}.quotation-followup{padding:18px}.quotation-followup>div:first-child{min-width:0;width:100%}.quotation-followup .actions{width:100%}}
@media print{#followup-popup-root{display:none!important}}

@media screen and (max-width:900px){.followup-popup{width:min(410px,calc(100% - 24px));max-width:none}}

@media screen{.outside-step{margin:12px 0;padding:12px 15px;border:1px solid #eadcbd;background:#fff9ec;border-radius:8px;color:#725a2d;font-size:12px;line-height:1.8}.outside-step strong{display:block;margin-bottom:4px}}

@media screen{.finance-highlight{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#edf5ff;border:1px solid #c8dcf2}.finance-highlight p{margin:5px 0 0;font-size:12px}.finance-route{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:17px 22px;background:#f2f6fc;border-bottom:1px solid var(--line);color:#668099;font-size:11px}.finance-route span{background:white;border:1px solid #dce7f3;border-radius:7px;padding:6px 9px;color:#3a6489;font-weight:550}.finance-handover .finance-unsent{margin:18px 22px}.finance-unsent p{margin:6px 0 0}.queue-intro{margin:18px 22px}.po-finance-option{background:#eef6ff;border:1px solid #d2e3f6;border-radius:9px;padding:16px}.po-finance-option p{font-size:12px;color:#516e89;line-height:1.7;margin:10px 0 0}.finance-handover{scroll-margin-top:20px}}
@media screen and (max-width:900px){.finance-highlight{align-items:flex-start;flex-direction:column;gap:14px}.finance-route{padding:15px;gap:7px;font-size:10px}.finance-handover .finance-unsent{margin:16px}.finance-handover{scroll-margin-top:85px}}

@media screen{.topbar{position:sticky;top:0;z-index:20}.finance-handover{scroll-margin-top:96px}}
.demo-space-banner{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#edf3ff;color:#153c78;padding:13px 17px;border-radius:12px;margin-bottom:22px;font-size:13px}.demo-space-banner strong{font-size:15px}.demo-space-banner a{margin-left:auto;font-weight:600}.management-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:20px}.management-grid a{display:flex;flex-direction:column;gap:9px;padding:14px;background:#f5f8fc;border-radius:12px;text-decoration:none;color:#25415e}.management-grid strong{font-size:25px;color:#153759}.management-grid span{font-size:13px;line-height:1.5}.deadline-alert{border-left:4px solid #c78918;background:#fff8e9}.duplicate-hint{margin:12px 0;background:#fff6e8}.duplicate-hint p{margin:5px 0}.badge.red{background:#fff0ee;color:#a52f29}@media(max-width:760px){.management-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.demo-space-banner{gap:7px}.demo-space-banner a{margin-left:0}.demo-space-banner span{width:100%}}
.field[hidden]{display:none!important}
/* Product attribution stays quiet and separate from the customer workspace. */
@media screen {
  .product-signature{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:0 0 auto;padding-left:16px;border-left:1px solid #e6ebf0;gap:0}
  .product-signature small{font-size:9px;line-height:1.3;font-weight:500;letter-spacing:.15px;color:#6b7d8e}
  .product-signature img{display:block;width:112px;height:24px;object-fit:cover;object-position:center}
  .topbar .breadcrumb{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media screen and (max-width:900px){
  .top-actions{gap:7px;min-width:0}
  .product-signature{padding-left:5px;border-left:0}
  .product-signature small{font-size:8px}
  .product-signature img{width:82px;height:20px}
  .user-switch select{max-width:clamp(90px,calc(100vw - 250px),210px)}
  .user-switch{min-width:0}
}
