:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --sidebar: #111110;
  --surface: #171716;
  --surface-2: #1d1d1b;
  --surface-3: #252522;
  --line: #2c2c28;
  --line-soft: rgba(255, 255, 255, .07);
  --text: #f3f0e8;
  --muted: #96938a;
  --accent: #d9ff57;
  --accent-ink: #111407;
  --warm: #f0b36d;
  --danger: #ff8f7d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% -15%, rgba(217, 255, 87, .075), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 255, 87, .5);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(217, 255, 87, .16), rgba(217, 255, 87, .04));
  color: var(--accent);
  font: 800 28px/1 Georgia, serif;
  box-shadow: inset 0 0 20px rgba(217, 255, 87, .04);
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 21px;
}

.login-screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .72)),
    repeating-linear-gradient(115deg, transparent 0 74px, rgba(255, 255, 255, .018) 75px 76px);
}

.login-card {
  width: min(430px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(20, 20, 19, .94);
  box-shadow: var(--shadow);
}

.login-card .brand-mark { margin-bottom: 28px; }
.login-card h1 { margin: 9px 0 12px; font-size: 31px; line-height: 1.08; letter-spacing: -.04em; }
.login-copy { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.login-card label { display: block; margin-bottom: 8px; color: #cbc7bd; font-size: 12px; font-weight: 700; }
.login-card input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: var(--surface-2);
  color: var(--text);
}
.login-card input:focus { border-color: rgba(217, 255, 87, .7); box-shadow: 0 0 0 3px rgba(217, 255, 87, .08); }
.login-card input + label { margin-top: 16px; }
.form-error { min-height: 20px; margin: 7px 0 3px; color: var(--danger); font-size: 12px; }
.primary-button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 850;
}
.primary-button:disabled { opacity: .55; cursor: wait; }
.login-note { margin: 20px 0 0; color: #6f6d66; font-size: 11px; line-height: 1.5; }

.workspace {
  height: 100%;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
}

.sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(17, 17, 16, .96);
}

.sidebar-header { padding: 24px 20px 18px; border-bottom: 1px solid var(--line-soft); }
.brand-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.brand-row h1 { margin: 4px 0 0; font-size: 22px; line-height: 1; letter-spacing: -.03em; }
.header-actions { display: flex; gap: 7px; }

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-button:hover { background: var(--surface-2); color: var(--text); }
.icon-button:disabled { opacity: .38; cursor: default; }
.notification-button.enabled { border-color: rgba(217, 255, 87, .42); color: var(--accent); background: rgba(217, 255, 87, .07); }
.notification-glyph {
  position: relative;
  width: 12px;
  height: 13px;
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 7px 7px 4px 4px;
}
.notification-glyph::before { content: ""; position: absolute; left: 50%; top: -4px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.notification-glyph::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 2px; border-radius: 0 0 5px 5px; background: currentColor; transform: translateX(-50%); }
.notification-glyph.large { width: 22px; height: 24px; border-width: 2px; border-radius: 12px 12px 7px 7px; }
.notification-glyph.large::before { top: -6px; width: 5px; height: 5px; }
.notification-glyph.large::after { bottom: -6px; width: 8px; height: 3px; }

.stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.stats div { padding: 11px 12px 10px; background: var(--surface); }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 17px; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: 10px; }

