:root {
  color-scheme: dark;
  --ink: #141426;
  --paper: #f8f7f2;
  --mint: #bdf8dc;
  --iris: #6846ed;
  --muted: #bbb5d0;
  --line: #353049;
  --panel: #201b35;
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 52% 0, #272046 0, var(--ink) 58%); min-height: 100dvh; color: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { max-width: 1072px; width: calc(100% - 56px); margin-inline: auto; }
.top { border-bottom: 1px solid #ffffff17; background: #17142bea; }
.top-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 27px/1 'Bricolage Grotesque', sans-serif; letter-spacing: -1.3px; }
.top-nav { display: flex; gap: 9px; }
.top-nav a, .mobile-nav a { color: var(--muted); font-size: 13px; font-weight: 700; }
.top-nav a { padding: 10px 16px; border-radius: 9px; }
.top-nav a[aria-current], .mobile-nav a[aria-current] { background: #ffffff0b; color: var(--mint); }
.avatar { width: 36px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #382960; color: #e8dcff; border: 1px solid #6c5a9e; font-weight: 700; }
.mobile-nav { display: none; }
main { min-height: 66vh; padding-block: 56px 48px; }
h1,h2,h3 { font-family: 'Bricolage Grotesque', Inter, sans-serif; margin: 0; line-height: 1; letter-spacing: -.045em; }
h1 { font-weight: 800; font-size: clamp(43px, 7vw, 78px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 23px; }
p { margin: 0; line-height: 1.55; }
.lede { font-size: 16px; color: var(--muted); margin-top: 16px; max-width: 48ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 12px; min-height: 46px; padding: 10px 17px; font-weight: 700; color: white; background: var(--iris); text-align: center; }
.button:hover { filter: brightness(1.12); }
.button.alt { background: #ffffff09; border-color: #ffffff28; color: var(--paper); }
.button.mint { background: var(--mint); color: var(--ink); }
.button svg, .mobile-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.button:disabled { opacity: .55; cursor: default; }
.eyebrow { text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--mint); }
.section { margin-top: 46px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 13px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.dropzone { display: grid; place-items: center; min-height: 172px; gap: 6px; padding: 22px; border: 1px dashed #8270ba; border-radius: 12px; text-align: center; background: #2a2146; color: var(--paper); cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--mint); background: #332654; }
.dropzone > .button { pointer-events: none; min-height: 38px; padding: 6px 14px; margin-top: 5px; }
.dropzone svg { height: 25px; width: 25px; fill: none; stroke: var(--mint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.small { color: var(--muted); font-size: 13px; }
.status { display: block; color: var(--mint); margin-top: 10px; font-size: 14px; }
.status:empty { display: none; }
.status.error { color: #ffc0c8; }
.crop-stage { display: grid; justify-items: start; gap: 12px; margin-top: 14px; }
.crop-stage canvas { max-width: 100%; width: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 9px; touch-action: none; cursor: crosshair; }
.result { margin-top: 16px; background: #1c3030; border: 1px solid #4a8070; border-radius: 12px; padding: 16px; overflow-wrap: anywhere; }
.result p { white-space: pre-wrap; margin-top: 8px; }
.revealed-photo { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 12px auto 0; border-radius: 8px; }
.form-layout { max-width: 770px; }
.form-layout .panel { margin-top: 20px; }
.field { display: grid; gap: 6px; margin-block: 12px; font-size: 14px; font-weight: 600; }
.field input:not([type=checkbox]), .field textarea { width: 100%; padding: 11px 12px; background: #171428; color: var(--paper); border: 1px solid #554a70; border-radius: 8px; }
.field textarea { resize: vertical; min-height: 85px; }
.field input[type=file] { font-size: 13px; }
.field input[type=checkbox] { accent-color: var(--mint); width: 17px; height: 17px; }
.field.check { display: flex; align-items: center; gap: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.card { display: grid; gap: 10px; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.profile-top { display: flex; gap: 17px; align-items: center; }
.profile-top .avatar { width: 65px; font-size: 27px; }
.profile-top h1 { font-size: 52px; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; padding-block: 19px 22px; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .top-inner { height: 59px; }
  .brand { font-size: 24px; }
  .brand img { width: 32px; height: 32px; }
  .top-nav { display: none; }
  .mobile-nav { position: fixed; z-index: 2; inset: auto 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); background: #19152bf8; border-top: 1px solid #3d3655; }
  .mobile-nav:has([data-following-link]:not([hidden])) { grid-template-columns: repeat(4, 1fr); }
  .mobile-nav a { display: grid; place-items: center; gap: 3px; padding: 5px; border-radius: 8px; font-size: 11px; }
  main { padding-block: 29px 30px; }
  .lede { margin-top: 11px; font-size: 14px; }
  .actions { margin-top: 17px; }
  .section { margin-top: 25px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .panel { padding: 13px; }
  .dropzone { min-height: 145px; padding: 14px; }
  .footer { padding-bottom: calc(75px + env(safe-area-inset-bottom)); }
}

.profile-cover {
  min-height: 205px;
  padding: clamp(18px, 5vw, 36px);
  border-radius: 21px;
  border: 1px solid #6e5aab;
  background: radial-gradient(ellipse at 85% 10%, #5c4398 0, #35245b 50%, #24203d 100%);
  overflow-wrap: anywhere;
}
.profile-cover[data-theme=mint] { border-color: #528778; background: radial-gradient(ellipse at 88% 0, #366c61, #1e403d 52%, #172e31); }
.profile-cover[data-theme=midnight] { border-color: #53638a; background: radial-gradient(ellipse at 88% 0, #3d4c78, #252e52 52%, #192238); }
.profile-cover .profile-top h1 { font-size: clamp(32px, 7vw, 55px); }
.profile-cover .profile-top > div:last-child { min-width: 0; }
.profile-cover .eyebrow { margin-bottom: 6px; }
.profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 15px; max-width: 62ch; }
.profile-visibility { margin-top: 12px; }
.profile-editor { max-width: 620px; margin-top: 16px; }
.profile-editor select {
  width: 100%;
  padding: 11px 12px;
  background: #171428;
  color: var(--paper);
  border: 1px solid #554a70;
  border-radius: 8px;
  font: inherit;
}
.profile-private { padding: clamp(20px, 5vw, 38px); }
.profile-private h1 { font-size: clamp(34px, 7vw, 52px); }

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 22px);
  max-width: 860px;
  margin-inline: auto;
}
.home-action {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #5e4c86;
  border-radius: 21px;
  background: var(--panel);
}
.home-action:hover { border-color: var(--mint); }
.home-action img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; background: #231b39; }
.home-action-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px clamp(15px, 3vw, 23px);
  min-height: 69px;
  font: 800 clamp(21px, 3.8vw, 29px)/1.1 'Bricolage Grotesque', Inter, sans-serif;
  letter-spacing: -.025em;
}
.home-action-unlock .home-action-label { color: var(--mint); }
.home-action-create .home-action-label { color: #e6dcff; }
.home-action-label span { color: var(--mint); font: 700 21px/1 Inter, sans-serif; }
@media (max-width: 600px) {
  .home-actions { grid-template-columns: minmax(0, 1fr); }
  .home-action { grid-template-rows: auto; grid-template-columns: minmax(0, 1fr) 44%; }
  .home-action img { grid-column: 2; grid-row: 1; height: 100%; aspect-ratio: 1; }
  .home-action-label { grid-column: 1; grid-row: 1; }
}
.welcome-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--muted); font-size: 14px; }
.welcome-link:hover { color: var(--mint); }
.setup { max-width: 540px; margin-inline: auto; }
.setup h1 { font-size: clamp(38px, 7vw, 60px); }
.setup form .button { width: 100%; }
.create-options { margin-top: 14px; }
.create-options summary { width: fit-content; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; padding: 5px 0; }



.access-options { margin: 15px 0 0; padding: 8px 0 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.access-options legend { font-size: 14px; font-weight: 700; }
.access-options label { display: flex; align-items: flex-start; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.access-options label:has(input:checked) { border-color: var(--mint); }
.access-options input { accent-color: var(--mint); margin: 3px 0 0; }
.access-options strong, .access-options small { display: block; }
.access-options small { color: var(--muted); margin-top: 3px; }
[data-my-page][data-pending] { position: relative; }
[data-my-page][data-pending]::after { content: attr(data-pending); position: absolute; top: -4px; right: -4px; padding: 2px 5px; border-radius: 9px; font-size: 10px; font-weight: 700; color: var(--ink); background: var(--mint); }
.request-panel { margin-top: 15px; }
.request-panel summary { cursor: pointer; font-weight: 700; }
.request-panel [data-request-list] { margin-top: 10px; }
.request-row + .request-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.request-row .actions { margin-top: 7px; }
.result [data-check-approval] { margin-top: 12px; }

.top-actions { display: flex; align-items: center; gap: 12px; }
.install-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--mint); font-size: 13px; font-weight: 700; white-space: nowrap; }
.install-link:hover { text-decoration: underline; }
.install-panel { display: grid; gap: 14px; }
.install-panel summary { cursor: pointer; font-weight: 700; }
.install-panel details p { margin-top: 8px; }
.install-panel [data-install-prompt] { width: 100%; }
@media (max-width: 700px) {
  .top { padding-top: env(safe-area-inset-top); }
  .top-actions { gap: 9px; }
  .mobile-nav { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .field input:not([type=checkbox]), .field textarea, .profile-editor select { font-size: 16px; }
}

.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.admin-summary strong, .admin-summary span { display: block; }
.admin-summary strong { color: var(--mint); font-size: 27px; }
.admin-summary span { font-size: 13px; color: var(--muted); }
.admin-section { margin-bottom: 12px; }
.admin-section summary { font-weight: 700; cursor: pointer; }
.admin-list { margin-top: 12px; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.admin-row + .admin-row { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 9px; }
.admin-row .button { flex-shrink: 0; }
.admin-search { display: flex; align-items: end; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.admin-search .field { flex: 1 1 215px; margin: 0; }

.contact-options { margin-top: 14px; }
.contact-options label + label { margin-top: 5px; }
.contact-list { margin-top: 12px; }
.preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; color: var(--mint); }
@media (max-width: 700px) {
  .top-actions .avatar { display: none; }
}

.contact-list summary { font-weight: 700; cursor: pointer; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

.notification-settings { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; }
.notification-settings h3 { font-size: 19px; margin-bottom: 7px; }
.notification-settings p + p { margin-top: 5px; }
.notification-settings .actions { margin-top: 9px; }
.notification-settings .actions:has(button[hidden]) { display: none; }
.notification-settings .welcome-link { display: inline; }

.message-safety { color: #f0d6c0; font-size: 13px; }
.message-safety strong { font-weight: 700; }
.message-protection {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171428;
}
.message-protection h2 { font-size: 18px; margin-bottom: 5px; }
.message-protection details { margin-top: 7px; }
.message-protection summary { width: fit-content; color: var(--mint); font-size: 13px; cursor: pointer; }
.message-protection details p { margin-top: 6px; }

.clue-tabs { display: flex; gap: 5px; margin-top: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #171428; }
.clue-tabs button { flex: 1; display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 700; }
.clue-tabs button[aria-selected="true"] { background: #322651; border-color: #695791; color: var(--mint); }
.request-count { min-width: 21px; padding: 2px 6px; border-radius: 12px; background: var(--mint); color: var(--ink); font-size: 11px; line-height: 1.4; }
.request-preferences { margin-top: 13px; }
.request-preferences summary { width: fit-content; color: var(--mint); font-size: 13px; }

.profile-avatar { position: relative; flex: 0 0 auto; overflow: hidden; }
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-photo-editor { display: flex; align-items: flex-start; gap: 14px; margin-top: 13px; }
.profile-photo-editor .avatar { width: 64px; font-size: 25px; }
.profile-photo-editor > div:last-child { min-width: 0; }
.profile-photo-editor .field { margin-top: 0; margin-bottom: 5px; }
.profile-photo-editor input { max-width: 100%; }
.profile-photo-editor button { margin-top: 8px; }
.social-fields { border: 0; border-top: 1px solid var(--line); margin: 15px 0; padding: 0; min-width: 0; }
.social-fields legend { padding-right: 8px; font-size: 14px; font-weight: 700; }
.profile-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.social-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #2a204c; border: 1px solid #9681cd; color: #eadfff;
}
.social-icon:hover { filter: brightness(1.2); }
.social-icon svg { width: 23px; height: 23px; fill: currentColor; }
.profile-cover[data-theme=mint] .social-icon { background: #204840; border-color: #72aa98; color: var(--mint); }
.profile-cover[data-theme=midnight] .social-icon { background: #242e53; border-color: #7c92bf; color: #dae6ff; }

.text-format { margin: -5px 0 9px; }

.create-recovery { margin-top: 10px; }
.create-recovery p { margin-top: 8px; }


.card .clue-thumbnail { object-fit: contain; background: var(--ink); }
.clue-add-photo { margin-block: 0; }
.clue-delete { border-top: 1px solid var(--line); padding-top: 8px; }
.clue-delete summary { cursor: pointer; width: fit-content; color: #ffc4bc; font-size: 14px; font-weight: 650; }
.clue-delete p, .clue-delete button { margin-top: 7px; }

.deleted-sender { color: var(--mint); font-weight: 700; text-decoration: underline; }

.watermark-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.watermark-options p { grid-column: 1 / -1; }

.clue-grid-tools { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 10px; }
.clue-grid-tools .button { min-height: 37px; padding: 6px 12px; font-size: 13px; }
.clue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-top: 9px; }
.clue-grid > p { grid-column: 1 / -1; }
.clue-tile {
  position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; min-width: 0;
  overflow: hidden; padding: 8px; border: 0; border-radius: 0; color: var(--paper); background: var(--panel);
  font-size: clamp(11px, 2.5vw, 16px); overflow-wrap: anywhere; user-select: none; -webkit-touch-callout: none;
}
.clue-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.clue-tile:focus-visible { z-index: 1; outline-offset: -3px; }
.clue-tile.is-selected, .clue-tile.is-target { outline: 3px solid var(--mint); outline-offset: -3px; z-index: 1; }
.clue-tile.is-selected { opacity: .65; }
.clue-grid.is-reordering .clue-tile { cursor: move; }
.clue-dialog { width: min(530px, calc(100% - 24px)); max-height: 90dvh; padding: 12px; border: 1px solid var(--line); border-radius: 16px; color: var(--paper); background: var(--ink); }
.clue-dialog::backdrop { background: rgb(8 6 17 / 78%); }
.clue-dialog > form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.clue-dialog .card { margin: 0; }

figure.clue-tile { margin: 0; }

.preapproval-panel { max-width: 560px; margin-top: 12px; }
.preapproval-panel h3 { margin-bottom: 7px; }

.inbox-page > h1 { margin-top: 8px; }

.following-page { max-width: 580px; margin-inline: auto; }
.following-page h1 { font-size: clamp(34px, 7vw, 54px); margin-bottom: 18px; }
.following-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.following-tabs a { padding: 11px 16px; color: var(--muted); font-size: 14px; font-weight: 700; border-bottom: 2px solid transparent; }
.following-tabs [aria-current] { color: var(--mint); border-color: var(--mint); }
.following-feed, .following-creators { display: grid; gap: 14px; }
.feed-card { padding: 0; overflow: hidden; }
.feed-card .feed-creator, .feed-date, .feed-clue-caption { padding: 12px 14px; }
.feed-creator { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.feed-creator .avatar { flex-shrink: 0; overflow: hidden; }
.feed-creator .avatar > * { grid-area: 1 / 1; }
.feed-creator .avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-creator small { display: block; margin-top: 2px; color: var(--muted); }
.feed-clue { display: block; border-block: 1px solid var(--line); }
.feed-clue img { display: block; width: 100%; max-height: 560px; object-fit: contain; background: #141223; }
.feed-clue-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.feed-clue-caption span { flex-shrink: 0; color: var(--mint); font-size: 13px; }
.following-creator-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.following-creator-row .button { padding: 8px 11px; font-size: 13px; }
[data-feed-more] { margin-top: 14px; }

.follow-suggestions { margin-bottom: 18px; padding: 12px 14px; }
.follow-suggestions h2 { font-size: 18px; }
.follow-suggestions .following-creator-row { padding: 8px 0; }
.follow-suggestions .following-creator-row + .following-creator-row { border-top: 1px solid var(--line); }
