:root {
  --bg: #0b1220;
  --surface: #151f32;
  --surface-2: #1a2740;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #2d3b52;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --tap-min: 44px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(59, 130, 246, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

.header {
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  padding-bottom: 1rem;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--border);
  background: rgba(21, 31, 50, 0.92);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__title {
  --header-logo-size: min(40px, 12vw);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Square wrapper: keeps `img` from being non-uniformly scaled inside flex (esp. WebKit). */
.header__logo-wrap {
  width: var(--header-logo-size);
  height: var(--header-logo-size);
  flex: 0 0 var(--header-logo-size);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.header__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right, 0px)) max(1.25rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem max(1rem, env(safe-area-inset-right, 0px)) 1.2rem max(1rem, env(safe-area-inset-left, 0px));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Beats `.tabs { display: flex }` when registration is closed (some engines are picky about [hidden]). */
.tabs[hidden],
#auth-tabs[hidden],
#auth-section.auth-registering-closed #auth-tabs {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  gap: 0 !important;
}

.tabs__btn {
  flex: 1;
  min-height: var(--tap-min);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.tabs__btn[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.input,
select.input {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
}

.input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.input--area {
  resize: vertical;
  min-height: 5rem;
}

.btn {
  min-height: var(--tap-min);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.divider {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1rem 0;
}

.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.entry {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f172a;
}

.entry__text {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
}

.entry__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.entries__empty,
.entries__error {
  color: var(--muted);
  padding: 0.5rem 0;
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0f172a;
}

.banner__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.banner--install-in-daily {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.app-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
}

.app-nav__btn {
  flex: 1 1 9rem;
  max-width: 100%;
  min-height: var(--tap-min);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: clamp(0.8125rem, 3.2vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  text-align: center;
}

.app-nav__btn[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.app-panel[hidden] {
  display: none !important;
}

.app-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subcard {
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.subcard--highlight {
  border-color: #3d4f6f;
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: var(--surface-2);
  background: linear-gradient(
    135deg,
    var(--surface-2) 0%,
    color-mix(in srgb, var(--primary) 8%, var(--surface-2)) 100%
  );
}

.h2--tight {
  margin: 0 0 0.5rem;
}

.h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
}

.h3--tight {
  margin-top: 0.35rem;
}

.small {
  font-size: 0.85rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn--sm {
  min-height: 40px;
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
}

.btn--danger {
  background: #b91c1c;
  color: #fff;
}

.btn--danger:hover {
  background: #991b1b;
}

.btn--success {
  background: #15803d;
  color: #fff;
}

.btn--success:hover {
  background: #166534;
}

.form--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

/* Only direct .input children grow on the row axis. Nested inputs inside a column
   .label would otherwise get flex: 1 on the vertical axis and stretch absurdly tall. */
.form--inline > .input {
  flex: 1 1 10rem;
  min-width: 0;
}

.form--inline .label--inline .input {
  flex: 1 1 10rem;
}

.invite-code {
  margin: 0.35rem 0 0;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  letter-spacing: 0.14em;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list__item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.list__item:last-child {
  border-bottom: none;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.admin-users-table-wrap {
  max-height: min(70vh, 26rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-users-table-wrap .admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 var(--border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: rgba(30, 41, 59, 0.6);
  font-weight: 600;
}

.admin-table code {
  font-size: 0.75rem;
  word-break: break-all;
}

.admin-users-next {
  margin-top: 0.75rem;
}

.cheat-days {
  margin-top: 0.75rem;
}

.cheat-days__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0;
}

.cheat-days__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: var(--tap-min);
  padding: 0.25rem 0.4rem;
  margin: 0;
  font-size: 0.9375rem;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  border-radius: 8px;
}

.cheat-days__item:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.history-toolbar .label {
  margin: 0;
}

.history-toolbar .input {
  min-width: 11rem;
}

.chart-scroll {
  overflow-x: auto;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.chart {
  min-height: 8rem;
}

.chart--empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.chart__svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.chart__bar--yes {
  fill: #f97316;
}

.chart__bar--no {
  fill: #22c55e;
}

.chart__bar--empty {
  fill: #475569;
}

.chart__bar--pickable {
  cursor: pointer;
}

.chart__bar--pickable:hover,
.chart__bar--pickable:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.chart-day-pick {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2, var(--surface));
}

.chart-day-pick__label {
  margin: 0 0 0.5rem;
}

.chart__legend {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chart__key--yes {
  color: #fdba74;
}

.chart__key--no {
  color: #86efac;
}

.chart__key--empty {
  color: #94a3b8;
}

.feed-page__header {
  margin-bottom: 0.75rem;
}

.feed-page__lede {
  margin: 0.35rem 0 0.75rem;
  line-height: 1.45;
}

.feed-toolbar {
  margin: 0;
}

.feed-page__stream {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-height: 4rem;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feed-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
}

.feed-section__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.feed-section__lede {
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.streak-line {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.45);
  font-size: 0.9rem;
  color: var(--text);
}

.streak-line__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.streak-line__streak {
  font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.streak-line__caption {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.streak-line__n {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #86efac;
  text-shadow: 0 0 24px color-mix(in srgb, #86efac 35%, transparent);
}

.streak-line__meta {
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

/* I dag-panelet: midstill alt */
#panel-daily .subcard {
  text-align: center;
}

#panel-daily .h2--tight {
  text-align: center;
}

#panel-daily .btn-row {
  justify-content: center;
}

#panel-daily .streak-line__hero {
  justify-content: center;
}

#panel-daily .streak-line__meta {
  text-align: center;
}

.subcard-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.35rem;
}

.subcard-heading .h2--tight {
  margin: 0;
  min-width: 0;
  line-height: 1.25;
}

.subcard-heading > .help-details--inline[open] {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
}

.onboarding__heading {
  margin-bottom: 0.5rem;
}

.help-details {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.help-details--inline {
  align-items: flex-end;
}

.help-details--block {
  margin: 0 0 0.65rem;
}

.help-details__summary {
  list-style: none;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  max-width: 2.25rem;
  max-height: 2.25rem;
  padding: 0;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.help-details__glyph {
  font-size: 1.05rem;
  line-height: 1;
  font-style: normal;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.help-details__summary:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 70%, var(--bg));
}

.help-details__summary::-webkit-details-marker {
  display: none;
}

.help-details__summary::marker {
  content: "";
}

.help-details__body {
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  line-height: 1.45;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.help-details__body.feed-page__lede {
  margin-top: 0.45rem;
}

.help-details__stack {
  margin: 0 0 0.55rem;
}

.help-details__stack:last-child {
  margin-bottom: 0;
}

.past-days-toolbar {
  margin-bottom: 0.35rem;
}

.past-days-scroll {
  max-height: min(55vh, 22rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 0.35rem;
}

.past-days-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.past-days-table th,
.past-days-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.35rem 0.45rem;
  text-align: left;
  vertical-align: middle;
}

.past-days-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
  font-weight: 600;
}

.past-days-table__check {
  width: 2rem;
  text-align: center;
}

.past-days-table__day {
  min-width: 7rem;
}

.past-days-table__day-code {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.past-days-table__status {
  white-space: nowrap;
}

.past-days-table__quick .btn {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

.past-days-table__tr--locked {
  opacity: 0.72;
}

.feed-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--bg);
}

.feed-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.5rem;
}

.feed-card__pill {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #334155;
  background: color-mix(in srgb, var(--border) 80%, var(--primary));
  color: var(--text);
}

.feed-comments {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.feed-comments__item {
  font-size: 0.9375rem;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

.feed-comments__item:first-child {
  border-top: none;
}

.feed-reply {
  margin-top: 0.35rem;
  gap: 0.5rem;
}

.feed-reply__input {
  flex: 1 1 12rem;
  min-height: var(--tap-min);
}

.feed-reply__btn {
  min-height: var(--tap-min);
}

@media (max-width: 28rem) {
  .feed-toolbar .btn {
    width: 100%;
  }
}

code {
  font-size: 0.85em;
  background: #0f172a;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.banner--warn {
  border-color: #b45309;
  background: #422006;
}

.form--wrap {
  flex-wrap: wrap;
  align-items: flex-end;
}

.label--inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.label--inline .input {
  min-width: 11rem;
}

.label--row {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 50px #00000080;
}

.modal--onboarding .modal__card--onboarding {
  max-width: 26rem;
  max-height: min(92dvh, 100%);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.onboarding__step {
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Match `.app-panel[hidden]`: plain `.onboarding__panel { display: flex }` can show “hidden” steps at once. */
.onboarding__panel[hidden] {
  display: none !important;
}

.onboarding__panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.onboarding__footer {
  margin-top: 0.5rem;
  justify-content: flex-end;
}

.onboarding__actions {
  margin-top: 0.25rem;
}

.onboarding__status {
  margin: 0;
  min-height: 1.25rem;
}

.onboarding__footer-note {
  margin: 0.35rem 0 0;
}

.yesterday-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.35rem;
  margin: 0.3rem 0 0.1rem;
}

.yesterday-head__question {
  margin: 0;
  font-weight: 600;
  flex: 0 1 auto;
  text-align: center;
}

.yesterday-head__label {
  margin: 0;
  text-align: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.daily-answer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.4rem;
  margin: 0.05rem 0 0;
}

.daily-answer-row__buttons {
  flex: 0 0 auto;
}

.daily-answer-row__status {
  margin: 0;
  flex: 0 1 auto;
  text-align: center;
  min-width: 0;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.daily-answer-row__status.form-error {
  margin: 0;
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  font-weight: 700;
  text-align: center;
}

.onb-list {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.onb-list li {
  margin-bottom: 0.45rem;
}

.onb-list--tight {
  font-size: 0.85rem;
  padding-left: 1.1rem;
}

.onb-list--tight li {
  margin-bottom: 0.35rem;
}

.onb-later {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.friend-list__row.list__item {
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.friend-list__row.list__item:last-child {
  border-bottom: none;
}

.friend-list__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-height: var(--tap-min);
  padding: 0.65rem 0.5rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.friend-list__btn:hover,
.friend-list__btn:focus-visible {
  background: rgba(59, 130, 246, 0.08);
}

.friend-list__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.friend-list__name {
  font-weight: 600;
}

.friend-logs-modal__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-bottom: 0.35rem;
}

.friend-logs-modal__head .h2--tight {
  line-height: 1.25;
}

.friend-logs-modal__head .friend-logs-modal__help[open] {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
}

.ios-install-guide__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ios-install-guide__head .h2--tight {
  margin: 0;
  line-height: 1.25;
}

.ios-install-guide__lead {
  margin: 0 0 0.75rem;
}

.ios-install-guide__list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.45;
}

.ios-install-guide__foot {
  margin: 0;
}

.admin-result code {
  word-break: break-all;
  display: inline-block;
  margin-top: 0.35rem;
}

textarea.input {
  min-height: 5.5rem;
  resize: vertical;
  font-family: inherit;
}

.admin-push-preview {
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2, var(--surface));
}

.admin-push-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}