.search {
  height: 42px;
  margin-top: 14px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
}
.search:focus-within { border-color: #44443e; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search input::placeholder { color: #77756e; }

.list-heading {
  padding: 17px 20px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.live-indicator { display: flex; align-items: center; gap: 6px; letter-spacing: 0; text-transform: none; font-weight: 650; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217, 255, 87, .08); }
.live-indicator.offline i { background: var(--danger); box-shadow: none; }

.conversation-list { min-height: 0; flex: 1; overflow-y: auto; padding: 0 9px 14px; scrollbar-width: thin; }
.conversation {
  width: 100%;
  padding: 12px 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.conversation:hover { background: rgba(255, 255, 255, .025); }
.conversation.active { border-color: var(--line); background: var(--surface-2); }
.conversation-avatar, .avatar {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #33332f, #242421);
  color: #d8d4c9;
  background-size: cover;
  background-position: center;
  font-weight: 850;
}
.conversation-main { min-width: 0; }
.conversation-title-row { display: flex; align-items: center; gap: 7px; }
.conversation-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 760; }
.manual-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--warm); }
.conversation-preview { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.conversation-line { display: block; margin-top: 5px; overflow: hidden; color: #6f6d66; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.conversation-time { color: #77756e; font-size: 10px; white-space: nowrap; }
.unread-badge { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 900; }
.list-empty { margin: auto 30px; color: var(--muted); text-align: center; }
.list-empty span { color: var(--text); font-size: 14px; font-weight: 750; }
.list-empty p { margin: 6px 0; font-size: 12px; line-height: 1.5; }

.chat-panel { min-width: 0; min-height: 0; background: rgba(10, 10, 10, .7); }
.chat-panel.empty { display: grid; place-items: center; }
.empty-chat { max-width: 340px; padding: 30px; text-align: center; }
.empty-symbol { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--accent); font-size: 22px; letter-spacing: .12em; }
.empty-chat h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.03em; }
.empty-chat p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.chat-content { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.chat-header { min-width: 0; padding: 17px 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: rgba(14, 14, 13, .88); backdrop-filter: blur(15px); }
.back-button { display: none; }
.client-heading { min-width: 0; flex: 1; }
.client-heading h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.015em; }
.client-heading a { color: var(--muted); text-decoration: none; font-size: 10px; }
.client-heading a:hover { color: var(--accent); }
.client-subline { margin-top: 4px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.line-chip { max-width: 170px; padding: 3px 7px; overflow: hidden; border-radius: 999px; background: rgba(217, 255, 87, .07); color: #b5c77a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.card-button { padding: 9px 13px; border: 1px solid rgba(217, 255, 87, .2); border-radius: 11px; background: rgba(217, 255, 87, .05); color: #d9e9a4; cursor: pointer; font-size: 11px; font-weight: 750; }
.card-button:hover { border-color: rgba(217, 255, 87, .42); }
.handoff-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; font-size: 11px; font-weight: 750; }
.handoff-button:hover { border-color: #4b4b45; }
.handoff-button.manual { border-color: rgba(240, 179, 109, .28); color: #f3c48e; background: rgba(240, 179, 109, .07); }

.mode-banner { padding: 8px 22px; border-bottom: 1px solid var(--line-soft); background: rgba(217, 255, 87, .045); color: #b7b69e; font-size: 11px; }
.mode-banner.manual { background: rgba(240, 179, 109, .055); color: #c7a77f; }

.messages {
  min-height: 0;
  padding: 28px max(24px, calc((100% - 880px) / 2));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  scrollbar-width: thin;
}
.day-divider { margin: 12px auto; padding: 5px 9px; border: 1px solid var(--line-soft); border-radius: 999px; color: #77756e; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.message { max-width: min(72%, 620px); }
.message.incoming { align-self: flex-start; }
.message.outgoing { align-self: flex-end; }
.message-author { margin: 0 4px 4px; color: #77756e; font-size: 9px; }
.message.outgoing .message-author { text-align: right; }
.message-bubble { padding: 11px 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); font-size: 13px; line-height: 1.52; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.incoming .message-bubble { border-bottom-left-radius: 5px; }
.message.outgoing .message-bubble { border-color: rgba(217, 255, 87, .18); border-bottom-right-radius: 5px; background: #252a1b; }
.message.admin .message-bubble { border-color: rgba(240, 179, 109, .2); background: #2a231b; }
.message-time { margin: 4px 4px 0; color: #6f6d66; font-size: 9px; }
.message.outgoing .message-time { text-align: right; }
.attachment-image { display: block; width: min(320px, 100%); max-height: 360px; margin-bottom: 8px; border-radius: 11px; object-fit: cover; background: #0d0d0c; }
.attachment-note { margin-bottom: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .045); color: var(--muted); font-size: 11px; }

.composer { padding: 14px max(22px, calc((100% - 900px) / 2)) 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; border-top: 1px solid var(--line); background: rgba(14, 14, 13, .94); }
.composer-field { min-width: 0; padding: 9px 13px 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.composer-field:focus-within { border-color: #494943; }
.composer-field span { display: block; margin-bottom: 3px; color: #77756e; font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.composer textarea { width: 100%; min-height: 26px; max-height: 120px; padding: 3px 0 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--text); line-height: 1.45; }
.composer textarea::placeholder { color: #706e67; }
.send-button { width: 50px; height: 50px; align-self: end; border: 0; border-radius: 15px; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-size: 21px; font-weight: 900; }
.send-button:disabled { opacity: .3; cursor: default; }
.composer-note { grid-column: 1 / -1; margin: -1px 3px 0; color: #65635d; font-size: 9px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; max-width: calc(100% - 32px); padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #252522; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s ease; font-size: 12px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 143, 125, .35); color: #ffd1ca; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(0, 0, 0, .58); backdrop-filter: blur(4px); }
.client-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(410px, 100%); display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #121211; box-shadow: -24px 0 70px rgba(0, 0, 0, .42); transform: translateX(102%); transition: transform .22s ease; }
.client-drawer.open { transform: translateX(0); }
.drawer-header { padding: 22px 22px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.drawer-client-summary { margin: 20px 22px 0; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.drawer-client-summary strong, .drawer-client-summary span { display: block; }
.drawer-client-summary strong { font-size: 13px; }
.drawer-client-summary span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.client-card-form { min-height: 0; flex: 1; padding: 18px 22px 24px; overflow-y: auto; }
.client-card-form > .primary-button { margin-top: 18px; }
.dynamic-fields { display: grid; gap: 13px; }
.field-control { display: grid; gap: 7px; color: #cbc7bd; font-size: 11px; font-weight: 700; }
.field-control em { color: var(--danger); font-style: normal; }
.field-control input, .field-control textarea, .field-control select,
.settings-form input:not([type="checkbox"]), .settings-form textarea, .settings-form select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--surface-2);
  color: var(--text);
}
.field-control textarea, .settings-form textarea { min-height: 88px; resize: vertical; }
.field-control input:focus, .field-control textarea:focus, .field-control select:focus,
.settings-form input:focus, .settings-form textarea:focus, .settings-form select:focus { border-color: rgba(217, 255, 87, .42); }
.boolean-control { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--muted); font-weight: 600; }

.settings-dialog { width: min(1080px, calc(100% - 28px)); height: min(780px, calc(100% - 28px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: #10100f; color: var(--text); box-shadow: var(--shadow); }
.settings-dialog::backdrop { background: rgba(0, 0, 0, .76); backdrop-filter: blur(7px); }
.settings-shell { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.settings-header { padding: 22px 26px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.settings-header h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.04em; }
.settings-tabs { padding: 10px 26px 0; display: flex; gap: 7px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.settings-tab { flex: none; padding: 11px 13px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 750; white-space: nowrap; }
.settings-tab.active { border-bottom-color: var(--accent); color: var(--text); }
.settings-pane { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); }
.settings-list-column { min-width: 0; padding: 24px 26px; overflow-y: auto; border-right: 1px solid var(--line); }
.section-heading h3, .form-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-list { margin-top: 18px; display: grid; gap: 8px; }
.settings-list-item { width: 100%; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: inherit; text-align: left; }
button.settings-list-item { cursor: pointer; }
button.settings-list-item:hover, button.settings-list-item.active { border-color: #4a4a43; background: var(--surface-2); }
.settings-list-main { min-width: 0; }
.settings-list-main strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.settings-list-main span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.settings-empty { padding: 18px 15px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.settings-list-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.status-pill { padding: 4px 7px; border-radius: 999px; background: rgba(217, 255, 87, .08); color: #b8c882; font-size: 9px; }
.status-pill.off { background: rgba(255, 255, 255, .05); color: var(--muted); }
.small-danger { border: 0; background: transparent; color: #a27b73; cursor: pointer; font-size: 10px; }
.settings-form { min-height: 0; padding: 24px 26px; overflow-y: auto; }
.settings-form > label { margin-top: 15px; display: grid; gap: 7px; color: #cbc7bd; font-size: 11px; font-weight: 700; }
.settings-form label small { color: #77756e; font-size: 9px; font-weight: 500; line-height: 1.45; }
.form-heading { display: flex; align-items: center; justify-content: space-between; }
.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.checkbox-row { min-height: 40px; display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.checkbox-row span small { margin-top: 4px; display: block; }
.settings-form > .primary-button { margin-top: 20px; }
.secondary-button { width: 100%; min-height: 43px; margin-top: 12px; border: 1px dashed #44443e; border-radius: 12px; background: transparent; color: #c2beb4; cursor: pointer; font-size: 11px; font-weight: 700; }
.secondary-button:hover { border-color: rgba(217, 255, 87, .42); }
.defaults-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.defaults-section h4 { margin: 0; font-size: 12px; }
.defaults-section > p { margin: 6px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.line-default-picker { margin-bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.line-default-picker select { min-width: 0; }
.secondary-button.compact { width: auto; min-height: 43px; margin-top: 0; padding: 0 14px; border-style: solid; }
.line-default-row { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255, 255, 255, .015); }
.line-default-remove { min-height: 43px; padding: 0 9px; border: 0; background: transparent; color: #a27b73; cursor: pointer; font-size: 9px; }
.permission-fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.permission-fieldset legend { margin-bottom: 12px; color: #cbc7bd; font-size: 11px; font-weight: 700; }
.permission-list { display: grid; gap: 8px; }
.permission-row { padding: 11px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255, 255, 255, .015); cursor: pointer; }
.permission-row input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); }
.permission-row strong, .permission-row small { display: block; }
.permission-row strong { color: #cbc7bd; font-size: 11px; }
.permission-row small { margin-top: 4px; color: #77756e; font-size: 9px; line-height: 1.45; }
.current-user { max-width: 92px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.form-help { margin: 13px 0 0; color: #6f6d66; font-size: 9px; line-height: 1.5; }

.notification-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.notification-dialog::backdrop { background: rgba(0, 0, 0, .76); backdrop-filter: blur(8px); }
.notification-card { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1; }
.dialog-close:hover { background: var(--surface-3); color: var(--text); }
.notification-illustration { width: 58px; height: 58px; margin-bottom: 24px; display: grid; place-items: center; border: 1px solid rgba(217, 255, 87, .35); border-radius: 19px; background: rgba(217, 255, 87, .08); color: var(--accent); }
.notification-card h2 { margin: 8px 0 10px; font-size: 24px; letter-spacing: -.04em; }
.notification-card > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.notification-steps { margin: 18px 0 0; padding-left: 21px; color: #c4c1b8; font-size: 13px; line-height: 1.55; }
.notification-steps li + li { margin-top: 8px; }
.notification-steps strong { color: var(--text); }
.dialog-action { margin-top: 24px; }

@media (max-width: 820px) {
  .workspace { display: block; position: relative; }
  .sidebar, .chat-panel { position: absolute; inset: 0; }
  .sidebar { border: 0; }
  .sidebar.mobile-hidden { display: none; }
  .chat-panel, .chat-panel.empty { display: none; }
  .chat-panel.mobile-visible { display: block; }
  .back-button { display: grid; }
  .message { max-width: 86%; }
  .messages { padding: 20px 13px; }
  .chat-header { padding: 12px; }
  .handoff-button { max-width: 112px; padding: 8px 9px; }
  .card-button { padding: 8px 9px; }
  .client-subline .line-chip { max-width: 100px; }
  .settings-dialog { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .settings-pane { display: block; overflow-y: auto; }
  .settings-list-column, .settings-form { overflow: visible; border-right: 0; }
  .settings-list-column { border-bottom: 1px solid var(--line); }
  .composer { padding: 10px 11px 12px; }
  .composer-note { display: none; }
}

@media (max-width: 460px) {
  .sidebar-header { padding: 17px 14px 13px; }
  .conversation-list { padding-inline: 5px; }
  .stats div { padding-inline: 9px; }
  .login-card { padding: 28px 23px; }
  .login-card h1 { font-size: 27px; }
  .notification-card { padding: 28px 23px 24px; }
  .brand-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; }
  .brand-mark.small { width: 38px; height: 38px; }
  .brand-row h1 { font-size: 19px; }
  .header-actions { gap: 4px; }
  .current-user { display: none; }
  .header-actions .icon-button { width: 34px; height: 34px; }
  .chat-header { gap: 8px; }
  .chat-header .avatar { width: 38px; height: 38px; }
  .handoff-button { display: none; }
  .client-drawer { width: 100%; }
  .settings-header, .settings-tabs, .settings-list-column, .settings-form { padding-left: 18px; padding-right: 18px; }
}
