/* SceneKids look for the signed-in app, carried over from the landing page: black, mint and
   white with a hot-pink accent, slanted condensed headings and buttons, film grain. Loaded
   after app.css and only restyles it; layout and behaviour stay in app.css. */
@font-face {
  font-family: "Anton";
  src: url("fonts/anton.912c3c9f2621.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050909;
  --surface: #0d1414;
  --ink: #f4f7f5;
  --secondary: #9fb3ae;
  --accent: #7cf8e2;
  --wash: #132a27;
  --line: #1d3330;
  --danger: #ff6b8e;
  --on-accent: #050909;
  --hot: #ff2e63;
  --deep: #206b64;
  --display:
    "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

body {
  background:
    radial-gradient(
      ellipse 80% 40% at 50% 0,
      rgb(124 248 226 / 0.1),
      transparent 70%
    ),
    var(--bg);
  background-attachment: fixed;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
}

/* Headings: condensed, uppercase, slanted like the logo. */
h1 {
  font: 400 clamp(40px, 11vw, 56px) / 0.95 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform: skewX(-8deg);
  transform-origin: 0 50%;
  text-wrap: balance;
}
h2,
.empty h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 22px;
  line-height: 1.05;
}
.empty h2 {
  font-size: 32px;
  line-height: 1;
  transform: skewX(-6deg);
  transform-origin: 0 100%;
}
.eyebrow,
.month {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.month {
  margin-top: 28px;
}
.lead {
  font-size: 15px;
}

/* Buttons: slanted cut corners, Anton labels. */
.btn {
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font: 400 19px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--wash);
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--deep);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.25);
}
.btn.quiet {
  background: var(--wash);
  color: var(--accent);
  box-shadow: none;
}
.btn.destructive-btn {
  background: var(--hot);
  color: var(--on-accent);
  box-shadow: none;
}
.text-action {
  font-weight: 700;
}

/* Header and menu */
.brand img {
  height: 48px;
}
.goback {
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.top-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 17px;
}
.menu-panel {
  border-radius: 0;
  border: 2px solid var(--deep);
  box-shadow: 8px 8px 0 var(--deep);
}
.menu-panel > a {
  font-weight: 600;
}
.avatar {
  border-color: var(--bg);
}
.badge {
  background: var(--hot);
  color: var(--on-accent);
}

