@font-face {
  font-family: "Dragon";
  src: url("/assets/ocelot/Dragon-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
/* Ocelot standards fb121046. Brand values retained; functional light canvas. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/ocelot/InstrumentSans-VF.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/ocelot/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Material Symbols Outlined";
  src: url("/assets/ocelot/MaterialSymbolsOutlined-subset.woff2")
    format("woff2");
  font-weight: 400;
  font-display: block;
}
:root {
  --ocelot-butttano: #f55617;
  --ocelot-dark: #1e1e1e;
  --ocelot-beige: #e5e1cc;
  --ocelot-kino: #f5c917;
  --ocelot-butttano-dark: #401714;
  --ocelot-butttano-pale: #ffdbcf;
  --ocelot-neutral-50: #f1f0ee;
  --ocelot-neutral-200: #ccc;
  --ocelot-neutral-600: #404040;
  --ink: var(--ocelot-dark);
  --muted: #5e5e5e;
  --line: #dedcd7;
  --surface: #fff;
  --radius-card: 12px;
  --radius-button: 8px;
  font:
    15px/1.5 "Instrument Sans",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--ocelot-neutral-50);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  transition:
    background 140ms ease-out,
    border-color 140ms ease-out;
}
button:hover {
  background: var(--ocelot-neutral-50);
  border-color: #aaa;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button.primary {
  background: var(--ocelot-butttano);
  border-color: var(--ocelot-butttano);
  color: var(--ocelot-dark);
}
button.primary:hover {
  background: #ff7448;
  border-color: #ff7448;
}
.quiet {
  border-color: transparent;
  background: transparent;
  font-weight: 500;
}
.quiet:hover {
  border-color: transparent;
}
.compact {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: var(--radius-button);
  font-size: 13px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
input,
textarea,
select {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #aaa;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #757575;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ocelot-butttano);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
small,
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.symbol {
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: normal;
}
.brand {
  display: block;
  width: 124px;
  height: auto;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 12px;
  background: var(--ocelot-beige);
  transform: translateY(-180%);
}
.skip:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Access: one task, one primary action. */
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(460px, 1.15fr);
}
.auth-story {
  background: var(--ocelot-dark);
  color: var(--ocelot-beige);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 4px solid var(--ocelot-butttano);
}
.auth-story .brand {
  width: 180px;
}
.auth-story h1 {
  font:
    800 clamp(48px, 5.4vw, 80px) / 0.98 "Dragon",
    Impact,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -1px;
  max-width: 560px;
}
.auth-story p {
  max-width: 330px;
  margin-top: 24px;
  color: #ccc;
  font-size: 16px;
  line-height: 1.65;
}
.auth-story .auth-foot {
  margin-top: 64px;
  font-size: 13px;
  color: #aaa;
}
.auth-side {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
  background: var(--ocelot-neutral-50);
}
.auth-card {
  width: 100%;
  max-width: 480px;
}
.auth-card h2 {
  font:
    750 40px/1.05 "Dragon",
    Impact,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0;
}
.auth-card > p {
  margin: 14px 0 28px;
  line-height: 1.6;
}
.auth-card form {
  display: grid;
  gap: 12px;
}
.auth-card label {
  font-size: 14px;
  font-weight: 600;
}
.auth-card input {
  min-height: 48px;
}
.auth-card form .primary {
  min-height: 48px;
  margin-top: 8px;
}
.auth-card .secondary {
  display: flex;
  width: 100%;
  margin-top: 16px;
  background: transparent;
  border-color: transparent;
}
.auth-note {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px !important;
}
.qr {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 20px auto 8px;
  border-radius: 0;
  image-rendering: pixelated;
}
.recovery-codes {
  margin: 16px 0 24px;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: white;
}
.recovery-codes h3 {
  font-weight: 600;
  font-size: 14px;
}
.codes {
  font:
    12px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 160px;
  overflow: auto;
}
.code-input {
  font-size: 24px;
  letter-spacing: 0.25em;
}
.auth-card .hint {
  font-size: 13px;
  margin-top: 12px;
}
.step {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}
/* Workspace: navigation / queue / conversation. */
.shell {
  height: 100dvh;
  display: grid;
  grid-template-columns: 216px minmax(280px, 320px) minmax(0, 1fr);
  overflow: hidden;
}
.nav {
  background: var(--ocelot-dark);
  color: var(--ocelot-beige);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 16px 16px;
  min-height: 0;
}
.nav .brand {
  margin: 0 12px 8px;
  width: 136px;
}
.workspace-label {
  display: block;
  font-size: 12px;
  color: #ccc;
  margin: 0 8px 8px;
}
.nav select {
  width: 100%;
  background: #262626;
  color: var(--ocelot-beige);
  border-color: #666;
  font-size: 14px;
  padding: 10px;
}
.nav nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-title {
  font-size: 12px;
  color: #aaa;
  margin: 0 12px 8px;
}
.nav nav button {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  background: transparent;
  border-color: transparent;
  color: #ccc;
  padding: 11px 12px;
  font-weight: 500;
}
.nav nav button:hover {
  background: #262626;
  color: var(--ocelot-beige);
}
.nav nav button.active {
  background: #401714;
  color: #ffdbcf;
  border-left: 3px solid var(--ocelot-butttano);
  padding-left: 10px;
}
.nav-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #404040;
}
.user-name {
  display: block;
  padding: 0 12px;
  font-size: 13px;
  color: var(--ocelot-beige);
  overflow-wrap: anywhere;
}
.nav-bottom button {
  margin-top: 8px;
  color: #ccc;
  font-size: 13px;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  width: 100%;
}
.nav-bottom button:hover {
  color: var(--ocelot-beige);
  background: #262626;
}
.list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #fafaf9;
  border-right: 1px solid var(--line);
}
.list-head {
  padding: 28px 20px 16px;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.list-heading h1 {
  font-size: 22px;
}
.live {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #666;
  margin-right: 6px;
}
.live[data-state="online"]::before {
  background: var(--ocelot-butttano);
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap .symbol {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding-left: 40px;
  background: white;
  font-size: 14px;
  border-color: #ccc;
}
.search-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--line);
}
.rows {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
  min-height: 0;
}
.row {
  display: block;
  position: relative;
  text-align: left;
  width: 100%;
  padding: 16px 12px;
  border-color: transparent;
  border-radius: 8px;
  margin-bottom: 4px;
  background: transparent;
  font-weight: 400;
}
.row:hover {
  border-color: transparent;
  background: #f1f0ee;
}
.row.selected {
  background: #ffdbcf;
  border-color: transparent;
}
.row.selected::before {
  position: absolute;
  content: "";
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--ocelot-butttano);
}
.row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.row strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.row time {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  padding-top: 2px;
}
.row small {
  display: block;
  font-size: 12px;
  margin-top: 7px;
}
.row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}
.ref {
  font-size: 11px;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 12px;
  font-weight: 500;
  background: #eee;
  color: #404040;
  white-space: nowrap;
}
.status[data-status="open"] {
  background: #ffdbcf;
  color: #401714;
}
.row.selected .status {
  background: #fff8f5;
}
.status[data-status="pending"] {
  background: #fff3c3;
  color: #665100;
}
.thread {
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 0;
  min-width: 0;
}
.thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
  min-height: 92px;
}
.thread-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.contact-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ocelot-neutral-50);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.thread-head h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.thread-head small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.thread-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.thread-tools .owner {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}
.transfer {
  position: relative;
  margin-left: auto;
}
.transfer summary {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  list-style: none;
}
.transfer summary::-webkit-details-marker {
  display: none;
}
.transfer summary:hover {
  background: var(--ocelot-neutral-50);
}
.transfer[open] summary {
  background: var(--ocelot-neutral-50);
}
.transfer-panel {
  position: absolute;
  right: 0;
  top: 40px;
  width: 290px;
  padding: 20px;
  z-index: 5;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px #1e1e1e12;
  display: grid;
  gap: 12px;
}
.transfer-panel label {
  font-weight: 600;
}
.transfer-panel select {
  width: 100%;
}
.transfer-panel p {
  font-size: 12px;
  color: var(--muted);
}
.older {
  align-self: center;
  margin: 12px 0 0;
  min-height: 32px;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  border-color: transparent;
  color: var(--muted);
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  scrollbar-gutter: stable;
}
.message {
  max-width: min(82%, 660px);
  align-self: flex-start;
  background: var(--ocelot-neutral-50);
  border-radius: 4px 12px 12px 12px;
  padding: 12px 16px;
  overflow-wrap: anywhere;
}
.message.outgoing {
  align-self: flex-end;
  background: #ffdbcf;
  border-radius: 12px 4px 12px 12px;
}
.message.note {
  align-self: stretch;
  max-width: 100%;
  background: #fffbed;
  border: 1px solid #e5dcb5;
  border-radius: 8px;
}
.message .author {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}
.message .text {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.6;
}
.message small {
  display: block;
  font-size: 11px;
  margin-top: 8px;
}
.message a {
  display: inline-block;
  font-size: 13px;
  margin: 8px 12px 0 0;
  font-weight: 600;
}
.system-event {
  align-self: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  max-width: 90%;
  padding: 2px 0;
}
.system-event time {
  color: #757575;
  font-size: 11px;
  margin-left: 8px;
}
.date-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  margin: 12px 0;
}
.date-separator::before,
.date-separator::after {
  content: "";
  height: 1px;
  width: 40px;
  background: var(--line);
}
.composer {
  margin: 0 28px 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.composer:focus-within {
  border-color: var(--ocelot-butttano);
}
.composer .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fffbed;
  border-bottom: 1px solid #e5dcb5;
  font-size: 13px;
}
.composer .label strong {
  font-weight: 600;
}
.composer .label span {
  font-size: 12px;
  color: var(--muted);
}
.composer textarea {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  resize: vertical;
  min-height: 88px;
  max-height: 210px;
  padding: 14px 16px;
  font-size: 14px;
}
.composer textarea:focus-visible {
  outline: none;
}
.composer footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 12px;
}
.composer footer small {
  font-size: 11px;
}
.composer .primary {
  font-size: 13px;
}
.composer-error {
  padding: 12px 16px;
  background: #ffdbcf;
  color: #401714;
  font-size: 13px;
}
.environment {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 8px 16px;
  background: #fafaf9;
}
.empty {
  margin: auto;
  padding: 36px 24px;
  max-width: 420px;
  text-align: center;
}
.empty h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.empty button {
  margin-top: 20px;
}
.rows .empty {
  padding-top: 44px;
}
.rows .empty h2 {
  font-size: 16px;
}
.loading {
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
}
.back-to-list {
  display: none;
}
.empty .symbol {
  display: block;
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--ocelot-butttano);
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: min(620px, calc(100vw - 32px));
  padding: 12px 12px 12px 20px;
  border-radius: 12px;
  background: var(--ocelot-dark);
  color: var(--ocelot-beige);
  z-index: 30;
  box-shadow: 0 8px 24px #1e1e1e25;
  font-size: 14px;
}
#notice:empty {
  display: none;
}
#notice button {
  min-width: 32px;
  min-height: 32px;
  padding: 4px;
  border: 0;
  color: var(--ocelot-beige);
  background: transparent;
}
#notice[data-error="true"] {
  border-left: 4px solid var(--ocelot-butttano);
}
@media (min-width: 1500px) {
  .shell {
    grid-template-columns: 232px 360px minmax(0, 1fr);
  }
  .messages {
    padding-inline: 48px;
  }
  .thread-head,
  .thread-tools {
    padding-inline: 40px;
  }
  .composer {
    margin-inline: 40px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 184px 272px minmax(0, 1fr);
  }
  .nav {
    padding-inline: 12px;
  }
  .nav .brand {
    width: 124px;
  }
  .thread-head {
    padding: 20px;
  }
  .thread-tools {
    padding-inline: 20px;
  }
  .thread-head h2 {
    font-size: 16px;
  }
  .thread-head .contact-avatar {
    display: none;
  }
  .messages {
    padding: 16px 20px;
  }
  .composer {
    margin-inline: 20px;
  }
  .composer .label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .composer footer small {
    max-width: 140px;
  }
  .thread-tools .owner {
    max-width: 180px;
  }
  .list-head {
    padding-inline: 16px;
  }
}
@media (max-width: 1024px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .nav {
    display: grid;
    grid-template-columns: 100px minmax(120px, 1fr) auto;
    padding: 16px 20px 12px;
    gap: 16px;
    align-items: center;
  }
  .nav .brand {
    width: 100px;
    margin: 0;
  }
  .workspace-label,
  .nav-title,
  .user-name {
    display: none;
  }
  .nav nav {
    grid-column: 1/-1;
    grid-row: 2;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
  }
  .nav nav button {
    width: auto;
    white-space: nowrap;
    justify-content: center;
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
    min-height: 36px;
  }
  .nav nav button.active {
    border-left: 0;
    border-bottom: 2px solid var(--ocelot-butttano);
    padding: 8px 10px 6px;
  }
  .nav-bottom {
    margin: 0;
    padding: 0;
    border: 0;
    grid-column: 3;
    grid-row: 1;
  }
  .nav-bottom button {
    margin: 0;
    width: auto;
    padding: 8px;
    font-size: 12px;
    min-height: 36px;
  }
  .list {
    border-right: 0;
  }
  .thread {
    display: none;
  }
  .shell.has-thread .thread {
    display: flex;
  }
  .shell.has-thread .list {
    display: none;
  }
  .shell.has-thread .nav nav {
    display: none;
  }
  .back-to-list {
    display: inline-flex;
    min-height: 32px;
    padding: 4px 10px;
    font-size: 13px;
  }
  .thread-head {
    padding: 16px 20px;
    min-height: 80px;
  }
  .thread-head h2 {
    font-size: 17px;
  }
  .list-head {
    padding: 20px;
  }
  .list-heading {
    margin-bottom: 16px;
  }
  .rows {
    padding: 8px 16px;
  }
  .row {
    padding: 16px;
  }
  .composer {
    margin-bottom: 12px;
  }
  .composer .label {
    flex-direction: row;
  }
  .composer footer small {
    max-width: none;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    grid-template-rows: auto 1fr;
  }
  .auth-story {
    padding: 24px 28px;
    border-right: 0;
    border-bottom: 3px solid var(--ocelot-butttano);
  }
  .auth-story .brand {
    width: 140px;
  }
  .auth-story .auth-foot {
    display: none;
  }
  .auth-side {
    padding: 36px 24px;
    align-items: flex-start;
  }
  .auth-card {
    max-width: 440px;
  }
}
@media (max-width: 420px) {
  .nav {
    padding: 12px;
    gap: 12px;
    grid-template-columns: 76px minmax(100px, 1fr) auto;
  }
  .nav .brand {
    width: 76px;
  }
  .nav select {
    font-size: 12px;
    padding: 8px;
  }
  .thread-head {
    padding: 16px 12px;
  }
  .thread-heading {
    gap: 8px;
  }
  .thread-head h2 {
    font-size: 15px;
  }
  .thread-head .status {
    padding: 4px 8px;
    font-size: 11px;
  }
  .thread-tools {
    padding-inline: 12px;
  }
  .messages {
    padding: 16px 12px;
  }
  .composer {
    margin-inline: 12px;
  }
  .composer .label span {
    font-size: 11px;
  }
  .composer footer small {
    display: none;
  }
  .composer footer {
    justify-content: flex-end;
  }
  .transfer-panel {
    width: 260px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.conversation-control {
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  flex-shrink: 0;
}
.control-state {
  display: flex;
  gap: 8px 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.control-state span,
.control-explanation {
  color: var(--muted);
  font-size: 12px;
}
.control-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.control-explanation {
  margin: 8px 0 0;
}
.control-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--neutral-50, #f1f0ee);
  padding: 12px;
  margin-top: 8px;
  border-radius: 8px;
}
.control-confirm p {
  flex-basis: 100%;
  margin: 0;
}
.sync-warning {
  padding: 10px 20px;
  background: #fff3c3;
  font-size: 12px;
  margin: 0;
}
@media (max-width: 1024px) {
  .conversation-control {
    padding: 10px 12px;
  }
}
/* Administration uses the same Ocelot type, color and spacing system. */
.manage-access {
  margin: 16px 12px;
  padding: 12px;
  text-align: left;
  color: var(--beige, #e5e1cc);
  background: transparent;
  border: 1px solid #404040;
  border-radius: 8px;
}
.access-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  background: #f1f0ee;
}
.access-nav {
  background: #1e1e1e;
  color: #e5e1cc;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.access-nav img {
  width: 140px;
  margin: 0 auto;
}
.access-nav p {
  margin: 0;
  padding: 0 12px;
}
.access-nav .quiet {
  color: #e5e1cc;
  text-align: left;
}
.access-nav-label {
  padding: 12px;
  border-left: 3px solid #f55617;
  background: #401714;
  border-radius: 8px;
}
#access-logout {
  margin-top: auto;
}
.access-main {
  padding: 40px;
  max-width: 1300px;
  width: 100%;
  margin: auto;
  align-self: start;
}
.access-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}
.access-heading h1 {
  font-size: 28px;
  margin: 0 0 8px;
}
.access-heading p {
  margin: 0;
  color: #5e5e5e;
}
.access-section {
  margin-bottom: 32px;
}
.access-section h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
.member-list {
  display: grid;
  gap: 12px;
}
.member-card,
.invitation-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.member-card h3 {
  font-size: 16px;
  margin: 0;
}
.member-card p,
.invitation-card p {
  margin: 5px 0 10px;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #5e5e5e;
}
.member-scope {
  flex: 1;
  max-width: 300px;
}
.member-scope strong {
  font-size: 13px;
}
.member-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.member-actions small {
  max-width: 180px;
  color: #5e5e5e;
}
.invitation-card {
  margin-bottom: 12px;
}
.access-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  color: #1e1e1e;
  box-shadow: 0 20px 80px #0003;
}
.access-dialog::backdrop {
  background: #1e1e1e99;
}
.access-dialog header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.access-dialog h2 {
  font-size: 22px;
  margin: 0;
}
.access-dialog p {
  font-size: 14px;
  line-height: 1.5;
}
.access-dialog label:not(.scope-option) {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 18px 0 7px;
}
.access-dialog input:not([type="checkbox"]),
.access-dialog select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  font: inherit;
}
.access-dialog fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 0;
  padding: 12px 16px;
}
.access-dialog legend {
  font-size: 14px;
  font-weight: 600;
}
.scope-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}
.scope-option input {
  accent-color: #f55617;
  width: 18px;
  height: 18px;
}
.field-help {
  color: #5e5e5e;
  font-size: 12px !important;
  line-height: 1.5;
}
.form-error {
  color: #9f3211;
}
.access-dialog button[type="submit"] {
  margin-top: 16px;
}
.access-main .environment {
  margin-top: 32px;
}
@media (max-width: 1024px) {
  .access-page {
    display: block;
  }
  .access-nav {
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .access-nav img {
    width: 80px;
    margin: 0;
  }
  .access-nav p {
    font-size: 12px;
    flex: 1;
  }
  .access-nav-label {
    display: none;
  }
  #access-logout {
    margin: 0;
  }
  .access-main {
    padding: 24px 16px;
  }
  .access-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .member-card {
    flex-wrap: wrap;
    gap: 16px;
  }
  .member-scope {
    max-width: none;
    min-width: 150px;
  }
  .member-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .member-actions small {
    max-width: none;
  }
  .invitation-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
.access-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#support-start {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-top: 24px;
}
#support-start button {
  justify-self: start;
}
#support-start select {
  width: 100%;
  min-width: 0;
}
.internal-note {
  border-top: 1px solid var(--border, #d8d5c5);
  padding: 12px 20px;
}
.internal-note summary {
  cursor: pointer;
  font-size: 14px;
}
.internal-note .composer {
  padding: 12px 0 0;
}
#reply-composer .composer textarea {
  min-height: 65px;
}
#reply-reason {
  margin: 0 0 8px;
  font-size: 12px;
}
.notice-card {
  border: 1px solid #d8d5c5;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}
.notice-card header,
.notice-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.notice-card h2 {
  font-size: 20px;
  margin: 12px 0;
}
#notice-form {
  display: grid;
  gap: 14px;
}
#notice-form label {
  display: grid;
  gap: 6px;
}
#notice-form textarea {
  min-height: 65px;
}
#notice-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
@media (min-width: 1025px) {
  .shell {
    grid-template-rows: minmax(0, 1fr);
  }
  .nav {
    gap: 20px;
    overflow-y: auto;
  }
}
.nav-utilities {
  display: grid;
  gap: 8px;
}
.nav-utilities .manage-access {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
}
#reply-composer .label {
  background: #fff;
  border-bottom-color: var(--line);
}
#reply-reason {
  padding: 10px 16px 0;
}
#reply-composer footer {
  justify-content: flex-end;
}
@media (max-width: 1024px) {
  .nav-utilities {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
  }
  .shell.has-thread .nav-utilities {
    display: none;
  }
}
#reply-composer textarea[hidden],
#reply-composer button[hidden] {
  display: none;
}
.reply-attachment {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 16px;
  font-size: 12px;
}
.reply-attachment[hidden] {
  display: none;
}
.reply-attachment label {
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 6px 8px;
  border-radius: 6px;
}
.attachment-name {
  overflow-wrap: anywhere;
}
.reply-template {
  padding: 8px 16px;
  font-size: 13px;
}
.reply-template[hidden] {
  display: none;
}
.template-options {
  display: grid;
  gap: 8px;
}
.template-options label {
  display: grid;
  gap: 4px;
}
.typing-state {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  padding: 6px 28px;
}

