/* Yves Klein: International Klein Blue as the ground, his gold and rose as the accents. */
:root {
  --ikb: #002FA7;
  --bg: #002FA7;
  --panel: #002A96;
  --panel-2: #0538B5;
  --line: #1E4BC2;
  --text: #F4F6FF;
  --muted: #A9B8EA;
  --gold: #D4AF37;
  --gold-ink: #1A1400;
  --rose: #F2A3C4;
  --rose-ink: #3A0A22;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ikb); }
body {
  margin: 0;
  background: var(--ikb);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--text); }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: .06em; text-decoration: none; color: var(--gold); }
.top nav { display: flex; gap: 14px; align-items: center; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.inline { display: inline; }
[hidden] { display: none !important; }
.badge {
  display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center;
  background: var(--rose); color: var(--rose-ink); font-size: 12px; font-weight: 700; vertical-align: middle;
}

.btn, button {
  background: var(--gold); color: var(--gold-ink); border: 0; border-radius: var(--radius);
  padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-block;
}
.btn.secondary, button.secondary { background: var(--panel-2); color: var(--text); }
button.link { background: none; color: var(--muted); padding: 0; font-weight: 400; }
button.link:hover { color: var(--text); }

h1 { font-size: 26px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 20px 0 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.error { color: var(--rose); }
.ok { color: var(--gold); }

form.stack { display: grid; gap: 14px; max-width: 460px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font: inherit;
}
input::placeholder, textarea::placeholder { color: #6F86D6; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 68px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 4px 10px; font-size: 14px; background: transparent; color: var(--gold); border: 0;
}
textarea { min-height: 90px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin: 0;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 400; cursor: pointer;
  background: var(--panel);
}
.choices label:has(:checked) { border-color: var(--gold); color: var(--gold); }
.choices input { margin: 0; accent-color: var(--gold); }
.field-error { color: var(--rose); font-size: 14px; }

/* filter bar */
.filters {
  display: grid; gap: 12px; padding: 14px; margin-bottom: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.filters .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filters .row > div { min-width: 120px; }
.filters .age { display: flex; gap: 8px; align-items: center; }
.filters .age input { width: 80px; }
.filters details.looks { display: grid; gap: 12px; }
.filters details.looks[open] summary { margin-bottom: 12px; }
.filters details.looks summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.looks-note { padding: 10px 12px; border: 1px solid var(--gold); border-radius: var(--radius); font-size: 14px; }

/* member grid */
.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.card {
  display: block; text-decoration: none; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card:hover { border-color: var(--gold); }
.card .pic { aspect-ratio: 1; background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: 40px; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .pic { position: relative; }
.now-badge {
  position: absolute; top: 6px; left: 6px; padding: 1px 8px; border-radius: 999px;
  background: #3DDC84; color: #04210F; font-size: 12px; font-weight: 700;
}
.checkin { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 10px; }
.checkin.overdue { border-color: var(--rose); }
.checkin .share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.checkin .share input { flex: 1; min-width: 200px; }
.status-big { font-size: 22px; font-weight: 700; }
.status-big.ok { color: #3DDC84; }
.status-big.bad { color: var(--rose); }
.card .meta { padding: 8px 10px; font-size: 14px; }
.card .name { font-weight: 700; }
.card .tags { color: var(--muted); font-size: 13px; }

/* profile page */
.profile { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .profile { grid-template-columns: 360px 1fr; } }
.profile .photo { aspect-ratio: 1; background: var(--bg); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.profile .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); font-size: 13px; margin: 2px 4px 2px 0; }
.tag.accent { background: var(--gold); color: var(--gold-ink); }

/* profile photo manager */
.photos { padding: 12px; border: 2px dashed var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.photos.drop { border-color: var(--gold); background: var(--panel); }
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 2px solid transparent; }
.thumb.main { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; padding: 6px; gap: 4px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.thumb-actions form { margin: 0; }
.thumb-actions button { padding: 4px 9px; font-size: 14px; }
.thumb.add { border: 2px dashed var(--line); display: grid; }
.thumb.add label { display: grid; place-items: center; align-content: center; gap: 4px; width: 100%; height: 100%; cursor: pointer; margin: 0; color: var(--muted); font-weight: 600; }
.thumb.add .plus { font-size: 40px; line-height: 1; color: var(--gold); }
.thumb.add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.strip a { flex: none; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.strip a:hover { border-color: var(--gold); }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* block / report / delete, and the moderation queue */
.safety { margin-top: 20px; }
.safety summary { cursor: pointer; }
.report { padding: 14px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.report-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.report-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.report-photos .thumb { width: 100px; height: 100px; }
.report-actions { display: flex; gap: 8px; }

/* inbox */
.convos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.convo {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.convo.unread { border-color: var(--rose); }
.convo .body { min-width: 0; }
.convo .who { font-weight: 700; display: block; }
.convo .last { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.convo.unread .last { color: var(--text); }
.convo .when { font-size: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg); overflow: hidden; display: inline-block; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 1-to-1 chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 400px; max-width: 760px; margin: -16px auto 0; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.chat-head .back { font-size: 28px; line-height: 1; text-decoration: none; color: var(--muted); padding: 0 6px; }
.chat-head .who { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 1; line-height: 1.2; }
.chat-head .avatar { width: 40px; height: 40px; }
.bubbles { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--ikb); }
.day { align-self: center; font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 10px; border-radius: 999px; margin: 8px 0; }
.bubble { max-width: 78%; padding: 7px 10px 5px; border-radius: 14px; position: relative; word-wrap: break-word; }
.bubble .text { white-space: pre-line; }
.bubble.has-photo { padding: 4px 4px 5px; }
.bubble.has-photo .text, .bubble.has-photo .stamp { padding: 0 6px; }
.chat-photo { display: block; margin-bottom: 4px; }
.chat-photo img { display: block; max-width: min(280px, 100%); max-height: 360px; border-radius: 11px; object-fit: cover; }
.chat-error { margin: 0; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.bubble.theirs { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: var(--gold); color: var(--gold-ink); border-bottom-right-radius: 4px; }
.bubble .stamp { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }
.bubble .ticks { margin-left: 4px; }
.bubble.mine .ticks.read { color: var(--ikb); opacity: 1; }
.composer { display: flex; gap: 8px; padding: 10px 12px; background: var(--bg); border-top: 1px solid var(--line); }
.composer textarea { min-height: 42px; max-height: 160px; border-radius: 21px; padding: 10px 14px; resize: none; }
.composer button { width: 44px; height: 42px; padding: 0; border-radius: 50%; font-size: 18px; flex: none; }
.composer .attach { width: 36px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; flex: none; margin: 0; }

/* "Confirm your email" banner under the header. */
.notice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); }
.notice button { padding: 6px 12px; }

/* online dot, next to a name or on an avatar */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 2px var(--bg); }
.avatar { position: relative; overflow: visible; }
.avatar img { border-radius: 50%; }
.avatar .dot { position: absolute; right: 0; bottom: 1px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
button.woof.on { background: var(--rose); color: var(--rose-ink); }

/* Cruised: tabs, time sections, photo tiles with the name over the picture */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; overflow-x: auto; }
.tabs a { padding: 8px 0; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--text); border-bottom-color: var(--rose); }
h2.section { font-size: 15px; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--panel); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .none { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 40px; }
.tile .over { position: absolute; inset: auto 0 0 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.tile .name { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { display: block; font-size: 12px; color: #d6dcf5; }
.tile:hover { outline: 2px solid var(--gold); }
