/* Deployed Consultancy green palette, sourced from lsa-planner's green theme. */
:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --page: #111612;
  --header: #202821;
  --nav: #1a211b;
  --panel: #29362b;
  --card: #222c24;
  --subcard: #1f2821;
  --input: #141a15;
  --control: #37433a;
  --hover: #313d33;
  --brand: #304E26;
  --accent: #FF860A;
  --border: #465249;
  --input-border: #566159;
  --control-border: #5d6860;
  --text: #e9ece9;
  --strong: #eef1ee;
  --muted: #a7afa9;
  --nav-text: #a4aca6;
  --good: #7ad7a1;
  --bad: #ff9999;
  --signal-low: #ff5c5c;
  --signal-average: #ffb020;
  --signal-good: #62d987;
  color: var(--text);
  background: var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; height: 100svh; overflow: hidden; }
button, textarea, input, select { font: inherit; }
select { background: var(--input); color: var(--text); border: 1px solid var(--input-border); border-radius: 6px; padding: 7px; }
button { cursor: pointer; transition: background .15s ease, border-color .15s ease; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: 3px; }
.admin-link { font-size: 11px; }
.access-panel { max-width: 520px; margin: auto; height: calc(100svh - 40px); overflow: auto; padding: 36px 24px; }
.access-panel .brand { padding: 0; display: flex; margin-bottom: 32px; }
.access-panel h1 { font-size: 23px; }
.access-panel p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.access-panel form { display: grid; gap: 10px; margin: 24px 0; }
.access-panel label { font-size: 12px; margin-top: 6px; }
.access-panel input { width: 100%; padding: 12px; border: 1px solid var(--input-border); border-radius: 7px; color: var(--text); background: var(--input); }
.login-role-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 24px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--input); }
.login-role-options span, .login-role-options a { padding: 9px 12px; border-radius: 5px; color: var(--text); font-size: 13px; text-align: center; text-decoration: none; }
.login-role-options span { background: var(--control); }
.login-role-options a:hover { background: var(--hover); }
.android-download { display: inline-block; margin-top: 12px; }
.password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.password-control button.password-toggle { min-width: 64px; min-height: 44px; }
.access-panel .form-error { padding: 0; color: var(--bad); }
.access-panel > a { font-size: 13px; }
.driver-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.driver-tools [role="status"] { color: var(--muted); font-size: 11px; }
.driver-tools button[data-sharing="true"] { border-color: var(--good); color: var(--good); }
.driver-tools #signout-device { margin-left: auto; }
.location-note { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 10px 0 14px; }
.comms-bar { height: 40px; position: sticky; top: 0; z-index: 2; padding: 8px 24px; display: flex; gap: 24px; align-items: center; justify-content: flex-end; background: var(--input); border-bottom: 1px solid var(--border); }
.status-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-chip strong { font-weight: 650; color: var(--text); }
.status-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--muted); }
.status-chip[data-state="unencrypted"] strong { color: var(--bad); }
.status-chip[data-state="unencrypted"] .status-dot { background: var(--bad); }
.status-chip[data-state="blocked"] strong { color: var(--accent); }
.status-chip[data-state="blocked"] .status-dot { background: var(--accent); }
.status-chip[data-state="connecting"] .status-dot { background: var(--accent); }
.status-chip[data-state="encrypted"] strong { color: var(--good); }
.status-chip[data-state="encrypted"] .status-dot, .status-chip[data-state="local"] .status-dot, .status-chip[data-state="internet"] .status-dot, .status-chip[data-state="radio"] .status-dot { background: var(--good); }
.app-shell { display: grid; grid-template-columns: 282px minmax(0, 1fr); height: calc(100svh - 40px); min-height: 0; max-width: 1680px; margin: auto; background: var(--page); }
.sidebar { display: flex; flex-direction: column; background: var(--nav); color: var(--text); padding: 29px 18px 0; border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--control-border); background: var(--brand); border-radius: 10px; color: var(--strong); font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.brand strong { display: block; font-size: 15px; font-weight: 750; letter-spacing: -.2px; }
.brand div > span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.workspace-label { padding: 0 12px; display: flex; justify-content: space-between; margin: 36px 0 13px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 1px; }
.group-list { display: grid; gap: 7px; }
.group-button { text-align: left; border: 1px solid transparent; border-radius: 9px; padding: 15px 11px; display: flex; gap: 12px; color: var(--nav-text); background: transparent; min-width: 0; }
.group-button:hover { background: var(--hover); }
.group-button.active { background: var(--panel); border-color: var(--border); border-left: 3px solid var(--accent); color: var(--accent); padding-left: 9px; }
.group-symbol { flex-shrink: 0; height: 35px; width: 35px; display: grid; place-items: center; border: 1px solid var(--control-border); border-radius: 8px; color: var(--text); background: var(--subcard); font-size: 13px; }
.group-symbol.medical { background: var(--brand); color: var(--strong); font-size: 22px; font-weight: 350; }
.group-copy strong { display: block; font-size: 12px; font-weight: 650; margin: 2px 0 7px; }
.group-copy > span { color: var(--muted); font-size: 11px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
.sidebar-footer { display: flex; align-items: center; gap: 11px; padding: 21px 10px; border-top: 1px solid var(--border); margin-top: auto; }
.profile-avatar { background: var(--control); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-size: 11px; }
.sidebar-footer strong { font-size: 12px; font-weight: 650; }
.sidebar-footer div > span { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.conversation { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.conversation-header { display: flex; justify-content: space-between; align-items: center; min-height: 88px; background: var(--header); padding: 22px 32px; border-bottom: 1px solid var(--border); gap: 16px; }
.group-heading { display: flex; gap: 13px; align-items: center; }
.header-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--control-border); border-radius: 10px; background: var(--brand); color: var(--strong); font-size: 25px; font-weight: 300; }
h1 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.2px; }
.group-heading p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.quiet-button { border: 1px solid var(--control-border); background: var(--control); color: var(--text); border-radius: 7px; padding: 9px 12px; font-size: 11px; font-weight: 550; white-space: nowrap; }
.quiet-button:hover { background: var(--hover); border-color: var(--accent); }
.chat-system-notice { max-width: 430px; width: fit-content; margin: 0 auto 22px; padding: 10px 14px; border-radius: 9px; background: var(--subcard); color: var(--muted); text-align: center; }
.chat-system-notice p { margin: 0; font-size: 11px; line-height: 1.5; }
.thread { flex: 1; min-height: 0; padding: 27px 36px 20px; overflow: auto; scroll-behavior: smooth; }
.empty-state { padding: 20px 0; color: var(--muted); }
.empty-state h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.empty-state p { margin: 0; font-size: 12px; }
.message { max-width: 600px; display: flex; gap: 12px; margin-bottom: 23px; }
.message.own { margin-left: auto; justify-content: flex-end; }
.message-body { min-width: 0; max-width: 100%; }
.message-label { display: flex; gap: 8px; font-size: 11px; color: var(--muted); align-items: center; margin: 0 0 8px; }
.message-label strong { color: var(--muted); font-size: 11px; font-weight: 600; }
.message.own .message-label { justify-content: flex-end; }
.bubble { padding: 14px 17px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.own .bubble { background: var(--brand); border-color: var(--control-border); border-radius: 10px 2px 10px 10px; }
.message-receipt { margin-top: 8px; text-align: right; color: var(--muted); font-size: 10px; }
.message-location { margin-top: 6px; color: var(--muted); font-size: 11px; }
.message-location summary { cursor: pointer; }
.message-location p { margin: 6px 0; }
.access-alerts { position: fixed; z-index: 100; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); max-height: 65vh; overflow: auto; padding: 18px; border: 2px solid var(--accent, #ff8500); border-radius: 12px; background: var(--surface, #202c23); color: var(--text, #eef1ec); box-shadow: 0 8px 32px #0008; }
.access-alerts[hidden] { display: none; }
.access-alerts h2 { margin: 0 0 8px; font-size: 20px; }
.access-alerts p { font-size: 12px; margin: 8px 0; }
.access-alerts article { border-top: 1px solid #637065; padding: 14px 0; }
.access-alerts label { display: block; margin: 12px 0; font-size: 13px; }
.access-alerts button { padding: 8px 16px; margin-right: 10px; cursor: pointer; }
.access-alerts button:disabled { opacity: .5; cursor: default; }
.form-card { width: 380px; max-width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.form-card-main { display: flex; gap: 13px; padding: 19px 19px 14px; }
.form-icon { width: 39px; height: 43px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--brand); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; font-size: 25px; }
.form-card h2 { margin: 3px 0 8px; font-size: 13px; font-weight: 650; }
.form-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.form-card-status { padding: 0 19px 16px; color: var(--muted); font-size: 11px; }
.form-card-actions { background: var(--subcard); border-top: 1px solid var(--border); padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.form-card-actions > span { color: var(--muted); font-size: 10px; }
.form-card-actions button { border: none; background: none; color: var(--accent); font-size: 11px; font-weight: 650; padding: 5px 0; }
.composer-area { padding: 14px 32px 19px; background: var(--header); border-top: 1px solid var(--border); }
.composer-tools { display: flex; gap: 20px; align-items: center; margin-bottom: 12px; }
.form-tool { display: flex; align-items: center; gap: 7px; border: 1px solid var(--control-border); color: var(--text); background: var(--control); padding: 8px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.form-tool > span { color: var(--accent); font-size: 14px; }
.form-tool:hover { background: var(--hover); border-color: var(--accent); }
.attachment-note { color: var(--muted); font-size: 10px; }
.composer { display: flex; align-items: center; border: 1px solid var(--input-border); background: var(--input); border-radius: 10px; padding: 7px 8px 7px 16px; gap: 12px; }
.composer textarea { resize: none; width: 100%; min-height: 24px; max-height: 85px; padding: 8px 0; border: none; background: transparent; color: var(--text); font-size: 13px; line-height: 1.5; }
.composer textarea::placeholder { color: var(--muted); }
.send-button { flex-shrink: 0; border: none; border-radius: 7px; background: var(--accent); color: #1a110b; padding: 11px 13px; font-size: 11px; display: flex; gap: 14px; align-items: center; font-weight: 750; }
.send-button:hover, .primary-button:hover { background: #ff9a32; }
.composer-caption { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 11px; gap: 12px; }
.composer-error { color: var(--bad); font-size: 11px; margin: 9px 0 0; }
.composer-error:empty { display: none; }
dialog { border: 1px solid var(--border); padding: 0; color: var(--text); background: var(--panel); box-shadow: 0 24px 100px #0008; }
dialog::backdrop { background: #111612c7; backdrop-filter: blur(2px); }
.form-dialog { width: min(760px, calc(100vw - 32px)); max-height: 90svh; border-radius: 13px; }
.dialog-header { display: flex; justify-content: space-between; gap: 14px; padding: 25px 28px 21px; border-bottom: 1px solid var(--border); background: var(--header); }
.dialog-header h2 { font-size: 22px; letter-spacing: -.3px; margin: 8px 0; font-weight: 750; }
.dialog-header p { color: var(--muted); font-size: 11px; margin: 0; }
.close-button { border: 1px solid var(--control-border); background: var(--control); border-radius: 7px; width: 30px; height: 30px; font-size: 22px; color: var(--text); }
.dialog-comms { position: sticky; top: 0; z-index: 1; display: flex; gap: 22px; flex-wrap: wrap; background: var(--input); padding: 12px 28px; border-bottom: 1px solid var(--border); }
.form-toolbar { padding: 20px 28px 5px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.form-toolbar p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.medical-fields { padding: 17px 28px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px 20px; }
.medical-field { min-width: 0; }
.medical-field label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 12px; font-weight: 650; }
.line-number { color: var(--accent); font-size: 10px; background: var(--brand); border-radius: 4px; padding: 3px 5px; }
.medical-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 7px; color: var(--text); background: var(--input); font-size: 12px; resize: vertical; min-height: 58px; }
.field-count { font-size: 10px; color: var(--muted); display: block; text-align: right; margin-top: 5px; }
.field-count.over-limit { color: var(--bad); }
.medical-field.wide { grid-column: 1 / -1; }
.medical-fields[data-locked="true"] { opacity: .72; }
.form-radio-plan { margin: 0 28px 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-radio-plan[data-state="uncertain"] { color: var(--bad); }
.form-error { margin: 0; padding: 0 28px 14px; color: var(--bad); font-size: 12px; line-height: 1.5; }
.form-error:empty { padding: 0; }
.dialog-actions { border-top: 1px solid var(--border); background: var(--header); padding: 19px 28px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.dialog-actions > span { font-size: 11px; color: var(--muted); }
.primary-button { background: var(--accent); color: #1a110b; border: none; border-radius: 7px; padding: 12px 16px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.primary-button > span[aria-hidden="true"] { margin-left: 14px; }
.roundtrip-note { margin: 20px 28px 0; padding: 12px 15px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--muted); font-size: 11px; }
.received-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 28px; margin: 0; }
.received-field { border-bottom: 1px solid var(--border); padding-bottom: 15px; min-width: 0; }
.received-field dt { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.received-field dd { margin: 0; color: var(--text); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.payload-details { margin: 0 28px 24px; font-size: 11px; color: var(--muted); }
.payload-details summary { cursor: pointer; }
.payload-details pre { padding: 14px; background: var(--input); border: 1px solid var(--border); border-radius: 7px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; max-height: 160px; overflow: auto; }
.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; }
.noscript { padding: 20px; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--nav); }
::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 3px; }
@media (min-width: 1450px) { .thread { padding-left: 80px; padding-right: 80px; } }
@media (max-width: 850px) { .app-shell { grid-template-columns: 230px minmax(0, 1fr); } .sidebar { padding-left: 10px; padding-right: 10px; } .brand { gap: 9px; } .brand strong { font-size: 13px; } .conversation-header, .connection-note { padding-left: 24px; padding-right: 24px; } .thread { padding-left: 24px; padding-right: 24px; } .composer-area { padding-left: 24px; padding-right: 24px; } .composer-tools { flex-wrap: wrap; gap: 9px; } .send-button > span { display: none; } }
@media (max-width: 600px) { .comms-bar { padding: 8px 12px; gap: 16px; justify-content: space-between; } .status-chip { font-size: 10px; gap: 4px; } .app-shell { display: flex; flex-direction: column; } .sidebar { padding: 12px 15px; flex-shrink: 0; border-right: none; border-bottom: 1px solid var(--border); } .brand, .workspace-label, .sidebar-footer { display: none; } .group-list { display: flex; gap: 9px; } .group-button { padding: 8px 10px; flex: 1; align-items: center; gap: 7px; } .group-button.active { padding-left: 8px; } .group-symbol { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; } .group-symbol.medical { font-size: 18px; } .group-copy strong { margin: 0; font-size: 11px; } .group-copy > span { display: none; } .conversation { flex: 1; } .conversation-header { min-height: 75px; padding: 14px 18px; } h1 { font-size: 15px; } .header-symbol { width: 34px; height: 34px; } .connection-note { padding: 10px 18px; } .thread { padding: 20px 18px 10px; } .message { gap: 8px; } .composer-area { padding: 12px 18px; } .composer-caption span:last-child { display: none; } .attachment-note { font-size: 10px; } .dialog-header { padding: 20px; } .dialog-comms { padding: 12px 20px; gap: 16px; } .form-toolbar { padding: 18px 20px 5px; align-items: flex-start; flex-direction: column; } .medical-fields, .received-fields { grid-template-columns: 1fr; padding: 20px; } .dialog-actions { padding: 16px 20px; flex-wrap: wrap; } .roundtrip-note { margin-left: 20px; margin-right: 20px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } .thread { scroll-behavior: auto; } }
@media (max-width: 600px) { .comms-bar { height: auto; min-height: 40px; gap: 8px; flex-wrap: wrap; } .group-list { overflow-x: auto; } .group-button { flex: 0 0 auto; } .driver-tools #signout-device { margin-left: 0; } }