/* Recovery codes are a visible, required onboarding step. */
.recovery-codes h3 {
  margin: 0 0 8px;
}
.recovery-codes p {
  font-size: 14px;
  line-height: 1.5;
}
.backup-saved {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  line-height: 1.5;
}
.backup-saved input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ocelot-dark);
}

/* Access product identity and readable setup steps. */
.auth-eyebrow {
  display: block;
  color: var(--ocelot-butttano);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.auth-account {
  font-size: 14px;
  overflow-wrap: anywhere;
  padding: 12px 16px;
  background: var(--ocelot-beige);
  border-radius: 8px;
}
.qr-step h3,
.auth-step-title,
.recovery-codes h3 {
  font:
    600 16px/1.5 "Instrument Sans",
    sans-serif;
  margin: 0 0 12px;
}
.qr-step h3 span,
.recovery-codes h3 span,
.auth-step-title span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ocelot-beige);
}
.qr-step p {
  font-size: 14px;
  line-height: 1.6;
}
.qr-step > button {
  display: flex;
  margin: 0 auto 24px;
  text-decoration: underline;
}
.qr-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 0;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  overflow: auto;
}
.qr-dialog::backdrop {
  background: #1e1e1ecc;
}
.qr-dialog header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.qr-dialog h2 {
  font-size: 28px;
}
.qr-dialog p {
  font-size: 14px;
  line-height: 1.5;
}
.qr-dialog img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: auto;
  image-rendering: pixelated;
}
@media (max-width: 720px) {
  .auth-eyebrow {
    margin: 16px 0 0;
    color: var(--ocelot-beige);
  }
  .auth-card h2 {
    font-size: 36px;
  }
}

