:root{
  --primary:var(--blue);
  --border:var(--line);
  --card:var(--panel);
  --cn-radius:14px;
  --cn-radius-sm:10px;
  --cn-shadow:0 8px 26px rgba(18,48,76,.07);
}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

html:not(.cn-mobile-mode) body{
  background:#f3f6f9;
}
html:not(.cn-mobile-mode) .topbar{
  height:76px;
  padding:0 28px;
  border-bottom-color:#dce5ed;
  box-shadow:0 1px 0 rgba(12,43,70,.03);
}
html:not(.cn-mobile-mode) .content{
  padding:25px 28px 40px;
}
html:not(.cn-mobile-mode) .content>.page-heading{
  align-items:center;
  min-height:48px;
  margin:0 2px 20px;
}
html:not(.cn-mobile-mode) .content>.page-heading h1{
  font-size:28px;
  line-height:1.1;
  letter-spacing:-.025em;
}
html:not(.cn-mobile-mode) .content>.page-heading p{
  max-width:760px;
  margin-top:6px;
  font-size:13px;
  line-height:1.45;
}

/* The shared heading above the view is the single page title. */
html:not(.cn-mobile-mode) .content>.view>.page-heading,
html:not(.cn-mobile-mode) .content>.view>.section-head.cn-head-only{
  display:none!important;
}
html:not(.cn-mobile-mode) .content>.view>.section-head.cn-view-action-strip{
  justify-content:flex-end;
  min-height:0;
  margin:-3px 0 16px;
  padding:0;
  border:0;
  background:transparent;
}
html:not(.cn-mobile-mode) .content>.view>.section-head.cn-view-action-strip>div:first-child{
  display:none;
}
html:not(.cn-mobile-mode) body:has(#projects.active.cn-project-open) .content>.page-heading{
  display:none;
}

html:not(.cn-mobile-mode) .card,
html:not(.cn-mobile-mode) .cnx-card{
  border-color:#dbe4ec;
  border-radius:var(--cn-radius);
  box-shadow:var(--cn-shadow);
}
html:not(.cn-mobile-mode) .card{
  padding:19px;
}
html:not(.cn-mobile-mode) .card h3,
html:not(.cn-mobile-mode) .cnx-card h3{
  margin-bottom:12px;
  color:var(--ink);
  font-size:15px;
  line-height:1.25;
  letter-spacing:-.01em;
  text-transform:none;
}
html:not(.cn-mobile-mode) .module-toolbar,
html:not(.cn-mobile-mode) .task-card-head,
html:not(.cn-mobile-mode) .section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
html:not(.cn-mobile-mode) .module-toolbar{
  margin-bottom:16px;
}
html:not(.cn-mobile-mode) .module-toolbar h3,
html:not(.cn-mobile-mode) .task-card-head h3,
html:not(.cn-mobile-mode) .section-head h2,
html:not(.cn-mobile-mode) .section-head h3{
  margin:0 0 4px;
  color:var(--ink);
  letter-spacing:-.015em;
  text-transform:none;
}
html:not(.cn-mobile-mode) .section-head h2{
  font-size:21px;
}
html:not(.cn-mobile-mode) .section-head h3{
  font-size:16px;
}
html:not(.cn-mobile-mode) .section-head p,
html:not(.cn-mobile-mode) .task-card-head p{
  margin:4px 0 0;
  color:var(--muted);
  line-height:1.45;
}

