/* Atlas Home extends the existing navy / teal estimate workspace. */
:root { --sidebar: 272px; }
textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid #eea65f; outline-offset: 3px; }
.sidebar { overflow-y: auto; }
.sidebar .brand-lockup strong { font-size: 16px; letter-spacing: .09em; }
.sidebar .brand-lockup small { font-size: 12px; }
.main-nav { gap: 5px; margin-top: 30px; margin-bottom: 24px; }
.nav-label { margin: 12px 12px 7px; font-size: 12px; letter-spacing: .075em; color: #b2cbd6; }
.nav-item { font-size: 14px; line-height: 1.5; padding: 11px 12px; }
.nav-icon { flex-shrink: 0; font-size: 12px; min-width: 28px; text-align: center; }
.estimate-subnav { display: grid; gap: 2px; padding: 3px 0 7px 44px; }
.estimate-tab { padding: 9px 7px; text-align: left; color: #c2d7df; background: none; border: 0; border-left: 2px solid #356075; font-size: 14px; }
.estimate-tab.active { color: #fff; border-color: #e6a062; background: #ffffff0c; }
.license-mini b, .license-mini small { font-size: 12px; }
.topbar { min-height: 78px; height: auto; padding-block: 12px; gap: 12px; }
.topbar .crumb { font-size: 12px; letter-spacing: .05em; }
.topbar .button, .save-state { font-size: 14px; }
.topbar #go-summary { display: none; }
.atlas-login-photo { width: 100%; height: 100%; min-height: 100vh; object-fit: cover; }
.activation-visual::before, .activation-visual::after { display: none; }
.atlas-login-caption { position: absolute; inset: auto 0 0; padding: 70px 44px 42px; color: white; background: linear-gradient(transparent,#092a3ce6); }
.atlas-login-caption span { font-size: 12px; letter-spacing: .15em; }
.atlas-login-caption strong { display: block; font-size: clamp(26px,3vw,44px); line-height: 1.22; margin-top: 15px; }
.activation-copy h1 { line-height: 1.18; }
.activation-copy p, .activation-note { font-size: 16px; }
.portal-view { padding: 32px; max-width: 1510px; }
.portal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.portal-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--teal-dark); margin-bottom: 10px; }
.portal-head h1 { font-size: clamp(27px,3vw,38px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.035em; }
.portal-head p { color: #526a77; font-size: 16px; line-height: 1.6; margin: 0; max-width: 760px; }
.portal-view h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.portal-view h3 { font-size: 18px; line-height: 1.4; }
.portal-view p, .portal-view li { font-size: 16px; line-height: 1.7; }
.portal-view .button, .portal-view label, .portal-view input, .portal-view select, .portal-view textarea, .portal-view .text-button { font-size: 14px; }
.portal-view .button { min-height: 42px; line-height: 1.5; }
.portal-view label { display: grid; gap: 6px; font-weight: 600; color: #355263; }
.portal-view input, .portal-view select, .portal-view textarea { width: 100%; margin: 0; padding: 11px 12px; border: 1px solid #c7d6dd; border-radius: 7px; background: white; color: var(--ink); min-width: 0; line-height: 1.5; }
.portal-view textarea { min-height: 96px; resize: vertical; }
.portal-view small { font-size: 12px; line-height: 1.5; }
.portal-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.portal-toolbar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 24px; }
.portal-toolbar > label { flex: 1; min-width: 200px; }
.portal-toolbar > label:first-child { flex: 2; }
.portal-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.portal-muted { color: #5c7280; }
.portal-pill { display: inline-block; padding: 5px 10px; border: 1px solid #c8dddf; color: var(--teal-dark); border-radius: 5px; font-size: 12px; font-weight: 700; background: #eff8f7; }
.portal-pill.warn { background: #fff4e8; border-color: #e8c59f; color: #925418; }
.portal-pill.neutral { background: #f1f5f7; border-color: #d3dfe5; color: #4c6270; }
.handbook-feature { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 14px; background: var(--navy); color: white; margin-bottom: 28px; }
.handbook-feature .feature-copy { padding: 30px; align-self: center; }
.handbook-feature h2 { font-size: clamp(23px,2.5vw,30px); margin: 14px 0 12px; }
.handbook-feature p { color: #d8e8ef; font-size: 16px; line-height: 1.65; margin-bottom: 22px; }
.handbook-feature img { width: 100%; height: 100%; max-height: 320px; min-height: 250px; object-fit: cover; }
.handbook-feature .portal-kicker { color: #a5dfd7; }
.handbook-feature .button { background: white; color: var(--navy); border-color: white; }
.handbook-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.article-card { display: flex; flex-direction: column; min-height: 253px; border-top: 3px solid #0e807c; }
.article-card h2 { font-size: 20px; margin: 13px 0 10px; }
.article-card p { color: #5c7280; margin: 0 0 20px; font-size: 15px; }
.article-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.article-reader { max-width: 880px; margin: 0 auto; }
.article-reader h1 { font-size: clamp(28px,3vw,40px); line-height: 1.23; margin: 18px 0; }
.article-reader .article-intro { font-size: 19px; color: #526d7c; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.article-reader section { margin: 27px 0; }
.article-reader section h2 { font-size: 21px; margin-bottom: 10px; }
.article-reader section p { margin: 0; }
.article-source { border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px !important; }
.article-source a { color: var(--teal-dark); }
.portal-empty { padding: 28px; text-align: center; border: 1px dashed #b8cbd5; border-radius: 10px; background: #f8fbfc; color: #526d7c; }
.portal-empty strong { display: block; font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.portal-note { background: #edf4f8; border-left: 3px solid #517f99; padding: 14px 16px; margin: 20px 0; font-size: 14px !important; line-height: 1.7; }
.portal-note.warn { background: #fff6eb; border-color: #d29443; }
.portal-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }
.portal-grid .side-panel { position: sticky; top: 101px; }
.portal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 20px 0; }
.portal-fields .full-width { grid-column: 1 / -1; }
.check-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 24px 0 12px; }
.check-tabs button { padding: 10px 13px; background: #fff; border: 1px solid #cbd9df; border-radius: 6px; color: var(--navy); font-size: 14px; }
.check-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.check-row { border-bottom: 1px solid var(--line); padding: 20px 0; }
.check-row:first-child { padding-top: 6px; }
.check-row-head { display: grid; grid-template-columns: 30px 1fr 148px; gap: 13px; align-items: start; }
.check-row-head .check-no { color: #6e8795; padding-top: 11px; font-size: 14px; }
.check-row-head label { padding-top: 8px; font-weight: 500; line-height: 1.6; font-size: 16px; }
.check-row .check-note { margin: 10px 0 0 43px; width: calc(100% - 43px); min-height: 40px; font-size: 14px; }
.check-row [data-status='issue'] { border-color: #c58336; color: #86490c; background: #fff6ea; }
.check-row [data-status='pass'] { border-color: #80b9b3; color: #006a64; background: #edf8f6; }
.check-totals { display: grid; gap: 13px; margin-top: 20px; }
.check-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.check-totals strong { font-size: 22px; }
.portal-progress { height: 8px; background: #e5edf1; border-radius: 9px; overflow: hidden; margin-top: 18px; }
.portal-progress span { display: block; height: 100%; background: var(--teal); transition: width .2s; }
.portal-inline-status { min-height: 24px; font-size: 14px; color: var(--teal-dark); }
.portal-inline-status.error { color: #af3030; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.file-row-name { min-width: 0; flex: 1; }
.file-row-name strong { font-size: 14px; display: block; overflow-wrap: anywhere; }
.file-row small { color: #617b89; }
.file-row .text-button { font-size: 14px; white-space: nowrap; }
.drawing-preview { margin-top: 18px; border: 1px solid #ccd9e0; background: #f1f5f7; border-radius: 8px; overflow: hidden; }
.drawing-preview img { max-width: 100%; max-height: 600px; display: block; margin: auto; object-fit: contain; }
.drawing-preview iframe { width: 100%; height: 600px; border: 0; }
.drawing-preview .preview-head { display: flex; gap: 12px; justify-content: space-between; padding: 12px; background: #fff; align-items: center; }
.chat-frame { display: flex; flex-direction: column; min-height: 550px; }
.chat-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.chat-header h2 { margin: 0 0 7px; font-size: 18px; }
.chat-log { min-height: 265px; max-height: 540px; overflow-y: auto; padding: 20px 0; display: flex; flex-direction: column; gap: 17px; }
.chat-message { max-width: 88%; align-self: start; background: #eef4f7; border-radius: 0 13px 13px 13px; padding: 14px 17px; }
.chat-message.customer { align-self: end; background: #e3f3ef; border-radius: 13px 0 13px 13px; }
.chat-message strong { font-size: 13px; }
.chat-message p { margin: 7px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message small { color: #5d7785; }
.chat-compose { border-top: 1px solid var(--line); padding-top: 17px; margin-top: auto; }
.chat-compose textarea { background: #fafcfd; }
.chat-compose .portal-row { margin-top: 12px; justify-content: space-between; }
.chat-topics { display: grid; gap: 9px; margin: 15px 0; }
.chat-topics button { text-align: left; background: #f5f9fa; border: 1px solid #d3e0e5; border-radius: 7px; padding: 13px; color: var(--navy); font-size: 14px; line-height: 1.5; }
.process-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 24px; align-items: start; }
.process-list { display: grid; gap: 4px; }
.stage-button { display: grid; grid-template-columns: 36px 1fr; gap: 13px; align-items: center; padding: 17px 13px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--navy); text-align: left; }
.stage-button > b { font-size: 17px; color: #5e7d8e; }
.stage-button strong { display: block; font-size: 15px; line-height: 1.45; }
.stage-button small { color: #5b7786; margin-top: 4px; display: block; }
.stage-button.active { background: #fff; border-color: #b7d0d9; box-shadow: 0 3px 12px #12364d07; }
.stage-button.active > b { color: var(--teal); }
.stage-content { border-top: 4px solid var(--teal); }
.stage-content h2 { font-size: 27px; margin: 16px 0; }
.stage-content li { margin-bottom: 11px; padding-left: 6px; }
.stage-meta { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 25px; }
.stage-meta strong { display: block; margin-bottom: 8px; }
.stage-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 24px; }
.portal-admin .admin-topbar { gap: 15px; flex-wrap: wrap; }
.portal-admin-main { max-width: 1350px; margin: auto; padding: 28px; }
.expert-admin-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 22px; }
.thread-button { display: block; text-align: left; width: 100%; background: white; padding: 16px; border: 1px solid #d1dfe5; border-radius: 8px; margin-bottom: 10px; color: var(--navy); }
.thread-button strong, .thread-button span { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.thread-button span { font-size: 14px; margin: 5px 0; color: #607887; }
.thread-button.active { border-color: var(--teal); background: #ecf7f4; }
.admin-connect-row { display: flex; gap: 14px; align-items: end; margin-bottom: 22px; flex-wrap: wrap; }
.admin-connect-row label { flex: 1; max-width: 400px; }
.admin-connect-row input { background: #fff; }
.portal-print-root { display: none; }
@media(max-width:1200px) { .handbook-grid { grid-template-columns: 1fr 1fr; } .portal-grid { grid-template-columns: minmax(0,1fr) 250px; } .portal-view { padding: 25px; } .topbar { flex-wrap: wrap; } .top-actions { gap: 6px; } .process-layout { grid-template-columns: 290px minmax(0,1fr); } }
@media(max-width:1000px) { .portal-grid { grid-template-columns: 1fr; } .portal-grid .side-panel { position: static; } .check-totals { grid-template-columns: repeat(2,1fr); } .process-layout { grid-template-columns: 1fr; } .process-list { grid-template-columns: 1fr 1fr; } .handbook-feature { grid-template-columns: 1fr; } .handbook-feature img { height: 230px; min-height: 0; grid-row: 1; } }
@media(max-width:760px) { .portal-view { padding: 22px 16px; } .handbook-grid, .portal-fields, .stage-controls { grid-template-columns: 1fr; } .portal-head { align-items: start; flex-direction: column; gap: 14px; } .portal-card { padding: 19px; } .check-row-head { grid-template-columns: 25px 1fr; gap: 9px; } .check-row-head select { grid-column: 2; } .check-row .check-note { margin-left: 34px; width: calc(100% - 34px); } .topbar { padding: 12px 16px; } .top-actions { flex-wrap: wrap; justify-content: start; width: 100%; } .topbar #reset-project { display: inline-flex; } .project-heading input { font-size: 16px; } .portal-toolbar > label { min-width: 100%; } .chat-message { max-width: 96%; } .chat-compose .portal-row { align-items: start; } .expert-admin-layout { grid-template-columns: 1fr; } .portal-admin-main { padding: 16px; } .file-row { flex-wrap: wrap; } .file-row-name { flex-basis: 100%; } }
@media(max-width:420px) { .process-list { grid-template-columns: 1fr; } .handbook-feature .feature-copy { padding: 23px; } .portal-head h1 { font-size: 28px; } }
@media(max-width:560px) { .topbar .top-actions .button { width:auto; height:auto; padding:8px 12px; font-size:14px; } .topbar .top-actions .button::after { display:none; } }
@media print { body > * { display: none !important; } body > .portal-print-root { display: block !important; font: 12px Arial,sans-serif; color: #111; } .portal-print-root h1 { font-size: 22px; } .portal-print-root table { width: 100%; border-collapse: collapse; margin-top: 18px; } .portal-print-root th, .portal-print-root td { border: 1px solid #bbb; text-align: left; padding: 8px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; } .portal-print-root tr { break-inside: avoid; } @page { size: A4; margin: 16mm; } }
/* Original handbooks: searchable contents and source PDF reader. */
.hb-intro { margin:0 0 20px; }
.hb-intro p { margin:0; color:#395665; }
.hb-intro p span { display:block; font-size:14px; color:#5c7280; }
.hb-books { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:26px; }
.hb-book-card { display:flex; flex-direction:column; text-align:left; background:#fff; border:1px solid #cbdadd; border-top:4px solid #137f7b; border-radius:12px; padding:22px; color:var(--navy); }
.hb-book-card:nth-child(2) { border-top-color:#b37b43; }
.hb-book-card:nth-child(3) { border-top-color:#54738e; }
.hb-book-card:hover,.hb-book-card[aria-pressed='true'] { background:#eff8f6; border-color:#187f78; }
.hb-book-number { display:flex; justify-content:space-between; align-items:center; width:100%; font-size:23px; color:#487e7e; margin-bottom:22px; }
.hb-book-number span { font-size:12px; color:#5c7280; }
.hb-book-card>strong { font-size:21px; line-height:1.35; letter-spacing:-.02em; }
.hb-book-description { font-size:14px; line-height:1.65; margin:9px 0 23px; color:#526b79; }
.hb-book-link { font-size:14px; font-weight:700; margin-top:auto; color:#087570; }
.hb-search-panel { padding:22px; border:1px solid #cbdade; border-radius:12px; background:#eaf3f3; scroll-margin-top:100px; }
.hb-search-panel .portal-toolbar { margin-bottom:14px; display:grid; grid-template-columns:2fr 1.2fr 1.3fr; }
.hb-search-panel .portal-toolbar>label { min-width:0; }
.hb-results-line { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; font-weight:600; color:#315865; }
.hb-search-panel .hb-search-hint { font-size:13px; color:#5b7480; margin:7px 0 0; }
.hb-document { margin-top:26px; }
.hb-document-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; }
.hb-document-heading h2 { margin:0; font-size:20px; }
.hb-document-heading button { flex-shrink:0; }
.hb-group { background:#fff; border:1px solid #cedce2; border-radius:9px; margin-bottom:9px; overflow:clip; }
.hb-group>summary { display:flex; align-items:center; gap:12px; padding:17px 18px; cursor:pointer; color:var(--navy); font-size:16px; font-weight:650; line-height:1.5; list-style:none; }
.hb-group>summary::-webkit-details-marker { display:none; }
.hb-group>summary::before { content:'+'; font-size:21px; color:#217e78; flex:0 0 18px; font-weight:400; }
.hb-group[open]>summary::before { content:'−'; }
.hb-group>summary span { flex:1; }
.hb-group>summary small { color:#65808c; white-space:nowrap; font-weight:400; }
.hb-group[open]>summary { background:#f6fafb; border-bottom:1px solid #dbe5e8; }
.hb-entry { display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:14px; align-items:start; width:100%; text-align:left; background:#fff; border:0; border-bottom:1px solid #e6edef; color:var(--navy); padding:15px 18px; font-size:16px; line-height:1.6; }
.hb-entry:last-child { border-bottom:0; }
.hb-entry:hover { background:#f0f8f6; }
.hb-entry-code { color:#43817e; font-variant-numeric:tabular-nums; font-size:14px; padding-top:2px; font-weight:600; }
.hb-entry-title small { display:block; color:#6c818b; margin-top:4px; }
.hb-entry-page { font-size:12px; white-space:nowrap; color:#5e7783; padding-top:3px; }
.hb-general { margin-top:34px; padding-top:23px; border-top:1px solid #c6d7df; }
.hb-general>summary { cursor:pointer; font-size:20px; color:var(--navy); font-weight:650; line-height:1.5; margin-bottom:22px; }
.hb-general>summary span { display:block; margin-top:5px; font-size:14px; color:#5c7280; font-weight:400; }
.hb-back { margin-bottom:22px; }
#hb-reader { scroll-margin-top:100px; }
.hb-reader-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.hb-reader-head h2 { font-size:clamp(22px,2.5vw,30px); margin:0 0 10px; }
.hb-reader-head p { margin:0; color:#5e7783; font-size:14px; }
.hb-reader-nav { display:flex; gap:9px; flex-shrink:0; }
.hb-pdf-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 20px; border:1px solid #cddbe2; background:#fff; border-radius:10px 10px 0 0; }
.hb-pdf-toolbar p { font-size:13px; margin:0; color:#5c7280; max-width:500px; }
.hb-pdf-toolbar>div { display:flex; flex-wrap:wrap; align-items:center; gap:14px; flex-shrink:0; }
.hb-pdf-toolbar a { text-decoration:none; }
.hb-pdf-frame { display:block; width:100%; height:76vh; min-height:480px; border:1px solid #cddbe2; border-top:0; background:#e2e8ec; }
.portal-view .hb-source { font-size:12px; color:#6a818d; overflow-wrap:anywhere; }
@media(max-width:1100px) { .hb-search-panel .portal-toolbar { grid-template-columns:1fr 1fr; } .hb-search-panel .portal-toolbar>label:first-child { grid-column:1/-1; } .hb-book-card { padding:18px; } .hb-book-card>strong { font-size:19px; } .hb-reader-head,.hb-pdf-toolbar { align-items:start; flex-direction:column; } }
@media(max-width:760px) { .hb-books { grid-template-columns:1fr; gap:10px; } .hb-book-card { padding:16px 18px; display:grid; grid-template-columns:1fr auto; gap:5px 14px; } .hb-book-number { grid-column:1/-1; margin-bottom:6px; font-size:17px; } .hb-book-card>strong { font-size:20px; } .hb-book-description { grid-column:1/-1; margin:0; } .hb-book-link { grid-column:2; grid-row:2; font-size:12px; align-self:center; } .hb-search-panel { padding:17px; } .hb-search-panel .portal-toolbar { grid-template-columns:1fr; } .hb-document-heading { align-items:start; flex-direction:column; gap:8px; } .hb-entry { grid-template-columns:37px minmax(0,1fr); gap:2px 10px; padding:13px; } .hb-entry-page { grid-column:2; padding-top:0; } .hb-group>summary { padding:14px; gap:8px; } .hb-pdf-toolbar { padding:15px; } .hb-pdf-frame { height:68vh; min-height:380px; } }
