/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700&display=swap");
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: 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 {
  .start {
    inset-inline-start: var(--spacing);
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .flex-col {
    flex-direction: column;
  }
}
:root {
  color-scheme: dark;
  --bg: #100f0e;
  --surface: #2d2722;
  --surface-2: #3c332b;
  --border: #735a3e;
  --border-strong: #bd9255;
  --text: #fff4de;
  --text-muted: #e6cfaa;
  --text-soft: #b99b70;
  --accent: #c8944f;
  --accent-hover: #dfad67;
  --danger: #d98173;
  --danger-surface: #3a1f1b;
  --focus: #d0a461;
  --shadow-soft: rgba(3, 3, 3, 0.28);
  --shadow-strong: rgba(3, 3, 3, 0.42);
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  min-height: 100dvh;
  margin: 0;
  background: linear-gradient(180deg, #181211 0%, var(--bg) 42%, #0b0a09 100%);
  color: var(--text);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(200, 148, 79, 0.28);
  background: rgba(10, 9, 8, 0.92);
  box-shadow: 0 2px 8px var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1120px);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200, 148, 79, 0.44);
  border-radius: 9px;
  background: rgba(45, 39, 34, 0.82);
  color: var(--text);
}
.brand-text {
  display: inline-flex;
  align-items: center;
}
.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-weight: 550;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.nav-link {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
}
.nav-link:hover, .text-link:hover {
  color: var(--text);
}
.nav-link:hover {
  border-color: rgba(200, 148, 79, 0.28);
  background: rgba(45, 39, 34, 0.74);
}
.nav-link-strong {
  border-color: rgba(200, 148, 79, 0.38);
  background: rgba(60, 51, 43, 0.72);
  color: var(--text);
}
.nav-link-strong:hover, .nav-link-strong:focus-visible {
  border-color: rgba(200, 148, 79, 0.54);
  background: rgba(71, 58, 46, 0.82);
  box-shadow: 0 2px 8px var(--shadow-soft);
}
.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 148, 79, 0.4);
  border-radius: 9px;
  background: rgba(45, 39, 34, 0.82);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.profile-button:hover, .profile-button:focus-visible {
  border-color: var(--border-strong);
  background: rgba(60, 51, 43, 0.92);
  box-shadow: 0 2px 8px var(--shadow-soft);
}
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: 176px;
  padding: 8px;
  border: 1px solid rgba(200, 148, 79, 0.34);
  border-radius: 10px;
  background: rgba(21, 18, 16, 0.98);
  box-shadow: 0 2px 8px var(--shadow-strong);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}
.profile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.menu-link, .menu-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  text-align: left;
}
.menu-link:hover, .menu-button:hover {
  background: rgba(60, 51, 43, 0.86);
  color: var(--text);
}
.app-main {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.app-main-narrow {
  width: min(100%, 560px);
}
.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(200, 148, 79, 0.34);
}
.page-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.page-title-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(200, 148, 79, 0.46);
  border-radius: 10px;
  background: rgba(45, 39, 34, 0.9);
  color: var(--text);
}
.page-title {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
.page-header .page-title {
  margin: 0;
}
.page-summary {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}
.page-action {
  width: auto;
  flex: 0 0 auto;
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.message-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(200, 148, 79, 0.34);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 244, 222, 0.07) 0%, rgba(255, 244, 222, 0) 100%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 244, 222, 0.08), 0 2px 8px var(--shadow-soft);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.message-card:hover {
  border-color: rgba(200, 148, 79, 0.54);
  background: linear-gradient(180deg, rgba(255, 244, 222, 0.1) 0%, rgba(255, 244, 222, 0) 100%), #362e27;
  box-shadow: inset 0 1px 0 rgba(255, 244, 222, 0.1), 0 2px 8px var(--shadow-strong);
}
.message-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid rgba(200, 148, 79, 0.46);
  border-radius: 10px;
  background: rgba(60, 51, 43, 0.78);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.message-content {
  min-width: 0;
}
.message-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.message-title {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}
.message-text {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(200, 148, 79, 0.3);
  color: var(--text-soft);
  font-size: 13px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta-label {
  color: var(--text-soft);
}
.meta-value {
  color: var(--text-muted);
}
.delete-form {
  flex: 0 0 auto;
}
.form-panel, .join-panel {
  padding: 24px;
  border: 1px solid rgba(200, 148, 79, 0.34);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 244, 222, 0.07) 0%, rgba(255, 244, 222, 0) 100%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 244, 222, 0.08), 0 2px 8px var(--shadow-soft);
}
.join-panel {
  display: flex;
  min-height: 292px;
  flex-direction: column;
}
.join-panel-header {
  min-height: 114px;
}
.panel-title {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}
.form-hint {
  max-width: 34rem;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.join-panel .form-stack {
  margin-top: auto;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
}
.text-field {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid rgba(200, 148, 79, 0.44);
  border-radius: 8px;
  background: rgba(12, 11, 10, 0.86);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 244, 222, 0.08);
  outline: none;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.text-field:focus {
  border-color: var(--focus);
  background: rgba(18, 15, 14, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 244, 222, 0.1), 0 0 0 3px rgba(223, 173, 103, 0.18);
}
textarea.text-field {
  min-height: 130px;
  resize: vertical;
}
.button-primary, .button-danger, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.button-primary {
  width: 100%;
  background: var(--accent);
  color: #1c1510;
  box-shadow: 0 2px 8px rgba(8, 7, 6, 0.22);
}
.button-primary:hover, .button-primary:focus-visible {
  background: var(--accent-hover);
  box-shadow: 0 2px 8px rgba(8, 7, 6, 0.3);
}
.button-secondary {
  border-color: rgba(200, 148, 79, 0.38);
  background: rgba(45, 39, 34, 0.76);
  color: var(--text-muted);
}
.button-secondary:hover, .button-secondary:focus-visible {
  border-color: rgba(200, 148, 79, 0.54);
  background: rgba(71, 58, 46, 0.84);
  color: var(--text);
  box-shadow: 0 2px 8px var(--shadow-soft);
}
.button-danger {
  min-height: 36px;
  padding: 6px 10px;
  border-color: #a95d52;
  background: var(--danger-surface);
  color: #f0b8ae;
  font-size: 14px;
}
.button-danger:hover, .button-danger:focus-visible {
  border-color: var(--danger);
  color: #ffd7d0;
}
.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-muted);
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
.error-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #a95d52;
  border-radius: 8px;
  background: var(--danger-surface);
  color: #f0b8ae;
  font-size: 14px;
}
.empty-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(200, 148, 79, 0.34);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 244, 222, 0.07) 0%, rgba(255, 244, 222, 0) 100%), var(--surface);
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 rgba(255, 244, 222, 0.08), 0 2px 8px var(--shadow-soft);
}
.icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .nav-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }
  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .app-main {
    padding: 24px 16px 36px;
  }
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-title-row {
    align-items: flex-start;
  }
  .page-action {
    width: 100%;
  }
  .message-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .message-title-row {
    flex-direction: column;
  }
  .delete-form {
    width: 100%;
  }
  .button-danger {
    width: 100%;
  }
  .join-grid {
    grid-template-columns: 1fr;
  }
  .join-panel {
    min-height: auto;
  }
  .join-panel-header {
    min-height: auto;
    margin-bottom: 18px;
  }
}
