:root {
  font-family: Inter, system-ui, sans-serif;
  color: #e8f0ec;
  background: #0f1113;
  color-scheme: dark;
  --line: #252d31;
  --muted: #a5b5ad;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #7cffb2;
}
button,
input,
textarea,
select,
summary {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: #7cffb2;
  color: #10251a;
  border: 0;
  border-radius: 9px;
  padding: 12px 15px;
  min-height: 44px;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}
button.secondary {
  background: #252d31;
  color: #e8f0ec;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #7cffb2;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.site-header,
body > header {
  padding: 16px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}
.brand,
header strong {
  font-size: 24px;
  color: #7cffb2;
  font-weight: 750;
  text-decoration: none;
}
header span,
footer,
.muted,
#storage,
#roomNote {
  color: var(--muted);
  font-size: 0.85rem;
}
#status {
  margin: 10px 4%;
  color: #a5b5ad;
  overflow-wrap: anywhere;
  min-height: 22px;
}
.card {
  background: #1a1e22;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  min-width: 0;
}
#access {
  max-width: 540px;
  margin: 28px auto;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 21px;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
label {
  display: block;
  margin: 12px 0;
  color: #c6d3cd;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #586a61;
  border-radius: 8px;
  background: #0f1113;
  color: white;
  margin-top: 6px;
  font-size: 16px;
}
input[type="file"] {
  font-size: 14px;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 0;
}
.check {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 14px;
}
#login > button {
  margin: 6px 0;
  width: 100%;
}
.stack,
.primary-actions {
  display: grid;
  gap: 8px;
}
.primary-actions {
  margin: 16px 0;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin: 20px 4%;
  align-items: start;
}
#rooms {
  display: grid;
  gap: 8px;
}
#rooms button {
  background: #22292d;
  color: #e8f0ec;
  text-align: left;
}
#rooms button.selected {
  outline: 1px solid #7cffb2;
}
details {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 8px 0;
  padding: 0 10px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
details .stack {
  padding-bottom: 10px;
}
progress {
  width: 100%;
  height: 9px;
  accent-color: #7cffb2;
}
#plan {
  line-height: 1.5;
}
.chat {
  display: flex;
  flex-direction: column;
  min-height: 500px;
}
.chat-head h2 {
  margin: 8px 0;
}
.chat-head details {
  max-width: 100%;
}
#back {
  display: none;
}
#messages {
  min-height: 160px;
  max-height: 48vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 0;
  overscroll-behavior: contain;
}
.bubble {
  align-self: start;
  background: #252d31;
  border-radius: 12px;
  padding: 12px;
  max-width: 92%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.bubble.mine {
  align-self: end;
  background: #203d30;
}
.bubble small,
.expiry {
  display: block;
  color: #a5b5ad;
  font-size: 12px;
  margin-bottom: 6px;
}
.bubble button {
  display: block;
  margin-top: 8px;
  max-width: 100%;
}
.expiry.soon {
  color: #ffb86b;
}
#composer {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
#text {
  resize: vertical;
  max-height: 24vh;
}
.composer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.composer-actions > button {
  margin-top: 8px;
}
#sendOptions[open] {
  grid-column: 1/-1;
}
#sendOptions[open] + button {
  grid-column: 1/-1;
}
#sendLifetime {
  margin: 5px 0;
  font-size: 12px;
}
#delivery {
  font-size: 14px;
  margin: 8px 0;
  color: #a5b5ad;
}
#retryControls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
footer {
  max-width: 1000px;
  margin: 22px auto;
  padding: 0 20px;
  line-height: 1.6;
}
dialog {
  border: 1px solid #586a61;
  border-radius: 16px;
  max-width: 650px;
  width: calc(100% - 24px);
  max-height: 85dvh;
  overflow: auto;
  background: #1a1e22;
  padding: 18px;
}
dialog::backdrop {
  background: #000b;
}
#modal {
  overflow-wrap: anywhere;
  min-width: 0;
}
#modal code {
  display: block;
  margin: 12px 0;
  word-break: break-all;
}
.file-preview {
  display: block;
  max-width: 100%;
  max-height: 55dvh;
  margin: auto;
}
iframe.file-preview {
  width: 100%;
  height: 55dvh;
  border: 0;
  background: white;
}
#requestList section {
  border-top: 1px solid #586a61;
  padding: 10px 0;
}
#requestList button {
  margin: 4px;
  max-width: 100%;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.plan-card {
  border: 1px solid #586a61;
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}
.plan-card strong {
  display: block;
  font-size: 22px;
  margin: 8px 0;
}
.plan-card button {
  width: 100%;
  font-size: 14px;
}
.market-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.market-switch [aria-pressed="true"] {
  outline: 2px solid #7cffb2;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
td,
th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #8885;
  overflow-wrap: anywhere;
}
.landing {
  display: block;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 12px;
}
.landing .card {
  margin-bottom: 1rem;
}
.cta {
  display: inline-block;
  padding: 1rem;
  border-radius: 10px;
  background: #7cffb2;
  color: white;
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#privacyCurtain {
  position: fixed;
  inset: 0;
  background: #0f1113;
  z-index: 9999;
  display: grid;
  align-content: center;
  text-align: center;
  padding: 20px;
}
.shielded #workspace,
.shielded dialog {
  visibility: hidden;
}
.shielded #status {
  visibility: hidden;
}
@media (max-width: 760px) {
  .site-header,
  body > header {
    padding: 10px 12px;
  }
  .brand {
    font-size: 22px;
  }
  .site-header > span {
    order: 3;
    width: 100%;
    font-size: 11px;
  }
  .site-header > button {
    font-size: 12px;
    padding: 9px;
  }
  #status {
    margin: 6px 12px;
    font-size: 12px;
  }
  #access {
    margin: 16px 12px;
  }
  .card {
    padding: 14px;
    border-radius: 12px;
  }
  main {
    display: block;
    margin: 10px 12px;
  }
  #workspace #chatPanel {
    display: none;
  }
  #workspace.chat-open #sidebar {
    display: none;
  }
  #workspace.chat-open #chatPanel {
    display: flex;
  }
  #back {
    display: block;
  }
  #messages {
    max-height: none;
    min-height: 60px;
    flex: 1;
    overflow-y: auto;
  }
  .chat {
    height: calc(var(--viewport-height, 100dvh) - 165px);
    min-height: 280px;
  }
  .chat-head {
    flex-shrink: 0;
  }
  .chat-head h2 {
    font-size: 18px;
  }
  .chat-head details {
    margin: 4px 0;
  }
  .chat-head summary {
    padding: 9px 0;
    min-height: 38px;
    font-size: 13px;
  }
  #roomNote {
    font-size: 11px;
    margin: 4px 0;
  }
  #composer {
    flex-shrink: 0;
  }
  #text {
    max-height: 100px;
    resize: none;
  }
  .composer-actions {
    gap: 6px;
  }
  #sendOptions {
    margin: 6px 0;
    font-size: 13px;
  }
  #sendOptions summary {
    padding: 10px 0;
  }
  #sendOptions[open] {
    max-height: 32dvh;
    overflow: auto;
  }
  #sendLifetime {
    font-size: 11px;
  }
  body:has(#workspace.chat-open:not([hidden])) > footer {
    display: none;
  }
  .plan-grid {
    gap: 8px;
  }
  .plan-card {
    padding: 10px;
  }
  .plan-card strong {
    font-size: 19px;
  }
  dialog {
    padding: 14px;
  }
  .bubble {
    max-width: 96%;
    font-size: 15px;
  }
  #modal table {
    font-size: 12px;
  }
  #modal td,
  #modal th {
    padding: 5px;
  }
  .landing {
    margin: 16px auto;
  }
  #delivery {
    font-size: 12px;
    margin: 4px 0;
  }
}
@media (max-width: 350px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .composer-actions {
    grid-template-columns: 1fr auto;
  }
  .card {
    padding: 10px;
  }
  .site-header .brand {
    font-size: 20px;
  }
}

