/* Lewds web app: what the live app adds on top of the shared design system in styles.css. */

[hidden] { display: none !important; }

/* sign-in and the 18+ gate */
.gate-card { width: min(520px, 100%); display: grid; justify-items: start; gap: 20px; }
.gate-card > .logo { width: min(260px, 64vw); }
.gate-card > .logo svg { width: 100%; height: auto; display: block; }
.gate-card .logo path { fill: var(--ink); }
.gate-card h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.02; }
.gate-card .muted, .gate-card .faint { color: var(--on-pink-2, var(--ink-2)); }
.gate-card .check-row { color: var(--ink); }

/* layout: one centered column, no right rail */
.cols { grid-template-columns: minmax(0, 720px); justify-content: center; }
.center { border-left: 1px solid var(--line); }
.me-row { min-width: 0; }
.me-row .grow { min-width: 0; }
.me-row b, .me-row .grow > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-row .icon-btn { width: 34px; height: 34px; flex: none; }
.loading { display: grid; place-items: center; min-height: 40vh; }
.test-banner { padding: 9px clamp(16px, 3vw, 36px); background: var(--ink); color: var(--pink-2); font: 600 13px/1.4 var(--font-ui); }
.a-banner { margin: 0; border-radius: 0; }
.bg-plain { background: linear-gradient(135deg, var(--pink-2), var(--pink)); }
.empty-state { display: grid; gap: 8px; justify-items: start; }
.empty-state .btn { margin-top: 6px; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
select.input { appearance: auto; padding-right: 12px; }
textarea.input { padding: 12px 16px; min-height: 96px; resize: vertical; line-height: 1.5; }
input[type="file"].input { padding: 10px 12px; min-height: 0; font-size: 14px; }
.wallet-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* posts with real files */
.post-gallery { display: grid; gap: 6px; }
.post-gallery .media { border-radius: 14px; }
.media > img.real, .media > video.real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media > video.real { object-fit: contain; background: #12040c; }
.checking-tag { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 9px; border-radius: 999px; background: rgba(42, 11, 29, .7); color: #fff; font: 600 12px/1 var(--font-ui); }
.c-thumb .media { position: absolute; inset: 0; }
.c-thumb-ic { display: grid; place-items: center; color: var(--ink-3); }

/* wallet */
.sub-list { display: grid; }
.sub-list li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.sub-list li:first-child { border-top: 0; }

/* admin */
.mstat.ink a { color: var(--pink-2); text-decoration: underline; text-underline-offset: 2px; }
.seg a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  font: 600 13.5px/1 var(--font-ui); color: var(--ink-2); white-space: nowrap; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.seg a:hover { color: var(--ink); }
.seg a[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(42, 11, 29, .12); }
.sheet-wide { width: min(1080px, calc(100vw - 32px)); max-width: none; }
.id-review { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.id-docs { display: grid; gap: 12px; }
.id-doc { display: grid; gap: 6px; margin: 0; }
.id-doc img { width: 100%; max-height: 420px; object-fit: contain; background: var(--blush); border-radius: 12px; border: 1px solid var(--line); display: block; }
.id-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: 14px; margin: 0; }
.id-facts dt { color: var(--ink-3); }
.id-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.q-card { padding: 16px 18px; display: grid; gap: 12px; }
.q-head, .q-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.q-media img, .q-media video { width: 100%; height: 240px; object-fit: contain; background: #12040c; border-radius: 10px; display: block; }
.q-gone { display: grid; place-items: center; height: 120px; border-radius: 10px; background: var(--blush); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.photo-item img { width: 100%; height: 200px; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .center { border-left: 0; }
  .id-review { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .form-grid, .wallet-forms { grid-template-columns: minmax(0, 1fr); }
  .q-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-media img, .q-media video { height: 180px; }
  .sub-list li { padding: 12px 16px; flex-wrap: wrap; }
}

/* menu badge for unread messages */
.nav a, .tabbar a, .tb-ico { position: relative; }
.nav-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: auto; border-radius: 999px; background: var(--hot); color: #fff; font: 700 11px/1 var(--font-ui); }
.tb-ico .nav-badge { position: absolute; top: -6px; right: -10px; margin: 0; }

/* the gate and the rules */
.gate-card a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rules-text { display: grid; gap: 12px; font-size: 15px; line-height: 1.6; }
.rules-text p { margin: 0; white-space: normal; }
.rules-edit { font: 14px/1.55 var(--font-ui); min-height: 420px; }
.side-foot .btn-block + p { margin-top: 8px; }

/* messages */
.convo-list li a { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.convo-list li:first-child a { border-top: 0; }
.convo-list li a:hover { background: var(--blush); }
.convo-list .grow { min-width: 0; }
.thread-page { gap: 14px; }
.thread-head { display: flex; align-items: center; gap: 12px; }
.msg-list { display: grid; gap: 10px; align-content: start; padding: 16px; height: min(58vh, 620px); overflow-y: auto; }
.msg { display: grid; gap: 4px; justify-items: start; max-width: 78%; }
.msg.mine { justify-self: end; justify-items: end; }
.bubble { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--blush); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--ink); color: var(--paper); border-radius: 18px 18px 6px 18px; }
.msg-empty { text-align: center; padding: 30px 0; }
.compose { display: grid; gap: 10px; }
.compose textarea { min-height: 64px; }
@media (max-width: 640px) {
  .msg { max-width: 92%; }
  .msg-list { height: 44vh; min-height: 220px; }
  .convo-list li a { padding: 12px 16px; }
}

/* help */
.help-contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.help-faq { display: grid; gap: 10px; }
.help-faq .faq-title { font: 750 19px/1.2 var(--font-ui); margin: 16px 0 2px; }
.help-faq > p { color: var(--ink-2); }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; padding: 16px 20px; font: 650 16px/1.35 var(--font-ui); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 700 20px/1 var(--font-ui); color: var(--hot); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item > div { padding: 0 20px 18px; color: var(--ink-2); line-height: 1.55; }
/* support inbox */
.convo-list li .convo-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 20px; border-top: 1px solid var(--line); background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.convo-list li:first-child .convo-btn { border-top: 0; }
.convo-list li .convo-btn:hover { background: var(--blush); }
.convo-list .convo-btn .grow { min-width: 0; }
.support-list { height: min(46vh, 440px); }
