/* Shared cosmic treatment for authenticated member, management, and auth pages. */
body:not(.cosmic-home) { background: #040a14; color: #f0f7fc; }
body:not(.cosmic-home) a { color: inherit; }
body:not(.cosmic-home) .sidebar { background: #071321; border-right-color: #b4ddf526; box-shadow: 10px 0 32px #00000018; }
body:not(.cosmic-home) .app-body { background: radial-gradient(ellipse at 70% -10%, #14304855, transparent 52%), #040a14; }
body:not(.cosmic-home) .app-header { background: #071321cc; border-bottom-color: #b4ddf526; backdrop-filter: blur(18px); }
body:not(.cosmic-home) .app-footer { border-top-color: #b4ddf526; color: #7890a6; }
body:not(.cosmic-home) .nav-label,
body:not(.cosmic-home) .app-breadcrumb,
body:not(.cosmic-home) .app-breadcrumb strong,
body:not(.cosmic-home) .back-home,
body:not(.cosmic-home) .sidebar-bottom small { color: #7890a6; }
body:not(.cosmic-home) .side-nav > a { color: #a7b9c9; }
body:not(.cosmic-home) .side-nav > a:hover { background: #10283a; color: #dff7ff; }
body:not(.cosmic-home) .side-nav > a.active { background: #123247; color: #91e6f8; box-shadow: inset 2px 0 #91e6f8; }
body:not(.cosmic-home) .nav-count { background: #123247; color: #91e6f8; }
body:not(.cosmic-home) .support-card { background: #0a1b2b; border-color: #b4ddf526; }
body:not(.cosmic-home) .status-dot { background: #91e6f8; box-shadow: 0 0 0 4px #91e6f822; }
body:not(.cosmic-home) .brand { color: #f0f7fc; }
body:not(.cosmic-home) .brand-mark { background: transparent; color: #91e6f8; border: 1px solid #91e6f855; }
body:not(.cosmic-home) .brand-dot { color: #91e6f8; }
body:not(.cosmic-home) .brand small { color: #7890a6; }
body:not(.cosmic-home) .language-switch { background: #10213566; border-color: #daeaff2b; }
body:not(.cosmic-home) .language-switch button { color: #a8b8ca; }
body:not(.cosmic-home) .language-switch button[aria-pressed=true] { background: #d5e8f315; color: #eff9ff; }
body:not(.cosmic-home) .avatar { background: #123247; color: #91e6f8; }
body:not(.cosmic-home) .badge-neutral { background: #10283a; color: #9fc5d8; }
body:not(.cosmic-home) .badge-green { background: #103443; color: #91e6f8; }
body:not(.cosmic-home) .badge-gold { background: #3a3219; color: #efd98b; }
body:not(.cosmic-home) .badge-red { background: #3b2022; color: #ffb0aa; }
body:not(.cosmic-home) .panel,
body:not(.cosmic-home) .stat-card,
body:not(.cosmic-home) .program-card,
body:not(.cosmic-home) .quick-actions > a,
body:not(.cosmic-home) .license-card { background: #0a1422; border-color: #b4ddf526; box-shadow: 0 10px 30px #00000014; }
body:not(.cosmic-home) .panel-heading h2,
body:not(.cosmic-home) .page-heading h1,
body:not(.cosmic-home) .product-heading h1,
body:not(.cosmic-home) .padded > h2,
body:not(.cosmic-home) .padded > h3,
body:not(.cosmic-home) .program-card h3,
body:not(.cosmic-home) .quick-actions strong,
body:not(.cosmic-home) .license-info h3,
body:not(.cosmic-home) .empty-state h3 { color: #f0f7fc; }
body:not(.cosmic-home) .page-heading p,
body:not(.cosmic-home) .product-heading p,
body:not(.cosmic-home) .program-card p,
body:not(.cosmic-home) .quick-actions small,
body:not(.cosmic-home) .license-info p,
body:not(.cosmic-home) .muted,
body:not(.cosmic-home) .stat-card > span,
body:not(.cosmic-home) .stat-card > a { color: #8ea5b7; }
body:not(.cosmic-home) .eyebrow,
body:not(.cosmic-home) .accent-text,
body:not(.cosmic-home) .text-link,
body:not(.cosmic-home) .table-link { color: #91e6f8; }
body:not(.cosmic-home) .program-icon,
body:not(.cosmic-home) .feature-icon,
body:not(.cosmic-home) .license-icon { background: #10283a; border-color: #b4ddf526; color: #91e6f8; }
body:not(.cosmic-home) .card-link,
body:not(.cosmic-home) .chat-header,
body:not(.cosmic-home) .chat-composer { border-color: #b4ddf526; }
body:not(.cosmic-home) th { background: #0e1f31; color: #8caabd; border-color: #b4ddf526; }
body:not(.cosmic-home) td { color: #b6c8d5; border-color: #b4ddf516; }
body:not(.cosmic-home) input:not([type=checkbox]):not([type=hidden]),
body:not(.cosmic-home) select,
body:not(.cosmic-home) textarea { background: #071321; color: #f0f7fc; border-color: #b4ddf53b; }
body:not(.cosmic-home) input::placeholder,
body:not(.cosmic-home) textarea::placeholder { color: #71889b; }
body:not(.cosmic-home) input:focus,
body:not(.cosmic-home) select:focus,
body:not(.cosmic-home) textarea:focus { border-color: #91e6f8; box-shadow: 0 0 0 3px #91e6f822; }
body:not(.cosmic-home) .btn-primary { background: #beeafa; color: #101c2b; }
body:not(.cosmic-home) .btn-primary:hover { background: #d2f3ff; }
body:not(.cosmic-home) .btn-dark { background: #123247; color: #eff9ff; }
body:not(.cosmic-home) .btn-outline { background: #0a1422; border-color: #b4ddf54a; color: #d7e7f1; }
body:not(.cosmic-home) .btn-outline:hover,
body:not(.cosmic-home) .icon-button:hover { background: #10283a; color: #dff7ff; }
body:not(.cosmic-home) .welcome-banner { background: linear-gradient(110deg, #10283a, #0a1b2b); border-color: #91e6f833; }
body:not(.cosmic-home) .welcome-banner p,
body:not(.cosmic-home) .support-card small { color: #8ea5b7; }
body:not(.cosmic-home) .banner-symbol { background: #123247; border-color: #91e6f855; color: #91e6f8; box-shadow: 0 0 0 20px #12324755; }
body:not(.cosmic-home) .empty-state { background: #071321; border-color: #91e6f844; }
body:not(.cosmic-home) .chat-stream { background: #071321; }
body:not(.cosmic-home) .message-bubble { background: #0a1422; border-color: #b4ddf526; color: #c6d6e1; }
body:not(.cosmic-home) .mine .message-bubble { background: #123247; border-color: #91e6f833; color: #dff7ff; }
body:not(.cosmic-home) .chat-composer textarea { background: #071321; }
body:not(.cosmic-home) .history-button { background: #0a1b2b; color: #91e6f8; border-color: #b4ddf526; }

/* Release inventory: keep version operations visible without crowding the table. */
body:not(.cosmic-home) .release-stats { margin-bottom: 22px; }
body:not(.cosmic-home) .release-filter { padding: 14px; border: 1px solid #b4ddf526; border-radius: 12px; background: #07132199; }
body:not(.cosmic-home) .release-filter .search-input { background: #071321; border-color: #b4ddf53b; }
body:not(.cosmic-home) .release-actions { display: inline-flex; align-items: center; gap: 14px; }
body:not(.cosmic-home) .table-action-danger { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #ff9f9b; font-size: 11px; }
body:not(.cosmic-home) .table-action-danger:hover { color: #ffd0cd; }
body:not(.cosmic-home) .table-action-danger .icon { width: 13px; height: 13px; }
body:not(.cosmic-home) .release-cleaned td { color: #7e96a8; background: #07132166; }
body:not(.cosmic-home) .release-admin-note { border-left: 2px solid #91e6f8; padding-left: 10px; }

/* Auth screens use the same dark base while keeping their focused form layout. */
body:not(.cosmic-home) .auth-aside { background: radial-gradient(ellipse at 50% 35%, #123247, #071321 72%); color: #eaf7ff; }
body:not(.cosmic-home) .auth-aside .brand { color: #f0f7fc; }
body:not(.cosmic-home) .auth-aside .brand-mark { background: transparent; }
body:not(.cosmic-home) .auth-aside .brand small,
body:not(.cosmic-home) .auth-pitch p,
body:not(.cosmic-home) .auth-aside-footer { color: #8ea5b7; }
body:not(.cosmic-home) .auth-pitch .eyebrow,
body:not(.cosmic-home) .auth-pitch h1 span { color: #91e6f8; }
body:not(.cosmic-home) .auth-orbit { border-color: #91e6f855; box-shadow: 0 0 0 32px #91e6f812, 0 0 0 63px #91e6f808; }
body:not(.cosmic-home) .auth-orbit > div { border-color: #91e6f866; background: #12324799; box-shadow: 0 0 40px #91e6f820; }
body:not(.cosmic-home) .auth-orbit .icon { color: #91e6f8; }
body:not(.cosmic-home) .auth-orbit > span { color: #7890a6; }
body:not(.cosmic-home) .auth-main { background: #040a14; }
body:not(.cosmic-home) .auth-description,
body:not(.cosmic-home) .auth-switch,
body:not(.cosmic-home) .auth-security,
body:not(.cosmic-home) .auth-footer { color: #8ea5b7; }
body:not(.cosmic-home) .auth-box h1 { color: #f0f7fc; }
body:not(.cosmic-home) .auth-switch a,
body:not(.cosmic-home) .auth-footer a { color: #91e6f8; }
body:not(.cosmic-home) .auth-box input:not([type=checkbox]):not([type=hidden]) { background: #071321; color: #f0f7fc; }
body:not(.cosmic-home) .form-footnote,
body:not(.cosmic-home) .form-footnote a { color: #7890a6; }
body:not(.cosmic-home) .form-error { background: #3b2022; color: #ffb0aa; }

@media (max-width: 740px) {
  body:not(.cosmic-home) .sidebar { background: #071321; }
  body:not(.cosmic-home) .auth-layout { display: block; }
  body:not(.cosmic-home) .auth-aside { min-height: 280px; padding: 28px 24px; }
  body:not(.cosmic-home) .auth-pitch { padding: 34px 0; }
  body:not(.cosmic-home) .auth-orbit { display: none; }
}

.quote-missing td{background:#fff2cc!important}.quote-warning td{background:#fce4d6!important}.quote-network td{background:#d9eaf7!important}.quote-ai-estimate td{background:#e4dfec!important}.quote-ai-estimate td:nth-last-child(2),.quote-ai-estimate td:last-child{color:#7030a0;font-weight:600}.feature-list{margin:1rem 0 0;padding-left:1.25rem}.feature-list li{margin:.6rem 0;color:var(--muted)}

/* Quote detail / workbook preview: keep every value readable against its
   source marker.  The previous pastel fills were too close to the inherited
   light text color on the dark workspace. */
body:not(.cosmic-home) .table-wrap table { background: #071321; border-collapse: separate; border-spacing: 0; }
body:not(.cosmic-home) .table-wrap th { background: #153247; color: #f5fbff; border-bottom: 2px solid #91e6f8; font-weight: 700; }
body:not(.cosmic-home) .table-wrap td { background: #081725; color: #e8f3f8; border-bottom-color: #2b4658; line-height: 1.65; vertical-align: top; }
body:not(.cosmic-home) .table-wrap tr:nth-child(even) td { background: #0b1d2c; }
body:not(.cosmic-home) .table-wrap td .table-sub { color: #abc1cf; }
body:not(.cosmic-home) .table-wrap td a { color: #9cecff; text-decoration: underline; text-decoration-color: #5aaec8; text-underline-offset: 3px; }
body:not(.cosmic-home) .quote-missing td { background: #3a2d0f !important; color: #ffefb3 !important; border-bottom-color: #a17c27 !important; }
body:not(.cosmic-home) .quote-missing td .table-sub { color: #ffe2a0 !important; }
body:not(.cosmic-home) .quote-warning td { background: #3b2319 !important; color: #ffd2bd !important; border-bottom-color: #a75f44 !important; }
body:not(.cosmic-home) .quote-warning td .table-sub { color: #ffc0a3 !important; }
body:not(.cosmic-home) .quote-network td { background: #0d3047 !important; color: #bfe9ff !important; border-bottom-color: #2a7ca7 !important; }
body:not(.cosmic-home) .quote-network td .table-sub { color: #a8d8ee !important; }
body:not(.cosmic-home) .quote-network td a { color: #a6f0ff !important; }
body:not(.cosmic-home) .quote-ai-estimate td { background: #2e2250 !important; color: #eadbff !important; border-bottom-color: #805bb4 !important; }
body:not(.cosmic-home) .quote-ai-estimate td .table-sub,
body:not(.cosmic-home) .quote-ai-estimate td:nth-last-child(2),
body:not(.cosmic-home) .quote-ai-estimate td:last-child { color: #f1d8ff !important; }
body:not(.cosmic-home) .quote-preview,
body:not(.cosmic-home) .quote-preview-panel,
body:not(.cosmic-home) .quote-detail-preview { background: #0a1422; color: #e8f3f8; border: 1px solid #2b5369; }

/* Peer-to-peer chat directory. Keep the directory private by default and
   use hard edges so it follows the site's Precision Grid visual system. */
body:not(.cosmic-home) .peer-chat-panel { margin-bottom: 22px; padding: 22px; background: #071321; border: 1px solid #2b5369; }
body:not(.cosmic-home) .peer-chat-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
body:not(.cosmic-home) .peer-chat-heading h2 { margin: 5px 0 7px; color: #f0f7fc; font-size: 20px; }
body:not(.cosmic-home) .peer-chat-heading p { margin: 0; }
body:not(.cosmic-home) .peer-visibility-form { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; min-width: 230px; }
body:not(.cosmic-home) .peer-visibility-toggle { display: flex; align-items: center; gap: 8px; color: #cfe4ee; font-size: 11px; cursor: pointer; }
body:not(.cosmic-home) .peer-visibility-toggle input { width: 16px; height: 16px; accent-color: #91e6f8; }
body:not(.cosmic-home) .peer-chat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 20px; }
body:not(.cosmic-home) .peer-chat-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px; border: 1px solid #b4ddf526; background: #0a1b2b; color: #dcecf4; text-decoration: none; }
body:not(.cosmic-home) .peer-chat-item:hover,
body:not(.cosmic-home) .peer-chat-item.is-active { border-color: #91e6f8; background: #102f43; color: #f0fbff; }
body:not(.cosmic-home) .peer-chat-item > .icon { width: 15px; height: 15px; margin-left: auto; color: #91e6f8; }
body:not(.cosmic-home) .peer-chat-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
body:not(.cosmic-home) .peer-chat-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
body:not(.cosmic-home) .peer-chat-copy small { margin-top: 3px; color: #8eaabd; font-size: 10px; }
body:not(.cosmic-home) .peer-identity-label,
body:not(.cosmic-home) .chat-identity-label { color: #91e6f8; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
body:not(.cosmic-home) .chat-header > div > .chat-identity-label { display: block; margin-top: 3px; color: #9bb6c5; text-transform: none; }
body:not(.cosmic-home) .chat-header > div > [data-chat-status] { display: block; margin-top: 3px; }
body:not(.cosmic-home) .peer-chat-empty { grid-column: 1 / -1; padding: 17px; border: 1px dashed #2b5369; color: #8ea5b7; font-size: 11px; }
@media (max-width: 720px) {
  body:not(.cosmic-home) .peer-chat-heading { flex-direction: column; }
  body:not(.cosmic-home) .peer-visibility-form { align-items: flex-start; min-width: 0; }
  body:not(.cosmic-home) .peer-chat-list { grid-template-columns: 1fr; }
}
/* HTMLS maintenance AI */
.maintenance-log-list{display:grid;gap:1rem}.maintenance-log-card{padding:1.1rem 1.25rem}.maintenance-log-card .panel-heading{margin:0 0 .7rem;align-items:flex-start}.maintenance-log-card .panel-heading>div{display:flex;align-items:center;gap:.7rem}.maintenance-log-card h2{margin:0;font-size:1rem}.maintenance-ai{border-left:2px solid var(--accent,#63e6ff);padding:.45rem .75rem;margin:.8rem 0;background:rgba(99,230,255,.05)}.maintenance-ai p{margin:.25rem 0 0}.maintenance-log-card details{margin-top:.65rem;border-top:1px solid var(--line,rgba(255,255,255,.12));padding-top:.55rem}.maintenance-log-card summary{cursor:pointer;color:var(--muted,#9ba8b8)}.maintenance-log-card pre{white-space:pre-wrap;overflow:auto;max-height:20rem;margin:.6rem 0 0;padding:.7rem;background:rgba(0,0,0,.18);font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.badge-success{color:#b9f6d0;border-color:rgba(93,226,147,.35);background:rgba(93,226,147,.1)}.badge-warning{color:#ffe29a;border-color:rgba(255,195,70,.35);background:rgba(255,195,70,.1)}.badge-danger{color:#ffb5b5;border-color:rgba(255,90,90,.35);background:rgba(255,90,90,.1)}