@media (max-width: 760px) {
  .chat {
    overflow: auto;
  }
  .chat-head:has(details[open]) {
    max-height: 40%;
    overflow: auto;
  }
  .composer-actions {
    flex-shrink: 0;
  }
}

.message-details {
  border: 0;
  margin: 6px 0 0;
  padding: 0;
  white-space: normal;
}
.message-details summary {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 0;
  min-height: 36px;
}
.message-details small {
  margin-top: 6px;
}
.message-details .expiry {
  font-size: 11px;
}

/* Identity v0.6.1: bundled font; no third-party asset requests. */
@font-face {
  font-family: Inter;
  src: url("/inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --premium: #f5d78e;
  --primary: #7cffb2;
  --warning: #ffb86b;
  --error: #ffb4ab;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1;
  min-height: 44px;
  letter-spacing: -0.045em;
}
.brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.brand .brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.brand .brand-domain {
  font-size: inherit;
  font-weight: 450;
  color: #a5b5ad;
}
button.secondary {
  border: 1px solid var(--line);
}
button:not(:disabled):hover,
.cta:hover {
  filter: brightness(1.08);
}
.cta {
  color: #10251a;
  font-weight: 650;
  min-height: 44px;
}
#status[data-kind="error"] {
  color: var(--error);
}
#plan.premium-badge {
  color: var(--premium);
  background: #302a1d;
  border: 1px solid #655638;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13px;
}
.bubble button {
  background: #303c35;
  color: #e8f0ec;
  border: 1px solid #586a61;
}
.message-details summary {
  font-size: 12px;
  min-height: 44px;
}
.message-details .expiry {
  font-size: 12px;
}
#rooms button {
  border: 1px solid transparent;
}
#rooms button.selected {
  background: #203d30;
  outline: 1px solid var(--primary);
}
.landing h1 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.landing h2 {
  line-height: 1.4;
}
.landing p {
  line-height: 1.65;
}
.landing .plan-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #15191c;
}
@media (max-width: 380px) {
  .brand {
    gap: 7px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .brand .brand-name {
    font-size: 21px;
  }
  .site-header > button {
    padding: 9px 10px;
  }
  .site-header {
    gap: 8px;
  }
}