/* Cards */
.concert {
  border: 2px solid var(--deep);
  box-shadow: 5px 5px 0 var(--deep);
}
.swipe {
  margin-right: 5px;
  margin-bottom: 15px;
}
/* The band photo ends on a slant, like the buttons' cut corners. */
.billing {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 78%);
}
/* Band images take the buttons' slanted shape. */
.act,
.billing .support {
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.billing .support {
  width: 40px;
  box-shadow: none;
}
.act {
  font-family: var(--display);
  font-weight: 400;
}
.date span {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.date b {
  font: 400 32px/1.1 var(--display);
  letter-spacing: 0;
}
.artist {
  font: 400 21px/1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.spare {
  border-radius: 999px;
}
/* Action buttons take the slanted button shape; people's avatars, counts and labels stay round. */
.attendance,
.answered,
.info-row > .chip,
.ask,
.split-words button,
.concert-edit,
.filter-icon,
.info-toggle,
.track .glyph {
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.attendance,
.info-row > .chip {
  padding-inline: 16px;
}
/* Like the tab bar: the chosen answer is filled mint, the other is tinted. The slant cuts
   an outline, so neither uses one. */
.attendance[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.25);
}
.attendance[aria-pressed="false"],
.attendance.maybe[aria-pressed="false"] {
  color: var(--accent);
  background: var(--wash);
  box-shadow: inset 0 -3px 0 var(--deep);
}
.info-row > .chip {
  background: var(--wash);
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: inset 0 -3px 0 var(--deep);
}
.attendance,
.answered,
.spare {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spare {
  background: rgb(255 46 99 / 0.18);
  color: #ff8fab;
}
.event-info,
.formgroup,
.sourcebox,
.hint,
.toast,
.invite-card,
.report,
.push {
  border-radius: 0;
  border: 1px solid var(--line);
}
.hint,
.toast {
  border-left: 4px solid var(--accent);
}
.notice {
  border-left: 4px solid var(--hot);
}

/* Filters, chips and choices */
.filters,
.choice.segmented {
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}
.filters a,
.choice.segmented label {
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}
.filters [aria-current="true"],
.choice.segmented label:has(:checked) {
  background: var(--accent);
  color: var(--on-accent);
}
.chips a,
.choice label {
  border-radius: 0;
  background: transparent;
  border: 1px solid rgb(124 248 226 / 0.35);
  color: var(--ink);
  font-weight: 700;
}
.chips [aria-current="true"],
.choice label:has(:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* Forms: labels name the fields, as a small mono kicker above an underlined input. */
.field label,
.formgroup > div > label,
.choice legend {
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.auth-form > .field {
  padding: 8px 0;
  margin: 0;
  background: none;
  border-radius: 0;
}
.auth-form .field input:not([type="checkbox"]) {
  min-height: 52px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--deep);
  border-radius: 0;
  transition: border-color 0.15s;
}
.auth-form .field input:not([type="checkbox"]):focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.auth-form .check label {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.errorlist {
  color: var(--danger);
  font-weight: 600;
}
/* "Or" between the email form and Google/Apple: Anton between two slanted bars. */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  font: 400 22px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hot);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 6px;
  background: repeating-linear-gradient(
    -60deg,
    var(--deep) 0 6px,
    transparent 6px 10px
  );
}
.divider span {
  transform: skewX(-10deg);
}

/* Bottom tab bar: every tab is a slanted button like the rest of the app. The current tab
   is filled mint; adding a concert is the pink one. */
.nav {
  gap: 6px;
  padding: 6px;
  background: rgb(5 9 9 / 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 2px solid var(--deep);
  box-shadow: 5px 5px 0 var(--deep);
}
.nav a {
  gap: 8px;
  min-height: 50px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: var(--wash);
  color: var(--accent);
  font: 400 16px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 var(--deep);
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
.nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.25);
}
.nav .add {
  border-radius: 0;
  width: 52px;
  height: 50px;
  background: var(--hot);
  color: var(--on-accent);
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.25);
}
.nav-ico {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.nav .add .nav-ico {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}
.nav a:active {
  transform: translateY(1px);
}
@media (max-width: 600px) {
  .nav a {
    font-size: 14px;
    gap: 6px;
  }
  .nav-ico {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 360px) {
  .nav a .nav-ico {
    display: none;
  }
  .nav .add .nav-ico {
    display: block;
  }
}
.sitefoot {
  font: 400 18px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--deep);
  font-style: italic;
}

/* Leaderboard */
.board .place {
  font-family: var(--display);
  color: var(--accent);
}

@media (hover: hover) {
  .btn:hover {
    background: var(--ink);
    color: var(--on-accent);
    transform: translateY(-2px) skewX(-4deg);
  }
  .btn.primary:hover {
    background: var(--ink);
    color: var(--on-accent);
    filter: none;
  }
  .concert:has(.concert-main:hover) {
    box-shadow: 7px 7px 0 var(--accent);
    border-color: var(--accent);
    transform: translate(-2px, -2px);
  }
  .nav a:hover {
    background: var(--ink);
    color: var(--on-accent);
    transform: translateY(-2px) skewX(-4deg);
  }
  .nav .add:hover {
    background: var(--ink);
    color: var(--on-accent);
    filter: none;
  }
}

/* Phones: signed-in pages are an app shell, a column of header, scrolling page and tab bar
   exactly as tall as the visible screen. The tab bar sits in that column instead of being
   position: fixed, because iOS keeps fixed elements where they were when the keyboard
   panned the page, which left the bar mid-screen. app.js sets --vvh to the visible height
   while the keyboard is up and adds .kb to <html>. */
@media (max-width: 600px) {
  html:has(body.shell),
  body.shell {
    height: 100%;
    overflow: hidden;
  }
  body.shell .app {
    height: var(--vvh, 100dvh);
    min-height: 0;
  }
  body.shell .content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.shell .nav {
    position: static;
    flex: none;
    margin: 0;
    padding: 8px max(12px, env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    border-width: 2px 0 0;
    background: rgb(5 9 9 / 0.94);
    box-shadow: 0 -10px 24px rgb(0 0 0 / 0.55);
  }
  /* With the keyboard up the tab bar would only sit on top of it. */
  .kb .nav {
    display: none;
  }
  .topbar {
    padding-top: max(22px, calc(env(safe-area-inset-top) + 8px));
  }
  .chat-page .topbar {
    padding-bottom: 6px;
  }
  .composer {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .chat-page h1 {
    font-size: 26px;
  }
}

/* Desktop: a little more room for the column. */
@media (min-width: 900px) {
  .app {
    max-width: 640px;
  }
  h1 {
    font-size: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .concert:has(.concert-main:hover) {
    transform: none;
  }
}

/* Google and Apple: white like their own buttons, slanted like ours. */
.btn.social {
  gap: 12px;
  background: var(--ink);
  color: var(--on-accent);
  box-shadow: none;
}
.btn.social:disabled {
  background: var(--surface);
  color: var(--secondary);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.auth-providers {
  margin: 0 0 20px;
}

/* Account menu: a crew switch in hot pink leads the list when there is more than one crew. */
.menu-panel {
  padding-top: 12px;
}
.menu-panel > a.menu-switch {
  justify-content: space-between;
  min-height: 60px;
  margin: 0 -4px 6px;
  padding: 0 14px 0 18px;
  border: 0;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: var(--hot);
  color: var(--on-accent);
  font: 400 20px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.25);
}
.menu-switch small {
  display: block;
  margin-top: 4px;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}

.menu-crew small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--secondary);
}

/* Crew switcher: every crew is a big slanted card; the current one is mint. */
.crews {
  display: grid;
  gap: 14px;
  margin: 26px 5px 0 0;
  padding: 0;
  list-style: none;
}
.crews form {
  margin: 0;
}
.crew {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 12px 16px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--deep);
  box-shadow: 5px 5px 0 var(--deep);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}
.crew.current {
  border-color: var(--accent);
  box-shadow: 5px 5px 0 var(--accent);
}
.crew-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: var(--wash);
  color: var(--accent);
  font: 400 26px/1 var(--display);
}
.crew.current .crew-mark {
  background: var(--accent);
  color: var(--on-accent);
}
.crew-name {
  flex: 1;
  min-width: 0;
  font: 400 22px/1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.crew-name small {
  display: block;
  margin-top: 6px;
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.1em;
  color: var(--secondary);
}
.crew-now {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 800 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.crew-go {
  flex: none;
  font: 400 28px/1 var(--display);
  color: var(--hot);
}

/* Profile: one card with the photo, name, role and counts. */
.profile-card {
  display: grid;
  gap: 18px;
  margin: 8px 5px 18px 0;
  padding: 22px 18px;
  background: var(--surface);
  border: 2px solid var(--deep);
  box-shadow: 6px 6px 0 var(--deep);
}
section.profile-card {
  grid-template-columns: auto 1fr;
  align-items: center;
}
section.profile-card > .stats,
section.profile-card > .btn {
  grid-column: 1 / -1;
}
.profile-card .stats {
  margin: 0;
}
.profile-card .stats div {
  background: var(--bg);
  border: 1px solid var(--line);
}
.profile-card .stats dd {
  font: 400 30px/1 var(--display);
  color: var(--accent);
}
.profile-card .stats dt {
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-card .avatar.profilepic {
  width: 96px;
  height: 96px;
  font-size: 36px;
  border: 3px solid var(--accent);
  background: var(--wash);
}
.profile-id {
  min-width: 0;
}
.profile-id .eyebrow {
  margin-bottom: 8px;
}
.profile-id h1 {
  font-size: clamp(32px, 9vw, 48px);
  overflow-wrap: anywhere;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}
.tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 800 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag.quiet {
  background: var(--wash);
  color: var(--accent);
}
.profile-edit {
  margin-top: 24px;
}
.profile-edit .photo-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 18px;
}
.profile-edit .photo-field > .caption,
.profile-edit .photo-field > .errorlist {
  grid-column: 1 / -1;
  margin: 0;
}
.photo-actions {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.photo-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.photo-actions input[type="file"]:focus-visible + * {
  outline: 3px solid var(--accent);
}
.btn.photo-action {
  min-height: 44px;
  padding: 10px 18px;
  font: 400 17px/1 var(--display) !important;
  color: var(--accent) !important;
  cursor: pointer;
}
.photo-actions:has(input:focus-visible) .photo-action {
  outline: 3px solid var(--accent);
}
.profile-edit > .field {
  padding: 0;
}
.profile-edit > .field input {
  min-height: 52px !important;
  padding: 10px 14px !important;
  background: var(--bg) !important;
  border: 1px solid var(--line) !important;
  border-bottom: 2px solid var(--deep) !important;
}
.profile-edit > .field input:focus {
  outline: none;
  border-bottom-color: var(--accent) !important;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.form-actions .btn {
  flex: 1 1 140px;
}
.form-actions .text-action {
  flex: none;
}

/* Settings: numbered panels with a hard shadow, like the cards. */
.panel {
  margin: 26px 5px 0 0;
  padding: 20px 18px 18px;
  background: var(--surface);
  border: 2px solid var(--deep);
  box-shadow: 6px 6px 0 var(--deep);
  scroll-margin-top: 90px;
}
.panel h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 26px;
}
.panel-num {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--hot);
}
.panel > .caption {
  margin: 8px 0 0;
}
.panel .auth-form {
  margin-top: 14px;
}
.panel .auth-form > .field {
  padding: 6px 0;
}
.panel .auth-form .field input:not([type="checkbox"]) {
  background: var(--bg);
}
.signins {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.signin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.signin:last-child {
  border-bottom: 1px solid var(--line);
}
.signin-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-accent);
  font: 800 18px/1 var(--mono);
}
.signin-ico.apple {
  color: #000;
}
.signin-name {
  flex: 1 1 150px;
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.signin-name small {
  display: block;
  margin-top: 3px;
  font: 700 10px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}
.signin-actions {
  display: flex;
  gap: 8px;
  margin: 0 0 0 auto;
}
.signin-actions form {
  margin: 0;
}
.chipbtn {
  min-height: 36px;
  padding: 0 14px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  background: var(--wash);
  color: var(--accent);
  font: 400 15px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: inset 0 -3px 0 var(--deep);
}
.chipbtn.destructive {
  background: rgb(255 46 99 / 0.16);
  color: #ff8fab;
  box-shadow: inset 0 -3px 0 rgb(255 46 99 / 0.4);
}
.add-email {
  display: grid;
  gap: 8px;
}
.signout {
  margin: 34px 5px 0 0;
}

/* Crew pages: slanted tabs, the current one mint. */
.tabs {
  display: flex;
  gap: 6px;
  margin: 22px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs a {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 16px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: var(--wash);
  color: var(--accent);
  font: 400 17px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 var(--deep);
}
.tabs a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.25);
}
h2 .count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--accent);
  font: 800 12px/1 var(--mono);
  vertical-align: middle;
}
.rolelist {
  display: grid;
  gap: 8px;
  margin: 0;
}
.rolelist div {
  padding: 12px 14px;
  background: var(--surface);
  border-left: 4px solid var(--deep);
}
.rolelist div:first-child {
  border-left-color: var(--hot);
}
.rolelist dt {
  font: 400 18px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.rolelist dd {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--secondary);
}

@media (hover: hover) {
  .crew:hover {
    border-color: var(--accent);
    box-shadow: 7px 7px 0 var(--accent);
    transform: translate(-2px, -2px);
  }
  .menu-panel > a.menu-switch:hover,
  .chipbtn:hover,
  .tabs a:not([aria-current]):hover {
    background: var(--ink);
    color: var(--on-accent);
  }
}
@media (max-width: 380px) {
  section.profile-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Invitations: lasts, works for, create. The new link shows mint once it is copied. */
.invite-flow {
  display: grid;
  gap: 14px;
}
.invite-flow .meta {
  margin: 0;
}
.invite-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.invite-steps .field {
  padding: 0;
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--hot);
  color: var(--on-accent);
  font: 800 11px/1 var(--mono);
  letter-spacing: 0;
}
.btn .step-no {
  background: var(--on-accent);
  color: var(--accent);
}
.unit-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 12px;
  min-height: 52px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--deep);
}
.unit-input:focus-within {
  border-bottom-color: var(--accent);
}
.invite-steps .unit-input input {
  flex: 1;
  min-width: 0;
  font: 400 26px/1 var(--display) !important;
  color: var(--ink);
  padding: 0 !important;
  outline: none;
}
.unit-input span {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}
.invite-result {
  display: grid;
  gap: 10px;
  border: 2px solid var(--deep);
  box-shadow: 5px 5px 0 var(--deep);
  margin-right: 5px;
}
.invite-result.copied {
  border-color: var(--accent);
  box-shadow: 5px 5px 0 var(--accent);
}
.invite-result input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--accent);
  font: 600 14px/1.3 var(--mono);
}
.copy-status {
  margin: 0;
  font-weight: 700;
}
.invite-result.copied .copy-status::before {
  content: "✓ ";
  color: var(--accent);
}
.invite-result .caption {
  margin: 0;
}

