
/* /app/app.css */
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mx-auto {
    margin-inline: auto;
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .w-full {
    width: 100%;
  }
  .overflow-x-auto {
    overflow-x: auto;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .pt-16 {
    padding-top: calc(var(--spacing) * 16);
  }
}
:root {
  --bg: #0a0a0a;
  --bg-alt: #0a0a0a;
  --surface: #242424;
  --surface-2: #2e2e2e;
  --border: #404040;
  --text: #ededed;
  --text-muted: #9ea0a6;
  --text-dim: #6b6b6b;
  --accent: #e8893c;
  --accent-dark: #c46f28;
  --ok: #3fb950;
  --down: #e5534b;
  --info: #58a6ff;
}
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}
.dev-banner {
  background: var(--accent);
  color: #1a0e04;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0.4rem 1rem;
  letter-spacing: 0.01em;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}
.nav__brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav__brand-accent {
  color: var(--accent);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__user {
  color: var(--text-muted);
  margin-right: 0.25rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.nav__user:hover {
  color: var(--text);
}
.nav__btn {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.nav__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
}
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: calc(100dvh - 64px);
  padding: 2rem 1.5rem;
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 38%;
  left: 50%;
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  transform: translate(-50%, -50%);
  background: radial-gradient( circle, rgba(232, 137, 60, 0.18) 0%, rgba(232, 137, 60, 0) 70% );
  pointer-events: none;
}
.hero__title {
  position: relative;
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero__title-accent {
  color: var(--accent);
}
.hero__tagline {
  position: relative;
  margin: 0;
  max-width: 32ch;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--text-muted);
}
.hero__cta {
  position: relative;
  margin-top: 0.5rem;
  padding: 0.85rem 1.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
}
.hero__cta--primary {
  background: var(--accent);
  border-color: var(--accent);
}
.auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 64px);
  padding: 2rem 1rem;
  overflow: hidden;
}
.auth__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  transform: translate(-50%, -50%);
  background: radial-gradient( circle, rgba(232, 137, 60, 0.12) 0%, rgba(232, 137, 60, 0) 70% );
  pointer-events: none;
}
.auth__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}
.auth__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth__subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.auth__title--center, .auth__subtitle--center {
  text-align: center;
}
.auth__form {
  display: grid;
  gap: 1rem;
}
.auth__row {
  display: grid;
  gap: 0.25rem;
}
.auth__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.auth__input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  outline: none;
  box-sizing: border-box;
}
.auth__input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 137, 60, 0.25);
}
.auth__input--with-button {
  padding-right: 2.75rem;
}
.auth__input-wrap {
  position: relative;
}
.auth__policy-checks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.25rem 0 0.5rem;
}
.auth__policy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  cursor: pointer;
}
.auth__policy-label input[type='checkbox'] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.auth__policy-label a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-dark);
}
.auth__policy-label a:hover {
  color: var(--accent-dark);
}
.auth__toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--text-muted);
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 6px;
}
.auth__toggle:hover {
  color: var(--text);
}
.auth__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.auth__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.auth__error {
  font-size: 0.78rem;
  color: var(--down);
}
.auth__submit {
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #1a0e04;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 12px;
  cursor: pointer;
  margin-top: 0.25rem;
}
.auth__submit:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.auth__submit[aria-busy="true"] {
  cursor: wait;
  opacity: 0.85;
}
.auth__submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.auth__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.auth__divider::before, .auth__divider::after {
  content: "";
  border-top: 1px solid var(--border);
}
.auth__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.auth__google:hover {
  background: var(--surface-2);
}
.auth__google:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.auth__footer {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.auth__footer a {
  color: var(--text-muted);
  text-decoration: underline;
}
.auth__footer a:hover {
  color: var(--text);
}
.banner {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.banner--ok {
  border-color: rgba(63, 185, 80, 0.35);
  color: var(--ok);
}
.banner--info {
  border-color: rgba(88, 166, 255, 0.35);
  color: var(--info);
}
.banner--error {
  border-color: rgba(229, 83, 75, 0.35);
  color: var(--down);
}
.auth__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.code-input {
  display: flex;
  gap: 0.5rem;
}
.code-input__digit {
  width: 2.75rem;
  height: 3.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}
.code-input__digit:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 137, 60, 0.25);
}
.code-input__digit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.twofa__qr {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 1.25rem;
}
.twofa__qr img {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.twofa__hint {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.twofa__secret {
  display: block;
  padding: 0.6rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-align: center;
  word-break: break-all;
}
.twofa__prompt {
  margin: 1.5rem 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.twofa__identity {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.twofa__identity strong {
  color: var(--text);
}
.twofa__code {
  display: flex;
  justify-content: center;
}
.twofa__code.shake {
  animation: shake 0.3s;
}
.twofa__error {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
}
.twofa__support {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.security {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.security h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.profile-edit {
  display: grid;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}
.profile-edit__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.profile-edit__input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  outline: none;
  box-sizing: border-box;
}
.profile-edit__input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 137, 60, 0.25);
}
.profile-edit__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.6);
}
.modal__title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.modal__body {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.modal__body p {
  margin: 0 0 0.5rem;
}
.modal__body p:last-child {
  margin-bottom: 0;
}
.modal__error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--down);
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}
.modal__btn {
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}
.modal__btn:hover:not(:disabled) {
  background: var(--surface-2);
}
.modal__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.modal__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.modal__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a0e04;
}
.modal__btn--primary:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.modal__btn--danger {
  background: var(--down);
  border-color: var(--down);
  color: #1a0404;
}
.modal__btn--danger:hover:not(:disabled) {
  filter: brightness(1.1);
}
.credits-page {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.credits-section__title {
  font-size: 1rem;
  margin: 2rem 0 0.75rem;
}
.credits-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.credits-balance {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.credits-balance__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.credits-balance__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.credits-balance__meta {
  display: flex;
  gap: 2rem;
  margin: 1rem 0 0;
}
.credits-balance__meta dt {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.credits-balance__meta dd {
  margin: 0;
  font-weight: 600;
}
.credits-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.credits-package {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.credits-package__name {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.credits-package__credits {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
.credits-package__price {
  margin: 0.25rem 0 1rem;
  color: var(--text-muted);
}
.credits-package__buy {
  width: 100%;
  padding: 0.6rem;
  font: inherit;
  font-weight: 600;
  color: #1a0e04;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.credits-package__buy:disabled {
  opacity: 0.6;
  cursor: wait;
}
.credits-subscription, .credits-tx-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.credits-subscription {
  padding: 1.25rem;
}
.credits-subscription__period {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.credits-subscription__cancel {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font: inherit;
  background: transparent;
  color: var(--down);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.credits-tx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}
.credits-tx-table th {
  text-align: left;
  padding: 0.5rem 0.9rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}
.credits-tx-table td {
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.credits-tx-table tr:last-child td {
  border-bottom: none;
}
.credits-tx--neg {
  color: var(--down);
}
.credits-tx--pos {
  color: var(--ok);
}
.credits-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.credits-pill:hover {
  border-color: var(--accent);
}
.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.nav__link:hover {
  color: var(--text);
  background: var(--surface);
}
.community-page, .community-new, .community-detail {
  max-width: 880px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.community-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.community-page__header h1 {
  margin: 0;
}
.community-page__new-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #1a0e04;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}
.community-page__new-btn:hover {
  background: var(--accent-dark);
}
.community-page__total {
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.community-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.community-new h1, .community-detail h1 {
  margin: 0 0 1.25rem;
}
.community-filter {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.community-filter__search {
  flex: 1 1 220px;
  min-width: 180px;
}
.community-filter__search, .community-filter__category, .community-filter__sort {
  padding: 0.55rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
}
.community-filter__search:focus, .community-filter__category:focus, .community-filter__sort:focus {
  outline: none;
  border-color: var(--accent);
}
.community-filter button[type='submit'] {
  padding: 0.55rem 1rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.community-filter button[type='submit']:hover {
  border-color: var(--accent);
}
.community-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.community-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color 0.15s;
}
.community-card:hover {
  border-color: var(--accent);
}
.community-card__title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.community-card__title:hover {
  color: var(--accent);
}
.community-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.community-card__category {
  padding: 0.15rem 0.55rem;
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 0.75rem;
}
.community-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.community-badge--ai {
  background: rgba(88, 166, 255, 0.12);
  color: var(--info);
  border-color: rgba(88, 166, 255, 0.35);
}
.community-badge--official {
  background: rgba(232, 137, 60, 0.15);
  color: var(--accent);
  border-color: rgba(232, 137, 60, 0.5);
}
.community-badge--accepted {
  background: rgba(63, 185, 80, 0.15);
  color: var(--ok);
  border-color: rgba(63, 185, 80, 0.4);
}
.community-badge--inactive {
  background: var(--surface-2);
  color: var(--text-dim);
}
.community-question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.community-question__title {
  margin: 0 0 0.75rem;
  padding-right: 5rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.community-question__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.community-question__vote {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
}
.community-question__body {
  margin: 1rem 0 0;
  line-height: 1.6;
  white-space: pre-wrap;
}
.community-ai-btn {
  margin-top: 1.25rem;
}
.community-ai-btn button {
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--info);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.community-ai-btn button:hover {
  background: rgba(88, 166, 255, 0.08);
}
.community-answers {
  margin: 2rem 0 1.5rem;
}
.community-answers h2, .community-answer-form h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.community-answer-form h2 {
  margin-top: 1.5rem;
}
.community-answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}
.community-answer--accepted {
  border-color: var(--ok);
}
.community-answer__badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.community-answer__body {
  margin: 0.5rem 0 0.75rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.community-answer__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.community-answer__author {
  font-weight: 600;
}
.community-answer__accept-btn {
  margin-left: auto;
  padding: 0.4rem 0.9rem;
  background: transparent;
  color: var(--ok);
  border: 1px solid rgba(63, 185, 80, 0.4);
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.community-answer__accept-btn:hover:not(:disabled) {
  background: rgba(63, 185, 80, 0.08);
}
.community-answer__accept-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}
.cookie-banner__body {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cookie-banner__text a {
  color: var(--accent);
}
.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.cookie-banner__btn {
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}
.cookie-banner__btn:hover:not(:disabled) {
  background: var(--surface-2);
}
.cookie-banner__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-banner__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a0e04;
}
.cookie-banner__btn--primary:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.cookie-banner__customize {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.cookie-banner__toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}
.cookie-banner__toggle em {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.82rem;
}
.cookie-banner__toggle input[type='checkbox'] {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
}
.vote-btn {
  padding: 0.4rem 0.75rem;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.vote-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.vote-btn--active {
  background: rgba(232, 137, 60, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}
.community-form, .community-answer-form form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.community-form__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.community-form__input, .community-form__select, .community-form__textarea {
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
}
.community-form__textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}
.community-form__input:focus, .community-form__select:focus, .community-form__textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.community-form__submit {
  align-self: flex-start;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: #1a0e04;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.community-form__submit:hover {
  background: var(--accent-dark);
}
.policy-modal__checks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.75rem 0 0;
}
.policy-modal__label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
}
.policy-modal__label input[type='checkbox'] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}
.policy-modal__label a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-dark);
}
.policy-modal__label a:hover {
  color: var(--accent-dark);
}
.legal-page {
  max-width: 760px;
  margin: 4rem auto;
  padding: 0 1.25rem;
  color: var(--text);
  line-height: 1.6;
}
.legal-page h1 {
  margin: 0 0 1.25rem;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}
.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}
.legal-page h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.05rem;
}
.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text);
}
.legal-page blockquote {
  margin: 1rem 0;
  padding: 0.6rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(232, 137, 60, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
}
.legal-page a {
  color: var(--accent);
}
.legal-page__meta {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.danger-zone {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.25rem;
  color: var(--text);
}
.danger-zone h1 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.danger-zone__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.danger-zone__back:hover {
  color: var(--text);
}
.danger-zone__section {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.danger-zone__section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}
.danger-zone__section--danger h2 {
  color: var(--down);
}
.danger-zone__section p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.danger-zone__btn {
  margin-top: 0.5rem;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}
.danger-zone__btn:hover:not(:disabled) {
  background: var(--surface-2);
}
.danger-zone__btn--danger {
  background: var(--down);
  border-color: var(--down);
  color: #1a0404;
}
.danger-zone__btn--danger:hover:not(:disabled) {
  filter: brightness(1.1);
}
.danger-zone__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a0e04;
}
.danger-zone__btn--primary:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.danger-zone__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.danger-zone__error {
  margin: 0.75rem 0 0;
  color: var(--down);
  font-size: 0.88rem;
}
.danger-zone__link {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--surface-2);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}
.danger-zone__link:hover {
  background: var(--border);
}
.dsar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.dsar-table th {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dsar-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.dsar-table tr:last-child td {
  border-bottom: none;
}
.dsar-table td:nth-child(2) {
  color: var(--text-muted);
  width: 3rem;
}
.dsar-table a {
  color: var(--accent);
}
.activity-page {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.25rem;
  color: var(--text);
}
.activity-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.activity-page__intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}
.activity-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.9rem;
}
.activity-table th {
  text-align: left;
  padding: 0.7rem 0.85rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.activity-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.activity-table tr:last-child td {
  border-bottom: none;
}
.activity-table tr:hover td {
  background: rgba(255,255,255,0.02);
}
.activity-empty {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  text-align: center;
}
.activity-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.activity-pagination a {
  color: var(--accent);
  text-decoration: none;
}
.activity-pagination a:hover {
  color: var(--accent-dark);
}
.activity-pagination span[aria-disabled='true'] {
  color: var(--text-dim);
}
.recover-banner {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(229, 83, 75, 0.08);
  border: 1px solid var(--down);
  border-radius: 12px;
  color: var(--text);
}
.recover-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--down);
}
.recover-banner p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.recover-banner button {
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--accent);
  color: #1a0e04;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.recover-banner button:hover:not(:disabled) {
  background: var(--accent-dark);
}
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent);
}
.account-credits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
}
.account-credits__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.account-credits__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.account-credits__value {
  margin-top: 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.account-credits__value--muted {
  color: var(--text);
}
.account-credits__note {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.account-cookies-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.dpa-status {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.dpa-status h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.dpa-status p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.dpa-status a {
  color: var(--accent);
}
.dpa-status--warning {
  border-color: var(--accent);
  background: rgba(232, 137, 60, 0.08);
}
.dpa-status--warning h2 {
  color: var(--accent);
}
.dpa-template-preview {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 320px;
  overflow-y: auto;
}
.dpa-template-preview h2, .dpa-template-preview h3 {
  font-size: 1rem;
  margin: 0.75rem 0 0.4rem;
}
.dpa-template-preview p, .dpa-template-preview li {
  font-size: 0.88rem;
  color: var(--text);
}
.dpa-sign-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.dpa-sign-form input[type='text'] {
  padding: 0.55rem 0.85rem;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}
.dpa-sign-form button {
  align-self: flex-start;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #1a0e04;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.dpa-sign-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.chat-layout {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}
.chat-sidebar {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.chat-sidebar__header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.chat-sidebar__new-btn {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #1a0e04;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.chat-sidebar__new-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.chat-sidebar__error {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--down);
}
.chat-sidebar__list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.chat-sidebar__item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}
.chat-sidebar__item--active .chat-sidebar__link {
  background: var(--surface-2);
  color: var(--text);
}
.chat-sidebar__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  overflow: hidden;
}
.chat-sidebar__link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.chat-sidebar__title {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-sidebar__date {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.chat-sidebar__empty {
  padding: 1.25rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.chat-sidebar__menu {
  position: relative;
  flex-shrink: 0;
}
.chat-sidebar__menu-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.chat-sidebar__menu-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}
.chat-sidebar__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  list-style: none;
  padding: 0.3rem 0;
  margin: 0;
  z-index: 20;
  min-width: 130px;
}
.chat-sidebar__dropdown li button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}
.chat-sidebar__dropdown li button:hover {
  background: var(--surface);
}
.chat-sidebar__dropdown-delete {
  color: var(--down) !important;
}
.chat-sidebar__rename-form {
  flex: 1;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.25rem 0.4rem;
}
.chat-sidebar__rename-input {
  flex: 1;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font: inherit;
  font-size: 0.88rem;
}
.chat-sidebar__confirm {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.chat-sidebar__confirm p {
  margin: 0;
  font-size: 0.88rem;
}
.chat-sidebar__confirm button {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.chat-sidebar__confirm button:first-of-type {
  background: var(--down);
  border-color: var(--down);
  color: #fff;
}
.chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-thread__header {
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.chat-thread__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-thread__chip {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.chat-thread__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-thread__typing {
  color: var(--text-dim);
  letter-spacing: 0.1em;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.chat-thread__error {
  padding: 0.6rem 0.85rem;
  background: rgba(229, 83, 75, 0.12);
  border: 1px solid var(--down);
  border-radius: 8px;
  color: var(--down);
  font-size: 0.88rem;
}
.chat-message {
  max-width: 80%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.chat-message--user {
  align-self: flex-end;
  background: var(--accent);
  color: #1a0e04;
  border-bottom-right-radius: 4px;
}
.chat-message--assistant {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-message--draft {
  opacity: 0.85;
}
.chat-message--tool {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: 0;
  max-width: 100%;
}
.chat-message p {
  margin: 0 0 0.5em;
}
.chat-message p:last-child {
  margin: 0;
}
.chat-message code {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.88em;
}
.chat-message pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
}
.chat-message pre code {
  background: none;
  padding: 0;
}
.chat-tool-use {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}
.chat-tool-use summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-muted);
}
.chat-tool-use__input {
  margin: 0.4rem 0 0;
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
  font-size: 0.78rem;
}
.chat-tool-result--error {
  background: rgba(229, 83, 75, 0.1);
  border: 1px solid var(--down);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  color: var(--down);
  font-size: 0.85rem;
}
.chat-input-form {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  min-height: 60px;
  max-height: 200px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  resize: none;
  overflow-y: auto;
  line-height: 1.5;
}
.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}
.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chat-input-form__send, .chat-input-form__stop {
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-input-form__send {
  background: var(--accent);
  color: #1a0e04;
}
.chat-input-form__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chat-input-form__stop {
  background: var(--surface-2);
  color: var(--down);
  border: 1px solid var(--down);
}
.chat-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
}
.chat-welcome__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.chat-welcome__subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}
.chat-welcome__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 640px;
}
.chat-suggestion-chip {
  padding: 0.55rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chat-suggestion-chip:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}
.subprocessor-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.subprocessor-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.subprocessor-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.subprocessor-table tr:last-child td {
  border-bottom: none;
}
.subprocessor-table a {
  color: var(--accent);
}
.subprocessor-table a:hover {
  color: var(--accent-dark);
}
.legal-page__empty {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  text-align: center;
}
.chat-suggestion-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.subprocessor-change-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 35;
  padding: 1rem 1.25rem;
  background: rgba(232, 137, 60, 0.08);
  border-top: 2px solid var(--accent);
  color: var(--text);
}
.subprocessor-change-banner h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--accent);
}
.subprocessor-change-banner p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.subprocessor-change-banner a {
  color: var(--accent);
}
.subprocessor-change-banner button {
  padding: 0.4rem 0.85rem;
  background: var(--accent);
  color: #1a0e04;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.subprocessor-change-banner button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-border-style: solid;
    }
  }
}
