@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: 4px;
  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: 820px) {
  .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 h1,
  .auth-story > div:last-child,
  .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 {
  background: var(--neutral-50, #f1f0ee);
  padding: 12px;
  margin-top: 8px;
  border-radius: 8px;
}
.control-confirm p {
  margin: 0 0 10px;
}
.sync-warning {
  padding: 10px 20px;
  background: #fff3c3;
  font-size: 12px;
  margin: 0;
}
@media (max-width: 820px) {
  .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: 820px) {
  .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: 821px) {
  .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: 820px) {
  .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-story > div > p {
    display: none;
  }
  .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;
}