/* Support chat: sharp bubbles; your own are mint, the other side's carry a mint edge. */
.bubble {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}
.bubble.mine {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  box-shadow: 4px 4px 0 var(--deep);
}
.bubble.mine .meta {
  color: rgb(5 9 9 / 0.65);
}
.composer textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--deep);
  border-radius: 0;
}
.composer textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.menu-dot,
.menu-count,
.notification .count {
  background: var(--hot);
  color: var(--on-accent);
}

/* Imprint, privacy policy and terms: long text in German, then English, on a phone first. */
.legal {
  max-width: 68ch;
}
.legal h1 {
  hyphens: manual;
}
.legal-lang {
  margin: 12px 0 0;
  font: 12px/1.4 var(--mono);
  color: var(--secondary);
}
.legal h2 {
  margin: 30px 0 8px;
  font-size: 21px;
  color: var(--accent);
}
.legal p,
.legal li,
.legal address {
  font-size: 15px;
  line-height: 1.6;
  font-style: normal;
  overflow-wrap: anywhere;
}
.legal p + p {
  margin-top: 10px;
}
.legal ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.legal li + li {
  margin-top: 6px;
}
.legal .legal-divider {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 2px solid var(--deep);
  font-size: 30px;
  color: var(--ink);
  transform: skewX(-6deg);
  transform-origin: 0 100%;
}
.legal code {
  font: 13px var(--mono);
  color: var(--accent);
}

/* Footer: the tagline, then the legal links every page carries. */
.sitefoot {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 24px;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font: 400 12px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: none;
}
.legal-links a {
  display: inline-block;
  padding: 10px 0;
  color: var(--secondary);
}

/* Accounts from before the terms accept them once. */
.terms-notice {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.terms-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.provider-terms {
  margin: 4px 0 0;
  line-height: 1.5;
}
.panel .delete-title {
  margin: 26px 0 0;
  font: 400 19px/1 var(--display);
  text-transform: uppercase;
  color: var(--danger);
}
.panel .delete-account {
  margin-top: 6px;
}
.panel .form-actions {
  margin-top: 14px;
}
/* The sign-up's terms box sits left of its text, which links the terms and privacy policy. */
.auth-form .check:has(input[name="terms"]) {
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-end;
}
.auth-form .check:has(input[name="terms"]) label {
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
}
.auth-form .check:has(input[name="terms"]) input {
  flex: none;
}
.auth-form .check:has(input[name="terms"]) .errorlist {
  order: -1;
}