.auth-story h1,
.auth-card h2 {
  font-variation-settings:
    "Inkt" 10,
    "Angl" 10;
}
.backup-saved input {
  min-height: 20px;
}

/* Operator workspace: one message mode at a time, one shared button system. */
button.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}
button.secondary:hover:not(:disabled) { background: var(--ocelot-neutral-50); border-color: #aaa; }
button:disabled { opacity: 1; color: #757575; background: #eeedeb; border-color: #dedcd7; }
button.primary:disabled { background: #eeedeb; border-color: #dedcd7; color: #757575; }
.thread-head { min-height: 72px; padding: 16px 24px; }
.thread-tools { padding: 10px 24px; }
.conversation-control { padding: 12px 24px; background: #fafaf8; }
.control-state { gap: 8px; }
.control-actions { gap: 8px; }
.control-explanation { max-width: 76ch; }
.compose-modes {
  display: flex; gap: 4px; flex-shrink: 0;
  padding: 12px 24px 0; border-top: 1px solid var(--line);
}
.compose-modes button { border: 1px solid transparent; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; background: transparent; min-height: 40px; font-size: 13px; }
.compose-modes button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ocelot-butttano); background: var(--ocelot-neutral-50); }
.compose-modes button[aria-pressed="false"] { color: var(--muted); }
#reply-composer, .internal-note { flex-shrink: 0; padding: 8px 24px 16px; border: 0; }
#reply-composer .composer, .internal-note .composer { margin: 0; padding: 0; }
#reply-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
#reply-form > .label, #reply-form > p, #reply-form > textarea { grid-column: 1 / -1; }
#reply-form .label { padding: 8px 12px; }
#reply-reason { padding: 8px 12px 0; margin: 0; }
#reply-composer .composer textarea, .internal-note textarea { min-height: 64px; max-height: 130px; padding: 10px 12px; }
.composer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; min-width: 0; }
.composer-tools .reply-template, .composer-tools .reply-attachment { padding: 0; }
.composer-tools .reply-attachment { gap: 6px; }
#reply-form footer { padding: 8px 12px 8px 0; align-self: end; }
.template-options:not(:empty) { padding-top: 8px; flex-basis: 100%; }
.internal-note .label { background: #fffbed; }
.environment:empty { display: none; }
.messages { min-height: 160px; }
@media (max-width: 1024px) {
  .thread-head { min-height: 64px; padding: 12px; }
  .thread-tools, .conversation-control { padding: 10px 12px; }
  .compose-modes { padding: 8px 12px 0; }
  #reply-composer, .internal-note { padding: 8px 12px 12px; }
  .control-state { align-items: flex-start; flex-direction: column; }
  .control-actions button { min-height: 40px; }
  .compose-modes button { flex: 1; padding: 8px; }
  .file-help { display: none; }
}
@media (max-width: 480px) {
  #reply-form { grid-template-columns: minmax(0, 1fr); }
  #reply-form > *, #reply-form footer { grid-column: 1; }
  #reply-form footer { padding: 0 12px 10px; }
  #reply-form footer .primary { flex: 1; }
  .messages { min-height: 140px; }
}
.transfer > summary { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-button); background: var(--surface); font-size: 13px; font-weight: 600; list-style: none; }
.transfer > summary::-webkit-details-marker { display: none; }
.transfer > summary:hover { background: var(--ocelot-neutral-50); }

/* Daily workflow: identity + assignment, then one compact action bar. */
.thread-head { flex-wrap: wrap; gap: 12px; }
.thread-heading { flex: 1 1 220px; }
.thread-head .thread-tools { min-height: 40px; padding: 0; border: 0; margin-left: auto; }
.control-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.control-toolbar .control-state { display: grid; gap: 2px; }
.control-toolbar .control-actions { margin: 0; align-items: center; flex-wrap: nowrap; }
.control-actions > button, button.secondary, .transfer > summary, .ai-options > summary {
  min-height: 40px; padding: 8px 12px; font-size: 13px; font-weight: 600;
  border-radius: var(--radius-button);
}
.ai-options { position: relative; }
.ai-options > summary { display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); list-style: none; white-space: nowrap; }
.ai-options > summary::-webkit-details-marker { display: none; }
.ai-options > summary::after, .transfer > summary::after { content: '⌄'; margin-left: 8px; }
.ai-options > summary:hover { background: var(--ocelot-neutral-50); }
.ai-options-panel { position: absolute; z-index: 6; right: 0; top: calc(100% + 8px); width: 280px; max-width: calc(100vw - 32px); display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 8px 24px #1e1e1e12; }
.ai-options-panel p { color: var(--muted); font-size: 13px; }
.ai-options-panel button { justify-self: start; }
#reply-form > .label { display: none; }
#reply-reason { font-size: 12px; }
.internal-note .composer { border-color: #d4cba8; background: #fffbed; }
@media (max-width: 1100px) {
  .thread-head .thread-tools { flex-basis: 100%; margin: 0; }
  .control-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 1024px) {
  .thread-heading { flex-basis: 180px; }
  .control-toolbar .control-actions { width: 100%; flex-wrap: wrap; }
  .control-actions .ai-options { margin-left: auto; }
  .thread-head .thread-tools .transfer { margin-left: auto; }
}

.message-attachment { display: grid; gap: 8px; margin-top: 10px; }
.message-attachment img { display: block; max-width: 100%; max-height: 280px; object-fit: contain; border-radius: 12px; }
.message-attachment audio { width: 100%; max-width: 320px; }
.message-attachment > a { font-size: 13px; text-underline-offset: 3px; }

.nav-bottom #logout + .platform-signature {
  margin-top: 24px;
}
/* Customer context shares the existing header metadata row. */
.customer-context { display:inline-flex; flex-wrap:wrap; align-items:center; gap:6px; color:#737b78; font-size:11px; line-height:1.5; font-weight:400; }
.customer-context[hidden] { display:none; }
.customer-context .customer-reservation { color:#365d4d; }
.customer-context-separator { color:#b0b7b4; }
.thread-contact-meta { flex-wrap:wrap; }

/* A tab-local channel choice; the server still routes by conversation. */
.inbox-switch{display:flex;gap:4px;padding:4px;border-radius:12px;background:rgba(0,0,0,.045);margin:10px 0 0}
.inbox-switch button{flex:1;border:0;border-radius:9px;padding:9px 12px;background:transparent;color:inherit;font:inherit;font-weight:650;cursor:pointer}
.inbox-switch button[aria-pressed="true"]{background:#fff;color:#173e35;box-shadow:0 1px 5px #0002}
.inbox-switch button:focus-visible{outline:2px solid #237963;outline-offset:2px}
.active-inbox{font-size:12px;margin:6px 0 10px;color:#53675f}
.sender-number{font-size:12px;margin:3px 0 5px;color:#53675f}



.role-preview-floating { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; }
.role-preview-toggle { position: relative; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #d5dce5; border-radius: 50%; background: #fff; color: #263447; box-shadow: 0 3px 14px #15243b24; cursor: pointer; }
.role-preview-toggle:hover { background: #f1f5f9; }
.role-preview-toggle .icon { width: 20px; height: 20px; margin: 0; }
.role-preview-toggle.is-previewing { background: #e9f2ff; border-color: #78a6e6; color: #174c94; }
.role-preview-toggle.is-previewing::after { content: ''; position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #2872ce; }
.role-preview-menu { position: fixed; inset: auto max(16px, env(safe-area-inset-right)) calc(max(16px, env(safe-area-inset-bottom)) + 54px) auto; margin: 0; box-sizing: border-box; width: min(220px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); overflow: auto; padding: 12px; border: 1px solid #d5dce5; border-radius: 12px; background: #fff; color: #263447; box-shadow: 0 6px 28px #15243b26; }
.role-preview-menu strong { display: block; padding: 2px 8px 8px; font-size: 13px; }
.role-preview-options { display: grid; gap: 2px; }
.role-preview-options button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: inherit; text-align: left; font-size: 14px; cursor: pointer; }
.role-preview-options button:hover { background: #f1f5f9; }
.role-preview-options button[aria-pressed="true"] { background: #e9f2ff; color: #174c94; font-weight: 600; }
.role-preview-options .icon { width: 16px; height: 16px; }
.role-preview-menu p { margin: 10px 8px 2px; font-size: 12px; line-height: 1.4; color: #536174; }
.role-preview-toggle:focus-visible, .role-preview-options button:focus-visible { outline: 2px solid #2872ce; outline-offset: 3px; }

.external-whatsapp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
}
.external-whatsapp[hidden] { display: none; }
.external-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.external-whatsapp-link:hover {
  background: var(--ocelot-neutral-50);
  border-color: #aaa;
}

/* A local presentation preference, without changing sender or message content. */
.message { position: relative; }
.message.message-subdued { background: #f1f2f3; color: #62666b; box-shadow: none; border: 1px solid #e1e3e5; }
.message.message-subdued .author, .message.message-subdued small { color: #676b70; }
.message-presentation-toggle { position: absolute; right: 4px; top: -15px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid #d7dadd; background: #fff; color: #555b62; box-shadow: 0 2px 5px #0001; opacity: 0; font-size: 18px; cursor: pointer; }
.message:hover .message-presentation-toggle, .message:focus-within .message-presentation-toggle { opacity: 1; }
.message-presentation-toggle:focus-visible { outline: 2px solid #555b62; outline-offset: 2px; }
@media (hover: none) { .message-presentation-toggle { opacity: 1; } }

/* Override the branded thread palette without changing message semantics. */
#thread #messages > .message.message-subdued {
  background: #f1f2f3; border-color: #e1e3e5; color: #62666b; box-shadow: none;
}
#thread #messages > .message.message-subdued :is(.author, small, .text) { color: #62666b; }
#thread .message > button.message-presentation-toggle {
  box-sizing: border-box; width: 32px; min-width: 32px; max-width: 32px;
  height: 32px; min-height: 32px; max-height: 32px; aspect-ratio: 1;
  border-radius: 50%; padding: 0; margin: 0; line-height: 1; flex: 0 0 32px;
  display: grid; place-items: center;
}

#thread .message-meta-end,
#thread .note-actions {
  display: flex;
  align-items: center;
}
#thread .message-meta-end { gap: 6px; }
#thread .note-actions { gap: 2px; }
#thread .note-actions button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: inherit;
}
#thread .note-actions button:hover { background: #24242412; }
#thread .note-actions button[data-note-action="delete"]:hover { color: #a32721; }
#thread .note-actions .icon { width: 16px; height: 16px; flex: none; }
.internal-note-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: inherit;
  font: inherit;
  resize: vertical;
}
.internal-note-dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.internal-note-dialog button[type="submit"] { margin-top: 0; }
.internal-note-dialog .note-delete-confirm { color: #a32721; border-color: #a32721; }
.ai-information-items {
  margin: 8px 0;
  padding-inline-start: 1.25em;
  overflow-wrap: anywhere;
}
.ai-information-items li + li { margin-block-start: 4px; }
.ai-information-toggle { min-height: 32px; }
#ai-information-history {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-height: 65dvh;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, white);
  color: var(--ink);
  box-shadow: 0 8px 24px #18212c24;
}
#ai-information-history header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
[data-mail-ai-request]:empty, [data-mail-ai-information]:empty, #thread-ai-information:empty { display: none; }
@media (pointer: coarse) {
  #thread .note-actions button { min-width: 40px; min-height: 40px; }
}
