@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #f6f5f1;
  --paper: #fff;
  --ink: #25282b;
  --muted: #767d84;
  --quiet: #9a9fa3;
  --line: #e8e8e3;
  --line-strong: #d9dcd7;
  --red: #c82128;
  --red-hover: #ac1720;
  --yellow: #fbc54b;
  --sidebar: #232629;
  --radius: 13px;
  --shadow: 0 4px 18px rgb(24 29 33 / 3%);
  --shadow-float: 0 24px 80px rgb(24 29 33 / 18%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; }
body { background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 3px solid #4e88c2; }
input, select, textarea { min-width: 0; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { flex: 0 0 auto; width: 20px; height: 20px; stroke-width: 1.7; }
h1, h2, h3, h4, p { margin-top: 0; }
button, input, select, textarea, .request-card { transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
[hidden] { display: none !important; }
.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; }
.app-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100dvh; }

/* The persistent navigation stays intentionally quiet beside the work. */
.sidebar { position: sticky; top: 0; height: 100dvh; min-height: 600px; display: flex; flex-direction: column; padding: 29px 15px 15px; background: var(--sidebar); color: #e8e9e9; z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 13px 34px; }
.brand-mark { display: inline-flex; width: 37px; height: 41px; align-items: center; justify-content: center; flex-shrink: 0; position: relative; padding-bottom: 4px; background: var(--yellow); color: #222428; font-size: 30px; font-weight: 850; line-height: 1; letter-spacing: -.065em; }
.brand-mark::after { content: ""; position: absolute; left: 0; right: 0; height: 5px; bottom: 0; background: #db2530; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { color: white; font-size: 17px; font-weight: 750; letter-spacing: .075em; }
.brand-copy span { color: #a6abae; font-size: 12px; letter-spacing: .03em; }
.nav-section { display: grid; gap: 5px; margin-bottom: 29px; }
#main-nav { display:grid; gap:4px; }
.nav-section > h2, .nav-section > h3, .nav-section-label { margin: 0 0 9px; padding: 0 14px; color: #8e969b; font-size: 10px; font-weight: 650; line-height: 1.5; text-transform: uppercase; letter-spacing: .12em; }
.nav-item { display: flex; gap: 11px; align-items: center; min-height: 44px; padding: 10px 13px; text-align: left; border-radius: 7px; border: 1px solid transparent; background: transparent; color: #b9bfc2; font-size: 12px; font-weight: 520; text-decoration: none; width: 100%; }
.nav-item svg { width: 18px; height: 18px; color: #979fa4; }
.nav-item:hover { color: white; background: #303437; text-decoration: none; }
.nav-item.active { color: #fff; background: #3b3d3d; border-color: #4b4c46; box-shadow: inset 3px 0 0 var(--yellow); }
.nav-item.active svg { color: var(--yellow); }
.nav-icon { display: inline-flex; }
.nav-count { margin-left: auto; min-width: 21px; padding: 3px 6px; font-size: 10px; text-align: center; border-radius: 4px; background: #41474b; color: #d1d5d6; font-variant-numeric: tabular-nums; }
.nav-item.active .nav-count { background: var(--yellow); color: #302a1c; font-weight: 750; }
.sidebar-footer { margin-top: auto; }
.sidebar-note { display:flex; align-items:flex-start; gap:9px; margin:0 14px 28px; font-size:10px; color:#78887c; line-height:1.8; }
.sidebar-note .status-dot { margin-top:6px; }
.sidebar-note strong { font-size:10px; font-weight:400; color:#929d93; }
.sidebar-reset { display:block; width:100%; padding:11px 3px 1px; border:0; background:transparent; color:#8c978d; font-size:9px; text-align:center; }
.sidebar-reset:hover { color:#d2d9ce; }
.brand:hover { text-decoration:none; }
.demo-label { border: 1px solid #4b4a40; background: #33342f; color: #e4d4a7; border-radius: 7px; padding: 11px 12px; font-size: 10px; line-height: 1.6; }
.demo-label strong { display: block; color: #f3d68a; font-size: 11px; margin-bottom: 3px; }
.profile { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 17px 9px 15px; border:0; border-top: 1px solid #3d4245; background:transparent; width:100%; text-align:left; font-size: 11px; line-height: 1.5; }
.profile:hover { background:#2e3530; }
.profile > div:not(.avatar) { min-width: 0; }
.profile strong { display: block; font-size: 12px; font-weight: 600; color: #f4f4f4; }
.profile small, .profile span { color: #9ca4a8; font-size: 10px; }
.profile .avatar { width: 33px; height: 33px; font-size: 10px; background: #4a4f4e; color: #f3e8c8; border: 1px solid #5c625d; }
.profile > svg, .profile > button { margin-left: auto; }
.profile .icon-button { color: #aab1b4; }
.profile > span:not(.avatar) { min-width:0; }
.profile > svg { width:14px; height:14px; color:#8b9591; }

/* Main work surface. */
.workspace { padding: 33px 34px 28px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 25px; }
.topbar-main { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; color: var(--muted); font-size: 10px; letter-spacing: .055em; line-height: 1.5; }
.eyebrow svg { width: 12px; height: 12px; }
.preview-tag { border:1px solid #deded5; border-radius:4px; padding:2px 5px; margin-left:4px; color:#929389; font-size:8px; letter-spacing:.08em; }
.workspace-footnote { margin:16px 0 0; color:#a2a69b; font-size:9px; text-align:center; line-height:1.7; }
h1 { margin: 0 0 7px; font-size: clamp(25px, 2.5vw, 32px); font-weight: 670; letter-spacing: -.045em; line-height: 1.2; }
.subtitle { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.topbar-actions { display: flex; align-items: center; gap: 9px; padding-top: 13px; flex: 0 0 auto; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 7px; min-height: 37px; padding: 9px 14px; font-size: 11px; font-weight: 620; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.button svg { width: 15px; height: 15px; }
.button:hover { text-decoration: none; }
.button.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 2px 4px rgb(151 24 34 / 7%); }
.button.primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.button.secondary { background: #fff; border-color: var(--line-strong); color: #4d565d; box-shadow: 0 1px 2px rgb(20 30 35 / 2%); }
.button.secondary:hover { border-color: #abb5b7; background: #fafbf9; }
.button.ghost { background: transparent; color: #6e777e; }
.button.ghost:hover { background: #efefeb; }
.button.danger { color: #b3232c; border-color: #efd0d0; background: #fff8f7; }
.button.danger:hover { background: #f9e8e7; border-color: #ddaeb0; }
.button.small { min-height: 30px; padding: 6px 10px; font-size: 10px; }
.icon-button, .close-button { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #768087; }
.icon-button:hover, .close-button:hover { background: #f0f1ed; color: #2c3338; }
.icon-button svg, .close-button svg { width: 17px; height: 17px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 25px; }
.stat-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 15px 17px 13px; min-width: 0; box-shadow: var(--shadow); }
.stat-card { text-align:left; }
.stat-card:hover { border-color:#c8d0c1; background:#fdfefa; box-shadow:0 3px 10px #879b7910; }
.stat-label,.stat-value,.stat-foot { display:block; }
.stat-label { font-size: 11px; color: #6b747b; font-weight: 500; margin-bottom: 9px; }
.stat-value { font-size: 28px; line-height: 1; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-foot { margin-top: 8px; font-size: 10px; line-height: 1.45; color: #879088; }
.stat-icon { display: flex; align-items: center; justify-content: center; position: absolute; top: 13px; right: 14px; width: 29px; height: 29px; border-radius: 8px; background: #f4f5f0; color: #859080; }
.stat-icon svg { width: 15px; height: 15px; }
.stat-card:first-child .stat-icon { background: #fcf1d9; color: #b78222; }
.stat-card:nth-child(2) .stat-icon { background: #edf2f7; color: #6d8bac; }
.stat-card:nth-child(3) .stat-icon { background: #f9eeeb; color: #b97967; }
.stat-card:nth-child(4) .stat-icon { background: #edf4ee; color: #679476; }
.inbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.search-field { display: flex; align-items: center; gap: 9px; width: min(390px, 100%); min-height: 37px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: #9aa1a6; padding: 0 12px; }
.search-field svg { width: 16px; height: 16px; }
.search-field:focus-within { border-color: #a8b4be; box-shadow: 0 0 0 3px #dee6ed66; }
.search-field input { width: 100%; border: 0; padding: 10px 0; background: transparent; color: var(--ink); font-size: 11px; outline: none; }
.search-field input::placeholder { color: #939ba2; }
.toolbar-filters { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.toolbar-filters select { background: #fff; color: #69737a; border: 1px solid var(--line-strong); border-radius: 7px; min-height: 37px; padding: 7px 28px 7px 11px; font-size: 10px; max-width: 190px; }
.inbox-layout { display: grid; grid-template-columns: minmax(290px, .85fr) minmax(0, 1.65fr); align-items: stretch; gap: 17px; }
.request-list-panel { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.list-header { display: flex; align-items: center; justify-content: space-between; min-height: 49px; padding: 15px 17px; font-size: 11px; color: #90979c; border-bottom: 1px solid var(--line); }
.list-header strong { color: #515b64; font-weight: 570; }
.list-header span { font-size: 10px; }
#result-count { display:inline-block; margin-left:7px; padding:2px 5px; background:#f0f2ec; color:#a0a697; border-radius:3px; font-size:9px; }
#request-list { display: grid; align-content: start; }
.request-card { position: relative; display: block; width: 100%; min-width: 0; border: 0; border-bottom: 1px solid #eeefeb; background: #fff; padding: 18px 17px 16px; text-align: left; cursor: pointer; }
.request-card:last-child { border-bottom: 0; }
.request-card:hover { background: #f8f9f6; }
.request-card.selected { background: #fff9ec; box-shadow: inset 3px 0 0 #e9b443; }
.request-card.selected:hover { background: #fff7e5; }
.request-card-top { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; min-width: 0; }
.avatar { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 9px; background: #edf1ee; color: #61806c; font-size: 10px; font-weight: 650; line-height: 1; }
.request-card:nth-child(3n+2) .avatar { background: #f1eef6; color: #8b77a0; }
.request-card:nth-child(3n) .avatar { background: #edf0f7; color: #6983a4; }
.request-card.selected .avatar { background: #f3e8ca; color: #9d7e37; }
.request-name { font-size: 11px; font-weight: 610; color: #414c53; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.request-name small { display:block; color:#959d93; font-size:9px; font-weight:400; line-height:1.5; margin-top:3px; overflow:hidden; text-overflow:ellipsis; }
.request-time { margin-left: auto; font-size: 9px; color: #979f9f; white-space: nowrap; }
.request-subject { margin: 0 0 7px; font-size: 12px; font-weight: 610; line-height: 1.5; letter-spacing: -.01em; color: #343d44; }
.request-subject { display:block; }
.request-snippet { margin: 0 0 13px; font-size: 10px; color: #879092; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.request-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 9px; color: #91998f; }
.request-meta > .company-label, .request-meta > .source-label { margin-left: auto; font-size: 9px; }
.request-card.unread .request-name::after { content: ""; width: 5px; height: 5px; background: var(--red); display: inline-block; margin-left: 7px; border-radius: 100%; vertical-align: 2px; }
.request-card.unread .request-name::after { display:none; }
.unread-dot { width:5px; height:5px; background:#bd3f36; border-radius:50%; margin-left:-3px; flex-shrink:0; }
.request-owner { margin-left:auto; font-size:9px; color:#9aa08f; }
.request-card.urgent .request-subject { color: #a13f39; }
.badge { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 6px; border-radius: 4px; font-size: 9px; font-weight: 550; line-height: 1.15; white-space: normal; }
.badge svg { width: 10px; height: 10px; }
.badge.neutral { background: #f0f1ee; color: #78817d; }
.badge.blue { background: #edf2f8; color: #6585a4; }
.badge.amber { background: #fbefd3; color: #a58233; }
.badge.green { background: #edf5ec; color: #688963; }
.badge.red { background: #faebe8; color: #ba685e; }
.badge.purple { background: #f2edf7; color: #9675ad; }
.list-empty { padding: 54px 25px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.75; }
.list-empty svg { width: 28px; height: 28px; margin-bottom: 12px; color: #b5bbb4; }

/* A request is a readable record with a short, clear action row. */
.detail-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.detail-empty { padding: 100px 30px; text-align: center; color: var(--muted); line-height: 1.7; margin: auto 0; }
.detail-empty > svg { width: 35px; height: 35px; color: #c5cac2; margin-bottom: 12px; }
.detail-top { padding: 23px 25px 20px; border-bottom: 1px solid var(--line); }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 13px 0 7px; }
.detail-title-row h2 { font-size: clamp(18px, 1.5vw, 23px); font-weight: 620; line-height: 1.35; letter-spacing: -.027em; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.detail-title-row .icon-button { margin-top: -5px; }
.detail-top > h2 { margin:12px 0 8px; font-size:clamp(19px,1.6vw,24px); font-weight:620; line-height:1.35; letter-spacing:-.03em; overflow-wrap:anywhere; }
.detail-tags { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:9px; line-height:1.5; color:#8d9589; min-width:0; }
.detail-title-row:has(.detail-tags) { margin:0; align-items:center; }
.request-id { font-size:8px; color:#a4aa9d; white-space:nowrap; }
.ownership-row { align-items:flex-end; gap:13px; padding-top:18px; margin-top:18px; border-top:1px solid var(--line); }
.ownership-row .field { flex:1; margin:0; gap:5px; }
.ownership-row .field > span { font-size:9px; color:#939c91; font-weight:400; }
.ownership-row .field select { font-size:10px; min-height:34px; padding:7px 8px; background:#fcfdfa; }
.followup-line { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:13px; font-size:9px; line-height:1.5; color:#ab8e57; }
.followup-line svg { width:12px; height:12px; }
.text-button { display:inline-flex; align-items:center; gap:4px; padding:2px 0; border:0; background:transparent; color:#8c9c80; font-size:9px; line-height:1.5; font-weight:500; text-transform:none; letter-spacing:0; }
.text-button:hover { color:#4e6540; text-decoration:underline; }
.text-button svg { width:12px; height:12px; }
.followup-line .text-button { margin-left:auto; color:#a99460; }
.detail-subtitle { font-size: 10px; line-height: 1.6; color: #87908e; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 20px; }
.detail-actions .icon-button { border-color:#e1e5db; background:#fff; }
.detail-actions .button { font-size: 10px; min-height: 34px; padding: 8px 11px; }
.detail-body { padding: 23px 25px 8px; }
.detail-section { margin-bottom: 24px; }
.section-title { display: flex; align-items: center; gap: 6px; justify-content: space-between; margin-bottom: 12px; color: #838c91; font-size: 9px; font-weight: 640; text-transform: uppercase; letter-spacing: .085em; line-height: 1.5; }
.section-title svg { width: 12px; height: 12px; }
.section-title > .button { text-transform: none; letter-spacing: 0; }
.section-title h3 { margin:0; font:inherit; }
.section-title .muted { font-size:9px; text-transform:none; letter-spacing:0; font-weight:400; }
.muted { color:#929c8a; font-size:11px; line-height:1.7; }
.private-label { display:inline-flex; align-items:center; gap:4px; text-transform:none; letter-spacing:0; font-size:9px; font-weight:400; color:#a4a995; }
.private-label svg { width:10px; height:10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.contact-item { display: flex; align-items: center; gap: 9px; min-width: 0; color: #495961; font-size: 11px; }
.contact-item > svg { width: 15px; height: 15px; color: #98a1a7; }
.contact-item > div { min-width: 0; }
.contact-item > span { min-width:0; }
.contact-item small, .contact-item span.label { display: block; color: #929a9d; font-size: 9px; line-height: 1.5; margin-bottom: 2px; }
.contact-item a, .contact-item strong { color: #4a585f; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.message-card { border: 1px solid #e9ebe6; border-radius: 8px; padding: 16px; background: #fafbf8; }
.message-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.message-top .avatar { width: 26px; height: 26px; border-radius: 7px; font-size: 8px; }
.message-top strong { color: #56626a; font-size: 10px; font-weight: 600; }
.message-top time, .message-top > span:last-child { margin-left: auto; color: #9a9f9b; font-size: 9px; }
.message-text { color: #5d696e; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-line; }
.message-text p { margin-bottom: 11px; }
.message-text p:last-child { margin-bottom: 0; }
.message-card > .message-text { margin-bottom:0; }
.request-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px 18px; margin:17px 0 0; }
.request-facts > div { min-width:0; }
.request-facts dt { color:#9da48f; font-size:9px; margin:0 0 4px; }
.request-facts dd { color:#6d7b61; font-size:10px; line-height:1.6; margin:0; overflow-wrap:anywhere; }
.attachment-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.attachment-list .file-chip { margin:0; text-align:left; }
.file-chip > span { min-width:0; }
.file-chip strong { display:block; font-size:10px; font-weight:500; color:#6a7862; }
.file-chip small { display:block; margin-top:2px; }
.file-chip:hover { background:#f7f9f2; border-color:#bbc7b0; }
.file-chip > svg:last-child { width:11px; height:11px; color:#acb6a3; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 11px; margin: 10px 5px 0 0; border: 1px solid #dfe4df; background: #fff; border-radius: 6px; color: #6c787b; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.file-chip svg { width: 15px; height: 15px; color: #8c999c; }
.file-chip small { color: #a0a7a4; font-size: 9px; }
.internal-note { border-left: 2px solid #e4c577; background: #fffaf0; border-radius: 0 6px 6px 0; padding: 12px 14px; color: #97835d; font-size: 11px; line-height: 1.75; }
.internal-note strong { color: #8e7646; font-size: 10px; }
.internal-note p:last-child { margin-bottom: 0; }
.internal-note { margin-bottom:12px; }
.internal-note p { margin-bottom:7px; }
.internal-note small { color:#b1a077; font-size:9px; }
#note-input { display:block; width:100%; resize:vertical; padding:12px 13px; border:1px solid #e2e6dc; background:#fff; color:#68785e; border-radius:7px; font-size:11px; line-height:1.7; min-height:78px; }
#note-input::placeholder { color:#a8afa1; }
#note-input:focus { outline:0; border-color:#b7c6aa; box-shadow:0 0 0 3px #e8efe077; }
.note-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:9px; }
.note-footer > span { font-size:8px; color:#a8ae9e; line-height:1.5; }
.timeline { padding-left: 0; margin:0; list-style:none; }
.timeline-item { position: relative; display: flex; gap: 11px; padding: 0 0 19px; }
.timeline-item::after { position: absolute; content: ""; width: 1px; top: 26px; bottom: -1px; background: #e5e8e1; left: 11px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::after { display: none; }
.timeline-dot { width:23px; height:23px; border-radius:50%; background:#f3f5ef; border:1px solid #e1e7d8; color:#9aab8d; display:flex; align-items:center; justify-content:center; flex-shrink:0; position:relative; top:0; }
.timeline-dot svg { width:11px; height:11px; }
.timeline-content { font-size: 10px; color: #687570; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.timeline-content strong { font-weight: 560; color: #4f6058; }
.timeline-content p { color:#959f8a; font-size:10px; margin:3px 0; line-height:1.75; white-space:pre-line; }
.timeline-meta { color: #99a09b; font-size: 9px; margin-top: 2px; }
.detail-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 25px; border-top: 1px solid var(--line); color: #979e99; font-size: 9px; background: #fcfcfa; }
.detail-bottom .button { font-size: 10px; }
.detail-bottom > svg { width:12px; height:12px; }
.detail-bottom:has(> svg) { justify-content:flex-start; gap:6px; }
.split-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status-dot { display: inline-flex; align-items: center; gap: 5px; }
.status-dot::before { content: ""; width: 5px; height: 5px; background: #90a486; border-radius: 50%; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; gap: 7px; min-width: 0; font-size: 11px; color: #637078; margin-bottom: 15px; }
.field-grid .field { margin-bottom: 0; }
.field > label, .field > span { font-weight: 550; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 10px 12px; border: 1px solid #dce1da; background: #fff; color: #45535a; border-radius: 6px; font-size: 12px; line-height: 1.5; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #aab9bf; outline: 0; box-shadow: 0 0 0 3px #e6edf077; }
.field small { color: #99a09b; font-size: 10px; line-height: 1.6; }
.field input[type=checkbox] { width: 16px; min-height: 16px; accent-color: var(--red); }
.calendar-card { display: flex; align-items: center; gap: 14px; border: 1px solid #e9e1cb; border-radius: 8px; padding: 16px; background: #fffbf1; }
.calendar-card > svg { width: 32px; height: 32px; color: #bd9950; }
.calendar-card strong { display: block; color: #75684c; font-size: 12px; font-weight: 600; line-height: 1.5; }
.calendar-meta { color: #a4977b; font-size: 10px; line-height: 1.8; margin-top: 3px; }
.calendar-date { width:46px; border:1px solid #e6d9b8; border-radius:6px; background:#fff; display:block; text-align:center; flex-shrink:0; overflow:hidden; }
.calendar-date small { display:block; background:#efe5cb; padding:2px 4px; font-size:8px; color:#9e884e; text-transform:uppercase; }
.calendar-card .calendar-date strong { font-size:22px; line-height:1.45; padding:2px; color:#9a7b35; font-weight:600; }
.calendar-meta > span, .calendar-meta > small { display:block; }
.calendar-meta > small { font-size:9px; color:#b2a17c; margin-top:3px; }
.inline-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:10px; }
.callout { padding: 12px 14px; border: 1px solid #e5e8e2; background: #f7f9f4; color: #7d897a; font-size: 11px; line-height: 1.7; border-radius: 7px; margin: 14px 0; }
.callout.warning { background: #fffaf0; color: #9c8657; border-color: #f0e5cb; }
.callout.success { background: #f1f8ed; color: #6b885e; border-color: #e0ebd8; }
.callout p:last-child { margin-bottom: 0; }
.callout:has(> svg) { display:flex; align-items:flex-start; gap:8px; }
.callout > svg { width:14px; height:14px; margin-top:2px; }
.tab-switch { display: flex; align-items: center; gap: 3px; padding: 3px; background: #eeefea; border-radius: 7px; width: fit-content; max-width: 100%; }
.tab-button { border: 0; border-radius: 5px; background: transparent; color: #879183; padding: 7px 11px; font-size: 10px; font-weight: 500; }
.tab-button.active { background: white; color: #55684f; box-shadow: 0 1px 4px #aab8a133; }

/* Preview dialogs never imply that a message has already been sent. */
.modal { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid #e1e5dd; border-radius: 13px; padding: 0; box-shadow: var(--shadow-float); color: var(--ink); background: white; overscroll-behavior: contain; }
.modal::backdrop { background: rgb(30 38 34 / 42%); backdrop-filter: blur(3px); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 23px 25px 19px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 20px; font-weight: 620; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 6px; }
.modal-header p { font-size: 11px; color: #879386; line-height: 1.6; margin: 0; }
.modal-header .close-button { margin: -4px -7px 0 0; }
.modal-body { padding: 22px 25px; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; padding: 17px 25px; border-top: 1px solid var(--line); background: #fafbf8; border-radius: 0 0 13px 13px; }
.email-preview { border: 1px solid #dfe4dc; border-radius: 8px; margin-top: 15px; overflow: hidden; }
.email-header { border-bottom: 1px solid #e9ece5; padding: 14px 17px; background: #f7f9f4; }
.email-header strong { display: block; color: #4d6150; font-size: 12px; line-height: 1.5; }
.recipient-line { color: #889682; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.email-content { padding: 20px 17px; font-size: 12px; line-height: 1.9; color: #617361; white-space: pre-line; overflow-wrap: anywhere; }
.email-content p:last-child { margin-bottom: 0; }
.recipient-line { display:flex; align-items:flex-start; gap:7px; }
.recipient-line > svg { width:14px; height:14px; margin-top:2px; }
.email-signature { font-size:10px; line-height:1.7; color:#9ba58e; padding-top:12px; margin-top:15px; border-top:1px solid #edf0e6; }
.customer-preview { padding:18px; border:1px solid #e3e8d9; border-radius:8px; background:#fbfcf8; }
.customer-preview h3 { font-size:18px; letter-spacing:-.02em; font-weight:600; }
.customer-preview p { font-size:12px; line-height:1.8; color:#839074; }
.customer-preview .brand-mark { margin-bottom:15px; }
.document-preview { text-align:center; padding:17px 0; }
.document-preview > svg { width:48px; height:48px; color:#a5b691; margin-bottom:18px; }
.document-preview .eyebrow { display:block; }
.document-preview h3 { font-size:17px; overflow-wrap:anywhere; margin-bottom:13px; }
.document-preview p { font-size:12px; line-height:1.8; color:#869579; }
.document-preview .request-facts { text-align:left; border-top:1px solid #e6ebdc; margin-top:20px; padding-top:17px; }
.role-list { display:grid; gap:8px; }
.role-option { display:flex; align-items:center; gap:11px; width:100%; padding:14px; border:1px solid #e2e7d9; border-radius:8px; background:#fff; text-align:left; }
.role-option > span:not(.avatar) { min-width:0; }
.role-option strong { display:block; color:#526c42; font-size:12px; font-weight:550; }
.role-option small { display:block; color:#94a483; font-size:10px; line-height:1.6; margin-top:4px; }
.role-option > svg { width:15px; height:15px; color:#a7b895; margin-left:auto; }
.role-option:hover { background:#f9fbf4; }
.role-option.selected { border-color:#c7d3b4; background:#f7faef; }
.feature-list { display:grid; gap:10px; padding:0 0 0 17px; margin:20px 0; font-size:12px; line-height:1.6; color:#738668; }
.modal-body > p { font-size:12px; line-height:1.8; color:#7a8b6f; }
.toast { position: fixed; z-index: 200; bottom: 25px; left: 50%; transform: translate(-50%, 12px); max-width: min(500px, calc(100% - 32px)); border: 1px solid #4d5e48; border-radius: 8px; background: #35462f; color: #fafaf7; padding: 13px 19px; box-shadow: 0 8px 30px #1d30202b; font-size: 12px; line-height: 1.6; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.overview-card { background: #fff; padding: 23px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; box-shadow: var(--shadow); }
.overview-card h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 17px; }
.overview-card h3 { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.overview-card p { color: #879181; font-size: 11px; line-height: 1.8; }
.overview-card table { border-collapse: collapse; width: 100%; font-size: 11px; }
.overview-card th, .overview-card td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.overview-card th { font-size: 9px; color: #969f91; font-weight: 500; }
.overview-card td { color: #62765b; }
.mobile-menu-btn, .mobile-back { display: none; }
.sidebar-overlay { display: none; }
body.menu-open { overflow:hidden; }

/* Comfortable reading sizes for a real employee workday. */
.nav-item { font-size:13px; }
.nav-count { font-size:11px; }
.brand-copy span { font-size:11px; letter-spacing:.11em; }
.subtitle { font-size:13px; }
.button { font-size:12px; min-height:39px; }
.button.small { font-size:11px; min-height:33px; }
.stat-card { min-height:117px; padding:17px 18px 15px; }
.stat-label { font-size:12px; padding-right:22px; margin-bottom:12px; }
.stat-value { font-size:30px; }
.stat-foot { font-size:11px; margin-top:9px; }
.search-field input { font-size:12px; }
.toolbar-filters select { font-size:12px; }
.list-header { font-size:12px; }
.request-card { padding-top:19px; padding-bottom:18px; }
.request-name { font-size:12px; }
.request-name small { font-size:10px; }
.request-time { font-size:10px; }
.request-subject { font-size:13px; }
.request-snippet { font-size:12px; line-height:1.65; }
.request-owner { font-size:10px; }
.badge { font-size:10px; padding:4px 7px; }
.detail-tags { font-size:10px; }
.request-id { font-size:9px; }
.detail-subtitle { font-size:11px; }
.detail-actions .button { font-size:12px; min-height:37px; padding:8px 12px; }
.ownership-row .field > span { font-size:10px; }
.ownership-row .field select { font-size:12px; min-height:37px; }
.contact-item { font-size:12px; }
.contact-item small { font-size:10px; }
.section-title { font-size:10px; }
.section-title .muted, .private-label { font-size:10px; }
.text-button { font-size:11px; }
.message-top strong { font-size:12px; }
.message-top time, .message-top > span:last-child { font-size:10px; }
.message-text { font-size:14px; line-height:1.85; }
.request-facts dt { font-size:10px; }
.request-facts dd { font-size:12px; }
.file-chip strong { font-size:11px; }
.file-chip small { font-size:10px; }
.internal-note { font-size:13px; }
.internal-note small { font-size:10px; }
#note-input { font-size:13px; }
.note-footer > span { font-size:10px; }
.timeline-content { font-size:12px; }
.timeline-content p { font-size:11px; }
.timeline-meta { font-size:10px; }
.calendar-meta { font-size:12px; }
.calendar-meta > small { font-size:10px; }
.calendar-card strong { font-size:13px; }
.callout { font-size:12px; }
.detail-bottom { font-size:10px; }
.field { font-size:12px; }
.modal-body > p { font-size:13px; }
.field input, .field select, .field textarea { font-size:13px; }
.email-content { font-size:13px; }
.recipient-line { font-size:11px; }
.workspace-footnote { font-size:10px; }

@media (min-width: 1600px) {
  .workspace { padding: 38px 44px; }
  .inbox-layout { grid-template-columns: 385px minmax(0, 1fr); }
  .detail-top { padding: 25px 30px 23px; }
  .detail-body { padding: 25px 30px 12px; }
}
@media (max-width: 1190px) {
  .app-shell { grid-template-columns: 188px minmax(0, 1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .brand { padding-left: 9px; gap: 9px; }
  .brand-copy strong { font-size: 15px; }
  .brand-mark { width: 32px; height: 37px; font-size: 26px; }
  .nav-item { font-size: 11px; gap: 8px; padding-left: 11px; padding-right: 10px; }
  .workspace { padding: 27px 22px; }
  .inbox-layout { grid-template-columns: minmax(265px, .86fr) minmax(0, 1.3fr); gap: 13px; }
  .stat-card { padding: 14px 13px 12px; }
  .stat-icon { right: 11px; }
  .stat-label { font-size: 11px; }
  .stat-foot { font-size: 10px; }
  .detail-top { padding: 20px 20px 18px; }
  .detail-body { padding: 20px 20px 5px; }
  .detail-bottom { padding-left: 20px; padding-right: 20px; }
  .toolbar-filters select { max-width: 148px; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { padding: 25px 10px 16px; }
  .brand { justify-content: center; padding: 0 0 35px; }
  .brand-copy, .nav-section > h2, .nav-section > h3, .nav-section-label, .nav-item > span:not(.nav-icon), .sidebar .demo-label, .sidebar-note, .sidebar-reset, .profile > div:not(.avatar), .profile > span:not(.avatar), .profile > svg, .profile > button { display: none; }
  .nav-item { justify-content: center; min-height: 43px; padding: 10px; font-size: 0; gap: 0; }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-item .nav-count { display: none; }
  .profile { padding: 17px 0 0; justify-content: center; }
  .workspace { padding: 25px 20px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .button { font-size: 11px; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 13px 12px; }
  .stat-value { font-size: 26px; }
  .stat-icon { width: 24px; height: 24px; right: 10px; top: 10px; }
  .stat-icon svg { width: 13px; height: 13px; }
  .stat-label { max-width: calc(100% - 23px); padding-right:0; line-height: 1.5; min-height: 15px; }
  .inbox-toolbar { gap: 10px; }
  .toolbar-filters { gap: 5px; }
  .toolbar-filters select { max-width: 132px; font-size: 10px; }
  .inbox-layout { grid-template-columns: minmax(250px, .88fr) minmax(0, 1.25fr); gap: 11px; }
  .request-card { padding: 16px 13px 14px; }
  .detail-top { padding: 18px 16px 16px; }
  .detail-body { padding: 18px 16px 4px; }
  .detail-bottom { padding-left: 16px; padding-right: 16px; }
  .detail-actions { gap: 5px; }
  .detail-actions .button { font-size: 11px; padding: 7px 8px; }
  .request-name { font-size: 12px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; min-height: 0; padding: 28px 17px 19px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 10px 0 40px #16251a33; }
  body.menu-open .sidebar, body.sidebar-open .sidebar, body[data-menu-open="true"] .sidebar { transform: translateX(0); }
  body.menu-open .sidebar-overlay, body.sidebar-open .sidebar-overlay, body[data-menu-open="true"] .sidebar-overlay { display: block; position: fixed; inset: 0; background: #17271a77; backdrop-filter: blur(2px); z-index: 35; }
  .brand { justify-content: flex-start; padding-left: 12px; }
  .brand-copy, .nav-section > h2, .nav-section > h3, .nav-section-label, .profile > div:not(.avatar), .profile > span:not(.avatar) { display: block; }
  .brand-copy span, .brand-copy strong { display: block; }
  .nav-item > span:not(.nav-icon), .nav-item .nav-count { display: inline; }
  .nav-item { justify-content: flex-start; font-size: 12px; gap: 11px; }
  .profile { justify-content: flex-start; padding-left: 8px; }
  .sidebar .demo-label { display: block; }
  .sidebar-note { display:flex; }
  .sidebar-reset { display:block; }
  .workspace { padding: 21px 19px 25px; }
  .topbar { gap: 12px; margin-bottom: 23px; }
  .topbar-main { flex: 1; }
  .eyebrow { font-size: 9px; margin-bottom: 5px; }
  h1 { font-size: 27px; }
  .subtitle { font-size: 12px; max-width: 330px; }
  .mobile-menu-btn { display: inline-flex; margin: 2px 0 0 -6px; }
  .topbar-actions { padding-top: 2px; }
  .topbar-actions > .button:not(.primary) { display: none; }
  .topbar-actions > .button.primary { min-height: 34px; padding: 8px 10px; font-size: 10px; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 20px; }
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 26px; }
  .stat-foot { font-size: 10px; }
  .inbox-toolbar { flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
  .search-field { width: 100%; }
  .search-field input { font-size: 12px; }
  .toolbar-filters { width: 100%; justify-content: flex-start; gap: 7px; }
  .toolbar-filters select { flex: 1; max-width: none; font-size: 12px; }
  .inbox-layout { display: block; }
  .request-list-panel { width: 100%; }
  .list-header { padding: 15px 17px; }
  .request-card { padding: 17px 18px; }
  .request-card-top { margin-bottom: 10px; }
  .request-name { font-size: 12px; }
  .request-time { font-size: 10px; }
  .request-subject { font-size: 13px; }
  .request-snippet { font-size: 12px; margin-bottom: 12px; }
  .request-meta { font-size: 10px; }
  .badge { font-size: 10px; }
  .detail-panel { display: none; }
  body[data-mobile-detail="true"] .request-list-panel,
  body[data-mobile-detail="true"] .stats-grid,
  body[data-mobile-detail="true"] .inbox-toolbar { display: none; }
  body[data-mobile-detail="true"] .detail-panel { display: flex; }
  body[data-mobile-detail="true"] .mobile-back { display: inline-flex; }
  body[data-mobile-detail="true"] .topbar { margin-bottom: 14px; }
  .mobile-back { margin-bottom: 12px; padding-left: 0; color: #718169; }
  .detail-top { padding: 19px 20px; }
  .detail-body { padding: 22px 20px 3px; }
  .detail-title-row h2 { font-size: 23px; }
  .detail-actions { gap: 8px; }
  .detail-actions .button { font-size: 12px; padding: 9px 11px; min-height: 38px; }
  .detail-subtitle { font-size: 11px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
  .contact-item { font-size: 12px; }
  .message-text { font-size: 14px; }
  .message-top strong { font-size: 12px; }
  .message-top time, .message-top > span:last-child { font-size: 10px; }
  .detail-section { margin-bottom: 24px; }
  .section-title { font-size: 10px; }
  .timeline-content { font-size: 12px; }
  .timeline-meta { font-size: 10px; }
  .detail-bottom { position: sticky; bottom: 0; padding: 13px 20px max(13px, env(safe-area-inset-bottom)); background: #fff; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card { padding: 20px; }
  .modal { max-height: calc(100dvh - 24px); width: calc(100% - 24px); }
  .modal-header { padding: 20px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 15px 20px; position: sticky; bottom: 0; }
  .field input, .field select, .field textarea { font-size: 16px; }
}
@media (max-width: 480px) {
  .workspace { padding: 18px 14px 20px; }
  .topbar { gap: 5px; }
  .topbar .subtitle { font-size: 11px; }
  h1 { font-size: 24px; }
  .topbar-actions > .button.primary { font-size: 0; width: 33px; min-height: 33px; padding: 8px; }
  .topbar-actions > .button.primary svg { width: 16px; height: 16px; }
  .stats-grid { gap: 9px; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-card { padding: 13px 14px 11px; }
  .stat-label { font-size: 11px; margin-bottom: 8px; }
  .stat-icon { width: 26px; height: 26px; }
  .stat-foot { font-size: 10px; margin-top: 6px; }
  .toolbar-filters { gap: 6px; }
  .toolbar-filters select { width: 50%; padding-left: 9px; padding-right: 22px; font-size: 11px; }
  .list-header { padding: 13px 15px; }
  .request-card { padding: 16px 15px; }
  .request-subject { font-size: 13px; }
  .request-name { font-size: 12px; }
  .request-snippet { font-size: 12px; }
  .detail-top { padding: 17px 16px; }
  .detail-body { padding: 20px 16px 1px; }
  .detail-title-row h2 { font-size: 21px; }
  .detail-actions .button { font-size: 11px; padding: 8px 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 13px; }
  .message-card { padding: 14px; }
  .message-top { flex-wrap: wrap; }
  .message-top time, .message-top > span:last-child { font-size: 9px; }
  .detail-bottom { padding-left: 16px; padding-right: 16px; font-size: 10px; gap: 8px; }
  .detail-bottom .button { font-size: 9px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .modal-header { padding: 18px; }
  .modal-header h2 { font-size: 19px; }
  .modal-body { padding: 18px; }
  .modal-footer { padding: 13px 18px; }
  .modal-footer .button { flex: 1; white-space: normal; }
  .calendar-card { align-items: flex-start; padding: 13px; gap: 10px; }
  .calendar-card > svg { width: 25px; height: 25px; }
  .calendar-card strong { font-size: 12px; }
  .ownership-row { flex-direction:column; align-items:stretch; gap:12px; }
  .detail-title-row:has(.detail-tags) { align-items:flex-start; gap:8px; }
  .detail-tags { gap:5px; }
  .request-id { font-size:8px; padding-top:5px; }
  .request-facts { grid-template-columns:1fr; gap:12px; }
  #note-input { font-size:16px; }
  .section-title { flex-wrap:wrap; gap:7px; }
  .overview-card { padding: 17px; }
  .toast { bottom: max(16px, env(safe-area-inset-bottom)); font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
@media print {
  body { background: #fff; }
  .app-shell { display: block; }
  .sidebar, .topbar-actions, .stats-grid, .inbox-toolbar, .request-list-panel, .detail-actions, .detail-bottom, .mobile-back, .mobile-menu-btn, .toast { display: none !important; }
  .workspace { padding: 0; }
  .inbox-layout { display: block; }
  .detail-panel { display: block !important; border: 0; box-shadow: none; }
  .detail-top, .detail-body { padding-left: 0; padding-right: 0; }
  .detail-section { break-inside: avoid; }
}

/* Shared authenticated workspace: customer records stay in server storage. */
[hidden] { display:none!important; }
body[data-auth="loading"],body[data-auth="signed-out"] { min-height:100dvh; background:#f3f4ee; }
.auth-screen { min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:36px 20px; }
.auth-brand { display:flex; align-items:center; gap:13px; margin-bottom:30px; }
.auth-brand > span:last-child { display:grid; gap:4px; }
.auth-brand strong { font-size:24px; letter-spacing:.08em; }
.auth-brand small { font-size:11px; letter-spacing:.15em; color:#738071; }
.auth-card { width:min(430px,100%); background:#fff; border:1px solid var(--line); box-shadow:0 15px 50px #33443008; border-radius:14px; padding:34px; }
.auth-card h1 { font-size:29px; }
.auth-card .subtitle { margin-bottom:26px; }
.auth-card .field { margin-top:18px; }
.auth-card .field input { min-height:44px; font-size:16px; }
.field-help { margin:12px 0 0; font-size:12px; line-height:1.6; color:var(--muted); }
.auth-card .field-help { text-align:center; }
.auth-submit { width:100%; margin-top:20px; min-height:44px; font-size:13px; }
.auth-footer { margin:22px 0 0; color:#8b9386; font-size:10px; text-align:center; }
.auth-notice { font-size:12px; line-height:1.7; color:var(--muted); }
.form-error,.app-error { background:#fff0eb; border:1px solid #efc5bc; color:#9a3b2e; border-radius:7px; padding:12px 14px; font-size:12px; line-height:1.65; white-space:pre-line; overflow-wrap:anywhere; }
.form-error { margin-top:15px; }
.modal-error { margin:0 25px 20px; }
.app-error { margin-bottom:20px; }
.app-error button { margin-left:8px; }
.loading-view { display:grid; place-items:center; align-content:center; min-height:240px; padding:32px; gap:12px; font-size:12px; line-height:1.7; text-align:center; color:#7d8b76; }
.loading-spinner { width:22px; height:22px; border:2px solid #e2e7dc; border-top-color:#ab9365; border-radius:50%; animation:loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform:rotate(360deg); } }
button[disabled],input[disabled],select[disabled] { opacity:.55; cursor:default; }
.button { max-width:100%; }
.contact-item a { text-decoration:underline; text-underline-offset:3px; }
.team-list { display:grid; gap:10px; }
.team-member { display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:8px; padding:13px; }
.team-member > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.team-member strong { display:block; font-size:13px; }
.team-member small { font-size:11px; color:var(--muted); }
.source-link { font-size:10px; overflow-wrap:anywhere; }
.session-note { color:var(--muted); font-size:11px; line-height:1.7; }
.file-chip { text-decoration:none; }
.file-chip > span { overflow-wrap:anywhere; }
.calendar-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.list-load-more { padding:16px; border-top:1px solid var(--line); text-align:center; }
.preview-footer-note { font-size:11px; color:#6b7864; line-height:1.6; margin-top:14px; }
@media(max-width:480px) { .auth-card { padding:24px; } .modal-error { margin:0 18px 16px; } }
@media print { #auth-screen, .app-error, #modal { display:none!important; } }
@media(max-width:760px) {
  .topbar-actions > #refresh-button { display:inline-flex; width:34px; height:34px; min-height:34px; padding:8px; font-size:0; }
  .topbar-actions > #refresh-button .icon { width:16px; height:16px; }
}

/* Clear onboarding and administration without adding setup work for employees. */
.sidebar { min-height:0; overflow-y:auto; }
.sidebar .nav-section { flex-shrink:0; margin-bottom:14px; }
.support-nav { display:grid; gap:4px; border-top:1px solid #404548; padding-top:12px; margin-bottom:20px; flex-shrink:0; }
.sidebar-note { margin-bottom:12px; }
.sidebar-footer { flex-shrink:0; }
.quick-guide { border:1px solid #e5dfce; border-radius:9px; background:#fbf9f0; margin-bottom:22px; padding:14px 17px; }
.quick-guide summary { cursor:pointer; color:#615944; font-weight:600; font-size:13px; line-height:1.65; }
.quick-guide ol { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:16px 0 4px; padding:0; }
.quick-guide li strong,.quick-guide li span { display:block; font-size:13px; line-height:1.65; }
.quick-guide li span { color:#6e736f; margin-top:5px; }
#secondary-page { min-width:0; }
.team-workspace { display:grid; grid-template-columns:minmax(280px,.85fr) minmax(360px,1.25fr); gap:22px; align-items:start; }
.admin-card { border:1px solid var(--line); background:#fff; border-radius:12px; padding:25px; box-shadow:var(--shadow); min-width:0; }
.admin-card h2 { font-size:20px; font-weight:650; line-height:1.35; letter-spacing:-.02em; margin-bottom:9px; }
.admin-card p { font-size:14px; line-height:1.75; color:#667079; overflow-wrap:anywhere; }
.admin-card .field-help { font-size:12px; line-height:1.7; margin-bottom:0; }
.admin-card .field { display:block; margin:20px 0; font-size:14px; }
.admin-card .field > span { display:block; margin-bottom:8px; }
.admin-card .field > span small { color:var(--muted); font-weight:400; }
.admin-card .field input { min-height:45px; font-size:15px; width:100%; }
.admin-card > p:last-child { margin-bottom:0; }
.section-heading { display:flex; gap:13px; align-items:flex-start; margin-bottom:21px; }
.section-heading > div { flex:1; min-width:0; }
.section-heading p { margin:0; font-size:13px; }
.section-symbol { flex:0 0 auto; display:grid; place-items:center; width:39px; height:39px; border-radius:10px; background:#f7efd9; color:#8c6c2c; }
.section-symbol.success { color:#397547; background:#eaf3e6; }
.section-symbol .icon { width:20px; height:20px; }
.access-choices { border:0; padding:0; margin:22px 0; }
.access-choices legend { font-size:14px; font-weight:600; margin-bottom:10px; }
.access-choices label { display:flex; align-items:flex-start; gap:11px; border:1px solid var(--line-strong); padding:14px; border-radius:8px; cursor:pointer; margin-bottom:9px; }
.access-choices label:has(input:checked) { border-color:#c4b27c; background:#fcfaf2; }
.access-choices input { margin-top:3px; accent-color:var(--red); width:17px; height:17px; flex:0 0 auto; }
.access-choices strong { display:block; font-size:13px; line-height:1.6; }
.access-choices small { display:block; color:#6b737b; font-size:12px; line-height:1.6; margin-top:4px; }
.invite-card .button { min-height:44px; font-size:13px; white-space:normal; width:100%; }
.team-total { display:inline-flex; min-width:25px; min-height:25px; border-radius:6px; align-items:center; justify-content:center; background:#f1f2ee; font-size:13px; padding:3px 7px; margin-left:5px; vertical-align:middle; }
.team-member-list { display:grid; gap:13px; }
.member-card { padding:17px; border:1px solid var(--line); border-radius:9px; }
.member-top { display:flex; align-items:flex-start; gap:11px; }
.member-name { flex:1; min-width:0; }
.member-name h3 { font-size:14px; line-height:1.5; margin:1px 0 4px; font-weight:650; overflow-wrap:anywhere; }
.member-name h3 small { font-weight:400; color:var(--muted); }
.member-name p { margin:0; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.member-top .badge { flex:0 0 auto; margin-top:4px; }
.member-card .member-access { font-size:12px; color:#545e66; display:flex; align-items:center; gap:7px; margin:13px 0 0; }
.member-access .icon { width:13px; height:13px; }
.member-card .member-explanation { font-size:12px; line-height:1.65; color:#7b7463; margin:11px 0 0; }
.member-card .member-expiry { font-size:11px; margin:5px 0 0; color:var(--muted); }
.member-actions { display:flex; flex-wrap:wrap; gap:6px; border-top:1px solid var(--line); padding-top:12px; margin-top:13px; }
.member-actions .button { font-size:11px; min-height:35px; }
.settings-page { display:grid; gap:23px; max-width:950px; }
.settings-page .admin-card { padding:29px; }
.ready-list { padding-left:20px; margin:0; font-size:14px; line-height:1.8; color:#58655c; }
.ready-list li + li { margin-top:7px; }
.settings-kicker { display:block; font-size:10px; letter-spacing:.05em; color:#8f7951; margin-bottom:9px; line-height:1.6; }
.mail-example { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:15px; margin:25px 0; padding:20px; border:1px solid #ebe4d0; background:#fcfaf3; border-radius:9px; font-size:13px; line-height:1.75; color:#74664d; }
.mail-example > .icon { width:17px; height:17px; color:#b3a47e; }
.settings-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:18px; }
.mail-settings-card > .button { min-height:44px; font-size:13px; white-space:normal; margin-top:9px; }
.help-page { max-width:960px; }
.help-steps { margin:0 0 24px; padding:0; list-style:none; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.help-steps li { padding:25px 27px; display:flex; align-items:flex-start; gap:20px; }
.help-steps li + li { border-top:1px solid var(--line); }
.step-number { display:grid; place-items:center; width:38px; height:38px; flex:0 0 auto; background:#f7ebc7; border-radius:50%; color:#806420; font-weight:700; }
.help-steps h2 { font-size:19px; line-height:1.4; margin-bottom:8px; }
.help-steps p { font-size:14px; line-height:1.85; color:#667079; margin:0; }
.help-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:19px; margin-bottom:24px; }
.help-grid .admin-card h2 { font-size:17px; }
.help-grid .admin-card p { font-size:13px; }
.invitation-welcome { border:1px solid #e5e9df; border-radius:8px; padding:13px; background:#f8faf4; display:flex; align-items:flex-start; gap:10px; }
.invitation-welcome p { color:#607058; font-size:13px; line-height:1.7; margin:0; }
.invitation-check { font-size:17px; font-weight:700; color:#739250; }
#invitation-problem .field-help { text-align:left; }
#auth-subtitle { overflow-wrap:anywhere; }
@media (max-height:850px) and (min-width:761px) { .sidebar-note { display:none; } .sidebar { padding-top:20px; } .brand { padding-bottom:23px; } .nav-item { min-height:40px; padding-top:8px; padding-bottom:8px; } }
@media (max-width:1100px) { .team-workspace { grid-template-columns:1fr; } .team-members-card { order:2; } .invite-card { max-width:none; } .access-choices { display:grid; grid-template-columns:1fr 1fr; gap:9px; } .access-choices legend { grid-column:1/-1; } .access-choices label { margin:0; } .invite-card .button { width:auto; } }
@media (max-width:760px) { .quick-guide { padding:13px 14px; margin-bottom:18px; } .quick-guide summary { font-size:12px; } .quick-guide ol { grid-template-columns:1fr; gap:13px; } .admin-card,.settings-page .admin-card { padding:21px; } .admin-card h2 { font-size:19px; } .team-workspace { gap:18px; } .access-choices { display:block; } .access-choices label { margin-bottom:9px; } .admin-card .field input { font-size:16px; } .invite-card .button { width:100%; } .member-top { flex-wrap:wrap; } .member-top .member-name { flex-basis:calc(100% - 52px); } .member-top .badge { margin:0 0 0 43px; } .member-card { padding:15px; } .member-actions .button { min-height:39px; } .mail-example { grid-template-columns:1fr; gap:10px; padding:17px; } .mail-example > .icon { transform:rotate(90deg); } .mail-settings-card .section-heading { flex-wrap:wrap; } .mail-settings-card .section-heading > div { flex-basis:calc(100% - 52px); } .mail-settings-card .section-heading > .badge { margin-left:52px; } .help-grid { grid-template-columns:1fr; gap:15px; } .help-steps li { padding:21px 19px; gap:14px; } .help-steps h2 { font-size:17px; } .help-steps p { font-size:13px; } .step-number { width:30px; height:30px; font-size:13px; } .settings-actions { align-items:stretch; flex-direction:column; } .settings-actions .button { white-space:normal; min-height:44px; } .support-nav { margin-top:4px; } }
@media (prefers-reduced-motion:reduce) { .loading-spinner { animation:none; border-top-color:#ab9365; } }
/* Manual phone intake and opt-in staff KAI assistance. */
#new-request-button{min-height:44px;font-size:12px;white-space:normal}
.modal[data-operation] .field>span{font-size:13px;color:#45535a}.modal[data-operation] .field input,.modal[data-operation] .field select,.modal[data-operation] .field textarea{min-height:44px;font-size:16px}
.modal[data-operation] .field-grid{margin-bottom:15px}.modal[data-operation] .field small{font-size:12px;color:#65716b}
.operation-intro{font-size:14px;line-height:1.7;color:#45535a;margin-top:0}
.operation-more{margin:4px 0 18px;border:1px solid var(--line);border-radius:7px;padding:0 14px}.operation-more>summary{min-height:44px;padding:13px 0;font-size:13px;font-weight:600;cursor:pointer}.operation-more>summary span{font-weight:400;color:#65716b}.operation-more[open]>summary{margin-bottom:8px}
.operation-discard{padding:15px;border:1px solid #e5bd7b;border-radius:7px;background:#fffbf2;color:#564326;font-size:14px}.operation-discard p{margin:0 0 12px}.operation-discard button{margin:0 6px 6px 0;white-space:normal;min-height:44px}
.assist-panel{margin-top:16px;padding:18px;border:1px solid #cfdad1;border-radius:8px;background:#f7f9f6;color:#35463a;overflow-wrap:anywhere}.assist-panel[hidden]{display:none}
.assist-panel h3{margin:0 0 8px;font-size:17px}.assist-panel h4{margin:0 0 10px;font-size:15px}.assist-panel p{font-size:13px;line-height:1.65;margin:0 0 12px}.assist-panel .button{min-height:44px;font-size:12px;white-space:normal;text-align:center}.assist-panel .form-error{margin:12px 0}
.assist-sources{border:0;margin:16px 0;padding:0;min-width:0}.assist-sources legend{font-size:13px;font-weight:650;margin-bottom:9px}.assist-source{padding:10px 12px;background:#fff;border:1px solid #dce4dc;border-radius:6px;margin:7px 0}.assist-source>label,.assist-consent{display:flex;gap:10px;align-items:flex-start;min-height:44px;padding:10px 0;font-size:13px;line-height:1.6;cursor:pointer}.assist-source input,.assist-consent input{margin:3px 0 0;width:18px;height:18px;flex:none;accent-color:var(--red)}
.assist-source summary,.assist-evidence summary{font-size:13px;cursor:pointer;min-height:40px;padding:10px 0}.assist-source pre,.assist-source-preview pre,.assist-reply{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font:inherit;font-size:14px;line-height:1.7;margin:8px 0;max-height:300px;overflow:auto;overscroll-behavior:contain}
.assist-disclosure,.assist-result{border-top:1px solid #cfdad1;margin-top:18px;padding-top:18px}.assist-source-preview{padding:12px 0;border-top:1px solid #dce4dc}.assist-source-preview strong{font-size:13px}.assist-panel .assist-notice{padding:12px;background:#fff6df;border-radius:6px;color:#594722}
.assist-metadata{display:grid;gap:8px;margin:0 0 16px}.assist-metadata>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;font-size:12px;line-height:1.6}.assist-metadata dt{color:#56675a}.assist-metadata dd{margin:0;font-weight:600}
.assist-reply{max-height:none;padding:14px;border:1px solid #d3dfd3;background:#fff;border-radius:6px;color:#263a2e}.assist-evidence{margin:12px 0}.assist-evidence strong{font-size:12px}.assist-evidence blockquote{margin:5px 0 12px;padding-left:12px;border-left:2px solid #a7b9a7;font-size:13px;white-space:pre-wrap}.assist-result-actions{display:flex;gap:8px;flex-wrap:wrap}.assist-panel .assist-replace-note{font-size:12px}.assist-panel .assist-applied{color:#265c37;font-weight:600}
.modal[data-operation] .modal-footer>.button{min-height:44px;font-size:12px}.modal[data-operation] .close-button{min-width:44px;min-height:44px}
@media(max-width:600px){.modal[data-operation] .field-grid{grid-template-columns:1fr}.assist-panel{padding:14px}.assist-result-actions{flex-direction:column}.assist-result-actions>.button{width:100%}}
@media(max-width:480px){.topbar{flex-wrap:wrap}.topbar-main{flex-basis:100%}.topbar-actions{width:100%;padding-top:8px}.topbar-actions>#new-request-button{width:auto;min-height:44px;padding:10px 14px;font-size:12px}.modal[data-operation] .modal-footer{display:grid;grid-template-columns:1fr}.modal[data-operation] .modal-footer>.button{width:100%}}