html:not(.cn-mobile-mode) .btn{
  min-height:38px;
  padding:9px 14px;
  border-color:#cfdbe5;
  border-radius:9px;
  box-shadow:0 1px 1px rgba(15,49,78,.02);
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
html:not(.cn-mobile-mode) .btn:hover{
  border-color:#abc2d5;
}
html:not(.cn-mobile-mode) .btn.primary,
html:not(.cn-mobile-mode) .btn.green{
  box-shadow:0 5px 14px rgba(16,89,146,.15);
}
html:not(.cn-mobile-mode) .btn:active{
  transform:translateY(1px);
}
html:not(.cn-mobile-mode) input,
html:not(.cn-mobile-mode) select,
html:not(.cn-mobile-mode) textarea{
  border-color:#cfdbe5;
  border-radius:9px;
  transition:border-color .16s ease,box-shadow .16s ease;
}
html:not(.cn-mobile-mode) input:focus,
html:not(.cn-mobile-mode) select:focus,
html:not(.cn-mobile-mode) textarea:focus{
  outline:0;
  border-color:#3f85bd;
  box-shadow:0 0 0 3px rgba(42,126,190,.12);
}
html:not(.cn-mobile-mode) .module-form{
  padding:16px;
  border-color:#dce6ee;
  border-radius:12px;
  background:#f8fbfd;
}

html:not(.cn-mobile-mode) .table-wrap{
  border:1px solid #e0e7ee;
  border-radius:12px;
  background:#fff;
}
html:not(.cn-mobile-mode) .table-wrap table{
  border-collapse:separate;
  border-spacing:0;
}
html:not(.cn-mobile-mode) .table-wrap th{
  padding:11px 12px;
  border-bottom:1px solid #dfe7ee;
  background:#f6f9fb;
  color:#4d6073;
  font-size:10px;
  letter-spacing:.065em;
}
html:not(.cn-mobile-mode) .table-wrap td{
  padding:13px 12px;
}
html:not(.cn-mobile-mode) .table-wrap tbody tr:last-child td{
  border-bottom:0;
}
html:not(.cn-mobile-mode) .table-wrap tbody tr:hover{
  background:#f7fbfe;
}
html:not(.cn-mobile-mode) .pill{
  padding:5px 9px;
  border-radius:999px;
}
html:not(.cn-mobile-mode) .task-tab,
html:not(.cn-mobile-mode) .cn-subtab{
  border-radius:999px;
}
html:not(.cn-mobile-mode) .stats{
  gap:16px;
}
html:not(.cn-mobile-mode) .stat{
  min-height:142px;
}
html:not(.cn-mobile-mode) .stat .value{
  letter-spacing:-.025em;
}

html:not(.cn-mobile-mode) .project-shell{
  border-radius:16px;
}
html:not(.cn-mobile-mode) #projects.cn-project-open .project-top{
  padding:20px 22px;
}
html:not(.cn-mobile-mode) #projects.cn-project-open .project-title{
  font-size:23px;
  letter-spacing:-.02em;
}
html:not(.cn-mobile-mode) #projects.cn-project-open .cn-project-command{
  padding:11px 18px;
}
html:not(.cn-mobile-mode) #projects.cn-project-open .cn-project-command-title{
  display:none;
}

@media(max-width:1100px){
  html:not(.cn-mobile-mode) .content{
    padding:22px 20px 36px;
  }
}

@media(max-width:760px){
  html.cn-mobile-mode .card{
    border-radius:14px;
  }
  html.cn-mobile-mode .table-wrap{
    border-radius:12px;
  }
}

@media print{
  .content>.view>.section-head.cn-head-only,
  .content>.view>.page-heading{
    display:none!important;
  }
}

/* -------------------------------------------------------------------------
   ConstructNav desktop workspace
   A deliberately stronger shell and surface system. Mobile field mode,
   Takeoff's drawing canvas, Estimating's workbook, and print layouts retain
   their purpose-built presentation.
   ------------------------------------------------------------------------- */
:root{
  --cn-shell:#eef3f7;
  --cn-shell-deep:#e7eef4;
  --cn-sidebar:#071a2e;
  --cn-sidebar-2:#0b2946;
  --cn-sidebar-line:rgba(190,215,236,.14);
  --cn-surface:#ffffff;
  --cn-surface-soft:#f7fafc;
  --cn-surface-blue:#f2f7fb;
  --cn-stroke:#d8e3ec;
  --cn-stroke-strong:#c6d5e2;
  --cn-heading:#0b2743;
  --cn-copy:#38516a;
  --cn-accent:#1f6fa7;
  --cn-accent-deep:#124c77;
  --cn-gold:#d7a541;
  --cn-gold-soft:#fff5dc;
  --cn-card-shadow:0 8px 24px rgba(15,45,72,.065);
  --cn-shell-shadow:0 16px 42px rgba(10,37,62,.08);
}

@media screen and (min-width:761px){
  html:not(.cn-mobile-mode),
  html:not(.cn-mobile-mode) body{
    background:var(--cn-shell);
  }
  html:not(.cn-mobile-mode) body{
    color:var(--cn-copy);
    font-size:14px;
    line-height:1.45;
  }

  /* Application frame and navigation. */
  html:not(.cn-mobile-mode) .app{
    grid-template-columns:240px minmax(0,1fr);
    background:
      radial-gradient(circle at 92% 0,rgba(37,111,165,.07),transparent 30%),
      linear-gradient(180deg,var(--cn-shell),var(--cn-shell-deep));
  }
  html:not(.cn-mobile-mode) body.cn-sidebar-collapsed .app{
    grid-template-columns:76px minmax(0,1fr)!important;
  }
  html:not(.cn-mobile-mode) main{
    min-width:0;
    background:transparent;
  }
  html:not(.cn-mobile-mode) aside{
    background:
      linear-gradient(180deg,rgba(255,255,255,.025),transparent 18%),
      linear-gradient(180deg,var(--cn-sidebar),var(--cn-sidebar-2) 64%,#071a2d);
    border-right:1px solid rgba(4,26,47,.7);
    box-shadow:10px 0 34px rgba(5,28,49,.12);
  }
  html:not(.cn-mobile-mode) .brand-box{
    height:88px;
    padding:10px 18px;
    justify-content:flex-start;
    background:rgba(3,20,37,.44);
    border-bottom:1px solid var(--cn-sidebar-line);
  }
  html:not(.cn-mobile-mode) .brand-box:after{
    content:"";
    position:absolute;
    right:18px;
    bottom:-1px;
    left:18px;
    height:2px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--cn-gold),rgba(215,165,65,0));
  }
  html:not(.cn-mobile-mode) .brand-box img{
    width:190px;
    max-width:calc(100% - 24px);
    height:67px;
    object-position:left center;
  }
  html:not(.cn-mobile-mode) nav{
    padding:18px 12px 22px;
    scrollbar-color:rgba(255,255,255,.2) transparent;
    scrollbar-width:thin;
  }
  html:not(.cn-mobile-mode) nav::-webkit-scrollbar{width:5px}
  html:not(.cn-mobile-mode) nav::-webkit-scrollbar-thumb{
    border-radius:999px;
    background:rgba(255,255,255,.18);
  }
  html:not(.cn-mobile-mode) .nav-label{
    margin:15px 8px 6px;
    padding:0;
    color:#8faec8;
    font-size:9px;
    font-weight:850;
    letter-spacing:.15em;
  }
  html:not(.cn-mobile-mode) .nav-label:first-child{margin-top:2px}
  html:not(.cn-mobile-mode) nav button{
    min-height:43px;
    gap:10px;
    margin:2px 0;
    padding:8px 10px;
    border:1px solid transparent;
    border-radius:10px;
    color:#dce8f3;
    font-size:13px;
    font-weight:680;
    letter-spacing:.005em;
  }
  html:not(.cn-mobile-mode) nav button:hover{
    border-color:rgba(185,211,232,.12);
    background:rgba(255,255,255,.065);
    color:#fff;
  }
  html:not(.cn-mobile-mode) nav button.active{
    border-color:rgba(216,229,240,.16);
    background:linear-gradient(90deg,rgba(255,255,255,.14),rgba(255,255,255,.075));
    color:#fff;
    box-shadow:inset 3px 0 0 var(--cn-gold),0 7px 18px rgba(0,0,0,.13);
  }
  html:not(.cn-mobile-mode) nav button .nav-ico{
    display:grid;
    flex:0 0 29px;
    width:29px;
    height:29px;
    place-items:center;
    border:1px solid rgba(200,220,237,.12);
    border-radius:8px;
    background:rgba(255,255,255,.055);
    color:#c6daeb;
    font-size:15px;
  }
  html:not(.cn-mobile-mode) nav button.active .nav-ico{
    border-color:rgba(215,165,65,.72);
    background:var(--cn-gold);
    color:#102942;
  }
  html:not(.cn-mobile-mode) nav button .chev{
    color:#87a8c4;
    font-size:10px;
  }
  html:not(.cn-mobile-mode) .side-bottom{
    padding:0 12px 13px;
  }
  html:not(.cn-mobile-mode) .side-watermark{
    height:58px;
    color:rgba(255,255,255,.08);
    font-size:52px;
  }
  html:not(.cn-mobile-mode) .company-chip{
    padding:11px 12px;
    border:1px solid var(--cn-sidebar-line);
    border-radius:10px;
    background:rgba(0,13,26,.25);
  }
  html:not(.cn-mobile-mode) .copyright{
    padding:13px 16px;
    border-top-color:var(--cn-sidebar-line);
    color:#88a8c3;
    font-size:10px;
  }

  /* Compact utility header. */
  html:not(.cn-mobile-mode) .topbar{
    height:64px;
    gap:12px;
    padding:0 24px;
    border-bottom:1px solid rgba(195,210,223,.88);
    background:rgba(255,255,255,.92);
    box-shadow:0 6px 20px rgba(18,48,74,.045);
    backdrop-filter:blur(14px);
  }
  html:not(.cn-mobile-mode) .menu-button{
    display:grid;
    width:38px;
    height:38px;
    flex:0 0 38px;
    padding:0;
    place-items:center;
    border:1px solid var(--cn-stroke);
    border-radius:10px;
    background:var(--cn-surface-soft);
    color:var(--cn-heading);
    font-size:18px;
  }
  html:not(.cn-mobile-mode) .menu-button:hover{
    border-color:#adc3d5;
    background:#edf5fb;
  }
  html:not(.cn-mobile-mode) .search-wrap{
    max-width:620px;
  }
  html:not(.cn-mobile-mode) .search-wrap:after{
    top:7px;
    right:14px;
    color:#6a8298;
    font-size:20px;
  }
  html:not(.cn-mobile-mode) .search{
    height:40px;
    padding:9px 42px 9px 15px;
    border:1px solid #ccd9e4;
    border-radius:11px;
    background:#f7fafc;
    box-shadow:inset 0 1px 2px rgba(10,39,64,.025);
  }
  html:not(.cn-mobile-mode) .search:focus{
    background:#fff;
  }
  html:not(.cn-mobile-mode) .top-actions{
    gap:8px;
  }
  html:not(.cn-mobile-mode) .top-actions .ai-nav-btn,
  html:not(.cn-mobile-mode) .top-actions .cn-record-meeting-btn,
  html:not(.cn-mobile-mode) .top-actions .cloud-btn{
    min-height:38px;
    padding:8px 11px;
    border-radius:10px;
    font-size:11px;
  }
  html:not(.cn-mobile-mode) .top-actions .ai-nav-btn{
    border-color:#1d527c;
    background:linear-gradient(135deg,#103d62,#17608f);
    color:#fff;
    box-shadow:0 5px 13px rgba(14,66,103,.16);
  }
  html:not(.cn-mobile-mode) .top-actions .ai-nav-btn:hover{
    background:linear-gradient(135deg,#0b3353,#145680);
  }
  html:not(.cn-mobile-mode) .top-actions .cloud-btn{
    border-color:#cfdae4;
    background:#fff;
  }
  html:not(.cn-mobile-mode) .top-actions .icon-btn{
    display:grid;
    width:36px;
    height:36px;
    padding:0;
    place-items:center;
    border:1px solid transparent;
    border-radius:10px;
    font-size:18px;
  }
  html:not(.cn-mobile-mode) .top-actions .icon-btn:hover{
    border-color:var(--cn-stroke);
    background:var(--cn-surface-soft);
  }
  html:not(.cn-mobile-mode) .avatar{
    width:36px;
    height:36px;
    background:linear-gradient(135deg,#103d62,#1d6d9f);
    box-shadow:0 0 0 3px #e9f0f6;
    font-size:12px;
  }
  html:not(.cn-mobile-mode) .user strong{font-size:12px}
  html:not(.cn-mobile-mode) .user small{font-size:10px}

  /* Content frame and the one page heading used across the application. */
  html:not(.cn-mobile-mode) .content{
    width:100%;
    max-width:1680px;
    margin:0 auto;
    padding:28px 34px 48px;
  }
  html:not(.cn-mobile-mode) .content>.page-heading{
    position:relative;
    min-height:104px;
    margin:0 0 24px;
    padding:21px 25px 21px 29px;
    overflow:hidden;
    align-items:center;
    border:1px solid #d2dfe9;
    border-radius:17px;
    background:
      linear-gradient(100deg,rgba(255,255,255,.99),rgba(248,251,253,.96)),
      var(--cn-surface);
    box-shadow:var(--cn-shell-shadow);
  }
  html:not(.cn-mobile-mode) .content>.page-heading:before{
    content:"";
    position:absolute;
    top:18px;
    bottom:18px;
    left:0;
    width:5px;
    border-radius:0 5px 5px 0;
    background:linear-gradient(180deg,var(--cn-gold),#bd8422);
  }
  html:not(.cn-mobile-mode) .content>.page-heading:after{
    content:"";
    position:absolute;
    top:-78px;
    right:-35px;
    width:210px;
    height:210px;
    border:36px solid rgba(31,111,167,.045);
    border-radius:50%;
    pointer-events:none;
  }
  html:not(.cn-mobile-mode) .content>.page-heading>div{
    position:relative;
    z-index:1;
  }
  html:not(.cn-mobile-mode) .content>.page-heading h1{
    color:var(--cn-heading);
    font-size:30px;
    font-weight:780;
    line-height:1.08;
    letter-spacing:-.035em;
  }
  html:not(.cn-mobile-mode) .content>.page-heading p{
    margin-top:7px;
    color:#657d92;
    font-size:13px;
    line-height:1.5;
  }
  html:not(.cn-mobile-mode) .content>.page-heading .actions{
    position:relative;
    z-index:1;
  }
  html:not(.cn-mobile-mode).cn-direct-view .content{
    padding-bottom:0;
  }
  html:not(.cn-mobile-mode).cn-direct-view main>.view.active{
    width:100%;
    max-width:1680px;
    margin:0 auto;
    padding:0 34px 48px;
  }
  html:not(.cn-mobile-mode) main>.view>.section-head.cn-head-only{
    display:none!important;
  }
  html:not(.cn-mobile-mode) main>.view>.section-head.cn-view-action-strip,
  html:not(.cn-mobile-mode) .content>.view>.section-head.cn-view-action-strip{
    min-height:0;
    margin:0 0 18px;
    padding:0;
    justify-content:flex-end;
    border:0;
    background:transparent;
  }
  html:not(.cn-mobile-mode) main>.view>.section-head.cn-view-action-strip>div:first-child,
  html:not(.cn-mobile-mode) .content>.view>.section-head.cn-view-action-strip>div:first-child{
    display:none;
  }

  /* Consistent, restrained surfaces for standard application views. */
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .grid{
    gap:20px;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .card,
  html:not(.cn-mobile-mode) main>.view .cnx-card{
    border:1px solid var(--cn-stroke);
    border-radius:15px;
    background:var(--cn-surface);
    box-shadow:var(--cn-card-shadow);
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .card{
    padding:21px;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .card>h3,
  html:not(.cn-mobile-mode) main>.view .cnx-card>h3{
    margin:0 0 14px;
    color:var(--cn-heading);
    font-size:15px;
    font-weight:780;
    letter-spacing:-.012em;
    text-transform:none;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .card>.muted{
    line-height:1.55;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .card>.task-card-head{
    margin:0 0 16px;
    padding:0 0 15px;
    border-bottom:1px solid #e5ebf0;
  }
  html:not(.cn-mobile-mode) #projects .project-shell,
  html:not(.cn-mobile-mode) #projects>.cn-project-list-card{
    padding:0;
    overflow:hidden;
  }

  /* Buttons, fields, and tables use one quiet interaction language. */
  html:not(.cn-mobile-mode) .btn{
    min-height:40px;
    padding:9px 14px;
    border:1px solid #cbd8e3;
    border-radius:9px;
    background:#fff;
    color:#173d5d;
    font-size:12px;
    font-weight:760;
    box-shadow:0 1px 2px rgba(14,43,68,.025);
  }
  html:not(.cn-mobile-mode) .btn:hover{
    border-color:#aebfd0;
    background:#f4f8fb;
  }
  html:not(.cn-mobile-mode) .btn.primary{
    border-color:var(--cn-accent-deep);
    background:linear-gradient(135deg,var(--cn-accent-deep),var(--cn-accent));
    color:#fff;
    box-shadow:0 7px 15px rgba(18,83,124,.16);
  }
  html:not(.cn-mobile-mode) .btn.primary:hover{
    background:linear-gradient(135deg,#0d4167,#1a6292);
  }
  html:not(.cn-mobile-mode) .btn.green{
    box-shadow:0 7px 15px rgba(23,121,82,.13);
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) label,
  html:not(.cn-mobile-mode) main>.view .cnx-form label{
    margin-bottom:7px;
    color:#526a80;
    font-size:10px;
    font-weight:820;
    letter-spacing:.035em;
    text-transform:uppercase;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) select,
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) textarea,
  html:not(.cn-mobile-mode) main>.view .cnx-form input,
  html:not(.cn-mobile-mode) main>.view .cnx-form select,
  html:not(.cn-mobile-mode) main>.view .cnx-form textarea{
    min-height:42px;
    padding:10px 11px;
    border:1px solid #cbd8e3;
    border-radius:9px;
    background:#fbfdfe;
    color:#243f58;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) textarea,
  html:not(.cn-mobile-mode) main>.view .cnx-form textarea{
    min-height:98px;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) input:hover,
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) select:hover,
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) textarea:hover{
    border-color:#afc2d2;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) input:focus,
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) select:focus,
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) textarea:focus,
  html:not(.cn-mobile-mode) main>.view .cnx-form input:focus,
  html:not(.cn-mobile-mode) main>.view .cnx-form select:focus,
  html:not(.cn-mobile-mode) main>.view .cnx-form textarea:focus{
    outline:0;
    border-color:#4387b8;
    background:#fff;
    box-shadow:0 0 0 3px rgba(38,120,176,.11);
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .form-grid{
    gap:16px;
  }
  html:not(.cn-mobile-mode) .field-note{
    margin-top:6px;
    color:#778a9d;
    line-height:1.45;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .table-wrap,
  html:not(.cn-mobile-mode) main>.view .table-wrap{
    overflow:auto;
    border:1px solid #dce5ed;
    border-radius:12px;
    background:#fff;
    box-shadow:none;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .table-wrap th,
  html:not(.cn-mobile-mode) main>.view .table-wrap th{
    padding:11px 13px;
    border-bottom:1px solid #d8e3ec;
    background:#f3f7fa;
    color:#536b80;
    font-size:9px;
    font-weight:850;
    letter-spacing:.075em;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .table-wrap td,
  html:not(.cn-mobile-mode) main>.view .table-wrap td{
    padding:13px;
    border-bottom-color:#e6edf2;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .table-wrap tbody tr:nth-child(even),
  html:not(.cn-mobile-mode) main>.view .table-wrap tbody tr:nth-child(even){
    background:#fbfcfd;
  }
  html:not(.cn-mobile-mode) .content>.view:not(#takeoff):not(#estimating) .table-wrap tbody tr:hover,
  html:not(.cn-mobile-mode) main>.view .table-wrap tbody tr:hover{
    background:#f0f7fc;
  }
  html:not(.cn-mobile-mode) .pill,
  html:not(.cn-mobile-mode) .cnx-status{
    border-radius:999px;
    font-size:10px;
    letter-spacing:.015em;
  }

  /* The Dashboard demonstrates the new hierarchy immediately. */
  html:not(.cn-mobile-mode) #dashboard .stats{
    gap:16px;
    margin-bottom:20px;
  }
  html:not(.cn-mobile-mode) #dashboard .stat{
    min-height:134px;
    padding:21px;
    overflow:hidden;
    background:
      linear-gradient(145deg,#fff 0%,#fff 67%,#f3f8fc 100%);
  }
  html:not(.cn-mobile-mode) #dashboard .stat:before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:3px;
    background:linear-gradient(90deg,var(--cn-accent),#78add1);
  }
  html:not(.cn-mobile-mode) #dashboard .stat .label{
    color:#61798f;
    font-size:10px;
    letter-spacing:.07em;
  }
  html:not(.cn-mobile-mode) #dashboard .stat .value{
    margin-top:9px;
    color:var(--cn-heading);
    font-size:29px;
    font-weight:800;
  }
  html:not(.cn-mobile-mode) #dashboard .stat-icon{
    top:21px;
    right:20px;
    width:45px;
    height:45px;
    border:1px solid #d6e4ef;
    border-radius:12px;
    background:#eef6fb;
    color:#1d6598;
    font-size:20px;
  }
  html:not(.cn-mobile-mode) #dashboard .dashboard-middle,
  html:not(.cn-mobile-mode) #dashboard .dashboard-bottom{
    margin-bottom:20px;
  }

  /* Settings is a clear control center, with the shared directory prominent. */
  html:not(.cn-mobile-mode) #settings>.grid.two{
    grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
    gap:20px;
  }
  html:not(.cn-mobile-mode) #settings>.grid.two>.card,
  html:not(.cn-mobile-mode) #cnAdvancedSettings>.card{
    position:relative;
    overflow:hidden;
    padding:22px;
  }
  html:not(.cn-mobile-mode) #settings>.grid.two>.card:before,
  html:not(.cn-mobile-mode) #cnAdvancedSettings>.card:before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:3px;
    background:#7aa7c7;
  }
  html:not(.cn-mobile-mode) #settings .cn-settings-options:before{
    background:var(--cn-gold);
  }
  html:not(.cn-mobile-mode) #settings .cn-settings-workflow:before{
    background:#479779;
  }
  html:not(.cn-mobile-mode) #settings .cn-settings-user-defaults:before{
    background:#7c72b9;
  }
  html:not(.cn-mobile-mode) #settings .cn-settings-directory:before{
    height:4px;
    background:linear-gradient(90deg,var(--cn-accent-deep),var(--cn-accent),var(--cn-gold));
  }
  html:not(.cn-mobile-mode) #settings .cn-danger-zone:before{
    background:#cf747a;
  }
  html:not(.cn-mobile-mode) #cnAdvancedSettings{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    margin-top:20px;
  }
  html:not(.cn-mobile-mode) #settings .cn-settings-directory{
    grid-column:1/-1;
  }
  html:not(.cn-mobile-mode) #settings .cn-settings-directory>.task-card-head{
    margin:-22px -22px 0;
    padding:21px 22px 18px;
    border-bottom:1px solid #dbe6ee;
    background:linear-gradient(110deg,#f2f8fc,#fff 62%);
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-actions{
    justify-content:flex-end;
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-tabs{
    display:inline-flex;
    margin:16px 0 14px;
    padding:4px;
    border:1px solid #d6e1ea;
    border-radius:11px;
    background:#edf3f7;
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-tab{
    min-height:36px;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-tab:hover{
    background:rgba(255,255,255,.68);
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-tab.active{
    background:#fff;
    color:var(--cn-heading);
    box-shadow:0 2px 8px rgba(18,52,79,.09),inset 0 -2px 0 var(--cn-accent);
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-tab.active span{
    background:#e5f0f7;
    color:#245f89;
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-row{
    min-height:67px;
    padding:12px 13px 12px 15px;
    border:1px solid #dce6ed;
    border-left:3px solid #74a3c4;
    border-radius:10px;
    background:#fbfdfe;
    transition:border-color .15s ease,background .15s ease,transform .15s ease;
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-row:hover{
    border-color:#b9cfde;
    border-left-color:var(--cn-accent);
    background:#f5faff;
    transform:translateY(-1px);
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-row strong{
    color:var(--cn-heading);
    font-size:13px;
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-row small{
    color:#72869a;
    line-height:1.4;
  }
  html:not(.cn-mobile-mode) #settings .cn-user-defaults small{
    display:block;
    margin-top:3px;
  }
}

@media screen and (min-width:761px) and (max-width:1220px){
  html:not(.cn-mobile-mode) .app{
    grid-template-columns:218px minmax(0,1fr);
  }
  html:not(.cn-mobile-mode) .brand-box{
    padding-inline:14px;
  }
  html:not(.cn-mobile-mode) .brand-box img{
    width:170px;
  }
  html:not(.cn-mobile-mode) nav button{
    padding-inline:8px;
  }
  html:not(.cn-mobile-mode) .content,
  html:not(.cn-mobile-mode).cn-direct-view main>.view.active{
    padding-right:24px;
    padding-left:24px;
  }
  html:not(.cn-mobile-mode) .top-actions{
    gap:5px;
  }
  html:not(.cn-mobile-mode) .top-actions .user,
  html:not(.cn-mobile-mode) .top-actions>span:last-child{
    display:none;
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-list{
    grid-template-columns:1fr;
  }
}

@media screen and (min-width:761px) and (max-width:980px){
  html:not(.cn-mobile-mode) #settings>.grid.two,
  html:not(.cn-mobile-mode) #cnAdvancedSettings{
    grid-template-columns:1fr;
  }
  html:not(.cn-mobile-mode) #settings .cn-settings-directory{
    grid-column:1;
  }
}

@media screen and (prefers-reduced-motion:reduce){
  html:not(.cn-mobile-mode) *,
  html:not(.cn-mobile-mode) *:before,
  html:not(.cn-mobile-mode) *:after{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}

@media screen and (min-width:761px){
  /* Keep branding at the true bottom when a legacy view lives after .content. */
  html:not(.cn-mobile-mode).cn-direct-view .content>.footer-brand,
  html:not(.cn-mobile-mode).cn-direct-view .content>.version{
    display:none!important;
  }

  /* Dashboard task cards are intentionally stacked inside narrow columns. */
  html:not(.cn-mobile-mode) #dashboard .dashboard-middle,
  html:not(.cn-mobile-mode) #dashboard .dashboard-bottom{
    align-items:start;
  }
  html:not(.cn-mobile-mode) #dashboard .task-item{
    grid-template:
      "check copy copy actions" auto
      ". priority due actions" auto
      / 24px minmax(0,1fr) auto 28px;
    gap:7px 9px;
    padding:13px 0;
  }
  html:not(.cn-mobile-mode) #dashboard .task-item>.task-check{grid-area:check}
  html:not(.cn-mobile-mode) #dashboard .task-item>div:nth-child(2){
    grid-area:copy;
    min-width:0;
  }
  html:not(.cn-mobile-mode) #dashboard .task-item>div:nth-child(2)>strong{
    font-size:12px;
    line-height:1.35;
  }
  html:not(.cn-mobile-mode) #dashboard .task-item>div:nth-child(2)>small{
    display:block;
    margin-top:3px;
    overflow:hidden;
    line-height:1.35;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  html:not(.cn-mobile-mode) #dashboard .task-item>.priority{
    grid-area:priority;
    justify-self:start;
  }
  html:not(.cn-mobile-mode) #dashboard .task-item>.due{
    grid-area:due;
    justify-self:end;
  }
  html:not(.cn-mobile-mode) #dashboard .task-item>.task-actions{
    grid-area:actions;
    align-self:center;
  }

  html:not(.cn-mobile-mode) #settings>.grid.two{
    align-items:start;
  }
  html:not(.cn-mobile-mode) #settings .cn-user-defaults input,
  html:not(.cn-mobile-mode) #settings .cn-user-defaults select{
    padding-right:7px;
    padding-left:7px;
    font-size:12px;
  }
  html:not(.cn-mobile-mode) #settings .cn-directory-delete::before{
    content:"Remove";
    font-size:10px;
    font-weight:800;
  }
}
